/// <summary>
 /// Initializes a new instance of the <see cref="DetectedCatalogColumn" /> class.
 /// </summary>
 /// <param name="Ignored">IF true, the product values of this column will be not taken in account during the importation process (default to false).</param>
 /// <param name="DuplicateProductValueConfiguration">DuplicateProductValueConfiguration.</param>
 /// <param name="Id">Id (required).</param>
 /// <param name="CatalogColumnName">CatalogColumnName (required).</param>
 /// <param name="UserColumName">UserColumName (required).</param>
 /// <param name="Configuration">Configuration (required).</param>
 /// <param name="ColumnId">ColumnId (required).</param>
 /// <param name="Detected">Indicates if the column is detected or is from the current catalog (required).</param>
 /// <param name="ExistingConfiguration">ExistingConfiguration.</param>
 public DetectedCatalogColumn(bool?Ignored = false, DuplicateProductValueConfiguration DuplicateProductValueConfiguration = default(DuplicateProductValueConfiguration), ColumnId Id = default(ColumnId), CatalogColumnName CatalogColumnName = default(CatalogColumnName), UserColumName UserColumName = default(UserColumName), ColumnConfiguration Configuration = default(ColumnConfiguration), ColumnId ColumnId = default(ColumnId), bool?Detected = default(bool?), ExistingCatalogColumnConfiguration ExistingConfiguration = default(ExistingCatalogColumnConfiguration))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for DetectedCatalogColumn and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "CatalogColumnName" is required (not null)
     if (CatalogColumnName == null)
     {
         throw new InvalidDataException("CatalogColumnName is a required property for DetectedCatalogColumn and cannot be null");
     }
     else
     {
         this.CatalogColumnName = CatalogColumnName;
     }
     // to ensure "UserColumName" is required (not null)
     if (UserColumName == null)
     {
         throw new InvalidDataException("UserColumName is a required property for DetectedCatalogColumn and cannot be null");
     }
     else
     {
         this.UserColumName = UserColumName;
     }
     // to ensure "Configuration" is required (not null)
     if (Configuration == null)
     {
         throw new InvalidDataException("Configuration is a required property for DetectedCatalogColumn and cannot be null");
     }
     else
     {
         this.Configuration = Configuration;
     }
     // to ensure "ColumnId" is required (not null)
     if (ColumnId == null)
     {
         throw new InvalidDataException("ColumnId is a required property for DetectedCatalogColumn and cannot be null");
     }
     else
     {
         this.ColumnId = ColumnId;
     }
     // to ensure "Detected" is required (not null)
     if (Detected == null)
     {
         throw new InvalidDataException("Detected is a required property for DetectedCatalogColumn and cannot be null");
     }
     else
     {
         this.Detected = Detected;
     }
     // use default value if no "Ignored" provided
     if (Ignored == null)
     {
         this.Ignored = false;
     }
     else
     {
         this.Ignored = Ignored;
     }
     this.DuplicateProductValueConfiguration = DuplicateProductValueConfiguration;
     this.ExistingConfiguration = ExistingConfiguration;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExistingCatalogColumnConfiguration" /> class.
 /// </summary>
 /// <param name="UserColumName">UserColumName (required).</param>
 /// <param name="Configuration">Configuration (required).</param>
 public ExistingCatalogColumnConfiguration(UserColumName UserColumName = default(UserColumName), ColumnConfiguration Configuration = default(ColumnConfiguration))
 {
     // to ensure "UserColumName" is required (not null)
     if (UserColumName == null)
     {
         throw new InvalidDataException("UserColumName is a required property for ExistingCatalogColumnConfiguration and cannot be null");
     }
     else
     {
         this.UserColumName = UserColumName;
     }
     // to ensure "Configuration" is required (not null)
     if (Configuration == null)
     {
         throw new InvalidDataException("Configuration is a required property for ExistingCatalogColumnConfiguration and cannot be null");
     }
     else
     {
         this.Configuration = Configuration;
     }
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomColumn" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="UserColumName">UserColumName (required).</param>
 /// <param name="Configuration">Configuration (required).</param>
 public CustomColumn(ColumnId Id = default(ColumnId), UserColumName UserColumName = default(UserColumName), ColumnConfiguration Configuration = default(ColumnConfiguration))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for CustomColumn and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "UserColumName" is required (not null)
     if (UserColumName == null)
     {
         throw new InvalidDataException("UserColumName is a required property for CustomColumn and cannot be null");
     }
     else
     {
         this.UserColumName = UserColumName;
     }
     // to ensure "Configuration" is required (not null)
     if (Configuration == null)
     {
         throw new InvalidDataException("Configuration is a required property for CustomColumn and cannot be null");
     }
     else
     {
         this.Configuration = Configuration;
     }
 }