Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema DeletedDiscount
Synopsis
- data DeletedDiscount = DeletedDiscount {
- deletedDiscountCheckoutSession :: Maybe Text
- deletedDiscountCoupon :: Coupon
- deletedDiscountCustomer :: Maybe DeletedDiscountCustomer'Variants
- deletedDiscountId :: Text
- deletedDiscountInvoice :: Maybe Text
- deletedDiscountInvoiceItem :: Maybe Text
- deletedDiscountPromotionCode :: Maybe DeletedDiscountPromotionCode'Variants
- deletedDiscountStart :: Int
- deletedDiscountSubscription :: Maybe Text
- mkDeletedDiscount :: Coupon -> Text -> Int -> DeletedDiscount
- data DeletedDiscountCustomer'Variants
- data DeletedDiscountPromotionCode'Variants
Documentation
data DeletedDiscount Source #
Defines the object schema located at components.schemas.deleted_discount
in the specification.
DeletedDiscount | |
|
Instances
Eq DeletedDiscount Source # | |
Defined in StripeAPI.Types.DeletedDiscount (==) :: DeletedDiscount -> DeletedDiscount -> Bool # (/=) :: DeletedDiscount -> DeletedDiscount -> Bool # | |
Show DeletedDiscount Source # | |
Defined in StripeAPI.Types.DeletedDiscount showsPrec :: Int -> DeletedDiscount -> ShowS # show :: DeletedDiscount -> String # showList :: [DeletedDiscount] -> ShowS # | |
ToJSON DeletedDiscount Source # | |
Defined in StripeAPI.Types.DeletedDiscount toJSON :: DeletedDiscount -> Value # toEncoding :: DeletedDiscount -> Encoding # toJSONList :: [DeletedDiscount] -> Value # toEncodingList :: [DeletedDiscount] -> Encoding # | |
FromJSON DeletedDiscount Source # | |
Defined in StripeAPI.Types.DeletedDiscount parseJSON :: Value -> Parser DeletedDiscount # parseJSONList :: Value -> Parser [DeletedDiscount] # |
Create a new DeletedDiscount
with all required fields.
data DeletedDiscountCustomer'Variants Source #
Defines the oneOf schema located at components.schemas.deleted_discount.properties.customer.anyOf
in the specification.
The ID of the customer associated with this discount.
DeletedDiscountCustomer'Text Text | |
DeletedDiscountCustomer'Customer Customer | |
DeletedDiscountCustomer'DeletedCustomer DeletedCustomer |
data DeletedDiscountPromotionCode'Variants Source #
Defines the oneOf schema located at components.schemas.deleted_discount.properties.promotion_code.anyOf
in the specification.
The promotion code applied to create this discount.