Ejemplo n.º 1
0
 public void ChangePaymentMethod(Buyer.Entities.PaymentMethod.State paymentMethod)
 {
     Apply <Events.PaymentMethodChanged>(x =>
     {
         x.OrderId         = Id;
         x.PaymentMethodId = paymentMethod.Id;
     });
 }
Ejemplo n.º 2
0
 public void Draft(Buyer.State buyer, Basket.Basket.State basket, Buyer.Entities.Address.State shipping, Buyer.Entities.Address.State billing, Buyer.Entities.PaymentMethod.State method)
 {
     Apply <Events.Drafted>(x =>
     {
         x.OrderId           = Id;
         x.UserName          = buyer.Id;
         x.BasketId          = basket.Id;
         x.ShippingAddressId = shipping.Id;
         x.BillingAddressId  = billing.Id;
         x.PaymentMethodId   = method.Id;
     });
 }