Order class

Constructors

Order({String id = null, String shortId = null, String merchantId = null, String outletId = null, String type = null, List<OrderItems> items = const [], List<OrderTaxes> taxes = const [], List<OrderGratuities> gratuities = const [], num subTotal = null, num gratuity = null, num discount = null, num tax = null, num rounding = null, num grandTotal = null, String customerId = null, List<OrderPayments> payments = const [], List<SendReceipt> sentReceipts = const [], List<RefundOrder> refundHistory = const [], DateTime createdAt = null, String createdBy = null, DateTime updatedAt = null, String updatedBy = null, bool deleted = false})

Properties

createdAt DateTime
@Alias('createdAt', isNullable: false), final
createdBy String
@Alias('createdBy', isNullable: false), final
customerId String
@Alias('customerId', isNullable: false), final
deleted bool
@Alias('deleted', isNullable: false), final
discount num
@Alias('discount', isNullable: false), final
grandTotal num
@Alias('grandTotal', isNullable: false), final
gratuities List<OrderGratuities>
@Alias('gratuities', isNullable: false), final
gratuity num
@Alias('gratuity', isNullable: false), final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
@Alias('id', isNullable: false), final
items List<OrderItems>
@Alias('items', isNullable: false), final
merchantId String
@Alias('merchantId', isNullable: false), final
outletId String
@Alias('outletId', isNullable: false), final
payments List<OrderPayments>
@Alias('payments', isNullable: false), final
refundHistory List<RefundOrder>
@Alias('refundHistory', isNullable: false), final
rounding num
@Alias('rounding', isNullable: false), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sentReceipts List<SendReceipt>
@Alias('sentReceipts', isNullable: false), final
shortId String
@Alias('shortId', isNullable: false), final
subTotal num
@Alias('subTotal', isNullable: false), final
tax num
@Alias('tax', isNullable: false), final
taxes List<OrderTaxes>
@Alias('taxes', isNullable: false), final
type String
@Alias('type', isNullable: false), final
updatedAt DateTime
@Alias('updatedAt', isNullable: false), final
updatedBy String
@Alias('updatedBy', isNullable: false), final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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