public Order(string locationId, string id = null, string referenceId = null, Models.OrderSource source = null, string customerId = null, IList <Models.OrderLineItem> lineItems = null, IList <Models.OrderLineItemTax> taxes = null, IList <Models.OrderLineItemDiscount> discounts = null, IList <Models.OrderServiceCharge> serviceCharges = null, IList <Models.OrderFulfillment> fulfillments = null, IList <Models.OrderReturn> returns = null, Models.OrderMoneyAmounts returnAmounts = null, Models.OrderMoneyAmounts netAmounts = null, Models.OrderRoundingAdjustment roundingAdjustment = null, IList <Models.Tender> tenders = null, IList <Models.Refund> refunds = null, IDictionary <string, string> metadata = null, string createdAt = null, string updatedAt = null, string closedAt = null, string state = null, int?version = null, Models.Money totalMoney = null, Models.Money totalTaxMoney = null, Models.Money totalDiscountMoney = null, Models.Money totalTipMoney = null, Models.Money totalServiceChargeMoney = null, Models.OrderPricingOptions pricingOptions = null, IList <Models.OrderReward> rewards = null) { Id = id; LocationId = locationId; ReferenceId = referenceId; Source = source; CustomerId = customerId; LineItems = lineItems; Taxes = taxes; Discounts = discounts; ServiceCharges = serviceCharges; Fulfillments = fulfillments; Returns = returns; ReturnAmounts = returnAmounts; NetAmounts = netAmounts; RoundingAdjustment = roundingAdjustment; Tenders = tenders; Refunds = refunds; Metadata = metadata; CreatedAt = createdAt; UpdatedAt = updatedAt; ClosedAt = closedAt; State = state; Version = version; TotalMoney = totalMoney; TotalTaxMoney = totalTaxMoney; TotalDiscountMoney = totalDiscountMoney; TotalTipMoney = totalTipMoney; TotalServiceChargeMoney = totalServiceChargeMoney; PricingOptions = pricingOptions; Rewards = rewards; }
public Builder Source(Models.OrderSource value) { source = value; return(this); }
/// <summary> /// Source. /// </summary> /// <param name="source"> source. </param> /// <returns> Builder. </returns> public Builder Source(Models.OrderSource source) { this.source = source; return(this); }