stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostSkus

Description

Contains the different functions to run the operation postSkus

Synopsis

Documentation

postSkus Source #

Arguments

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

data PostSkusRequestBody Source #

Defines the data type for the schema postSkusRequestBody

Constructors

PostSkusRequestBody 

Fields

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.

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

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.

Constructors

PostSkusResponseError String

Means either no matching case available or a parse error

PostSkusResponse200 Sku

Successful response.

PostSkusResponseDefault Error

Error response.