Esempio n. 1
0
 public Order(IReadOnlyList <OrderItem> orderItems, string buyerEmail, Address shipToAddress, DeliveryMethod deliveryMethod, decimal subtotal)
 {
     BuyerEmail     = buyerEmail;
     ShipToAddress  = shipToAddress;
     DeliveryMethod = deliveryMethod;
     OrderItems     = orderItems;
     Subtotal       = subtotal;
 }
Esempio n. 2
0
 public Order(IReadOnlyList <OrderItem> orderItems, string buyerEmail, Address shipToAddress, DeliveryMethod deliveryMethod, decimal subTotal, string paymentIntentId)
 {
     BuyerEmail      = buyerEmail;
     ShipToAddress   = shipToAddress;
     DeliveryMethod  = deliveryMethod;
     OrderItems      = orderItems;
     SubTotal        = subTotal;
     PaymentIntentId = paymentIntentId;
 }
Esempio n. 3
0
 public Order(string buyerEmail, DateTimeOffset orderDate, Address shipToAddress, DeliveryMethod deliveryMethod, IReadOnlyList <OrderItem> orderItems, decimal subTotal, OrderStatus status, string paymentIntentId)
 {
     BuyerEmail      = buyerEmail;
     OrderDate       = orderDate;
     ShipToAddress   = shipToAddress;
     DeliveryMethod  = deliveryMethod;
     OrderItems      = orderItems;
     SubTotal        = subTotal;
     Status          = status;
     PaymentIntentId = paymentIntentId;
 }
Esempio n. 4
0
        public Order(IReadOnlyList <OrderItem> orderItems, string buyerEmail, Address shipToAddress, DeliveryMethod deliveryMethod, decimal subtotal, string paymentIntentId)
        {
            BuyerEmail = buyerEmail;
//            OrderDate = orderDate;                                                              // is already being set inside our class
            ShipToAddress  = shipToAddress;
            DeliveryMethod = deliveryMethod;
            OrderItems     = orderItems;
            Subtotal       = subtotal;
//           Status = status;                                                                           // is already being set inside our class
//            PaymentIntentId = paymentIntentId;                                        // not required
            PaymentIntentId = paymentIntentId;                              // for payment adjustments -> OrderService.cs to include paymentIntentId
        }