/// <summary> /// Initializes a new instance of the <see cref="GetIndexConventionResponse" /> class. /// </summary> /// <param name="href">The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime..</param> /// <param name="value">value.</param> /// <param name="failed">The identifiers which did not resolve to a conventions along with the nature of the failure..</param> /// <param name="links">links.</param> public GetIndexConventionResponse(string href = default(string), IndexConvention value = default(IndexConvention), Dictionary <string, ErrorDetail> failed = default(Dictionary <string, ErrorDetail>), List <Link> links = default(List <Link>)) { this.Href = href; this.Failed = failed; this.Links = links; this.Href = href; this.Value = value; this.Failed = failed; this.Links = links; }
/// <summary> /// Initializes a new instance of the <see cref="LegDefinition" /> class. /// </summary> /// <param name="rateOrSpread">Is there either a fixed rate (non-zero) or spread to be paid over the value of the leg..</param> /// <param name="indexConvention">indexConvention.</param> /// <param name="stubType">The available values are: Front, Back, Both (required).</param> /// <param name="payReceive">The available values are: NotDefined, Pay, Receive (required).</param> /// <param name="notionalExchangeType">The available values are: None, Initial, Final, Both (required).</param> /// <param name="conventions">conventions (required).</param> public LegDefinition(decimal?rateOrSpread = default(decimal?), IndexConvention indexConvention = default(IndexConvention), StubTypeEnum stubType = default(StubTypeEnum), PayReceiveEnum payReceive = default(PayReceiveEnum), NotionalExchangeTypeEnum notionalExchangeType = default(NotionalExchangeTypeEnum), FlowConventions conventions = default(FlowConventions)) { // to ensure "stubType" is required (not null) if (stubType == null) { throw new InvalidDataException("stubType is a required property for LegDefinition and cannot be null"); } else { this.StubType = stubType; } // to ensure "payReceive" is required (not null) if (payReceive == null) { throw new InvalidDataException("payReceive is a required property for LegDefinition and cannot be null"); } else { this.PayReceive = payReceive; } // to ensure "notionalExchangeType" is required (not null) if (notionalExchangeType == null) { throw new InvalidDataException("notionalExchangeType is a required property for LegDefinition and cannot be null"); } else { this.NotionalExchangeType = notionalExchangeType; } // to ensure "conventions" is required (not null) if (conventions == null) { throw new InvalidDataException("conventions is a required property for LegDefinition and cannot be null"); } else { this.Conventions = conventions; } this.RateOrSpread = rateOrSpread; this.IndexConvention = indexConvention; }
/// <summary> /// Initializes a new instance of the <see cref="LegDefinition" /> class. /// </summary> /// <param name="conventionName">conventionName.</param> /// <param name="conventions">conventions.</param> /// <param name="indexConvention">indexConvention.</param> /// <param name="indexConventionName">indexConventionName.</param> /// <param name="notionalExchangeType">what type of notional exchange does the leg have Supported string (enumeration) values are: [None, Initial, Final, Both]. (required).</param> /// <param name="payReceive">Is the leg to be paid or received Supported string (enumeration) values are: [NotDefined, Pay, Receive]. (required).</param> /// <param name="rateOrSpread">Is there either a fixed rate (non-zero) or spread to be paid over the value of the leg. (required).</param> /// <param name="resetConvention">Control how resets are generated relative to swap payment convention(s). Supported string (enumeration) values are: [InAdvance, InArrears]..</param> /// <param name="stubType">If a stub is required should it be at the front or back of the leg. Supported string (enumeration) values are: [Front, Back, Both]. (required).</param> public LegDefinition(FlowConventionName conventionName = default(FlowConventionName), FlowConventions conventions = default(FlowConventions), IndexConvention indexConvention = default(IndexConvention), FlowConventionName indexConventionName = default(FlowConventionName), string notionalExchangeType = default(string), string payReceive = default(string), decimal?rateOrSpread = default(decimal?), string resetConvention = default(string), string stubType = default(string)) { // to ensure "notionalExchangeType" is required (not null) if (notionalExchangeType == null) { throw new InvalidDataException("notionalExchangeType is a required property for LegDefinition and cannot be null"); } else { this.NotionalExchangeType = notionalExchangeType; } // to ensure "payReceive" is required (not null) if (payReceive == null) { throw new InvalidDataException("payReceive is a required property for LegDefinition and cannot be null"); } else { this.PayReceive = payReceive; } // to ensure "rateOrSpread" is required (not null) if (rateOrSpread == null) { throw new InvalidDataException("rateOrSpread is a required property for LegDefinition and cannot be null"); } else { this.RateOrSpread = rateOrSpread; } this.ResetConvention = resetConvention; // to ensure "stubType" is required (not null) if (stubType == null) { throw new InvalidDataException("stubType is a required property for LegDefinition and cannot be null"); } else { this.StubType = stubType; } this.ConventionName = conventionName; this.Conventions = conventions; this.IndexConvention = indexConvention; this.IndexConventionName = indexConventionName; this.ResetConvention = resetConvention; }
/// <summary> /// Initializes a new instance of the <see cref="UpsertIndexConventionRequest" /> class. /// </summary> /// <param name="indexConvention">indexConvention.</param> public UpsertIndexConventionRequest(IndexConvention indexConvention = default(IndexConvention)) { this.IndexConvention = indexConvention; }