Order constructor
const
Order({
- String id = '',
- String deviceInfo = '',
- List<
String> tags = const [], - String businessId = '',
- double totalAmountOutstanding = 0.0,
- double totalAmountPaid = 0.0,
- double totalPrice = 0.0,
- double totalCost = 0.0,
- double currentTotalPrice = 0.0,
- double subtotalPrice = 0.0,
- double lineItemTotalPrice = 0.0,
- double totalLineItemsSold = 0,
- int totalUniqueLineItems = 0,
- double totalTip = 0.0,
- double totalWithdrawal = 0.0,
- double totalTax = 0.0,
- double totalDiscount = 0.0,
- double totalShipping = 0.0,
- double totalRefunded = 0.0,
- CapturedChannel capturedChannel = CapturedChannel.undefined,
- FinancialStatus financialStatus = FinancialStatus.undefined,
- OrderStatus orderStatus = OrderStatus.undefined,
- String createdBy = '',
- String trackingValue = '',
- int orderNumber = 0,
- List<
TaxInfo> taxes = const [], - List<
OrderDiscount> discounts = const [], - List<
OrderLineItem> orderLineItems = const [], - List<
OrderRefund> refunds = const [], - DateTime? dateCreated,
- DateTime? dateUpdated,
- String updatedBy = '',
- List<
OrderTransaction> transactions = const [], - FulfillmentStatus fulfillmentStatus = FulfillmentStatus.undefined,
- OrderSource orderSource = OrderSource.undefined,
- FulfillmentMethod fulfillmentMethod = FulfillmentMethod.undefined,
- String orderVersion = '',
- List<
OrderHistoryLog> orderHistory = const [], - String customerReference = '',
- String notes = '',
Implementation
const Order({
this.id = '',
this.deviceInfo = '',
this.tags = const [],
this.businessId = '',
this.totalAmountOutstanding = 0.0,
this.totalAmountPaid = 0.0,
this.totalPrice = 0.0,
this.totalCost = 0.0,
this.currentTotalPrice = 0.0,
this.subtotalPrice = 0.0,
this.lineItemTotalPrice = 0.0,
this.totalLineItemsSold = 0,
this.totalUniqueLineItems = 0,
this.totalTip = 0.0,
this.totalWithdrawal = 0.0,
this.totalTax = 0.0,
this.totalDiscount = 0.0,
this.totalShipping = 0.0,
this.totalRefunded = 0.0,
this.capturedChannel = CapturedChannel.undefined,
this.financialStatus = FinancialStatus.undefined,
this.orderStatus = OrderStatus.undefined,
this.createdBy = '',
this.trackingValue = '',
this.orderNumber = 0,
this.taxes = const [],
this.discounts = const [],
this.orderLineItems = const [],
this.refunds = const [],
this.dateCreated,
this.dateUpdated,
this.updatedBy = '',
this.transactions = const [],
this.fulfillmentStatus = FulfillmentStatus.undefined,
this.orderSource = OrderSource.undefined,
this.fulfillmentMethod = FulfillmentMethod.undefined,
this.orderVersion = '',
this.orderHistory = const [],
this.customerReference = '',
this.notes = '',
});