コード例 #1
0
 public override Money On(Timestamp time) =>
 time.CompareTo(this.ValidBefore) >= 0
         ? Amount.Zero(base.Currency)
         : this;
コード例 #2
0
 public int CompareTo(Timestamp other) =>
 this.UtcTime.CompareTo(other.UtcTime);
コード例 #3
0
 public int CompareTo(Timestamp other) =>
 - other.CompareTo(this.Value);
コード例 #4
0
 public override Money On(Timestamp time) =>
 this;
コード例 #5
0
 public Money PayableAt(Money money, Amount expense, Timestamp time) =>
 money is GiftCard gift && gift.ValidBefore.CompareTo(time) < 0 ? Amount.Zero(expense.Currency)
コード例 #6
0
 public (Amount paid, Wallet remaining) Pay(Amount expense, Timestamp time) =>
 this.Moneys
コード例 #7
0
 public BankCard CardOn(Timestamp time) =>
 time.CompareTo(this.ValidBefore) >= 0
         ? (BankCard) new CardExpired(this.ValidBefore)
         : this;
コード例 #8
0
 public override Money On(Timestamp time) =>
 this.CardOn(time);