OrderModel constructor

OrderModel({
  1. int? id,
  2. int? parentId,
  3. String? number,
  4. String? orderKey,
  5. String? createdVia,
  6. String? version,
  7. String status = 'pending',
  8. String currency = 'USD',
  9. DateTime? dateCreated,
  10. DateTime? dateCreatedGmt,
  11. DateTime? dateModified,
  12. DateTime? dateModifiedGmt,
  13. String? discountTotal,
  14. String? discountTax,
  15. String? shippingTotal,
  16. String? shippingTax,
  17. String? cartTax,
  18. String? total,
  19. String? totalTax,
  20. bool pricesIncludeTax = false,
  21. int customerId = 0,
  22. String? customerIpAddress,
  23. String? customerUserAgent,
  24. String? customerNote,
  25. dynamic billing,
  26. dynamic shipping,
  27. String? paymentMethod,
  28. String? paymentMethodTitle,
  29. String? transactionId,
  30. DateTime? datePaid,
  31. DateTime? datePaidGmt,
  32. DateTime? dateCompleted,
  33. DateTime? dateCompletedGmt,
  34. String? cartHash,
  35. List? metaData,
  36. List? lineItems,
  37. List? taxLines,
  38. List? shippingLines,
  39. List? feeLines,
  40. List? couponLines,
  41. List? refunds,
  42. 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,
});