コード例 #1
0
ファイル: PaymentOffer.cs プロジェクト: pmcgrath/esinv
 public PaymentOffer(
     decimal exchangeRateIncludingMargin,
     Money paymentValue)
 {
     this.ExchangeRateIncludingMargin = exchangeRateIncludingMargin;
     this.PaymentValue = paymentValue;
 }
コード例 #2
0
ファイル: MakeOrderPayment.cs プロジェクト: pmcgrath/esinv
 public MakeOrderPayment(
     Guid id,
     Guid orderId,
     Money value)
 {
     this.Id = id;
     this.OrderId = orderId;
     this.Value = value;
 }
コード例 #3
0
ファイル: OrderPaymentMade.cs プロジェクト: pmcgrath/esinv
 public OrderPaymentMade(
     Guid id,
     Money value,
     DateTimeOffset timestamp)
 {
     this.Id = id;
     this.Value = value;
     this.Timestamp = timestamp;
 }
コード例 #4
0
ファイル: MakeOrderRefund.cs プロジェクト: pmcgrath/esinv
 public MakeOrderRefund(
     Guid id,
     Guid orderId,
     Money value)
 {
     this.Id = id;
     this.OrderId = orderId;
     this.Value = value;
 }
コード例 #5
0
ファイル: CreateOrder.cs プロジェクト: pmcgrath/esinv
 public CreateOrder(
     Guid id,
     string merchantIdentifier,
     ulong cardNumber,
     Money saleValue)
 {
     this.Id = id;
     this.MerchantIdentifier = merchantIdentifier;
     this.CardNumber = cardNumber;
     this.SaleValue = saleValue;
 }
コード例 #6
0
ファイル: OrderCreated.cs プロジェクト: pmcgrath/esinv
 public OrderCreated(
     Guid id,
     Guid orderId,
     int merchantId,
     Money saleValue,
     IEnumerable<PaymentOffer> offers,
     DateTimeOffset timestamp)
 {
     this.Id = id;
     this.OrderId = orderId;
     this.MerchantId = merchantId;
     this.SaleValue = saleValue;
     this.Offers = offers;
     this.Timestamp = timestamp;
 }