Invoiceitem constructor

const Invoiceitem({
  1. required int amount,
  2. required String currency,
  3. required BankAccountCustomerOrId customer,
  4. required DateTime date,
  5. String? description,
  6. required bool discountable,
  7. List<DiscountOrId>? discounts,
  8. required String id,
  9. InvoiceOrId? invoice,
  10. required bool livemode,
  11. Map<String, String>? metadata,
  12. required InvoiceLineItemPeriod period,
  13. InvoiceitemPlan? plan,
  14. InvoiceitemPrice? price,
  15. required bool proration,
  16. required int quantity,
  17. SubscriptionOrId? subscription,
  18. String? subscriptionItem,
  19. List<TaxRate>? taxRates,
  20. TestHelpersTestClockOrId? testClock,
  21. int? unitAmount,
  22. String? unitAmountDecimal,
})

InvoiceItem

Invoice Items represent the component lines of an [invoice](https://stripe.com/docs/api/invoices). An invoice item is added to an invoice by creating or updating it with an `invoice` field, at which point it will be included as [an invoice line item](https://stripe.com/docs/api/invoices/line\_item) within [invoice.lines](https://stripe.com/docs/api/invoices/object#invoice\_object-lines). Invoice Items can be created before you are ready to actually send the invoice. This can be particularly useful when combined with a [subscription](https://stripe.com/docs/api/subscriptions). Sometimes you want to add a charge or credit to a customer, but actually charge or credit the customer’s card only at the end of a regular billing cycle. This is useful for combining several charges (to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals. Related guides: [Integrate with the Invoicing API](https://stripe.com/docs/invoicing/integration), [Subscription Invoices](https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items).

Implementation

const Invoiceitem({
  required this.amount,
  required this.currency,
  required this.customer,
  required this.date,
  this.description,
  required this.discountable,
  this.discounts,
  required this.id,
  this.invoice,
  required this.livemode,
  this.metadata,
  required this.period,
  this.plan,
  this.price,
  required this.proration,
  required this.quantity,
  this.subscription,
  this.subscriptionItem,
  this.taxRates,
  this.testClock,
  this.unitAmount,
  this.unitAmountDecimal,
});