Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postProductsId
Synopsis
- postProductsId :: forall m. MonadHTTP m => Text -> Maybe PostProductsIdRequestBody -> StripeT m (Response PostProductsIdResponse)
- data PostProductsIdRequestBody = PostProductsIdRequestBody {
- postProductsIdRequestBodyActive :: Maybe Bool
- postProductsIdRequestBodyDescription :: Maybe Text
- postProductsIdRequestBodyExpand :: Maybe [Text]
- postProductsIdRequestBodyImages :: Maybe PostProductsIdRequestBodyImages'Variants
- postProductsIdRequestBodyMetadata :: Maybe PostProductsIdRequestBodyMetadata'Variants
- postProductsIdRequestBodyName :: Maybe Text
- postProductsIdRequestBodyPackageDimensions :: Maybe PostProductsIdRequestBodyPackageDimensions'Variants
- postProductsIdRequestBodyShippable :: Maybe Bool
- postProductsIdRequestBodyStatementDescriptor :: Maybe Text
- postProductsIdRequestBodyTaxCode :: Maybe PostProductsIdRequestBodyTaxCode'Variants
- postProductsIdRequestBodyUnitLabel :: Maybe Text
- postProductsIdRequestBodyUrl :: Maybe Text
- mkPostProductsIdRequestBody :: PostProductsIdRequestBody
- data PostProductsIdRequestBodyImages'Variants
- data PostProductsIdRequestBodyMetadata'Variants
- data PostProductsIdRequestBodyPackageDimensions'OneOf1 = PostProductsIdRequestBodyPackageDimensions'OneOf1 {}
- mkPostProductsIdRequestBodyPackageDimensions'OneOf1 :: Double -> Double -> Double -> Double -> PostProductsIdRequestBodyPackageDimensions'OneOf1
- data PostProductsIdRequestBodyPackageDimensions'Variants
- data PostProductsIdRequestBodyTaxCode'Variants
- data PostProductsIdResponse
Documentation
:: forall m. MonadHTTP m | |
=> Text | id | Constraints: Maximum length of 5000 |
-> Maybe PostProductsIdRequestBody | The request body to send |
-> StripeT m (Response PostProductsIdResponse) | Monadic computation which returns the result of the operation |
POST /v1/products/{id}
<p>Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
data PostProductsIdRequestBody Source #
Defines the object schema located at paths./v1/products/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostProductsIdRequestBody | |
|
Instances
mkPostProductsIdRequestBody :: PostProductsIdRequestBody Source #
Create a new PostProductsIdRequestBody
with all required fields.
data PostProductsIdRequestBodyImages'Variants Source #
Defines the oneOf schema located at paths./v1/products/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.images.anyOf
in the specification.
A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
PostProductsIdRequestBodyImages'EmptyString | Represents the JSON value |
PostProductsIdRequestBodyImages'ListTText [Text] |
data PostProductsIdRequestBodyMetadata'Variants Source #
Defines the oneOf schema located at paths./v1/products/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf
in the specification.
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`.
PostProductsIdRequestBodyMetadata'EmptyString | Represents the JSON value |
PostProductsIdRequestBodyMetadata'Object Object |
data PostProductsIdRequestBodyPackageDimensions'OneOf1 Source #
Defines the object schema located at paths./v1/products/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.package_dimensions.anyOf
in the specification.
Instances
mkPostProductsIdRequestBodyPackageDimensions'OneOf1 Source #
Create a new PostProductsIdRequestBodyPackageDimensions'OneOf1
with all required fields.
data PostProductsIdRequestBodyPackageDimensions'Variants Source #
Defines the oneOf schema located at paths./v1/products/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.package_dimensions.anyOf
in the specification.
The dimensions of this product for shipping purposes.
Instances
data PostProductsIdRequestBodyTaxCode'Variants Source #
Defines the oneOf schema located at paths./v1/products/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax_code.anyOf
in the specification.
A tax code ID.
PostProductsIdRequestBodyTaxCode'EmptyString | Represents the JSON value |
PostProductsIdRequestBodyTaxCode'Text Text |
data PostProductsIdResponse Source #
Represents a response of the operation postProductsId
.
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), PostProductsIdResponseError
is used.
PostProductsIdResponseError String | Means either no matching case available or a parse error |
PostProductsIdResponse200 Product | Successful response. |
PostProductsIdResponseDefault Error | Error response. |
Instances
Eq PostProductsIdResponse Source # | |
Defined in StripeAPI.Operations.PostProductsId | |
Show PostProductsIdResponse Source # | |
Defined in StripeAPI.Operations.PostProductsId showsPrec :: Int -> PostProductsIdResponse -> ShowS # show :: PostProductsIdResponse -> String # showList :: [PostProductsIdResponse] -> ShowS # |