Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postOrdersIdReturns
Synopsis
- postOrdersIdReturns :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostOrdersIdReturnsRequestBody -> m (Either HttpException (Response PostOrdersIdReturnsResponse))
- postOrdersIdReturnsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostOrdersIdReturnsRequestBody -> m (Either HttpException (Response ByteString))
- postOrdersIdReturnsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostOrdersIdReturnsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostOrdersIdReturnsResponse))
- postOrdersIdReturnsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostOrdersIdReturnsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostOrdersIdReturnsRequestBody = PostOrdersIdReturnsRequestBody {}
- data PostOrdersIdReturnsRequestBodyItems'OneOf1
- data PostOrdersIdReturnsRequestBodyItems'OneOf2 = PostOrdersIdReturnsRequestBodyItems'OneOf2 {
- postOrdersIdReturnsRequestBodyItems'OneOf2Amount :: Maybe Integer
- postOrdersIdReturnsRequestBodyItems'OneOf2Description :: Maybe String
- postOrdersIdReturnsRequestBodyItems'OneOf2Parent :: Maybe String
- postOrdersIdReturnsRequestBodyItems'OneOf2Quantity :: Maybe Integer
- postOrdersIdReturnsRequestBodyItems'OneOf2Type :: Maybe PostOrdersIdReturnsRequestBodyItems'OneOf2Type'
- data PostOrdersIdReturnsRequestBodyItems'OneOf2Type'
- = PostOrdersIdReturnsRequestBodyItems'OneOf2Type'EnumOther Value
- | PostOrdersIdReturnsRequestBodyItems'OneOf2Type'EnumTyped String
- | PostOrdersIdReturnsRequestBodyItems'OneOf2Type'EnumStringDiscount
- | PostOrdersIdReturnsRequestBodyItems'OneOf2Type'EnumStringShipping
- | PostOrdersIdReturnsRequestBodyItems'OneOf2Type'EnumStringSku
- | PostOrdersIdReturnsRequestBodyItems'OneOf2Type'EnumStringTax
- data PostOrdersIdReturnsRequestBodyItems'Variants
- data PostOrdersIdReturnsResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | id | Constraints: Maximum length of 5000 |
-> PostOrdersIdReturnsRequestBody | The request body to send |
-> m (Either HttpException (Response PostOrdersIdReturnsResponse)) | Monad containing 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>
postOrdersIdReturnsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostOrdersIdReturnsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/orders/{id}/returns
The same as postOrdersIdReturns
but returns the raw ByteString
postOrdersIdReturnsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostOrdersIdReturnsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostOrdersIdReturnsResponse)) Source #
POST /v1/orders/{id}/returns
Monadic version of postOrdersIdReturns
(use with runWithConfiguration
)
postOrdersIdReturnsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostOrdersIdReturnsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/orders/{id}/returns
Monadic version of postOrdersIdReturnsRaw
(use with runWithConfiguration
)
data PostOrdersIdReturnsRequestBody Source #
Defines the data type for the schema postOrdersIdReturnsRequestBody
PostOrdersIdReturnsRequestBody | |
|
data PostOrdersIdReturnsRequestBodyItems'OneOf1 Source #
Defines the enum schema postOrdersIdReturnsRequestBodyItems'OneOf1
PostOrdersIdReturnsRequestBodyItems'OneOf1EnumOther Value | |
PostOrdersIdReturnsRequestBodyItems'OneOf1EnumTyped String | |
PostOrdersIdReturnsRequestBodyItems'OneOf1EnumString_ |
data PostOrdersIdReturnsRequestBodyItems'OneOf2 Source #
Defines the data type for the schema postOrdersIdReturnsRequestBodyItems'OneOf2
PostOrdersIdReturnsRequestBodyItems'OneOf2 | |
|
data PostOrdersIdReturnsRequestBodyItems'OneOf2Type' Source #
Defines the enum schema postOrdersIdReturnsRequestBodyItems'OneOf2Type'
Instances
data PostOrdersIdReturnsRequestBodyItems'Variants Source #
Define the one-of schema postOrdersIdReturnsRequestBodyItems'
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. |