CreditNoteLineItem class final

CreditNoteLineItem

The credit note line item object

Implemented types

Constructors

CreditNoteLineItem({required int amount, int? amountExcludingTax, String? description, required int discountAmount, required List<DiscountsResourceDiscountAmount> discountAmounts, required String id, String? invoiceLineItem, required bool livemode, int? quantity, required List<CreditNoteTaxAmount> taxAmounts, required List<TaxRate> taxRates, required CreditNoteLineItemType type, int? unitAmount, String? unitAmountDecimal, String? unitAmountExcludingTax})
CreditNoteLineItem
const
CreditNoteLineItem.fromJson(Object? json)
factory

Properties

amount → int
final
amountExcludingTax → int?
final
description → String?
final
discountAmount → int
final
discountAmounts → List<DiscountsResourceDiscountAmount>
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
invoiceLineItem → String?
final
livemode → bool
final
object → String
The resource's type.
final
quantity → int?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
taxAmounts → List<CreditNoteTaxAmount>
final
taxRates → List<TaxRate>
final
type → CreditNoteLineItemType
final
unitAmount → int?
final
unitAmountDecimal → String?
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>(CreditNoteLineItem instance, Encoder<V> encoder) → V