Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Coupon
Synopsis
- data Coupon = Coupon {
- couponAmountOff :: Maybe Integer
- couponCreated :: Integer
- couponCurrency :: Maybe String
- couponDuration :: CouponDuration'
- couponDurationInMonths :: Maybe Integer
- couponId :: String
- couponLivemode :: Bool
- couponMaxRedemptions :: Maybe Integer
- couponMetadata :: CouponMetadata'
- couponName :: Maybe String
- couponObject :: CouponObject'
- couponPercentOff :: Maybe Double
- couponRedeemBy :: Maybe Integer
- couponTimesRedeemed :: Integer
- couponValid :: Bool
- data CouponDuration'
- data CouponMetadata' = CouponMetadata' {
- data CouponObject'
Documentation
Defines the data type for the schema coupon
A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to invoices or orders. Coupons do not work with conventional one-off charges.
Coupon | |
|
data CouponDuration' Source #
Defines the enum schema couponDuration'
One of `forever`, `once`, and `repeating`. Describes how long a customer who applies this coupon will get the discount.
CouponDuration'EnumOther Value | |
CouponDuration'EnumTyped String | |
CouponDuration'EnumStringForever | |
CouponDuration'EnumStringOnce | |
CouponDuration'EnumStringRepeating |
Instances
Eq CouponDuration' Source # | |
Defined in StripeAPI.Types.Coupon (==) :: CouponDuration' -> CouponDuration' -> Bool # (/=) :: CouponDuration' -> CouponDuration' -> Bool # | |
Show CouponDuration' Source # | |
Defined in StripeAPI.Types.Coupon showsPrec :: Int -> CouponDuration' -> ShowS # show :: CouponDuration' -> String # showList :: [CouponDuration'] -> ShowS # | |
ToJSON CouponDuration' Source # | |
Defined in StripeAPI.Types.Coupon toJSON :: CouponDuration' -> Value # toEncoding :: CouponDuration' -> Encoding # toJSONList :: [CouponDuration'] -> Value # toEncodingList :: [CouponDuration'] -> Encoding # | |
FromJSON CouponDuration' Source # | |
Defined in StripeAPI.Types.Coupon parseJSON :: Value -> Parser CouponDuration' # parseJSONList :: Value -> Parser [CouponDuration'] # |
data CouponMetadata' Source #
Defines the data type for the schema couponMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Instances
Eq CouponMetadata' Source # | |
Defined in StripeAPI.Types.Coupon (==) :: CouponMetadata' -> CouponMetadata' -> Bool # (/=) :: CouponMetadata' -> CouponMetadata' -> Bool # | |
Show CouponMetadata' Source # | |
Defined in StripeAPI.Types.Coupon showsPrec :: Int -> CouponMetadata' -> ShowS # show :: CouponMetadata' -> String # showList :: [CouponMetadata'] -> ShowS # | |
ToJSON CouponMetadata' Source # | |
Defined in StripeAPI.Types.Coupon toJSON :: CouponMetadata' -> Value # toEncoding :: CouponMetadata' -> Encoding # toJSONList :: [CouponMetadata'] -> Value # toEncodingList :: [CouponMetadata'] -> Encoding # | |
FromJSON CouponMetadata' Source # | |
Defined in StripeAPI.Types.Coupon parseJSON :: Value -> Parser CouponMetadata' # parseJSONList :: Value -> Parser [CouponMetadata'] # |
data CouponObject' Source #
Defines the enum schema couponObject'
String representing the object's type. Objects of the same type share the same value.
Instances
Eq CouponObject' Source # | |
Defined in StripeAPI.Types.Coupon (==) :: CouponObject' -> CouponObject' -> Bool # (/=) :: CouponObject' -> CouponObject' -> Bool # | |
Show CouponObject' Source # | |
Defined in StripeAPI.Types.Coupon showsPrec :: Int -> CouponObject' -> ShowS # show :: CouponObject' -> String # showList :: [CouponObject'] -> ShowS # | |
ToJSON CouponObject' Source # | |
Defined in StripeAPI.Types.Coupon toJSON :: CouponObject' -> Value # toEncoding :: CouponObject' -> Encoding # toJSONList :: [CouponObject'] -> Value # toEncodingList :: [CouponObject'] -> Encoding # | |
FromJSON CouponObject' Source # | |
Defined in StripeAPI.Types.Coupon parseJSON :: Value -> Parser CouponObject' # parseJSONList :: Value -> Parser [CouponObject'] # |