Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerBalanceTransactions
Synopsis
- postCustomersCustomerBalanceTransactions :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerBalanceTransactionsRequestBody -> m (Either HttpException (Response PostCustomersCustomerBalanceTransactionsResponse))
- postCustomersCustomerBalanceTransactionsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerBalanceTransactionsRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersCustomerBalanceTransactionsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerBalanceTransactionsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerBalanceTransactionsResponse))
- postCustomersCustomerBalanceTransactionsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerBalanceTransactionsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersCustomerBalanceTransactionsRequestBody = PostCustomersCustomerBalanceTransactionsRequestBody {
- postCustomersCustomerBalanceTransactionsRequestBodyAmount :: Integer
- postCustomersCustomerBalanceTransactionsRequestBodyCurrency :: String
- postCustomersCustomerBalanceTransactionsRequestBodyDescription :: Maybe String
- postCustomersCustomerBalanceTransactionsRequestBodyExpand :: Maybe ([] String)
- postCustomersCustomerBalanceTransactionsRequestBodyMetadata :: Maybe PostCustomersCustomerBalanceTransactionsRequestBodyMetadata'
- data PostCustomersCustomerBalanceTransactionsRequestBodyMetadata' = PostCustomersCustomerBalanceTransactionsRequestBodyMetadata' {
- data PostCustomersCustomerBalanceTransactionsResponse
Documentation
postCustomersCustomerBalanceTransactions Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | customer | Constraints: Maximum length of 5000 |
-> PostCustomersCustomerBalanceTransactionsRequestBody | The request body to send |
-> m (Either HttpException (Response PostCustomersCustomerBalanceTransactionsResponse)) | Monad containing the result of the operation |
POST /v1/customers/{customer}/balance_transactions
<p>Creates an immutable transaction that updates the customer’s <a href="/docs/api/customers/object#customer_object-balance"><code>balance</code></a>.</p>
postCustomersCustomerBalanceTransactionsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerBalanceTransactionsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/balance_transactions
The same as postCustomersCustomerBalanceTransactions
but returns the raw ByteString
postCustomersCustomerBalanceTransactionsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerBalanceTransactionsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerBalanceTransactionsResponse)) Source #
POST /v1/customers/{customer}/balance_transactions
Monadic version of postCustomersCustomerBalanceTransactions
(use with runWithConfiguration
)
postCustomersCustomerBalanceTransactionsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerBalanceTransactionsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/balance_transactions
Monadic version of postCustomersCustomerBalanceTransactionsRaw
(use with runWithConfiguration
)
data PostCustomersCustomerBalanceTransactionsRequestBody Source #
Defines the data type for the schema postCustomersCustomerBalanceTransactionsRequestBody
PostCustomersCustomerBalanceTransactionsRequestBody | |
|
Instances
data PostCustomersCustomerBalanceTransactionsRequestBodyMetadata' Source #
Defines the data type for the schema postCustomersCustomerBalanceTransactionsRequestBodyMetadata'
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`.
Instances
data PostCustomersCustomerBalanceTransactionsResponse Source #
Represents a response of the operation postCustomersCustomerBalanceTransactions
.
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), PostCustomersCustomerBalanceTransactionsResponseError
is used.
PostCustomersCustomerBalanceTransactionsResponseError String | Means either no matching case available or a parse error |
PostCustomersCustomerBalanceTransactionsResponse200 CustomerBalanceTransaction | Successful response. |
PostCustomersCustomerBalanceTransactionsResponseDefault Error | Error response. |