Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.PostSkus
Description
Contains the different functions to run the operation postSkus
Synopsis
- postSkus :: forall m. MonadHTTP m => PostSkusRequestBody -> ClientT 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
Arguments
:: forall m. MonadHTTP m | |
=> PostSkusRequestBody | The request body to send |
-> ClientT 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.
Constructors
PostSkusRequestBody | |
Fields
|
Instances
Eq PostSkusRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkus Methods (==) :: PostSkusRequestBody -> PostSkusRequestBody -> Bool # (/=) :: PostSkusRequestBody -> PostSkusRequestBody -> Bool # | |
Show PostSkusRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkus Methods showsPrec :: Int -> PostSkusRequestBody -> ShowS # show :: PostSkusRequestBody -> String # showList :: [PostSkusRequestBody] -> ShowS # | |
ToJSON PostSkusRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkus Methods toJSON :: PostSkusRequestBody -> Value # toEncoding :: PostSkusRequestBody -> Encoding # toJSONList :: [PostSkusRequestBody] -> Value # toEncodingList :: [PostSkusRequestBody] -> Encoding # | |
FromJSON PostSkusRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkus Methods parseJSON :: Value -> Parser PostSkusRequestBody # parseJSONList :: Value -> Parser [PostSkusRequestBody] # |
mkPostSkusRequestBody Source #
Arguments
:: 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.
Constructors
PostSkusRequestBodyInventory' | |
Instances
Eq PostSkusRequestBodyInventory' Source # | |
Defined in StripeAPI.Operations.PostSkus | |
Show PostSkusRequestBodyInventory' Source # | |
Defined in StripeAPI.Operations.PostSkus Methods showsPrec :: Int -> PostSkusRequestBodyInventory' -> ShowS # show :: PostSkusRequestBodyInventory' -> String # showList :: [PostSkusRequestBodyInventory'] -> ShowS # | |
ToJSON PostSkusRequestBodyInventory' Source # | |
Defined in StripeAPI.Operations.PostSkus Methods toJSON :: PostSkusRequestBodyInventory' -> Value # toEncoding :: PostSkusRequestBodyInventory' -> Encoding # toJSONList :: [PostSkusRequestBodyInventory'] -> Value # toEncodingList :: [PostSkusRequestBodyInventory'] -> Encoding # | |
FromJSON PostSkusRequestBodyInventory' Source # | |
Defined in StripeAPI.Operations.PostSkus Methods parseJSON :: Value -> Parser PostSkusRequestBodyInventory' # parseJSONList :: Value -> Parser [PostSkusRequestBodyInventory'] # |
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.
Constructors
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 |
Instances
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.
Constructors
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 |
Instances
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.
Constructors
PostSkusRequestBodyPackageDimensions' | |
Instances
mkPostSkusRequestBodyPackageDimensions' Source #
Arguments
:: Double | |
-> Double | |
-> Double | |
-> Double | |
-> PostSkusRequestBodyPackageDimensions' |
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.
Constructors
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 Methods (==) :: PostSkusResponse -> PostSkusResponse -> Bool # (/=) :: PostSkusResponse -> PostSkusResponse -> Bool # | |
Show PostSkusResponse Source # | |
Defined in StripeAPI.Operations.PostSkus Methods showsPrec :: Int -> PostSkusResponse -> ShowS # show :: PostSkusResponse -> String # showList :: [PostSkusResponse] -> ShowS # |