Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postOrders
Synopsis
- postOrders :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostOrdersRequestBody -> m (Either HttpException (Response PostOrdersResponse))
- postOrdersRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostOrdersRequestBody -> m (Either HttpException (Response ByteString))
- postOrdersM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostOrdersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostOrdersResponse))
- postOrdersRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostOrdersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostOrdersRequestBody = PostOrdersRequestBody {
- postOrdersRequestBodyCoupon :: Maybe String
- postOrdersRequestBodyCurrency :: String
- postOrdersRequestBodyCustomer :: Maybe String
- postOrdersRequestBodyEmail :: Maybe String
- postOrdersRequestBodyExpand :: Maybe ([] String)
- postOrdersRequestBodyItems :: Maybe ([] PostOrdersRequestBodyItems')
- postOrdersRequestBodyMetadata :: Maybe PostOrdersRequestBodyMetadata'
- postOrdersRequestBodyShipping :: Maybe PostOrdersRequestBodyShipping'
- data PostOrdersRequestBodyItems' = PostOrdersRequestBodyItems' {
- postOrdersRequestBodyItems'Amount :: Maybe Integer
- postOrdersRequestBodyItems'Currency :: Maybe String
- postOrdersRequestBodyItems'Description :: Maybe String
- postOrdersRequestBodyItems'Parent :: Maybe String
- postOrdersRequestBodyItems'Quantity :: Maybe Integer
- postOrdersRequestBodyItems'Type :: Maybe PostOrdersRequestBodyItems'Type'
- data PostOrdersRequestBodyItems'Type'
- data PostOrdersRequestBodyMetadata' = PostOrdersRequestBodyMetadata' {
- data PostOrdersRequestBodyShipping' = PostOrdersRequestBodyShipping' {}
- data PostOrdersRequestBodyShipping'Address' = PostOrdersRequestBodyShipping'Address' {
- postOrdersRequestBodyShipping'Address'City :: Maybe String
- postOrdersRequestBodyShipping'Address'Country :: Maybe String
- postOrdersRequestBodyShipping'Address'Line1 :: String
- postOrdersRequestBodyShipping'Address'Line2 :: Maybe String
- postOrdersRequestBodyShipping'Address'PostalCode :: Maybe String
- postOrdersRequestBodyShipping'Address'State :: Maybe String
- data PostOrdersResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostOrdersRequestBody | The request body to send |
-> m (Either HttpException (Response PostOrdersResponse)) | Monad containing the result of the operation |
POST /v1/orders
<p>Creates a new order object.</p>
postOrdersRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostOrdersRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/orders
The same as postOrders
but returns the raw ByteString
postOrdersM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostOrdersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostOrdersResponse)) Source #
POST /v1/orders
Monadic version of postOrders
(use with runWithConfiguration
)
postOrdersRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostOrdersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/orders
Monadic version of postOrdersRaw
(use with runWithConfiguration
)
data PostOrdersRequestBody Source #
Defines the data type for the schema postOrdersRequestBody
PostOrdersRequestBody | |
|
Instances
Eq PostOrdersRequestBody Source # | |
Defined in StripeAPI.Operations.PostOrders (==) :: PostOrdersRequestBody -> PostOrdersRequestBody -> Bool # (/=) :: PostOrdersRequestBody -> PostOrdersRequestBody -> Bool # | |
Show PostOrdersRequestBody Source # | |
Defined in StripeAPI.Operations.PostOrders showsPrec :: Int -> PostOrdersRequestBody -> ShowS # show :: PostOrdersRequestBody -> String # showList :: [PostOrdersRequestBody] -> ShowS # | |
ToJSON PostOrdersRequestBody Source # | |
Defined in StripeAPI.Operations.PostOrders toJSON :: PostOrdersRequestBody -> Value # toEncoding :: PostOrdersRequestBody -> Encoding # toJSONList :: [PostOrdersRequestBody] -> Value # toEncodingList :: [PostOrdersRequestBody] -> Encoding # | |
FromJSON PostOrdersRequestBody Source # | |
Defined in StripeAPI.Operations.PostOrders parseJSON :: Value -> Parser PostOrdersRequestBody # parseJSONList :: Value -> Parser [PostOrdersRequestBody] # |
data PostOrdersRequestBodyItems' Source #
Defines the data type for the schema postOrdersRequestBodyItems'
PostOrdersRequestBodyItems' | |
|
Instances
data PostOrdersRequestBodyItems'Type' Source #
Defines the enum schema postOrdersRequestBodyItems'Type'
data PostOrdersRequestBodyMetadata' Source #
Defines the data type for the schema postOrdersRequestBodyMetadata'
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 PostOrdersRequestBodyShipping' Source #
Defines the data type for the schema postOrdersRequestBodyShipping'
Shipping address for the order. Required if any of the SKUs are for products that have `shippable` set to true.
PostOrdersRequestBodyShipping' | |
|
data PostOrdersRequestBodyShipping'Address' Source #
Defines the data type for the schema postOrdersRequestBodyShipping'Address'
PostOrdersRequestBodyShipping'Address' | |
|
data PostOrdersResponse Source #
Represents a response of the operation postOrders
.
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), PostOrdersResponseError
is used.
PostOrdersResponseError String | Means either no matching case available or a parse error |
PostOrdersResponse200 Order | Successful response. |
PostOrdersResponseDefault Error | Error response. |
Instances
Eq PostOrdersResponse Source # | |
Defined in StripeAPI.Operations.PostOrders (==) :: PostOrdersResponse -> PostOrdersResponse -> Bool # (/=) :: PostOrdersResponse -> PostOrdersResponse -> Bool # | |
Show PostOrdersResponse Source # | |
Defined in StripeAPI.Operations.PostOrders showsPrec :: Int -> PostOrdersResponse -> ShowS # show :: PostOrdersResponse -> String # showList :: [PostOrdersResponse] -> ShowS # |