Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation apply_credit_balance
Synopsis
- apply_credit_balance :: forall m. MonadHTTP m => Apply_credit_balanceParameters -> ClientT m (Response Apply_credit_balanceResponse)
- data Apply_credit_balanceParameters = Apply_credit_balanceParameters {}
- mkApply_credit_balanceParameters :: Text -> Text -> Apply_credit_balanceParameters
- data Apply_credit_balanceResponse
- apply_credit_balanceWithConfiguration :: forall m. MonadHTTP m => Configuration -> Apply_credit_balanceParameters -> m (Response Apply_credit_balanceResponse)
- apply_credit_balanceRaw :: forall m. MonadHTTP m => Apply_credit_balanceParameters -> ClientT m (Response ByteString)
- apply_credit_balanceWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Apply_credit_balanceParameters -> m (Response ByteString)
Documentation
:: forall m. MonadHTTP m | |
=> Apply_credit_balanceParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response Apply_credit_balanceResponse) | Monadic computation which returns the result of the operation |
PUT /invoices/{invoice_id}/apply_credit_balance
Apply credit payment to the outstanding balance on an existing charge invoice from an account’s available balance from existing credit invoices.
data Apply_credit_balanceParameters Source #
Defines the object schema located at paths./invoices/{invoice_id}/apply_credit_balance.PUT.parameters
in the specification.
Apply_credit_balanceParameters | |
|
mkApply_credit_balanceParameters Source #
Create a new Apply_credit_balanceParameters
with all required fields.
data Apply_credit_balanceResponse Source #
Represents a response of the operation apply_credit_balance
.
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), Apply_credit_balanceResponseError
is used.
Apply_credit_balanceResponseError String | Means either no matching case available or a parse error |
Apply_credit_balanceResponse200 Invoice | The updated invoice. |
Apply_credit_balanceResponse404 Error | Incorrect site or invoice ID. |
Apply_credit_balanceResponse422 Error | Tried applying credit to a legacy or closed invoice or there was an error processing the credit payment, such as no available credit on the account. |
Apply_credit_balanceResponseDefault Error | Unexpected error. |
Instances
apply_credit_balanceWithConfiguration Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Apply_credit_balanceParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response Apply_credit_balanceResponse) | Monadic computation which returns the result of the operation |
PUT /invoices/{invoice_id}/apply_credit_balance
The same as apply_credit_balance
but accepts an explicit configuration.
apply_credit_balanceRaw Source #
:: forall m. MonadHTTP m | |
=> Apply_credit_balanceParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /invoices/{invoice_id}/apply_credit_balance
The same as apply_credit_balance
but returns the raw ByteString
.
apply_credit_balanceWithConfigurationRaw Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Apply_credit_balanceParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /invoices/{invoice_id}/apply_credit_balance
The same as apply_credit_balance
but accepts an explicit configuration and returns the raw ByteString
.