Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Charge" /> class.
 /// </summary>
 /// <param name="period">period.</param>
 /// <param name="amount">amount (required).</param>
 /// <param name="type">type (required).</param>
 public Charge(LocalDatePeriod period = default(LocalDatePeriod), LoanStreet.LoanServicing.Money amount = default(LoanStreet.LoanServicing.Money), string type = default(string))
 {
     // to ensure "amount" is required (not null)
     this.Amount = amount ?? throw new ArgumentNullException("amount is a required property for Charge and cannot be null");;
     // to ensure "type" is required (not null)
     this.Type   = type ?? throw new ArgumentNullException("type is a required property for Charge and cannot be null");;
     this.Period = period;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InterestCharge" /> class.
 /// </summary>
 /// <param name="period">period.</param>
 /// <param name="amount">amount (required).</param>
 /// <param name="type">type (required).</param>
 public InterestCharge(LocalDatePeriod period = default(LocalDatePeriod), LoanStreet.LoanServicing.Money amount = default(LoanStreet.LoanServicing.Money), string type = default(string)) : base(period, amount, type)
 {
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Invoice" /> class.
 /// </summary>
 /// <param name="date">date.</param>
 /// <param name="period">period.</param>
 public Invoice(DateTime date = default(DateTime), LocalDatePeriod period = default(LocalDatePeriod))
 {
     this.Date   = date;
     this.Period = period;
 }