Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Sku
Synopsis
- data Sku = Sku {}
- mkSku :: Bool -> Object -> Int -> Text -> Text -> SkuInventory -> Bool -> Object -> Int -> SkuProduct'Variants -> Int -> Sku
- data SkuPackageDimensions' = SkuPackageDimensions' {}
- mkSkuPackageDimensions' :: SkuPackageDimensions'
- data SkuProduct'Variants
Documentation
Defines the object schema located at components.schemas.sku
in the specification.
Stores representations of stock keeping units. SKUs describe specific product variations, taking into account any combination of: attributes, currency, and cost. For example, a product may be a T-shirt, whereas a specific SKU represents the `size: large`, `color: red` version of that shirt.
Can also be used to manage inventory.
Related guide: Tax, Shipping, and Inventory.
Sku | |
|
:: Bool | |
-> Object | |
-> Int | |
-> Text | |
-> Text | |
-> SkuInventory | |
-> Bool | |
-> Object | |
-> Int | |
-> SkuProduct'Variants | |
-> Int | |
-> Sku |
Create a new Sku
with all required fields.
data SkuPackageDimensions' Source #
Defines the object schema located at components.schemas.sku.properties.package_dimensions.anyOf
in the specification.
The dimensions of this SKU for shipping purposes.
SkuPackageDimensions' | |
|
Instances
Eq SkuPackageDimensions' Source # | |
Defined in StripeAPI.Types.Sku (==) :: SkuPackageDimensions' -> SkuPackageDimensions' -> Bool # (/=) :: SkuPackageDimensions' -> SkuPackageDimensions' -> Bool # | |
Show SkuPackageDimensions' Source # | |
Defined in StripeAPI.Types.Sku showsPrec :: Int -> SkuPackageDimensions' -> ShowS # show :: SkuPackageDimensions' -> String # showList :: [SkuPackageDimensions'] -> ShowS # | |
ToJSON SkuPackageDimensions' Source # | |
Defined in StripeAPI.Types.Sku toJSON :: SkuPackageDimensions' -> Value # toEncoding :: SkuPackageDimensions' -> Encoding # toJSONList :: [SkuPackageDimensions'] -> Value # toEncodingList :: [SkuPackageDimensions'] -> Encoding # | |
FromJSON SkuPackageDimensions' Source # | |
Defined in StripeAPI.Types.Sku parseJSON :: Value -> Parser SkuPackageDimensions' # parseJSONList :: Value -> Parser [SkuPackageDimensions'] # |
mkSkuPackageDimensions' :: SkuPackageDimensions' Source #
Create a new SkuPackageDimensions'
with all required fields.
data SkuProduct'Variants Source #
Defines the oneOf schema located at components.schemas.sku.properties.product.anyOf
in the specification.
The ID of the product this SKU is associated with. The product must be currently active.
Instances
Eq SkuProduct'Variants Source # | |
Defined in StripeAPI.Types.Sku (==) :: SkuProduct'Variants -> SkuProduct'Variants -> Bool # (/=) :: SkuProduct'Variants -> SkuProduct'Variants -> Bool # | |
Show SkuProduct'Variants Source # | |
Defined in StripeAPI.Types.Sku showsPrec :: Int -> SkuProduct'Variants -> ShowS # show :: SkuProduct'Variants -> String # showList :: [SkuProduct'Variants] -> ShowS # | |
ToJSON SkuProduct'Variants Source # | |
Defined in StripeAPI.Types.Sku toJSON :: SkuProduct'Variants -> Value # toEncoding :: SkuProduct'Variants -> Encoding # toJSONList :: [SkuProduct'Variants] -> Value # toEncodingList :: [SkuProduct'Variants] -> Encoding # | |
FromJSON SkuProduct'Variants Source # | |
Defined in StripeAPI.Types.Sku parseJSON :: Value -> Parser SkuProduct'Variants # parseJSONList :: Value -> Parser [SkuProduct'Variants] # |