Order constructor

Order({
  1. String? id,
  2. String? customerId,
  3. String? state,
  4. OrderSource? source,
  5. String? closedAt,
  6. String? createdAt,
  7. List<OrderLineItemDiscount>? discounts,
  8. List<OrderFulfillment>? fulfillments,
  9. List<OrderLineItem>? lineItems,
  10. String? locationId,
  11. Map<String, String>? metadata,
  12. OrderMoneyAmounts? netAmounts,
  13. OrderPricingOptions? pricingOptions,
  14. String? referenceId,
  15. List<Refund>? refunds,
  16. OrderMoneyAmounts? returnAmounts,
  17. List<OrderReturn>? returns,
  18. List<OrderReward>? rewards,
  19. OrderRoundingAdjustment? roundingAdjustment,
  20. List<OrderServiceCharge>? serviceCharges,
  21. List<OrderLineItemTax>? taxes,
  22. List<Tender>? tenders,
  23. String? ticketName,
  24. Money? totalDiscountMoney,
  25. Money? totalMoney,
  26. Money? totalServiceChargeMoney,
  27. Money? totalTaxMoney,
  28. Money? totalTipMoney,
  29. String? updatedAt,
  30. int? version,
})

Implementation

Order(
    {this.id,
    this.customerId,
    this.state,
    this.source,
    this.closedAt,
    this.createdAt,
    this.discounts,
    this.fulfillments,
    this.lineItems,
    this.locationId,
    this.metadata,
    this.netAmounts,
    this.pricingOptions,
    this.referenceId,
    this.refunds,
    this.returnAmounts,
    this.returns,
    this.rewards,
    this.roundingAdjustment,
    this.serviceCharges,
    this.taxes,
    this.tenders,
    this.ticketName,
    this.totalDiscountMoney,
    this.totalMoney,
    this.totalServiceChargeMoney,
    this.totalTaxMoney,
    this.totalTipMoney,
    this.updatedAt,
    this.version});