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

RecurlyClient.Types.InvoiceRefund

Description

Contains the types generated from the schema InvoiceRefund

Synopsis

Documentation

data InvoiceRefund Source #

Defines the object schema located at components.schemas.InvoiceRefund in the specification.

Constructors

InvoiceRefund 

Fields

  • invoiceRefundAmount :: Maybe Float

    amount: The amount to be refunded. The amount will be split between the line items. If `type` is "amount" and no amount is specified, it will default to refunding the total refundable amount on the invoice. Can only be present if `type` is "amount".

  • invoiceRefundCredit_customer_notes :: Maybe Text

    credit_customer_notes: Used as the Customer Notes on the credit invoice.

    This field can only be include when the Credit Invoices feature is enabled.

  • invoiceRefundExternal_refund :: Maybe InvoiceRefundExternal_refund

    external_refund: Indicates that the refund was settled outside of Recurly, and a manual transaction should be created to track it in Recurly.

    Required when: - refunding a manually collected charge invoice, and `refund_method` is not `all_credit` - refunding a credit invoice that refunded manually collecting invoices - refunding a credit invoice for a partial amount

    This field can only be included when the Credit Invoices feature is enabled.

  • invoiceRefundLine_items :: Maybe [LineItemRefund]

    line_items: The line items to be refunded. This is required when `type=line_items`.

  • invoiceRefundPercentage :: Maybe Int

    percentage: The percentage of the remaining balance to be refunded. The percentage will be split between the line items. If `type` is "percentage" and no percentage is specified, it will default to refunding 100% of the refundable amount on the invoice. Can only be present if `type` is "percentage".

    Constraints:

    • Maxium of 100.0
    • Minimum of 1.0
  • invoiceRefundRefund_method :: Maybe InvoiceRefundRefund_method

    refund_method: Indicates how the invoice should be refunded when both a credit and transaction are present on the invoice: - `transaction_first` – Refunds the transaction first, then any amount is issued as credit back to the account. Default value when Credit Invoices feature is enabled. - `credit_first` – Issues credit back to the account first, then refunds any remaining amount back to the transaction. Default value when Credit Invoices feature is not enabled. - `all_credit` – Issues credit to the account for the entire amount of the refund. Only available when the Credit Invoices feature is enabled. - `all_transaction` – Refunds the entire amount back to transactions, using transactions from previous invoices if necessary. Only available when the Credit Invoices feature is enabled.

  • invoiceRefundType :: InvoiceRefundType

    type: The type of refund. Amount and line items cannot both be specified in the request.

mkInvoiceRefund Source #

Create a new InvoiceRefund with all required fields.

data InvoiceRefundExternal_refund Source #

Defines the object schema located at components.schemas.InvoiceRefund.properties.external_refund in the specification.

Indicates that the refund was settled outside of Recurly, and a manual transaction should be created to track it in Recurly.

Required when: - refunding a manually collected charge invoice, and `refund_method` is not `all_credit` - refunding a credit invoice that refunded manually collecting invoices - refunding a credit invoice for a partial amount

This field can only be included when the Credit Invoices feature is enabled.

Constructors

InvoiceRefundExternal_refund 

Fields

data InvoiceRefundExternal_refundPayment_method Source #

Defines the enum schema located at components.schemas.InvoiceRefund.properties.external_refund.properties.payment_method in the specification.

Payment method used for external refund transaction.

Constructors

InvoiceRefundExternal_refundPayment_methodOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

InvoiceRefundExternal_refundPayment_methodTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceRefundExternal_refundPayment_methodEnumBacs

Represents the JSON value "bacs"

InvoiceRefundExternal_refundPayment_methodEnumAch

Represents the JSON value "ach"

InvoiceRefundExternal_refundPayment_methodEnumAmazon

Represents the JSON value "amazon"

InvoiceRefundExternal_refundPayment_methodEnumApple_pay

Represents the JSON value "apple_pay"

InvoiceRefundExternal_refundPayment_methodEnumBraintree_apple_pay

Represents the JSON value "braintree_apple_pay"

InvoiceRefundExternal_refundPayment_methodEnumCheck

Represents the JSON value "check"

InvoiceRefundExternal_refundPayment_methodEnumCredit_card

Represents the JSON value "credit_card"

InvoiceRefundExternal_refundPayment_methodEnumEft

Represents the JSON value "eft"

InvoiceRefundExternal_refundPayment_methodEnumGoogle_pay

Represents the JSON value "google_pay"

InvoiceRefundExternal_refundPayment_methodEnumMoney_order

Represents the JSON value "money_order"

InvoiceRefundExternal_refundPayment_methodEnumOther

Represents the JSON value "other"

InvoiceRefundExternal_refundPayment_methodEnumPaypal

Represents the JSON value "paypal"

InvoiceRefundExternal_refundPayment_methodEnumRoku

Represents the JSON value "roku"

InvoiceRefundExternal_refundPayment_methodEnumSepadirectdebit

Represents the JSON value "sepadirectdebit"

InvoiceRefundExternal_refundPayment_methodEnumWire_transfer

Represents the JSON value "wire_transfer"

data InvoiceRefundRefund_method Source #

Defines the enum schema located at components.schemas.InvoiceRefund.properties.refund_method in the specification.

Indicates how the invoice should be refunded when both a credit and transaction are present on the invoice: - `transaction_first` – Refunds the transaction first, then any amount is issued as credit back to the account. Default value when Credit Invoices feature is enabled. - `credit_first` – Issues credit back to the account first, then refunds any remaining amount back to the transaction. Default value when Credit Invoices feature is not enabled. - `all_credit` – Issues credit to the account for the entire amount of the refund. Only available when the Credit Invoices feature is enabled. - `all_transaction` – Refunds the entire amount back to transactions, using transactions from previous invoices if necessary. Only available when the Credit Invoices feature is enabled.

Constructors

InvoiceRefundRefund_methodOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

InvoiceRefundRefund_methodTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceRefundRefund_methodEnumAll_credit

Represents the JSON value "all_credit"

InvoiceRefundRefund_methodEnumAll_transaction

Represents the JSON value "all_transaction"

InvoiceRefundRefund_methodEnumCredit_first

Represents the JSON value "credit_first"

InvoiceRefundRefund_methodEnumTransaction_first

Represents the JSON value "transaction_first"

data InvoiceRefundType Source #

Defines the enum schema located at components.schemas.InvoiceRefund.properties.type in the specification.

The type of refund. Amount and line items cannot both be specified in the request.

Constructors

InvoiceRefundTypeOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

InvoiceRefundTypeTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceRefundTypeEnumAmount

Represents the JSON value "amount"

InvoiceRefundTypeEnumPercentage

Represents the JSON value "percentage"

InvoiceRefundTypeEnumLine_items

Represents the JSON value "line_items"