2using System.Collections.Generic;
3using System.Runtime.Serialization;
42 [DataMember(Order = 1)]
44 public double?
delay {
get;
set; }
49 [DataMember(Order = 2)]
60 public Payment(
double delayInDays,
double amountAsFraction)
66 #region Equality Overrides
72 delay.Equals(other.delay) &&
73 amount.Equals(other.amount);
78 public override bool Equals(
object obj) =>
87 #endregion Equality Overrides
90 #region Public Properties
94 [DataMember(Order = 20)]
96 public List<Payment>
payments {
get;
set; } =
new List<Payment>();
97 #endregion Public Properties
Base class used by all types and resources.
Describes a single payment, which consists of a delay and fracational amount.
double? delay
The payment delay (in days since the original occurrence date-time).
bool Equals(Payment other)
Determine if this Payment is equivalent to another.
override int GetHashCode()
Get the HashCode for this Payment.
Payment()
Instantiate a default Payment instance.
override bool Equals(object obj)
Determine if this Payment is equivalent to another.
Payment(double delayInDays, double amountAsFraction)
Instantiate a new Payment with the specified delay and amount.
double? amount
The payment amount (as a fraction of the original loss amount).
A "delayed payment" payment pattern models claims being paid in instalments at fixed delays after the...
List< Payment > payments
A list of payments to be generated for each occurrence. Each payment is described by a fractional Pay...
Abstract representation of a layer. This resource type cannot be instantiated instead derived resourc...