| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.Sku
Description
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.
Constructors
| Sku | |
Fields
| |
Arguments
| :: 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.
Constructors
| SkuPackageDimensions' | |
Fields
| |
Instances
| Eq SkuPackageDimensions' Source # | |
Defined in StripeAPI.Types.Sku Methods (==) :: SkuPackageDimensions' -> SkuPackageDimensions' -> Bool # (/=) :: SkuPackageDimensions' -> SkuPackageDimensions' -> Bool # | |
| Show SkuPackageDimensions' Source # | |
Defined in StripeAPI.Types.Sku Methods showsPrec :: Int -> SkuPackageDimensions' -> ShowS # show :: SkuPackageDimensions' -> String # showList :: [SkuPackageDimensions'] -> ShowS # | |
| ToJSON SkuPackageDimensions' Source # | |
Defined in StripeAPI.Types.Sku Methods toJSON :: SkuPackageDimensions' -> Value # toEncoding :: SkuPackageDimensions' -> Encoding # toJSONList :: [SkuPackageDimensions'] -> Value # toEncodingList :: [SkuPackageDimensions'] -> Encoding # | |
| FromJSON SkuPackageDimensions' Source # | |
Defined in StripeAPI.Types.Sku Methods 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.
Constructors
| SkuProduct'Text Text | |
| SkuProduct'Product Product |
Instances
| Eq SkuProduct'Variants Source # | |
Defined in StripeAPI.Types.Sku Methods (==) :: SkuProduct'Variants -> SkuProduct'Variants -> Bool # (/=) :: SkuProduct'Variants -> SkuProduct'Variants -> Bool # | |
| Show SkuProduct'Variants Source # | |
Defined in StripeAPI.Types.Sku Methods showsPrec :: Int -> SkuProduct'Variants -> ShowS # show :: SkuProduct'Variants -> String # showList :: [SkuProduct'Variants] -> ShowS # | |
| ToJSON SkuProduct'Variants Source # | |
Defined in StripeAPI.Types.Sku Methods 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 Methods parseJSON :: Value -> Parser SkuProduct'Variants # parseJSONList :: Value -> Parser [SkuProduct'Variants] # | |