/// <summary> /// Initializes a new instance of the <see cref="ValuationsReconciliationRequest" /> class. /// </summary> /// <param name="left">left (required).</param> /// <param name="right">right (required).</param> /// <param name="leftToRightMapping">The mapping from property keys requested by left aggregation to property keys on right hand side.</param> /// <param name="preserveKeys">List of keys to preserve (from rhs) in the diff. Used in conjunction with filtering/grouping.</param> public ValuationsReconciliationRequest(ValuationReconciliationRequest left = default(ValuationReconciliationRequest), ValuationReconciliationRequest right = default(ValuationReconciliationRequest), List <ReconciliationLeftRightAddressKeyPair> leftToRightMapping = default(List <ReconciliationLeftRightAddressKeyPair>), List <string> preserveKeys = default(List <string>)) { // to ensure "left" is required (not null) if (left == null) { throw new InvalidDataException("left is a required property for ValuationsReconciliationRequest and cannot be null"); } else { this.Left = left; } // to ensure "right" is required (not null) if (right == null) { throw new InvalidDataException("right is a required property for ValuationsReconciliationRequest and cannot be null"); } else { this.Right = right; } this.LeftToRightMapping = leftToRightMapping; this.PreserveKeys = preserveKeys; this.LeftToRightMapping = leftToRightMapping; this.PreserveKeys = preserveKeys; }
/// <summary> /// Initializes a new instance of the <see cref="ValuationsReconciliationRequest" /> class. /// </summary> /// <param name="left">left (required).</param> /// <param name="right">right (required).</param> /// <param name="instrumentPropertyKeys">Instrument properties to be included with any identified breaks. These properties will be in the effective and AsAt dates of the left portfolio (required).</param> public ValuationsReconciliationRequest(ValuationReconciliationRequest left = default(ValuationReconciliationRequest), ValuationReconciliationRequest right = default(ValuationReconciliationRequest), List <string> instrumentPropertyKeys = default(List <string>)) { // to ensure "left" is required (not null) if (left == null) { throw new InvalidDataException("left is a required property for ValuationsReconciliationRequest and cannot be null"); } else { this.Left = left; } // to ensure "right" is required (not null) if (right == null) { throw new InvalidDataException("right is a required property for ValuationsReconciliationRequest and cannot be null"); } else { this.Right = right; } // to ensure "instrumentPropertyKeys" is required (not null) if (instrumentPropertyKeys == null) { throw new InvalidDataException("instrumentPropertyKeys is a required property for ValuationsReconciliationRequest and cannot be null"); } else { this.InstrumentPropertyKeys = instrumentPropertyKeys; } }