Order constructor
Order({
- String? id,
- String? customerId,
- String? state,
- OrderSource? source,
- String? closedAt,
- String? createdAt,
- List<
OrderLineItemDiscount> ? discounts, - List<
OrderFulfillment> ? fulfillments, - List<
OrderLineItem> ? lineItems, - String? locationId,
- Map<
String, String> ? metadata, - OrderMoneyAmounts? netAmounts,
- OrderPricingOptions? pricingOptions,
- String? referenceId,
- List<
Refund> ? refunds, - OrderMoneyAmounts? returnAmounts,
- List<
OrderReturn> ? returns, - List<
OrderReward> ? rewards, - OrderRoundingAdjustment? roundingAdjustment,
- List<
OrderServiceCharge> ? serviceCharges, - List<
OrderLineItemTax> ? taxes, - List<
Tender> ? tenders, - String? ticketName,
- Money? totalDiscountMoney,
- Money? totalMoney,
- Money? totalServiceChargeMoney,
- Money? totalTaxMoney,
- Money? totalTipMoney,
- String? updatedAt,
- 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});