Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.InvoiceRefund
Description
Contains the types generated from the schema InvoiceRefund
Synopsis
- data InvoiceRefund = InvoiceRefund {
- invoiceRefundAmount :: Maybe Float
- invoiceRefundCredit_customer_notes :: Maybe Text
- invoiceRefundExternal_refund :: Maybe InvoiceRefundExternal_refund
- invoiceRefundLine_items :: Maybe [LineItemRefund]
- invoiceRefundPercentage :: Maybe Int
- invoiceRefundRefund_method :: Maybe InvoiceRefundRefund_method
- invoiceRefundType :: InvoiceRefundType
- mkInvoiceRefund :: InvoiceRefundType -> InvoiceRefund
- data InvoiceRefundExternal_refund = InvoiceRefundExternal_refund {}
- mkInvoiceRefundExternal_refund :: InvoiceRefundExternal_refundPayment_method -> InvoiceRefundExternal_refund
- data InvoiceRefundExternal_refundPayment_method
- = InvoiceRefundExternal_refundPayment_methodOther Value
- | InvoiceRefundExternal_refundPayment_methodTyped Text
- | InvoiceRefundExternal_refundPayment_methodEnumBacs
- | InvoiceRefundExternal_refundPayment_methodEnumAch
- | InvoiceRefundExternal_refundPayment_methodEnumAmazon
- | InvoiceRefundExternal_refundPayment_methodEnumApple_pay
- | InvoiceRefundExternal_refundPayment_methodEnumBraintree_apple_pay
- | InvoiceRefundExternal_refundPayment_methodEnumCheck
- | InvoiceRefundExternal_refundPayment_methodEnumCredit_card
- | InvoiceRefundExternal_refundPayment_methodEnumEft
- | InvoiceRefundExternal_refundPayment_methodEnumGoogle_pay
- | InvoiceRefundExternal_refundPayment_methodEnumMoney_order
- | InvoiceRefundExternal_refundPayment_methodEnumOther
- | InvoiceRefundExternal_refundPayment_methodEnumPaypal
- | InvoiceRefundExternal_refundPayment_methodEnumRoku
- | InvoiceRefundExternal_refundPayment_methodEnumSepadirectdebit
- | InvoiceRefundExternal_refundPayment_methodEnumWire_transfer
- data InvoiceRefundRefund_method
- data InvoiceRefundType
Documentation
data InvoiceRefund Source #
Defines the object schema located at components.schemas.InvoiceRefund
in the specification.
Constructors
InvoiceRefund | |
Fields
|
Instances
FromJSON InvoiceRefund Source # | |
Defined in RecurlyClient.Types.InvoiceRefund Methods parseJSON :: Value -> Parser InvoiceRefund # parseJSONList :: Value -> Parser [InvoiceRefund] # | |
ToJSON InvoiceRefund Source # | |
Defined in RecurlyClient.Types.InvoiceRefund Methods toJSON :: InvoiceRefund -> Value # toEncoding :: InvoiceRefund -> Encoding # toJSONList :: [InvoiceRefund] -> Value # toEncodingList :: [InvoiceRefund] -> Encoding # | |
Show InvoiceRefund Source # | |
Defined in RecurlyClient.Types.InvoiceRefund Methods showsPrec :: Int -> InvoiceRefund -> ShowS # show :: InvoiceRefund -> String # showList :: [InvoiceRefund] -> ShowS # | |
Eq InvoiceRefund Source # | |
Defined in RecurlyClient.Types.InvoiceRefund Methods (==) :: InvoiceRefund -> InvoiceRefund -> Bool # (/=) :: InvoiceRefund -> InvoiceRefund -> Bool # |
Arguments
:: InvoiceRefundType | |
-> InvoiceRefund |
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
|
Instances
mkInvoiceRefundExternal_refund Source #
Create a new InvoiceRefundExternal_refund
with all required 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
Instances
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 |
InvoiceRefundRefund_methodEnumAll_transaction | Represents the JSON value |
InvoiceRefundRefund_methodEnumCredit_first | Represents the JSON value |
InvoiceRefundRefund_methodEnumTransaction_first | Represents the JSON value |
Instances
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 |
InvoiceRefundTypeEnumPercentage | Represents the JSON value |
InvoiceRefundTypeEnumLine_items | Represents the JSON value |
Instances
FromJSON InvoiceRefundType Source # | |
Defined in RecurlyClient.Types.InvoiceRefund Methods parseJSON :: Value -> Parser InvoiceRefundType # parseJSONList :: Value -> Parser [InvoiceRefundType] # | |
ToJSON InvoiceRefundType Source # | |
Defined in RecurlyClient.Types.InvoiceRefund Methods toJSON :: InvoiceRefundType -> Value # toEncoding :: InvoiceRefundType -> Encoding # toJSONList :: [InvoiceRefundType] -> Value # toEncodingList :: [InvoiceRefundType] -> Encoding # | |
Show InvoiceRefundType Source # | |
Defined in RecurlyClient.Types.InvoiceRefund Methods showsPrec :: Int -> InvoiceRefundType -> ShowS # show :: InvoiceRefundType -> String # showList :: [InvoiceRefundType] -> ShowS # | |
Eq InvoiceRefundType Source # | |
Defined in RecurlyClient.Types.InvoiceRefund Methods (==) :: InvoiceRefundType -> InvoiceRefundType -> Bool # (/=) :: InvoiceRefundType -> InvoiceRefundType -> Bool # |