| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.CustomerTax
Description
Contains the types generated from the schema CustomerTax
Synopsis
Documentation
data CustomerTax Source #
Defines the object schema located at components.schemas.customer_tax in the specification.
Constructors
| CustomerTax | |
Fields
| |
Instances
| Eq CustomerTax Source # | |
Defined in StripeAPI.Types.CustomerTax | |
| Show CustomerTax Source # | |
Defined in StripeAPI.Types.CustomerTax Methods showsPrec :: Int -> CustomerTax -> ShowS # show :: CustomerTax -> String # showList :: [CustomerTax] -> ShowS # | |
| ToJSON CustomerTax Source # | |
Defined in StripeAPI.Types.CustomerTax Methods toJSON :: CustomerTax -> Value # toEncoding :: CustomerTax -> Encoding # toJSONList :: [CustomerTax] -> Value # toEncodingList :: [CustomerTax] -> Encoding # | |
| FromJSON CustomerTax Source # | |
Defined in StripeAPI.Types.CustomerTax | |
Arguments
| :: CustomerTaxAutomaticTax' | |
| -> CustomerTax |
Create a new CustomerTax with all required fields.
data CustomerTaxAutomaticTax' Source #
Defines the enum schema located at components.schemas.customer_tax.properties.automatic_tax in the specification.
Surfaces if automatic tax computation is possible given the current customer location information.
Constructors
| CustomerTaxAutomaticTax'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| CustomerTaxAutomaticTax'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| CustomerTaxAutomaticTax'EnumFailed | Represents the JSON value |
| CustomerTaxAutomaticTax'EnumNotCollecting | Represents the JSON value |
| CustomerTaxAutomaticTax'EnumSupported | Represents the JSON value |
| CustomerTaxAutomaticTax'EnumUnrecognizedLocation | Represents the JSON value |
Instances
| Eq CustomerTaxAutomaticTax' Source # | |
Defined in StripeAPI.Types.CustomerTax Methods (==) :: CustomerTaxAutomaticTax' -> CustomerTaxAutomaticTax' -> Bool # (/=) :: CustomerTaxAutomaticTax' -> CustomerTaxAutomaticTax' -> Bool # | |
| Show CustomerTaxAutomaticTax' Source # | |
Defined in StripeAPI.Types.CustomerTax Methods showsPrec :: Int -> CustomerTaxAutomaticTax' -> ShowS # show :: CustomerTaxAutomaticTax' -> String # showList :: [CustomerTaxAutomaticTax'] -> ShowS # | |
| ToJSON CustomerTaxAutomaticTax' Source # | |
Defined in StripeAPI.Types.CustomerTax Methods toJSON :: CustomerTaxAutomaticTax' -> Value # toEncoding :: CustomerTaxAutomaticTax' -> Encoding # toJSONList :: [CustomerTaxAutomaticTax'] -> Value # | |
| FromJSON CustomerTaxAutomaticTax' Source # | |
Defined in StripeAPI.Types.CustomerTax Methods parseJSON :: Value -> Parser CustomerTaxAutomaticTax' # parseJSONList :: Value -> Parser [CustomerTaxAutomaticTax'] # | |
data CustomerTaxLocation' Source #
Defines the object schema located at components.schemas.customer_tax.properties.location.anyOf in the specification.
The customer\'s location as identified by Stripe Tax.
Constructors
| CustomerTaxLocation' | |
Fields
| |
Instances
| Eq CustomerTaxLocation' Source # | |
Defined in StripeAPI.Types.CustomerTax Methods (==) :: CustomerTaxLocation' -> CustomerTaxLocation' -> Bool # (/=) :: CustomerTaxLocation' -> CustomerTaxLocation' -> Bool # | |
| Show CustomerTaxLocation' Source # | |
Defined in StripeAPI.Types.CustomerTax Methods showsPrec :: Int -> CustomerTaxLocation' -> ShowS # show :: CustomerTaxLocation' -> String # showList :: [CustomerTaxLocation'] -> ShowS # | |
| ToJSON CustomerTaxLocation' Source # | |
Defined in StripeAPI.Types.CustomerTax Methods toJSON :: CustomerTaxLocation' -> Value # toEncoding :: CustomerTaxLocation' -> Encoding # toJSONList :: [CustomerTaxLocation'] -> Value # toEncodingList :: [CustomerTaxLocation'] -> Encoding # | |
| FromJSON CustomerTaxLocation' Source # | |
Defined in StripeAPI.Types.CustomerTax Methods parseJSON :: Value -> Parser CustomerTaxLocation' # parseJSONList :: Value -> Parser [CustomerTaxLocation'] # | |
mkCustomerTaxLocation' :: CustomerTaxLocation' Source #
Create a new CustomerTaxLocation' with all required fields.
data CustomerTaxLocation'Source' Source #
Defines the enum schema located at components.schemas.customer_tax.properties.location.anyOf.properties.source in the specification.
The data source used to infer the customer's location.
Constructors
| CustomerTaxLocation'Source'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| CustomerTaxLocation'Source'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| CustomerTaxLocation'Source'EnumBillingAddress | Represents the JSON value |
| CustomerTaxLocation'Source'EnumIpAddress | Represents the JSON value |
| CustomerTaxLocation'Source'EnumPaymentMethod | Represents the JSON value |
| CustomerTaxLocation'Source'EnumShippingDestination | Represents the JSON value |