| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RecurlyClient.Operations.Apply_credit_balance
Description
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
Arguments
| :: 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_balanceApply 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.
Constructors
| Apply_credit_balanceParameters | |
Fields
| |
Instances
mkApply_credit_balanceParameters Source #
Arguments
| :: Text | |
| -> Text | |
| -> Apply_credit_balanceParameters |
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.
Constructors
| 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
| Show Apply_credit_balanceResponse Source # | |
Defined in RecurlyClient.Operations.Apply_credit_balance Methods showsPrec :: Int -> Apply_credit_balanceResponse -> ShowS # show :: Apply_credit_balanceResponse -> String # showList :: [Apply_credit_balanceResponse] -> ShowS # | |
| Eq Apply_credit_balanceResponse Source # | |
Defined in RecurlyClient.Operations.Apply_credit_balance Methods (==) :: Apply_credit_balanceResponse -> Apply_credit_balanceResponse -> Bool # (/=) :: Apply_credit_balanceResponse -> Apply_credit_balanceResponse -> Bool # | |
apply_credit_balanceWithConfiguration Source #
Arguments
| :: 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_balanceThe same as apply_credit_balance but accepts an explicit configuration.
apply_credit_balanceRaw Source #
Arguments
| :: 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_balanceThe same as apply_credit_balance but returns the raw ByteString.
apply_credit_balanceWithConfigurationRaw Source #
Arguments
| :: 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_balanceThe same as apply_credit_balance but accepts an explicit configuration and returns the raw ByteString.