/// <summary> /// Initializes a new instance of the <see cref="ChannelFirstLevelCategory" /> class. /// </summary> /// <param name="ChannelCategoryId">ChannelCategoryId (required).</param> /// <param name="ChannelCategoryName">The channel category name (required).</param> /// <param name="ChannelCategoryLevel">ChannelCategoryLevel (required).</param> /// <param name="ChannelCategoryDefaultCost">ChannelCategoryDefaultCost.</param> /// <param name="ChannelCategoryChannelCode">ChannelCategoryChannelCode.</param> /// <param name="ChannelCategoryColumnOverrides">ChannelCategoryColumnOverrides.</param> /// <param name="SubCategories">SubCategories.</param> public ChannelFirstLevelCategory(BeezUPCommonChannelCategoryId ChannelCategoryId = default(BeezUPCommonChannelCategoryId), string ChannelCategoryName = default(string), ChannelCategoryLevel ChannelCategoryLevel = default(ChannelCategoryLevel), ChannelCategoryDefaultCost ChannelCategoryDefaultCost = default(ChannelCategoryDefaultCost), ChannelCategoryChannelCode ChannelCategoryChannelCode = default(ChannelCategoryChannelCode), ChannelCategoryColumnOverrides ChannelCategoryColumnOverrides = default(ChannelCategoryColumnOverrides), List <ChannelCategory> SubCategories = default(List <ChannelCategory>)) { // to ensure "ChannelCategoryId" is required (not null) if (ChannelCategoryId == null) { throw new InvalidDataException("ChannelCategoryId is a required property for ChannelFirstLevelCategory and cannot be null"); } else { this.ChannelCategoryId = ChannelCategoryId; } // to ensure "ChannelCategoryName" is required (not null) if (ChannelCategoryName == null) { throw new InvalidDataException("ChannelCategoryName is a required property for ChannelFirstLevelCategory and cannot be null"); } else { this.ChannelCategoryName = ChannelCategoryName; } // to ensure "ChannelCategoryLevel" is required (not null) if (ChannelCategoryLevel == null) { throw new InvalidDataException("ChannelCategoryLevel is a required property for ChannelFirstLevelCategory and cannot be null"); } else { this.ChannelCategoryLevel = ChannelCategoryLevel; } this.ChannelCategoryDefaultCost = ChannelCategoryDefaultCost; this.ChannelCategoryChannelCode = ChannelCategoryChannelCode; this.ChannelCategoryColumnOverrides = ChannelCategoryColumnOverrides; this.SubCategories = SubCategories; }
/// <summary> /// Initializes a new instance of the <see cref="ChannelCategory" /> class. /// </summary> /// <param name="ChannelCategoryId">ChannelCategoryId (required).</param> /// <param name="ChannelCategoryPath">ChannelCategoryPath (required).</param> /// <param name="ChannelCategoryLevel">ChannelCategoryLevel (required).</param> /// <param name="ChannelCategoryDefaultCost">ChannelCategoryDefaultCost.</param> /// <param name="ChannelCategoryChannelCode">ChannelCategoryChannelCode.</param> /// <param name="ChannelCategoryColumnOverrides">ChannelCategoryColumnOverrides.</param> public ChannelCategory(BeezUPCommonChannelCategoryId ChannelCategoryId = default(BeezUPCommonChannelCategoryId), BeezUPCommonChannelCategoryPath ChannelCategoryPath = default(BeezUPCommonChannelCategoryPath), ChannelCategoryLevel ChannelCategoryLevel = default(ChannelCategoryLevel), ChannelCategoryDefaultCost ChannelCategoryDefaultCost = default(ChannelCategoryDefaultCost), ChannelCategoryChannelCode ChannelCategoryChannelCode = default(ChannelCategoryChannelCode), ChannelCategoryColumnOverrides ChannelCategoryColumnOverrides = default(ChannelCategoryColumnOverrides)) { // to ensure "ChannelCategoryId" is required (not null) if (ChannelCategoryId == null) { throw new InvalidDataException("ChannelCategoryId is a required property for ChannelCategory and cannot be null"); } else { this.ChannelCategoryId = ChannelCategoryId; } // to ensure "ChannelCategoryPath" is required (not null) if (ChannelCategoryPath == null) { throw new InvalidDataException("ChannelCategoryPath is a required property for ChannelCategory and cannot be null"); } else { this.ChannelCategoryPath = ChannelCategoryPath; } // to ensure "ChannelCategoryLevel" is required (not null) if (ChannelCategoryLevel == null) { throw new InvalidDataException("ChannelCategoryLevel is a required property for ChannelCategory and cannot be null"); } else { this.ChannelCategoryLevel = ChannelCategoryLevel; } this.ChannelCategoryDefaultCost = ChannelCategoryDefaultCost; this.ChannelCategoryChannelCode = ChannelCategoryChannelCode; this.ChannelCategoryColumnOverrides = ChannelCategoryColumnOverrides; }