stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostOrdersIdReturns

Description

Contains the different functions to run the operation postOrdersIdReturns

Synopsis

Documentation

postOrdersIdReturns Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

id | Constraints: Maximum length of 5000

-> Maybe PostOrdersIdReturnsRequestBody

The request body to send

-> ClientT m (Response PostOrdersIdReturnsResponse)

Monadic computation which returns the result of the operation

POST /v1/orders/{id}/returns

<p>Return all or part of an order. The order must have a status of <code>paid</code> or <code>fulfilled</code> before it can be returned. Once all items have been returned, the order will become <code>canceled</code> or <code>returned</code> depending on which status the order started in.</p>

data PostOrdersIdReturnsRequestBody Source #

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

Constructors

PostOrdersIdReturnsRequestBody 

Fields

data PostOrdersIdReturnsRequestBodyItems'OneOf1 Source #

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

data PostOrdersIdReturnsRequestBodyItems'OneOf1Type' Source #

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

Constructors

PostOrdersIdReturnsRequestBodyItems'OneOf1Type'Other Value

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

PostOrdersIdReturnsRequestBodyItems'OneOf1Type'Typed Text

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

PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumDiscount

Represents the JSON value "discount"

PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumShipping

Represents the JSON value "shipping"

PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumSku

Represents the JSON value "sku"

PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumTax

Represents the JSON value "tax"

data PostOrdersIdReturnsRequestBodyItems'Variants Source #

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

List of items to return.

data PostOrdersIdReturnsResponse Source #

Represents a response of the operation postOrdersIdReturns.

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

Constructors

PostOrdersIdReturnsResponseError String

Means either no matching case available or a parse error

PostOrdersIdReturnsResponse200 OrderReturn

Successful response.

PostOrdersIdReturnsResponseDefault Error

Error response.