stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostOrdersId

Description

Contains the different functions to run the operation postOrdersId

Synopsis

Documentation

postOrdersId Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

id | Constraints: Maximum length of 5000

-> Maybe PostOrdersIdRequestBody

The request body to send

-> ClientT m (Response PostOrdersIdResponse)

Monadic computation which returns the result of the operation

POST /v1/orders/{id}

<p>Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>

data PostOrdersIdRequestBody Source #

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

Constructors

PostOrdersIdRequestBody 

Fields

data PostOrdersIdRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/orders/{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 PostOrdersIdRequestBodyShipping' Source #

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

Tracking information once the order has been fulfilled.

Constructors

PostOrdersIdRequestBodyShipping' 

Fields

data PostOrdersIdRequestBodyStatus' Source #

Defines the enum schema located at paths./v1/orders/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.status in the specification.

Current order status. One of `created`, `paid`, `canceled`, `fulfilled`, or `returned`. More detail in the Orders Guide.

Constructors

PostOrdersIdRequestBodyStatus'Other Value

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

PostOrdersIdRequestBodyStatus'Typed Text

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

PostOrdersIdRequestBodyStatus'EnumCanceled

Represents the JSON value "canceled"

PostOrdersIdRequestBodyStatus'EnumCreated

Represents the JSON value "created"

PostOrdersIdRequestBodyStatus'EnumFulfilled

Represents the JSON value "fulfilled"

PostOrdersIdRequestBodyStatus'EnumPaid

Represents the JSON value "paid"

PostOrdersIdRequestBodyStatus'EnumReturned

Represents the JSON value "returned"

data PostOrdersIdResponse Source #

Represents a response of the operation postOrdersId.

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

Constructors

PostOrdersIdResponseError String

Means either no matching case available or a parse error

PostOrdersIdResponse200 Order

Successful response.

PostOrdersIdResponseDefault Error

Error response.