Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema TaxRate
Synopsis
- data TaxRate = TaxRate {
- taxRateActive :: Bool
- taxRateCountry :: Maybe Text
- taxRateCreated :: Int
- taxRateDescription :: Maybe Text
- taxRateDisplayName :: Text
- taxRateId :: Text
- taxRateInclusive :: Bool
- taxRateJurisdiction :: Maybe Text
- taxRateLivemode :: Bool
- taxRateMetadata :: Maybe Object
- taxRatePercentage :: Double
- taxRateState :: Maybe Text
- taxRateTaxType :: Maybe TaxRateTaxType'
- mkTaxRate :: Bool -> Int -> Text -> Text -> Bool -> Bool -> Double -> TaxRate
- data TaxRateTaxType'
Documentation
Defines the object schema located at components.schemas.tax_rate
in the specification.
Tax rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax.
Related guide: Tax Rates.
TaxRate | |
|
Create a new TaxRate
with all required fields.
data TaxRateTaxType' Source #
Defines the enum schema located at components.schemas.tax_rate.properties.tax_type
in the specification.
The high-level tax type, such as `vat` or `sales_tax`.
TaxRateTaxType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TaxRateTaxType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TaxRateTaxType'EnumGst | Represents the JSON value |
TaxRateTaxType'EnumHst | Represents the JSON value |
TaxRateTaxType'EnumPst | Represents the JSON value |
TaxRateTaxType'EnumQst | Represents the JSON value |
TaxRateTaxType'EnumSalesTax | Represents the JSON value |
TaxRateTaxType'EnumVat | Represents the JSON value |
Instances
Eq TaxRateTaxType' Source # | |
Defined in StripeAPI.Types.TaxRate (==) :: TaxRateTaxType' -> TaxRateTaxType' -> Bool # (/=) :: TaxRateTaxType' -> TaxRateTaxType' -> Bool # | |
Show TaxRateTaxType' Source # | |
Defined in StripeAPI.Types.TaxRate showsPrec :: Int -> TaxRateTaxType' -> ShowS # show :: TaxRateTaxType' -> String # showList :: [TaxRateTaxType'] -> ShowS # | |
ToJSON TaxRateTaxType' Source # | |
Defined in StripeAPI.Types.TaxRate toJSON :: TaxRateTaxType' -> Value # toEncoding :: TaxRateTaxType' -> Encoding # toJSONList :: [TaxRateTaxType'] -> Value # toEncodingList :: [TaxRateTaxType'] -> Encoding # | |
FromJSON TaxRateTaxType' Source # | |
Defined in StripeAPI.Types.TaxRate parseJSON :: Value -> Parser TaxRateTaxType' # parseJSONList :: Value -> Parser [TaxRateTaxType'] # |