OrderModel constructor
OrderModel({
- int? id,
- int? parentId,
- String? number,
- String? orderKey,
- String? createdVia,
- String? version,
- String status = 'pending',
- String currency = 'USD',
- DateTime? dateCreated,
- DateTime? dateCreatedGmt,
- DateTime? dateModified,
- DateTime? dateModifiedGmt,
- String? discountTotal,
- String? discountTax,
- String? shippingTotal,
- String? shippingTax,
- String? cartTax,
- String? total,
- String? totalTax,
- bool pricesIncludeTax = false,
- int customerId = 0,
- String? customerIpAddress,
- String? customerUserAgent,
- String? customerNote,
- dynamic billing,
- dynamic shipping,
- String? paymentMethod,
- String? paymentMethodTitle,
- String? transactionId,
- DateTime? datePaid,
- DateTime? datePaidGmt,
- DateTime? dateCompleted,
- DateTime? dateCompletedGmt,
- String? cartHash,
- List? metaData,
- List? lineItems,
- List? taxLines,
- List? shippingLines,
- List? feeLines,
- List? couponLines,
- List? refunds,
- bool setPaid = false,
Implementation
OrderModel({
this.id,
this.parentId,
this.number,
this.orderKey,
this.createdVia,
this.version,
this.status = 'pending',
this.currency = 'USD',
this.dateCreated,
this.dateCreatedGmt,
this.dateModified,
this.dateModifiedGmt,
this.discountTotal,
this.discountTax,
this.shippingTotal,
this.shippingTax,
this.cartTax,
this.total,
this.totalTax,
this.pricesIncludeTax = false,
this.customerId = 0,
this.customerIpAddress,
this.customerUserAgent,
this.customerNote,
this.billing,
this.shipping,
this.paymentMethod,
this.paymentMethodTitle,
this.transactionId,
this.datePaid,
this.datePaidGmt,
this.dateCompleted,
this.dateCompletedGmt,
this.cartHash,
this.metaData,
this.lineItems,
this.taxLines,
this.shippingLines,
this.feeLines,
this.couponLines,
this.refunds,
this.setPaid = false,
});