stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostProducts

Description

Contains the different functions to run the operation postProducts

Synopsis

Documentation

postProducts Source #

Arguments

:: forall m. MonadHTTP m 
=> PostProductsRequestBody

The request body to send

-> StripeT m (Response PostProductsResponse)

Monadic computation which returns the result of the operation

POST /v1/products

<p>Creates a new product object.</p>

data PostProductsRequestBody Source #

Defines the object schema located at paths./v1/products.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostProductsRequestBody 

Fields

data PostProductsRequestBodyPackageDimensions' Source #

Defines the object schema located at paths./v1/products.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.package_dimensions in the specification.

The dimensions of this product for shipping purposes.

data PostProductsResponse Source #

Represents a response of the operation postProducts.

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), PostProductsResponseError is used.

Constructors

PostProductsResponseError String

Means either no matching case available or a parse error

PostProductsResponse200 Product

Successful response.

PostProductsResponseDefault Error

Error response.