stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostProductsId

Description

Contains the different functions to run the operation postProductsId

Synopsis

Documentation

postProductsId Source #

Arguments

:: 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.

Constructors

PostProductsIdRequestBody 

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.

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`.

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

Instances details
Eq PostProductsIdRequestBodyPackageDimensions'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostProductsId

Show PostProductsIdRequestBodyPackageDimensions'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostProductsId

ToJSON PostProductsIdRequestBodyPackageDimensions'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostProductsId

FromJSON PostProductsIdRequestBodyPackageDimensions'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostProductsId

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

Instances details
Eq PostProductsIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostProductsId

Show PostProductsIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostProductsId

ToJSON PostProductsIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostProductsId

FromJSON PostProductsIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostProductsId

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.

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.

Constructors

PostProductsIdResponseError String

Means either no matching case available or a parse error

PostProductsIdResponse200 Product

Successful response.

PostProductsIdResponseDefault Error

Error response.