CreditNote constructor
const
CreditNote({
- required int amount,
- required int amountShipping,
- required DateTime created,
- required String currency,
- required BankAccountCustomerOrId customer,
- CustomerBalanceTransactionOrId? customerBalanceTransaction,
- required int discountAmount,
- required List<
DiscountsResourceDiscountAmount> discountAmounts, - DateTime? effectiveAt,
- required String id,
- required InvoiceOrId invoice,
- required CreditNoteLines lines,
- required bool livemode,
- String? memo,
- Map<
String, String> ? metadata, - required String number,
- int? outOfBandAmount,
- required String pdf,
- CreditNoteReason? reason,
- RefundOrId? refund,
- CheckoutSessionShippingCost? shippingCost,
- required CreditNoteStatus status,
- required int subtotal,
- int? subtotalExcludingTax,
- required List<
CreditNoteTaxAmount> taxAmounts, - required int total,
- int? totalExcludingTax,
- required CreditNoteType type,
- 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,
});