stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostSkus

Description

Contains the different functions to run the operation postSkus

Synopsis

Documentation

postSkus Source #

Arguments

:: forall m. MonadHTTP m 
=> PostSkusRequestBody

The request body to send

-> StripeT m (Response PostSkusResponse)

Monadic computation which returns the result of the operation

POST /v1/skus

<p>Creates a new SKU associated with a product.</p>

data PostSkusRequestBody Source #

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

Constructors

PostSkusRequestBody 

Fields

data PostSkusRequestBodyInventory' Source #

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

Description of the SKU's inventory.

data PostSkusRequestBodyInventory'Type' Source #

Defines the enum schema located at paths./v1/skus.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.inventory.properties.type in the specification.

Constructors

PostSkusRequestBodyInventory'Type'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSkusRequestBodyInventory'Type'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSkusRequestBodyInventory'Type'EnumBucket

Represents the JSON value "bucket"

PostSkusRequestBodyInventory'Type'EnumFinite

Represents the JSON value "finite"

PostSkusRequestBodyInventory'Type'EnumInfinite

Represents the JSON value "infinite"

data PostSkusRequestBodyInventory'Value' Source #

Defines the enum schema located at paths./v1/skus.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.inventory.properties.value in the specification.

Constructors

PostSkusRequestBodyInventory'Value'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSkusRequestBodyInventory'Value'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSkusRequestBodyInventory'Value'EnumEmptyString

Represents the JSON value ""

PostSkusRequestBodyInventory'Value'EnumInStock

Represents the JSON value "in_stock"

PostSkusRequestBodyInventory'Value'EnumLimited

Represents the JSON value "limited"

PostSkusRequestBodyInventory'Value'EnumOutOfStock

Represents the JSON value "out_of_stock"

data PostSkusRequestBodyPackageDimensions' Source #

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

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.