Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postOrdersIdReturns
Synopsis
- postOrdersIdReturns :: forall m. MonadHTTP m => Text -> Maybe PostOrdersIdReturnsRequestBody -> ClientT m (Response PostOrdersIdReturnsResponse)
- data PostOrdersIdReturnsRequestBody = PostOrdersIdReturnsRequestBody {}
- mkPostOrdersIdReturnsRequestBody :: PostOrdersIdReturnsRequestBody
- data PostOrdersIdReturnsRequestBodyItems'OneOf1 = PostOrdersIdReturnsRequestBodyItems'OneOf1 {
- postOrdersIdReturnsRequestBodyItems'OneOf1Amount :: Maybe Int
- postOrdersIdReturnsRequestBodyItems'OneOf1Description :: Maybe Text
- postOrdersIdReturnsRequestBodyItems'OneOf1Parent :: Maybe Text
- postOrdersIdReturnsRequestBodyItems'OneOf1Quantity :: Maybe Int
- postOrdersIdReturnsRequestBodyItems'OneOf1Type :: Maybe PostOrdersIdReturnsRequestBodyItems'OneOf1Type'
- mkPostOrdersIdReturnsRequestBodyItems'OneOf1 :: PostOrdersIdReturnsRequestBodyItems'OneOf1
- data PostOrdersIdReturnsRequestBodyItems'OneOf1Type'
- = PostOrdersIdReturnsRequestBodyItems'OneOf1Type'Other Value
- | PostOrdersIdReturnsRequestBodyItems'OneOf1Type'Typed Text
- | PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumDiscount
- | PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumShipping
- | PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumSku
- | PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumTax
- data PostOrdersIdReturnsRequestBodyItems'Variants
- data PostOrdersIdReturnsResponse
Documentation
:: 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.
PostOrdersIdReturnsRequestBody | |
|
mkPostOrdersIdReturnsRequestBody :: PostOrdersIdReturnsRequestBody Source #
Create a new PostOrdersIdReturnsRequestBody
with all required 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.
PostOrdersIdReturnsRequestBodyItems'OneOf1 | |
|
mkPostOrdersIdReturnsRequestBodyItems'OneOf1 :: PostOrdersIdReturnsRequestBodyItems'OneOf1 Source #
Create a new PostOrdersIdReturnsRequestBodyItems'OneOf1
with all required fields.
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.
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 |
PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumShipping | Represents the JSON value |
PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumSku | Represents the JSON value |
PostOrdersIdReturnsRequestBodyItems'OneOf1Type'EnumTax | Represents the JSON value |
Instances
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.
Instances
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.
PostOrdersIdReturnsResponseError String | Means either no matching case available or a parse error |
PostOrdersIdReturnsResponse200 OrderReturn | Successful response. |
PostOrdersIdReturnsResponseDefault Error | Error response. |