CustomerBalanceTransaction constructor

const CustomerBalanceTransaction({
  1. required int amount,
  2. required DateTime created,
  3. CreditNoteOrId? creditNote,
  4. required String currency,
  5. required CustomerOrId customer,
  6. String? description,
  7. required int endingBalance,
  8. required String id,
  9. InvoiceOrId? invoice,
  10. required bool livemode,
  11. Map<String, String>? metadata,
  12. required CustomerBalanceTransactionType type,
})

CustomerBalanceTransaction

Each customer has a [Balance](https://stripe.com/docs/api/customers/object#customer_object-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](https://stripe.com/docs/api/customers/update), or by creating a Customer Balance Transaction, which increments or decrements the customer's `balance` by the specified `amount`. Related guide: [Customer balance](https://stripe.com/docs/billing/customer/balance)

Implementation

const CustomerBalanceTransaction({
  required this.amount,
  required this.created,
  this.creditNote,
  required this.currency,
  required this.customer,
  this.description,
  required this.endingBalance,
  required this.id,
  this.invoice,
  required this.livemode,
  this.metadata,
  required this.type,
});