recurly-client-0.0.0.1: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Operations.Apply_credit_balance

Description

Contains the different functions to run the operation apply_credit_balance

Synopsis

Documentation

apply_credit_balance Source #

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_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.

Constructors

Apply_credit_balanceParameters 

Fields

  • apply_credit_balanceParametersPathInvoice_id :: Text

    pathInvoice_id: Represents the parameter named 'invoice_id'

    Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.

  • apply_credit_balanceParametersPathSite_id :: Text

    pathSite_id: Represents the parameter named 'site_id'

    Site ID or subdomain. For ID no prefix is used e.g. `e28zov4fw0v2`. For subdomain use prefix `subdomain-`, e.g. `subdomain-recurly`.

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.

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_balance

The 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_balance

The 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_balance

The same as apply_credit_balance but accepts an explicit configuration and returns the raw ByteString.