Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postSkus
Synopsis
- postSkus :: forall m. MonadHTTP m => PostSkusRequestBody -> StripeT m (Response PostSkusResponse)
- data PostSkusRequestBody = PostSkusRequestBody {
- postSkusRequestBodyActive :: Maybe Bool
- postSkusRequestBodyAttributes :: Maybe Object
- postSkusRequestBodyCurrency :: Text
- postSkusRequestBodyExpand :: Maybe [Text]
- postSkusRequestBodyId :: Maybe Text
- postSkusRequestBodyImage :: Maybe Text
- postSkusRequestBodyInventory :: PostSkusRequestBodyInventory'
- postSkusRequestBodyMetadata :: Maybe Object
- postSkusRequestBodyPackageDimensions :: Maybe PostSkusRequestBodyPackageDimensions'
- postSkusRequestBodyPrice :: Int
- postSkusRequestBodyProduct :: Text
- mkPostSkusRequestBody :: Text -> PostSkusRequestBodyInventory' -> Int -> Text -> PostSkusRequestBody
- data PostSkusRequestBodyInventory' = PostSkusRequestBodyInventory' {}
- mkPostSkusRequestBodyInventory' :: PostSkusRequestBodyInventory'Type' -> PostSkusRequestBodyInventory'
- data PostSkusRequestBodyInventory'Type'
- data PostSkusRequestBodyInventory'Value'
- data PostSkusRequestBodyPackageDimensions' = PostSkusRequestBodyPackageDimensions' {}
- mkPostSkusRequestBodyPackageDimensions' :: Double -> Double -> Double -> Double -> PostSkusRequestBodyPackageDimensions'
- data PostSkusResponse
Documentation
:: forall m. MonadHTTP m | |
=> PostSkusRequestBody | The request body to send |
-> StripeT m (Response PostSkusResponse) | Monadic computation which returns the result of the operation |
POST /v1/skus
<p>Creates a new SKU associated with a product.</p>
data PostSkusRequestBody Source #
Defines the object schema located at paths./v1/skus.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostSkusRequestBody | |
|
Instances
Eq PostSkusRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkus (==) :: PostSkusRequestBody -> PostSkusRequestBody -> Bool # (/=) :: PostSkusRequestBody -> PostSkusRequestBody -> Bool # | |
Show PostSkusRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkus showsPrec :: Int -> PostSkusRequestBody -> ShowS # show :: PostSkusRequestBody -> String # showList :: [PostSkusRequestBody] -> ShowS # | |
ToJSON PostSkusRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkus toJSON :: PostSkusRequestBody -> Value # toEncoding :: PostSkusRequestBody -> Encoding # toJSONList :: [PostSkusRequestBody] -> Value # toEncodingList :: [PostSkusRequestBody] -> Encoding # | |
FromJSON PostSkusRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkus parseJSON :: Value -> Parser PostSkusRequestBody # parseJSONList :: Value -> Parser [PostSkusRequestBody] # |
mkPostSkusRequestBody Source #
:: Text | |
-> PostSkusRequestBodyInventory' | |
-> Int | |
-> Text | |
-> PostSkusRequestBody |
Create a new PostSkusRequestBody
with all required fields.
data PostSkusRequestBodyInventory' Source #
Defines the object schema located at paths./v1/skus.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.inventory
in the specification.
Description of the SKU's inventory.
Instances
mkPostSkusRequestBodyInventory' Source #
Create a new PostSkusRequestBodyInventory'
with all required fields.
data PostSkusRequestBodyInventory'Type' Source #
Defines the enum schema located at paths./v1/skus.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.inventory.properties.type
in the specification.
PostSkusRequestBodyInventory'Type'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostSkusRequestBodyInventory'Type'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostSkusRequestBodyInventory'Type'EnumBucket | Represents the JSON value |
PostSkusRequestBodyInventory'Type'EnumFinite | Represents the JSON value |
PostSkusRequestBodyInventory'Type'EnumInfinite | Represents the JSON value |
data PostSkusRequestBodyInventory'Value' Source #
Defines the enum schema located at paths./v1/skus.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.inventory.properties.value
in the specification.
PostSkusRequestBodyInventory'Value'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostSkusRequestBodyInventory'Value'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostSkusRequestBodyInventory'Value'EnumEmptyString | Represents the JSON value |
PostSkusRequestBodyInventory'Value'EnumInStock | Represents the JSON value |
PostSkusRequestBodyInventory'Value'EnumLimited | Represents the JSON value |
PostSkusRequestBodyInventory'Value'EnumOutOfStock | Represents the JSON value |
data PostSkusRequestBodyPackageDimensions' Source #
Defines the object schema located at paths./v1/skus.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.package_dimensions
in the specification.
The dimensions of this SKU for shipping purposes.
mkPostSkusRequestBodyPackageDimensions' Source #
Create a new PostSkusRequestBodyPackageDimensions'
with all required fields.
data PostSkusResponse Source #
Represents a response of the operation postSkus
.
The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostSkusResponseError
is used.
PostSkusResponseError String | Means either no matching case available or a parse error |
PostSkusResponse200 Sku | Successful response. |
PostSkusResponseDefault Error | Error response. |
Instances
Eq PostSkusResponse Source # | |
Defined in StripeAPI.Operations.PostSkus (==) :: PostSkusResponse -> PostSkusResponse -> Bool # (/=) :: PostSkusResponse -> PostSkusResponse -> Bool # | |
Show PostSkusResponse Source # | |
Defined in StripeAPI.Operations.PostSkus showsPrec :: Int -> PostSkusResponse -> ShowS # show :: PostSkusResponse -> String # showList :: [PostSkusResponse] -> ShowS # |