LineItem constructor

const LineItem({
  1. required int amount,
  2. int? amountExcludingTax,
  3. required String currency,
  4. String? description,
  5. List<DiscountsResourceDiscountAmount>? discountAmounts,
  6. required bool discountable,
  7. List<DiscountOrId>? discounts,
  8. required String id,
  9. String? invoice,
  10. InvoiceitemOrId? invoiceItem,
  11. required bool livemode,
  12. required Map<String, String> metadata,
  13. required InvoiceLineItemPeriod period,
  14. InvoiceitemPlan? plan,
  15. InvoiceitemPrice? price,
  16. required bool proration,
  17. InvoicesResourceLineItemsProrationDetails? prorationDetails,
  18. int? quantity,
  19. SubscriptionOrId? subscription,
  20. SubscriptionItemOrId? subscriptionItem,
  21. List<InvoiceTaxAmount>? taxAmounts,
  22. List<TaxRate>? taxRates,
  23. required LineItemType type,
  24. String? unitAmountExcludingTax,
})

InvoiceLineItem

Implementation

const LineItem({
  required this.amount,
  this.amountExcludingTax,
  required this.currency,
  this.description,
  this.discountAmounts,
  required this.discountable,
  this.discounts,
  required this.id,
  this.invoice,
  this.invoiceItem,
  required this.livemode,
  required this.metadata,
  required this.period,
  this.plan,
  this.price,
  required this.proration,
  this.prorationDetails,
  this.quantity,
  this.subscription,
  this.subscriptionItem,
  this.taxAmounts,
  this.taxRates,
  required this.type,
  this.unitAmountExcludingTax,
});