Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postSkus
Synopsis
- postSkus :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostSkusRequestBody -> m (Either HttpException (Response PostSkusResponse))
- postSkusRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostSkusRequestBody -> m (Either HttpException (Response ByteString))
- postSkusM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostSkusRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSkusResponse))
- postSkusRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostSkusRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostSkusRequestBody = PostSkusRequestBody {
- postSkusRequestBodyActive :: Maybe Bool
- postSkusRequestBodyAttributes :: Maybe PostSkusRequestBodyAttributes'
- postSkusRequestBodyCurrency :: String
- postSkusRequestBodyExpand :: Maybe ([] String)
- postSkusRequestBodyId :: Maybe String
- postSkusRequestBodyImage :: Maybe String
- postSkusRequestBodyInventory :: PostSkusRequestBodyInventory'
- postSkusRequestBodyMetadata :: Maybe PostSkusRequestBodyMetadata'
- postSkusRequestBodyPackageDimensions :: Maybe PostSkusRequestBodyPackageDimensions'
- postSkusRequestBodyPrice :: Integer
- postSkusRequestBodyProduct :: String
- data PostSkusRequestBodyAttributes' = PostSkusRequestBodyAttributes' {
- data PostSkusRequestBodyInventory' = PostSkusRequestBodyInventory' {}
- data PostSkusRequestBodyInventory'Type'
- data PostSkusRequestBodyInventory'Value'
- = PostSkusRequestBodyInventory'Value'EnumOther Value
- | PostSkusRequestBodyInventory'Value'EnumTyped String
- | PostSkusRequestBodyInventory'Value'EnumString_
- | PostSkusRequestBodyInventory'Value'EnumStringInStock
- | PostSkusRequestBodyInventory'Value'EnumStringLimited
- | PostSkusRequestBodyInventory'Value'EnumStringOutOfStock
- data PostSkusRequestBodyMetadata' = PostSkusRequestBodyMetadata' {
- data PostSkusRequestBodyPackageDimensions' = PostSkusRequestBodyPackageDimensions' {}
- data PostSkusResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostSkusRequestBody | The request body to send |
-> m (Either HttpException (Response PostSkusResponse)) | Monad containing the result of the operation |
POST /v1/skus
<p>Creates a new SKU associated with a product.</p>
postSkusRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostSkusRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/skus
The same as postSkus
but returns the raw ByteString
postSkusM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostSkusRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSkusResponse)) Source #
POST /v1/skus
Monadic version of postSkus
(use with runWithConfiguration
)
postSkusRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostSkusRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/skus
Monadic version of postSkusRaw
(use with runWithConfiguration
)
data PostSkusRequestBody Source #
Defines the data type for the schema postSkusRequestBody
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] # |
data PostSkusRequestBodyAttributes' Source #
Defines the data type for the schema postSkusRequestBodyAttributes'
A dictionary of attributes and values for the attributes defined by the product. If, for example, a product's attributes are `["size", "gender"]`, a valid SKU has the following dictionary of attributes: `{"size": "Medium", "gender": "Unisex"}`.
data PostSkusRequestBodyInventory' Source #
Defines the data type for the schema postSkusRequestBodyInventory'
Description of the SKU's inventory.
PostSkusRequestBodyInventory' | |
|
Instances
data PostSkusRequestBodyInventory'Type' Source #
Defines the enum schema postSkusRequestBodyInventory'Type'
data PostSkusRequestBodyInventory'Value' Source #
Defines the enum schema postSkusRequestBodyInventory'Value'
data PostSkusRequestBodyMetadata' Source #
Defines the data type for the schema postSkusRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
Instances
data PostSkusRequestBodyPackageDimensions' Source #
Defines the data type for the schema postSkusRequestBodyPackage_dimensions'
The dimensions of this SKU for shipping purposes.
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 # |