Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Order"/> class.
 /// </summary>
 /// <param name="errors">errors.</param>
 /// <param name="id">id.</param>
 /// <param name="buyerEmail">buyer_email.</param>
 /// <param name="recipientName">recipient_name.</param>
 /// <param name="recipientPhoneNumber">recipient_phone_number.</param>
 /// <param name="state">state.</param>
 /// <param name="shippingAddress">shipping_address.</param>
 /// <param name="subtotalMoney">subtotal_money.</param>
 /// <param name="totalShippingMoney">total_shipping_money.</param>
 /// <param name="totalTaxMoney">total_tax_money.</param>
 /// <param name="totalPriceMoney">total_price_money.</param>
 /// <param name="totalDiscountMoney">total_discount_money.</param>
 /// <param name="createdAt">created_at.</param>
 /// <param name="updatedAt">updated_at.</param>
 /// <param name="expiresAt">expires_at.</param>
 /// <param name="paymentId">payment_id.</param>
 /// <param name="buyerNote">buyer_note.</param>
 /// <param name="completedNote">completed_note.</param>
 /// <param name="refundedNote">refunded_note.</param>
 /// <param name="canceledNote">canceled_note.</param>
 /// <param name="tender">tender.</param>
 /// <param name="orderHistory">order_history.</param>
 /// <param name="promoCode">promo_code.</param>
 /// <param name="btcReceiveAddress">btc_receive_address.</param>
 /// <param name="btcPriceSatoshi">btc_price_satoshi.</param>
 public V1Order(
     IList <Models.Error> errors = null,
     string id                         = null,
     string buyerEmail                 = null,
     string recipientName              = null,
     string recipientPhoneNumber       = null,
     string state                      = null,
     Models.Address shippingAddress    = null,
     Models.V1Money subtotalMoney      = null,
     Models.V1Money totalShippingMoney = null,
     Models.V1Money totalTaxMoney      = null,
     Models.V1Money totalPriceMoney    = null,
     Models.V1Money totalDiscountMoney = null,
     string createdAt                  = null,
     string updatedAt                  = null,
     string expiresAt                  = null,
     string paymentId                  = null,
     string buyerNote                  = null,
     string completedNote              = null,
     string refundedNote               = null,
     string canceledNote               = null,
     Models.V1Tender tender            = null,
     IList <Models.V1OrderHistoryEntry> orderHistory = null,
     string promoCode         = null,
     string btcReceiveAddress = null,
     double?btcPriceSatoshi   = null)
 {
     this.Errors               = errors;
     this.Id                   = id;
     this.BuyerEmail           = buyerEmail;
     this.RecipientName        = recipientName;
     this.RecipientPhoneNumber = recipientPhoneNumber;
     this.State                = state;
     this.ShippingAddress      = shippingAddress;
     this.SubtotalMoney        = subtotalMoney;
     this.TotalShippingMoney   = totalShippingMoney;
     this.TotalTaxMoney        = totalTaxMoney;
     this.TotalPriceMoney      = totalPriceMoney;
     this.TotalDiscountMoney   = totalDiscountMoney;
     this.CreatedAt            = createdAt;
     this.UpdatedAt            = updatedAt;
     this.ExpiresAt            = expiresAt;
     this.PaymentId            = paymentId;
     this.BuyerNote            = buyerNote;
     this.CompletedNote        = completedNote;
     this.RefundedNote         = refundedNote;
     this.CanceledNote         = canceledNote;
     this.Tender               = tender;
     this.OrderHistory         = orderHistory;
     this.PromoCode            = promoCode;
     this.BtcReceiveAddress    = btcReceiveAddress;
     this.BtcPriceSatoshi      = btcPriceSatoshi;
 }
Ejemplo n.º 2
0
 public Builder Tender(Models.V1Tender value)
 {
     tender = value;
     return(this);
 }
Ejemplo n.º 3
0
 public Builder Tender(Models.V1Tender tender)
 {
     this.tender = tender;
     return(this);
 }