LineItem class final

InvoiceLineItem

Implemented types

Constructors

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
const
LineItem.fromJson(Object? json)
factory

Properties

amount int
final
amountExcludingTax int?
final
currency String
final
description String?
final
discountable bool
final
discountAmounts List<DiscountsResourceDiscountAmount>?
final
discounts List<DiscountOrId>?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
invoice String?
final
invoiceItem InvoiceitemOrId?
final
livemode bool
final
metadata Map<String, String>
final
object String
The resource's type.
final
period InvoiceLineItemPeriod
final
plan InvoiceitemPlan?
final
price InvoiceitemPrice?
final
proration bool
final
prorationDetails InvoicesResourceLineItemsProrationDetails?
final
quantity int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscription SubscriptionOrId?
final
subscriptionItem SubscriptionItemOrId?
final
taxAmounts List<InvoiceTaxAmount>?
final
taxRates List<TaxRate>?
final
type LineItemType
final
unitAmountExcludingTax String?
final

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

encode<V>(LineItem instance, Encoder<V> encoder) → V