예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CatalogColumn" /> 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>
 public CatalogColumn(bool?Ignored = false, DuplicateProductValueConfiguration DuplicateProductValueConfiguration = default(DuplicateProductValueConfiguration), ColumnId Id = default(ColumnId), CatalogColumnName CatalogColumnName = default(CatalogColumnName), 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 CatalogColumn 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 CatalogColumn 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 CatalogColumn 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 CatalogColumn and cannot be null");
     }
     else
     {
         this.Configuration = Configuration;
     }
     // use default value if no "Ignored" provided
     if (Ignored == null)
     {
         this.Ignored = false;
     }
     else
     {
         this.Ignored = Ignored;
     }
     this.DuplicateProductValueConfiguration = DuplicateProductValueConfiguration;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoImportConfiguration" /> class.
 /// </summary>
 /// <param name="Input">Input (required).</param>
 /// <param name="InputConfiguredByUserId">InputConfiguredByUserId (required).</param>
 /// <param name="SchedulingType">SchedulingType (required).</param>
 /// <param name="ScheduledByUserId">ScheduledByUserId.</param>
 /// <param name="SchedulingValue">Indicate the scheduling value. If the scheduling type is Interval then the value will be a duration otherwise the values will be the time. (required).</param>
 /// <param name="Paused">Indicate if the auto import is in pause or not. (required) (default to false).</param>
 /// <param name="PauseStatusChangedByUserId">PauseStatusChangedByUserId.</param>
 /// <param name="PauseStatusChangedUtcDate">Indicate when the pause status has changed in UTC date..</param>
 /// <param name="DuplicateProductConfiguration">DuplicateProductConfiguration (required).</param>
 /// <param name="SchedulingLocalTimeZoneName">Indicate the time zone name of the scheduling. If the scheduling type is \&quot;Schedule\&quot; (default to &quot;Romance Standard Time&quot;).</param>
 public AutoImportConfiguration(InputConfiguration Input = default(InputConfiguration), BeezUPCommonUserId InputConfiguredByUserId = default(BeezUPCommonUserId), SchedulingType SchedulingType = default(SchedulingType), BeezUPCommonUserId ScheduledByUserId = default(BeezUPCommonUserId), List <string> SchedulingValue = default(List <string>), bool?Paused = false, BeezUPCommonUserId PauseStatusChangedByUserId = default(BeezUPCommonUserId), DateTime?PauseStatusChangedUtcDate = default(DateTime?), DuplicateProductValueConfiguration DuplicateProductConfiguration = default(DuplicateProductValueConfiguration), string SchedulingLocalTimeZoneName = "Romance Standard Time")
 {
     // to ensure "Input" is required (not null)
     if (Input == null)
     {
         throw new InvalidDataException("Input is a required property for AutoImportConfiguration and cannot be null");
     }
     else
     {
         this.Input = Input;
     }
     // to ensure "InputConfiguredByUserId" is required (not null)
     if (InputConfiguredByUserId == null)
     {
         throw new InvalidDataException("InputConfiguredByUserId is a required property for AutoImportConfiguration and cannot be null");
     }
     else
     {
         this.InputConfiguredByUserId = InputConfiguredByUserId;
     }
     // to ensure "SchedulingType" is required (not null)
     if (SchedulingType == null)
     {
         throw new InvalidDataException("SchedulingType is a required property for AutoImportConfiguration and cannot be null");
     }
     else
     {
         this.SchedulingType = SchedulingType;
     }
     // to ensure "SchedulingValue" is required (not null)
     if (SchedulingValue == null)
     {
         throw new InvalidDataException("SchedulingValue is a required property for AutoImportConfiguration and cannot be null");
     }
     else
     {
         this.SchedulingValue = SchedulingValue;
     }
     // to ensure "Paused" is required (not null)
     if (Paused == null)
     {
         throw new InvalidDataException("Paused is a required property for AutoImportConfiguration and cannot be null");
     }
     else
     {
         this.Paused = Paused;
     }
     // to ensure "DuplicateProductConfiguration" is required (not null)
     if (DuplicateProductConfiguration == null)
     {
         throw new InvalidDataException("DuplicateProductConfiguration is a required property for AutoImportConfiguration and cannot be null");
     }
     else
     {
         this.DuplicateProductConfiguration = DuplicateProductConfiguration;
     }
     this.ScheduledByUserId          = ScheduledByUserId;
     this.PauseStatusChangedByUserId = PauseStatusChangedByUserId;
     this.PauseStatusChangedUtcDate  = PauseStatusChangedUtcDate;
     // use default value if no "SchedulingLocalTimeZoneName" provided
     if (SchedulingLocalTimeZoneName == null)
     {
         this.SchedulingLocalTimeZoneName = "Romance Standard Time";
     }
     else
     {
         this.SchedulingLocalTimeZoneName = SchedulingLocalTimeZoneName;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StartManualImportRequest" /> class.
 /// </summary>
 /// <param name="Input">Input (required).</param>
 /// <param name="DuplicateProductSkuConfiguration">DuplicateProductSkuConfiguration.</param>
 public StartManualImportRequest(InputConfiguration Input = default(InputConfiguration), DuplicateProductValueConfiguration DuplicateProductSkuConfiguration = default(DuplicateProductValueConfiguration))
 {
     // to ensure "Input" is required (not null)
     if (Input == null)
     {
         throw new InvalidDataException("Input is a required property for StartManualImportRequest and cannot be null");
     }
     else
     {
         this.Input = Input;
     }
     this.DuplicateProductSkuConfiguration = DuplicateProductSkuConfiguration;
 }