stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostOrders

Description

Contains the different functions to run the operation postOrders

Synopsis

Documentation

postOrders Source #

Arguments

:: forall m. MonadHTTP m 
=> PostOrdersRequestBody

The request body to send

-> StripeT m (Response PostOrdersResponse)

Monadic computation which returns the result of the operation

POST /v1/orders

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

data PostOrdersRequestBody Source #

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

Constructors

PostOrdersRequestBody 

Fields

data PostOrdersRequestBodyItems' Source #

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

data PostOrdersRequestBodyItems'Type' Source #

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

Constructors

PostOrdersRequestBodyItems'Type'Other Value

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

PostOrdersRequestBodyItems'Type'Typed Text

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

PostOrdersRequestBodyItems'Type'EnumDiscount

Represents the JSON value "discount"

PostOrdersRequestBodyItems'Type'EnumShipping

Represents the JSON value "shipping"

PostOrdersRequestBodyItems'Type'EnumSku

Represents the JSON value "sku"

PostOrdersRequestBodyItems'Type'EnumTax

Represents the JSON value "tax"

data PostOrdersRequestBodyShipping' Source #

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

Shipping address for the order. Required if any of the SKUs are for products that have `shippable` set to true.

data PostOrdersRequestBodyShipping'Address' Source #

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

Constructors

PostOrdersRequestBodyShipping'Address' 

Fields

data PostOrdersResponse Source #

Represents a response of the operation postOrders.

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

Constructors

PostOrdersResponseError String

Means either no matching case available or a parse error

PostOrdersResponse200 Order

Successful response.

PostOrdersResponseDefault Error

Error response.