Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postOrdersId
Synopsis
- postOrdersId :: forall m. MonadHTTP m => Text -> Maybe PostOrdersIdRequestBody -> ClientT m (Response PostOrdersIdResponse)
- data PostOrdersIdRequestBody = PostOrdersIdRequestBody {
- postOrdersIdRequestBodyCoupon :: Maybe Text
- postOrdersIdRequestBodyExpand :: Maybe [Text]
- postOrdersIdRequestBodyMetadata :: Maybe PostOrdersIdRequestBodyMetadata'Variants
- postOrdersIdRequestBodySelectedShippingMethod :: Maybe Text
- postOrdersIdRequestBodyShipping :: Maybe PostOrdersIdRequestBodyShipping'
- postOrdersIdRequestBodyStatus :: Maybe PostOrdersIdRequestBodyStatus'
- mkPostOrdersIdRequestBody :: PostOrdersIdRequestBody
- data PostOrdersIdRequestBodyMetadata'Variants
- data PostOrdersIdRequestBodyShipping' = PostOrdersIdRequestBodyShipping' {}
- mkPostOrdersIdRequestBodyShipping' :: Text -> Text -> PostOrdersIdRequestBodyShipping'
- data PostOrdersIdRequestBodyStatus'
- = PostOrdersIdRequestBodyStatus'Other Value
- | PostOrdersIdRequestBodyStatus'Typed Text
- | PostOrdersIdRequestBodyStatus'EnumCanceled
- | PostOrdersIdRequestBodyStatus'EnumCreated
- | PostOrdersIdRequestBodyStatus'EnumFulfilled
- | PostOrdersIdRequestBodyStatus'EnumPaid
- | PostOrdersIdRequestBodyStatus'EnumReturned
- data PostOrdersIdResponse
Documentation
:: 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.
PostOrdersIdRequestBody | |
|
Instances
Eq PostOrdersIdRequestBody Source # | |
Defined in StripeAPI.Operations.PostOrdersId | |
Show PostOrdersIdRequestBody Source # | |
Defined in StripeAPI.Operations.PostOrdersId showsPrec :: Int -> PostOrdersIdRequestBody -> ShowS # show :: PostOrdersIdRequestBody -> String # showList :: [PostOrdersIdRequestBody] -> ShowS # | |
ToJSON PostOrdersIdRequestBody Source # | |
Defined in StripeAPI.Operations.PostOrdersId | |
FromJSON PostOrdersIdRequestBody Source # | |
Defined in StripeAPI.Operations.PostOrdersId |
mkPostOrdersIdRequestBody :: PostOrdersIdRequestBody Source #
Create a new PostOrdersIdRequestBody
with all required 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`.
PostOrdersIdRequestBodyMetadata'EmptyString | Represents the JSON value |
PostOrdersIdRequestBodyMetadata'Object Object |
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.
PostOrdersIdRequestBodyShipping' | |
|
mkPostOrdersIdRequestBodyShipping' Source #
Create a new PostOrdersIdRequestBodyShipping'
with all required 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.
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 |
PostOrdersIdRequestBodyStatus'EnumCreated | Represents the JSON value |
PostOrdersIdRequestBodyStatus'EnumFulfilled | Represents the JSON value |
PostOrdersIdRequestBodyStatus'EnumPaid | Represents the JSON value |
PostOrdersIdRequestBodyStatus'EnumReturned | Represents the JSON value |
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.
PostOrdersIdResponseError String | Means either no matching case available or a parse error |
PostOrdersIdResponse200 Order | Successful response. |
PostOrdersIdResponseDefault Error | Error response. |
Instances
Eq PostOrdersIdResponse Source # | |
Defined in StripeAPI.Operations.PostOrdersId (==) :: PostOrdersIdResponse -> PostOrdersIdResponse -> Bool # (/=) :: PostOrdersIdResponse -> PostOrdersIdResponse -> Bool # | |
Show PostOrdersIdResponse Source # | |
Defined in StripeAPI.Operations.PostOrdersId showsPrec :: Int -> PostOrdersIdResponse -> ShowS # show :: PostOrdersIdResponse -> String # showList :: [PostOrdersIdResponse] -> ShowS # |