CreditNote class

The credit note body.

Inheritance

Constructors

CreditNote({CreditNoteAccount? account, String? accountId, String? amount, String? code, Object? createdBy, String? createdOn, CreditNoteCurrency? currency, List<CreditNoteCustomAttribute?>? customAttributes, List<Object?>? customObjects, String? date, String? href, String? id, String? initialAmount, String? invoiceId, List<CreditNoteInvoice?>? invoices, String? issueDate, CreditNoteLastUpdatedBy? lastUpdatedBy, String? lastUpdatedOn, String? object, CreditNotePayment? payment, String? paymentId, String? refundAmount, Object? refundable, String? remainingAmount, String? remainingBalance, String? status, String? updatedBy, String? updatedOn, String? uuid, Object? version})
const

Properties

account → CreditNoteAccount?
final
accountId → String?
final
amount → String?
final
code → String?
final
createdBy → Object?
Untyped: a String on some records and a map on others.
final
createdOn → String?
final
currency → CreditNoteCurrency?
final
customAttributes → List<CreditNoteCustomAttribute?>?
final
customObjects → List<Object?>?
final
date → String?
final
envelopeKey → String?
The key the API wraps this record in - 'account' for {"account": {...}}. readRecord unwraps it on the way in, toMap puts it back on the way out.
no setterinherited
fields → Map<String, Object?>
Every field this type declares, keyed by wire name, in the order it sends them.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
href → String?
final
id → String?
final
initialAmount → String?
final
invoiceId → String?
final
invoices → List<CreditNoteInvoice?>?
final
issueDate → String?
final
lastUpdatedBy → CreditNoteLastUpdatedBy?
final
lastUpdatedOn → String?
final
object → String?
final
payment → CreditNotePayment?
final
paymentId → String?
final
refundable → Object?
Untyped: a String on some records and a bool on others.
final
refundAmount → String?
final
remainingAmount → String?
final
remainingBalance → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → String?
final
topLevelFields → Set<String>
Fields that sit beside the envelope rather than inside it.
no setterinherited
updatedBy → String?
final
updatedOn → String?
final
uuid → String?
final
version → Object?
Untyped: a String on some records and an int on others.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
The body this DTO stands for, envelope included.
inherited
toString() → String
Set fields, values under a secret-named key masked.
inherited

Operators

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

Static Methods

fromMap(Object? body) → CreditNote?

Constants

measuredFrom → const List<String>