/// <summary>
        /// Initializes a new instance of the <see cref="TransactionConfigurationMovementDataRequest" /> class.
        /// </summary>
        /// <param name="movementTypes">The Movement Types (required).</param>
        /// <param name="side">The Movement Side (required).</param>
        /// <param name="direction">The Movement direction (required).</param>
        /// <param name="properties">properties.</param>
        /// <param name="mappings">mappings.</param>
        public TransactionConfigurationMovementDataRequest(MovementTypesEnum movementTypes = default(MovementTypesEnum), SideEnum side = default(SideEnum), int?direction = default(int?), Dictionary <string, PerpetualProperty> properties = default(Dictionary <string, PerpetualProperty>), List <TransactionPropertyMappingRequest> mappings = default(List <TransactionPropertyMappingRequest>))
        {
            // to ensure "movementTypes" is required (not null)
            if (movementTypes == null)
            {
                throw new InvalidDataException("movementTypes is a required property for TransactionConfigurationMovementDataRequest and cannot be null");
            }
            else
            {
                this.MovementTypes = movementTypes;
            }

            // to ensure "side" is required (not null)
            if (side == null)
            {
                throw new InvalidDataException("side is a required property for TransactionConfigurationMovementDataRequest and cannot be null");
            }
            else
            {
                this.Side = side;
            }

            // to ensure "direction" is required (not null)
            if (direction == null)
            {
                throw new InvalidDataException("direction is a required property for TransactionConfigurationMovementDataRequest and cannot be null");
            }
            else
            {
                this.Direction = direction;
            }

            this.Properties = properties;
            this.Mappings   = mappings;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionConfigurationMovementDataRequest" /> class.
 /// </summary>
 /// <param name="movementTypes">. The available values are: Settlement, Traded, StockMovement, FutureCash, Commitment, Receivable, CashSettlement, CashForward, CashCommitment, CashReceivable, Accrual, CashAccrual, ForwardFx, CashFxForward, UnsettledCashTypes, Carry, CarryAsPnl (required).</param>
 /// <param name="side">The movement side (required).</param>
 /// <param name="direction">The movement direction (required).</param>
 /// <param name="properties">The properties associated with the underlying Movement..</param>
 /// <param name="mappings">This allows you to map a transaction property to a property on the underlying holding..</param>
 /// <param name="name">The movement name (optional).</param>
 public TransactionConfigurationMovementDataRequest(MovementTypesEnum movementTypes = default(MovementTypesEnum), string side = default(string), int direction = default(int), Dictionary <string, PerpetualProperty> properties = default(Dictionary <string, PerpetualProperty>), List <TransactionPropertyMappingRequest> mappings = default(List <TransactionPropertyMappingRequest>), string name = default(string))
 {
     this.MovementTypes = movementTypes;
     // to ensure "side" is required (not null)
     this.Side       = side ?? throw new ArgumentNullException("side is a required property for TransactionConfigurationMovementDataRequest and cannot be null");
     this.Direction  = direction;
     this.Properties = properties;
     this.Mappings   = mappings;
     this.Name       = name;
 }