Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postSkusId
Synopsis
- postSkusId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSkusIdRequestBody -> m (Either HttpException (Response PostSkusIdResponse))
- postSkusIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSkusIdRequestBody -> m (Either HttpException (Response ByteString))
- postSkusIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSkusIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSkusIdResponse))
- postSkusIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSkusIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostSkusIdRequestBody = PostSkusIdRequestBody {
- postSkusIdRequestBodyActive :: Maybe Bool
- postSkusIdRequestBodyAttributes :: Maybe PostSkusIdRequestBodyAttributes'
- postSkusIdRequestBodyCurrency :: Maybe String
- postSkusIdRequestBodyExpand :: Maybe ([] String)
- postSkusIdRequestBodyImage :: Maybe String
- postSkusIdRequestBodyInventory :: Maybe PostSkusIdRequestBodyInventory'
- postSkusIdRequestBodyMetadata :: Maybe PostSkusIdRequestBodyMetadata'
- postSkusIdRequestBodyPackageDimensions :: Maybe PostSkusIdRequestBodyPackageDimensions'Variants
- postSkusIdRequestBodyPrice :: Maybe Integer
- postSkusIdRequestBodyProduct :: Maybe String
- data PostSkusIdRequestBodyAttributes' = PostSkusIdRequestBodyAttributes' {
- data PostSkusIdRequestBodyInventory' = PostSkusIdRequestBodyInventory' {}
- data PostSkusIdRequestBodyInventory'Type'
- data PostSkusIdRequestBodyInventory'Value'
- = PostSkusIdRequestBodyInventory'Value'EnumOther Value
- | PostSkusIdRequestBodyInventory'Value'EnumTyped String
- | PostSkusIdRequestBodyInventory'Value'EnumString_
- | PostSkusIdRequestBodyInventory'Value'EnumStringInStock
- | PostSkusIdRequestBodyInventory'Value'EnumStringLimited
- | PostSkusIdRequestBodyInventory'Value'EnumStringOutOfStock
- data PostSkusIdRequestBodyMetadata' = PostSkusIdRequestBodyMetadata' {
- data PostSkusIdRequestBodyPackageDimensions'OneOf1
- data PostSkusIdRequestBodyPackageDimensions'OneOf2 = PostSkusIdRequestBodyPackageDimensions'OneOf2 {}
- data PostSkusIdRequestBodyPackageDimensions'Variants
- data PostSkusIdResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | id | Constraints: Maximum length of 5000 |
-> PostSkusIdRequestBody | The request body to send |
-> m (Either HttpException (Response PostSkusIdResponse)) | Monad containing the result of the operation |
POST /v1/skus/{id}
<p>Updates the specific SKU by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
<p>Note that a SKU’s <code>attributes</code> are not editable. Instead, you would need to deactivate the existing SKU and create a new one with the new attribute values.</p>
postSkusIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSkusIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/skus/{id}
The same as postSkusId
but returns the raw ByteString
postSkusIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSkusIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSkusIdResponse)) Source #
POST /v1/skus/{id}
Monadic version of postSkusId
(use with runWithConfiguration
)
postSkusIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSkusIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/skus/{id}
Monadic version of postSkusIdRaw
(use with runWithConfiguration
)
data PostSkusIdRequestBody Source #
Defines the data type for the schema postSkusIdRequestBody
PostSkusIdRequestBody | |
|
Instances
Eq PostSkusIdRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkusId (==) :: PostSkusIdRequestBody -> PostSkusIdRequestBody -> Bool # (/=) :: PostSkusIdRequestBody -> PostSkusIdRequestBody -> Bool # | |
Show PostSkusIdRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkusId showsPrec :: Int -> PostSkusIdRequestBody -> ShowS # show :: PostSkusIdRequestBody -> String # showList :: [PostSkusIdRequestBody] -> ShowS # | |
ToJSON PostSkusIdRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkusId toJSON :: PostSkusIdRequestBody -> Value # toEncoding :: PostSkusIdRequestBody -> Encoding # toJSONList :: [PostSkusIdRequestBody] -> Value # toEncodingList :: [PostSkusIdRequestBody] -> Encoding # | |
FromJSON PostSkusIdRequestBody Source # | |
Defined in StripeAPI.Operations.PostSkusId parseJSON :: Value -> Parser PostSkusIdRequestBody # parseJSONList :: Value -> Parser [PostSkusIdRequestBody] # |
data PostSkusIdRequestBodyAttributes' Source #
Defines the data type for the schema postSkusIdRequestBodyAttributes'
A dictionary of attributes and values for the attributes defined by the product. When specified, `attributes` will partially update the existing attributes dictionary on the product, with the postcondition that a value must be present for each attribute key on the product.
data PostSkusIdRequestBodyInventory' Source #
Defines the data type for the schema postSkusIdRequestBodyInventory'
Description of the SKU's inventory.
PostSkusIdRequestBodyInventory' | |
|
data PostSkusIdRequestBodyInventory'Type' Source #
Defines the enum schema postSkusIdRequestBodyInventory'Type'
data PostSkusIdRequestBodyInventory'Value' Source #
Defines the enum schema postSkusIdRequestBodyInventory'Value'
data PostSkusIdRequestBodyMetadata' Source #
Defines the data type for the schema postSkusIdRequestBodyMetadata'
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`.
data PostSkusIdRequestBodyPackageDimensions'OneOf1 Source #
Defines the enum schema postSkusIdRequestBodyPackage_dimensions'OneOf1
PostSkusIdRequestBodyPackageDimensions'OneOf1EnumOther Value | |
PostSkusIdRequestBodyPackageDimensions'OneOf1EnumTyped String | |
PostSkusIdRequestBodyPackageDimensions'OneOf1EnumString_ |
data PostSkusIdRequestBodyPackageDimensions'OneOf2 Source #
Defines the data type for the schema postSkusIdRequestBodyPackage_dimensions'OneOf2
data PostSkusIdRequestBodyPackageDimensions'Variants Source #
Define the one-of schema postSkusIdRequestBodyPackage_dimensions'
The dimensions of this SKU for shipping purposes.
Instances
data PostSkusIdResponse Source #
Represents a response of the operation postSkusId
.
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), PostSkusIdResponseError
is used.
PostSkusIdResponseError String | Means either no matching case available or a parse error |
PostSkusIdResponse200 Sku | Successful response. |
PostSkusIdResponseDefault Error | Error response. |
Instances
Eq PostSkusIdResponse Source # | |
Defined in StripeAPI.Operations.PostSkusId (==) :: PostSkusIdResponse -> PostSkusIdResponse -> Bool # (/=) :: PostSkusIdResponse -> PostSkusIdResponse -> Bool # | |
Show PostSkusIdResponse Source # | |
Defined in StripeAPI.Operations.PostSkusId showsPrec :: Int -> PostSkusIdResponse -> ShowS # show :: PostSkusIdResponse -> String # showList :: [PostSkusIdResponse] -> ShowS # |