| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.CustomerBalanceTransaction
Description
Contains the types generated from the schema CustomerBalanceTransaction
Synopsis
- data CustomerBalanceTransaction = CustomerBalanceTransaction {
- customerBalanceTransactionAmount :: Int
- customerBalanceTransactionCreated :: Int
- customerBalanceTransactionCreditNote :: Maybe CustomerBalanceTransactionCreditNote'Variants
- customerBalanceTransactionCurrency :: Text
- customerBalanceTransactionCustomer :: CustomerBalanceTransactionCustomer'Variants
- customerBalanceTransactionDescription :: Maybe Text
- customerBalanceTransactionEndingBalance :: Int
- customerBalanceTransactionId :: Text
- customerBalanceTransactionInvoice :: Maybe CustomerBalanceTransactionInvoice'Variants
- customerBalanceTransactionLivemode :: Bool
- customerBalanceTransactionMetadata :: Maybe Object
- customerBalanceTransactionType :: CustomerBalanceTransactionType'
- mkCustomerBalanceTransaction :: Int -> Int -> Text -> CustomerBalanceTransactionCustomer'Variants -> Int -> Text -> Bool -> CustomerBalanceTransactionType' -> CustomerBalanceTransaction
- data CustomerBalanceTransactionCreditNote'Variants
- data CustomerBalanceTransactionCustomer'Variants
- data CustomerBalanceTransactionInvoice'Variants
- data CustomerBalanceTransactionType'
- = CustomerBalanceTransactionType'Other Value
- | CustomerBalanceTransactionType'Typed Text
- | CustomerBalanceTransactionType'EnumAdjustment
- | CustomerBalanceTransactionType'EnumAppliedToInvoice
- | CustomerBalanceTransactionType'EnumCreditNote
- | CustomerBalanceTransactionType'EnumInitial
- | CustomerBalanceTransactionType'EnumInvoiceTooLarge
- | CustomerBalanceTransactionType'EnumInvoiceTooSmall
- | CustomerBalanceTransactionType'EnumMigration
- | CustomerBalanceTransactionType'EnumUnappliedFromInvoice
- | CustomerBalanceTransactionType'EnumUnspentReceiverCredit
Documentation
data CustomerBalanceTransaction Source #
Defines the object schema located at components.schemas.customer_balance_transaction in the specification.
Each customer has a `balance` value, which denotes a debit or credit that's automatically applied to their next invoice upon finalization. You may modify the value directly by using the update customer API, or by creating a Customer Balance Transaction, which increments or decrements the customer's `balance` by the specified `amount`.
Related guide: Customer Balance to learn more.
Constructors
| CustomerBalanceTransaction | |
Fields
| |
Instances
mkCustomerBalanceTransaction Source #
Arguments
| :: Int | |
| -> Int | |
| -> Text | |
| -> CustomerBalanceTransactionCustomer'Variants | |
| -> Int | |
| -> Text | |
| -> Bool | |
| -> CustomerBalanceTransactionType' | |
| -> CustomerBalanceTransaction |
Create a new CustomerBalanceTransaction with all required fields.
data CustomerBalanceTransactionCreditNote'Variants Source #
Defines the oneOf schema located at components.schemas.customer_balance_transaction.properties.credit_note.anyOf in the specification.
The ID of the credit note (if any) related to the transaction.
Constructors
| CustomerBalanceTransactionCreditNote'Text Text | |
| CustomerBalanceTransactionCreditNote'CreditNote CreditNote |
Instances
data CustomerBalanceTransactionCustomer'Variants Source #
Defines the oneOf schema located at components.schemas.customer_balance_transaction.properties.customer.anyOf in the specification.
The ID of the customer the transaction belongs to.
Constructors
| CustomerBalanceTransactionCustomer'Text Text | |
| CustomerBalanceTransactionCustomer'Customer Customer |
data CustomerBalanceTransactionInvoice'Variants Source #
Defines the oneOf schema located at components.schemas.customer_balance_transaction.properties.invoice.anyOf in the specification.
The ID of the invoice (if any) related to the transaction.
Constructors
| CustomerBalanceTransactionInvoice'Text Text | |
| CustomerBalanceTransactionInvoice'Invoice Invoice |
data CustomerBalanceTransactionType' Source #
Defines the enum schema located at components.schemas.customer_balance_transaction.properties.type in the specification.
Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, or `unapplied_from_invoice`. See the Customer Balance page to learn more about transaction types.
Constructors
| CustomerBalanceTransactionType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| CustomerBalanceTransactionType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| CustomerBalanceTransactionType'EnumAdjustment | Represents the JSON value |
| CustomerBalanceTransactionType'EnumAppliedToInvoice | Represents the JSON value |
| CustomerBalanceTransactionType'EnumCreditNote | Represents the JSON value |
| CustomerBalanceTransactionType'EnumInitial | Represents the JSON value |
| CustomerBalanceTransactionType'EnumInvoiceTooLarge | Represents the JSON value |
| CustomerBalanceTransactionType'EnumInvoiceTooSmall | Represents the JSON value |
| CustomerBalanceTransactionType'EnumMigration | Represents the JSON value |
| CustomerBalanceTransactionType'EnumUnappliedFromInvoice | Represents the JSON value |
| CustomerBalanceTransactionType'EnumUnspentReceiverCredit | Represents the JSON value |