/// <summary> /// Initializes a new instance of the <see cref="TransactionConfigurationTypeAlias" /> class. /// </summary> /// <param name="type">The transaction type (required).</param> /// <param name="description">Brief description of the transaction (required).</param> /// <param name="transactionClass">Relates types of a similar class. E.g. Buy/Sell, StockIn/StockOut (required).</param> /// <param name="transactionGroup">Group is a set of codes related to a source, or sync (required).</param> /// <param name="transactionRoles">. The available values are: None, LongLonger, LongShorter, ShortShorter, Shorter, ShortLonger, Longer, AllRoles (required).</param> public TransactionConfigurationTypeAlias(string type = default(string), string description = default(string), string transactionClass = default(string), string transactionGroup = default(string), TransactionRolesEnum transactionRoles = default(TransactionRolesEnum)) { // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for TransactionConfigurationTypeAlias and cannot be null"); } else { this.Type = type; } // to ensure "description" is required (not null) if (description == null) { throw new InvalidDataException("description is a required property for TransactionConfigurationTypeAlias and cannot be null"); } else { this.Description = description; } // to ensure "transactionClass" is required (not null) if (transactionClass == null) { throw new InvalidDataException("transactionClass is a required property for TransactionConfigurationTypeAlias and cannot be null"); } else { this.TransactionClass = transactionClass; } // to ensure "transactionGroup" is required (not null) if (transactionGroup == null) { throw new InvalidDataException("transactionGroup is a required property for TransactionConfigurationTypeAlias and cannot be null"); } else { this.TransactionGroup = transactionGroup; } // to ensure "transactionRoles" is required (not null) if (transactionRoles == null) { throw new InvalidDataException("transactionRoles is a required property for TransactionConfigurationTypeAlias and cannot be null"); } else { this.TransactionRoles = transactionRoles; } }
/// <summary> /// Initializes a new instance of the <see cref="TransactionConfigurationTypeAlias" /> class. /// </summary> /// <param name="type">The transaction type (required).</param> /// <param name="description">Brief description of the transaction (required).</param> /// <param name="transactionClass">Relates types of a similar class. E.g. Buy/Sell, StockIn/StockOut (required).</param> /// <param name="transactionGroup">Group is a set of codes related to a source, or sync. DEPRECATED: This field will be removed, use `Source` instead.</param> /// <param name="source">Used to group a set of transaction types.</param> /// <param name="transactionRoles">. The available values are: None, LongLonger, LongShorter, ShortShorter, Shorter, ShortLonger, Longer, AllRoles (required).</param> /// <param name="isDefault">IsDefault is a flag that denotes the default alias for a source. There can only be, at most, one per source..</param> public TransactionConfigurationTypeAlias(string type = default(string), string description = default(string), string transactionClass = default(string), string transactionGroup = default(string), string source = default(string), TransactionRolesEnum transactionRoles = default(TransactionRolesEnum), bool isDefault = default(bool)) { // to ensure "type" is required (not null) this.Type = type ?? throw new ArgumentNullException("type is a required property for TransactionConfigurationTypeAlias and cannot be null"); // to ensure "description" is required (not null) this.Description = description ?? throw new ArgumentNullException("description is a required property for TransactionConfigurationTypeAlias and cannot be null"); // to ensure "transactionClass" is required (not null) this.TransactionClass = transactionClass ?? throw new ArgumentNullException("transactionClass is a required property for TransactionConfigurationTypeAlias and cannot be null"); this.TransactionRoles = transactionRoles; this.TransactionGroup = transactionGroup; this.Source = source; this.IsDefault = isDefault; }