2using System.Runtime.Serialization;
10 #region Interface Implementation
28 #endregion Interface Implementation
30 #region Public Properties
32 [DataMember(Order = 20)]
35 [GreaterThan(Double.MinValue,
true)]
36 [
PropertyAlias(
new[] {
"limit",
"occurrence limit",
"occ limit",
"event limit" })]
42 [DataMember(Order = 21)]
44 [GreaterThan(0,
true)]
45 [
PropertyAlias(
new[] {
"attachment",
"retention",
"deductible" })]
50 [DataMember(Order = 22)]
51 [GreaterThan(0,
true)]
58 [DataMember(Name =
"participation")]
59 private double? server_set_participation {
get;
set; }
73 if (server_set_participation.HasValue)
74 return server_set_participation.Value;
81 throw new NotSupportedException(
"Participation cannot be computed client-side " +
82 "because the sums_insured and retained_line have different currencies. " +
83 "Please POST this resource to receive the server-computed participation.");
102 set =>
throw new NotSupportedException(
"SurplusShare participation is automatically " +
103 "determined via the sums_insured, retained_line, and number_of_lines properties.");
105 #endregion participation
106 #endregion Public Properties
Specifies one or more aliases to be used as synonyms for the property's name.
Specifies that a property is generated by the server and should not be specified on the client side d...
Abstract representation of a layer. This resource type cannot be instantiated instead derived resourc...
Representation of a Surplus Share contract.
MonetaryUnit sums_insured
The maximum amount to be covered by the Surplus Share per event occurrence.
double computed_participation
The calculated participation based on the sum insured.
override double participation
The calculated participation based on the sum insured. This inherited property has had its setter ove...
MonetaryUnit retained_line
The amount (of the sums_insured) that the primary or cedant will retain on a pro-rated basis....
double number_of_lines
The multiplier on the retained_line that determines the maximum amount of risk the reinsurer can take...
Representation of a monetary value with a currency.
string currency
3-letter currency code based on ISO 4217 (see: https://en.wikipedia.org/wiki/ISO_4217)
double value
The value of the monetary unit.
Abstract representation of a layer that has occurrence terms.