/// <summary> /// Initializes a new instance of the <see cref="InlineAggregationRequest" /> class. /// </summary> /// <param name="request">request (required).</param> /// <param name="instruments">The set of instruments, weighted by the quantities held that are required. It is identified by an identifier tag that can be used to identify it externally. For a single, unique trade or transaction this can be thought of as equivalent to the transaction identifier, or a composite of the sub-holding keys for a regular sub-holding. When there are multiple transactions sharing the same underlying instrument such as purchase of shares on multiple dates where tax implications are different this would not be the case. (required).</param> public InlineAggregationRequest(AggregationRequest request = default(AggregationRequest), List <WeightedInstrument> instruments = default(List <WeightedInstrument>)) { // to ensure "request" is required (not null) if (request == null) { throw new InvalidDataException("request is a required property for InlineAggregationRequest and cannot be null"); } else { this.Request = request; } // to ensure "instruments" is required (not null) if (instruments == null) { throw new InvalidDataException("instruments is a required property for InlineAggregationRequest and cannot be null"); } else { this.Instruments = instruments; } }
/// <summary> /// Initializes a new instance of the <see cref="ValuationReconciliationRequest" /> class. /// </summary> /// <param name="portfolioId">portfolioId (required).</param> /// <param name="aggregation">aggregation (required).</param> public ValuationReconciliationRequest(ResourceId portfolioId = default(ResourceId), AggregationRequest aggregation = default(AggregationRequest)) { // to ensure "portfolioId" is required (not null) if (portfolioId == null) { throw new InvalidDataException("portfolioId is a required property for ValuationReconciliationRequest and cannot be null"); } else { this.PortfolioId = portfolioId; } // to ensure "aggregation" is required (not null) if (aggregation == null) { throw new InvalidDataException("aggregation is a required property for ValuationReconciliationRequest and cannot be null"); } else { this.Aggregation = aggregation; } }