LineItem constructor
const
LineItem({
- required int amount,
- int? amountExcludingTax,
- required String currency,
- String? description,
- List<
DiscountsResourceDiscountAmount> ? discountAmounts, - required bool discountable,
- List<
DiscountOrId> ? discounts, - required String id,
- String? invoice,
- InvoiceitemOrId? invoiceItem,
- required bool livemode,
- required Map<
String, String> metadata, - required InvoiceLineItemPeriod period,
- InvoiceitemPlan? plan,
- InvoiceitemPrice? price,
- required bool proration,
- InvoicesResourceLineItemsProrationDetails? prorationDetails,
- int? quantity,
- SubscriptionOrId? subscription,
- SubscriptionItemOrId? subscriptionItem,
- List<
InvoiceTaxAmount> ? taxAmounts, - List<
TaxRate> ? taxRates, - required LineItemType type,
- 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,
});