CreditNote constructor

const CreditNote({
  1. required int amount,
  2. required int amountShipping,
  3. required DateTime created,
  4. required String currency,
  5. required BankAccountCustomerOrId customer,
  6. CustomerBalanceTransactionOrId? customerBalanceTransaction,
  7. required int discountAmount,
  8. required List<DiscountsResourceDiscountAmount> discountAmounts,
  9. DateTime? effectiveAt,
  10. required String id,
  11. required InvoiceOrId invoice,
  12. required CreditNoteLines lines,
  13. required bool livemode,
  14. String? memo,
  15. Map<String, String>? metadata,
  16. required String number,
  17. int? outOfBandAmount,
  18. required String pdf,
  19. CreditNoteReason? reason,
  20. RefundOrId? refund,
  21. CheckoutSessionShippingCost? shippingCost,
  22. required CreditNoteStatus status,
  23. required int subtotal,
  24. int? subtotalExcludingTax,
  25. required List<CreditNoteTaxAmount> taxAmounts,
  26. required int total,
  27. int? totalExcludingTax,
  28. required CreditNoteType type,
  29. DateTime? voidedAt,
})

CreditNote

Issue a credit note to adjust an invoice's amount after the invoice is finalized. Related guide: [Credit notes](https://stripe.com/docs/billing/invoices/credit-notes)

Implementation

const CreditNote({
  required this.amount,
  required this.amountShipping,
  required this.created,
  required this.currency,
  required this.customer,
  this.customerBalanceTransaction,
  required this.discountAmount,
  required this.discountAmounts,
  this.effectiveAt,
  required this.id,
  required this.invoice,
  required this.lines,
  required this.livemode,
  this.memo,
  this.metadata,
  required this.number,
  this.outOfBandAmount,
  required this.pdf,
  this.reason,
  this.refund,
  this.shippingCost,
  required this.status,
  required this.subtotal,
  this.subtotalExcludingTax,
  required this.taxAmounts,
  required this.total,
  this.totalExcludingTax,
  required this.type,
  this.voidedAt,
});