コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImportationMonitoring" /> class.
 /// </summary>
 /// <param name="UserId">UserId.</param>
 /// <param name="Success">Indicates if the importation was successfully completed or not (required).</param>
 /// <param name="ExecutionId">ExecutionId (required).</param>
 /// <param name="LastUpdateUtcDate">The last update of the reporting (required).</param>
 /// <param name="BeginUtcDate">The start date of the importation (required).</param>
 /// <param name="Errors">In case of error a description will be indicated.</param>
 /// <param name="Steps">Contains all steps of the importation process with a boolean. If true the step has been passed, false the step is not complete (required).</param>
 public ImportationMonitoring(BeezUPCommonUserId UserId = default(BeezUPCommonUserId), bool?Success = default(bool?), ExecutionId ExecutionId = default(ExecutionId), DateTime?LastUpdateUtcDate = default(DateTime?), DateTime?BeginUtcDate = default(DateTime?), List <BeezUPCommonUserErrorMessage> Errors = default(List <BeezUPCommonUserErrorMessage>), Dictionary <string, bool?> Steps = default(Dictionary <string, bool?>))
 {
     // to ensure "Success" is required (not null)
     if (Success == null)
     {
         throw new InvalidDataException("Success is a required property for ImportationMonitoring and cannot be null");
     }
     else
     {
         this.Success = Success;
     }
     // to ensure "ExecutionId" is required (not null)
     if (ExecutionId == null)
     {
         throw new InvalidDataException("ExecutionId is a required property for ImportationMonitoring and cannot be null");
     }
     else
     {
         this.ExecutionId = ExecutionId;
     }
     // to ensure "LastUpdateUtcDate" is required (not null)
     if (LastUpdateUtcDate == null)
     {
         throw new InvalidDataException("LastUpdateUtcDate is a required property for ImportationMonitoring and cannot be null");
     }
     else
     {
         this.LastUpdateUtcDate = LastUpdateUtcDate;
     }
     // to ensure "BeginUtcDate" is required (not null)
     if (BeginUtcDate == null)
     {
         throw new InvalidDataException("BeginUtcDate is a required property for ImportationMonitoring and cannot be null");
     }
     else
     {
         this.BeginUtcDate = BeginUtcDate;
     }
     // to ensure "Steps" is required (not null)
     if (Steps == null)
     {
         throw new InvalidDataException("Steps is a required property for ImportationMonitoring and cannot be null");
     }
     else
     {
         this.Steps = Steps;
     }
     this.UserId = UserId;
     this.Errors = Errors;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImportationReporting" /> class.
 /// </summary>
 /// <param name="StepName">The last step name of the importation process.</param>
 /// <param name="UserId">UserId.</param>
 /// <param name="Success">Indicate if the importation succeed or not..</param>
 /// <param name="TotalProductCount">Indicate the total product count detected in the catalog during the importation..</param>
 /// <param name="TotalProductErrorCount">Indicate the total product count in error detected in the catalog during the importation..</param>
 /// <param name="TotalProductSuccessCount">Indicate the total product count in success in the catalog during the importation..</param>
 /// <param name="Errors">Indicate the error message list related to this importation..</param>
 /// <param name="LastUpdateUtcDate">Indicate the last update UTC date of the reporting. (required).</param>
 /// <param name="AutoImported">Indicate if this importation is an auto import or not..</param>
 /// <param name="BeginUtcDate">Indicate the begin UTC date of this importation. (required).</param>
 /// <param name="EndUtcDate">Indicate the end UTC date of this importation..</param>
 /// <param name="InputConfigurationUrl">Indicate the input url of this importation..</param>
 /// <param name="Steps">Indicate the steps that have been passed during the importation process (required).</param>
 public ImportationReporting(string StepName = default(string), BeezUPCommonUserId UserId = default(BeezUPCommonUserId), bool?Success = default(bool?), int?TotalProductCount = default(int?), int?TotalProductErrorCount = default(int?), int?TotalProductSuccessCount = default(int?), List <BeezUPCommonUserErrorMessage> Errors = default(List <BeezUPCommonUserErrorMessage>), DateTime?LastUpdateUtcDate = default(DateTime?), bool?AutoImported = default(bool?), DateTime?BeginUtcDate = default(DateTime?), DateTime?EndUtcDate = default(DateTime?), string InputConfigurationUrl = default(string), Dictionary <string, bool?> Steps = default(Dictionary <string, bool?>))
 {
     // to ensure "LastUpdateUtcDate" is required (not null)
     if (LastUpdateUtcDate == null)
     {
         throw new InvalidDataException("LastUpdateUtcDate is a required property for ImportationReporting and cannot be null");
     }
     else
     {
         this.LastUpdateUtcDate = LastUpdateUtcDate;
     }
     // to ensure "BeginUtcDate" is required (not null)
     if (BeginUtcDate == null)
     {
         throw new InvalidDataException("BeginUtcDate is a required property for ImportationReporting and cannot be null");
     }
     else
     {
         this.BeginUtcDate = BeginUtcDate;
     }
     // to ensure "Steps" is required (not null)
     if (Steps == null)
     {
         throw new InvalidDataException("Steps is a required property for ImportationReporting and cannot be null");
     }
     else
     {
         this.Steps = Steps;
     }
     this.StepName                 = StepName;
     this.UserId                   = UserId;
     this.Success                  = Success;
     this.TotalProductCount        = TotalProductCount;
     this.TotalProductErrorCount   = TotalProductErrorCount;
     this.TotalProductSuccessCount = TotalProductSuccessCount;
     this.Errors                   = Errors;
     this.AutoImported             = AutoImported;
     this.EndUtcDate               = EndUtcDate;
     this.InputConfigurationUrl    = InputConfigurationUrl;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StoreShare" /> class.
 /// </summary>
 /// <param name="UserId">UserId (required).</param>
 /// <param name="UserRole">UserRole (required).</param>
 /// <param name="Links">Links.</param>
 public StoreShare(BeezUPCommonUserId UserId = default(BeezUPCommonUserId), StoreUserRole UserRole = default(StoreUserRole), StoreShareLinks Links = default(StoreShareLinks))
 {
     // to ensure "UserId" is required (not null)
     if (UserId == null)
     {
         throw new InvalidDataException("UserId is a required property for StoreShare and cannot be null");
     }
     else
     {
         this.UserId = UserId;
     }
     // to ensure "UserRole" is required (not null)
     if (UserRole == null)
     {
         throw new InvalidDataException("UserRole is a required property for StoreShare and cannot be null");
     }
     else
     {
         this.UserRole = UserRole;
     }
     this.Links = Links;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountInfo" /> class.
 /// </summary>
 /// <param name="UserId">UserId (required).</param>
 /// <param name="Email">Email (required).</param>
 /// <param name="PersonalInfo">PersonalInfo (required).</param>
 /// <param name="Status">Status (required).</param>
 /// <param name="CompanyInfo">CompanyInfo (required).</param>
 /// <param name="ProfilePictureUrl">ProfilePictureUrl (required).</param>
 /// <param name="Links">Links (required).</param>
 /// <param name="Info">Info.</param>
 public AccountInfo(BeezUPCommonUserId UserId = default(BeezUPCommonUserId), BeezUPCommonEmail Email = default(BeezUPCommonEmail), PersonalInfo PersonalInfo = default(PersonalInfo), AccountStatus Status = default(AccountStatus), CompanyInfo CompanyInfo = default(CompanyInfo), ProfilePictureUrl ProfilePictureUrl = default(ProfilePictureUrl), AccountInfoLinks Links = default(AccountInfoLinks), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries))
 {
     // to ensure "UserId" is required (not null)
     if (UserId == null)
     {
         throw new InvalidDataException("UserId is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.UserId = UserId;
     }
     // to ensure "Email" is required (not null)
     if (Email == null)
     {
         throw new InvalidDataException("Email is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.Email = Email;
     }
     // to ensure "PersonalInfo" is required (not null)
     if (PersonalInfo == null)
     {
         throw new InvalidDataException("PersonalInfo is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.PersonalInfo = PersonalInfo;
     }
     // to ensure "Status" is required (not null)
     if (Status == null)
     {
         throw new InvalidDataException("Status is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.Status = Status;
     }
     // to ensure "CompanyInfo" is required (not null)
     if (CompanyInfo == null)
     {
         throw new InvalidDataException("CompanyInfo is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.CompanyInfo = CompanyInfo;
     }
     // to ensure "ProfilePictureUrl" is required (not null)
     if (ProfilePictureUrl == null)
     {
         throw new InvalidDataException("ProfilePictureUrl is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.ProfilePictureUrl = ProfilePictureUrl;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for AccountInfo and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     this.Info = Info;
 }
コード例 #5
0
 /// <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;
     }
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderExportationReporting" /> class.
 /// </summary>
 /// <param name="AbortionUtcDate">AbortionUtcDate.</param>
 /// <param name="BeginUtcDate">BeginUtcDate.</param>
 /// <param name="BlobNameUri">BlobNameUri.</param>
 /// <param name="EndUtcDate">EndUtcDate.</param>
 /// <param name="EnqueuedUtcDate">EnqueuedUtcDate (required).</param>
 /// <param name="ErrorMessage">ErrorMessage.</param>
 /// <param name="ExecutionUUID">ExecutionUUID (required).</param>
 /// <param name="ExpirationUtcDate">ExpirationUtcDate.</param>
 /// <param name="FailureUtcDate">FailureUtcDate.</param>
 /// <param name="IpAddress">IpAddress (required).</param>
 /// <param name="JsonCriteria">Raw representation of the JSON.</param>
 /// <param name="LastUpdateUtcDate">LastUpdateUtcDate.</param>
 /// <param name="OrderCount">OrderCount.</param>
 /// <param name="ProcessingStatus">ProcessingStatus (required).</param>
 /// <param name="RemainingOrderCount">RemainingOrderCount.</param>
 /// <param name="ResumedUtcDate">ResumedUtcDate.</param>
 /// <param name="SourceType">SourceType (required).</param>
 /// <param name="SourceUserId">SourceUserId.</param>
 /// <param name="SourceUserName">SourceUserName (required).</param>
 /// <param name="SuspendedUtcDate">SuspendedUtcDate.</param>
 /// <param name="TimeoutDuration">TimeoutDuration.</param>
 /// <param name="WarningMessage">WarningMessage.</param>
 public OrderExportationReporting(DateTime?AbortionUtcDate = default(DateTime?), DateTime?BeginUtcDate = default(DateTime?), string BlobNameUri = default(string), DateTime?EndUtcDate = default(DateTime?), DateTime?EnqueuedUtcDate = default(DateTime?), string ErrorMessage = default(string), Guid?ExecutionUUID = default(Guid?), DateTime?ExpirationUtcDate = default(DateTime?), DateTime?FailureUtcDate = default(DateTime?), string IpAddress = default(string), string JsonCriteria = default(string), DateTime?LastUpdateUtcDate = default(DateTime?), int?OrderCount = default(int?), OrderExportationReportingProcessingStatus ProcessingStatus = default(OrderExportationReportingProcessingStatus), int?RemainingOrderCount = default(int?), DateTime?ResumedUtcDate = default(DateTime?), SourceType SourceType = default(SourceType), BeezUPCommonUserId SourceUserId = default(BeezUPCommonUserId), string SourceUserName = default(string), DateTime?SuspendedUtcDate = default(DateTime?), string TimeoutDuration = default(string), string WarningMessage = default(string))
 {
     // to ensure "EnqueuedUtcDate" is required (not null)
     if (EnqueuedUtcDate == null)
     {
         throw new InvalidDataException("EnqueuedUtcDate is a required property for OrderExportationReporting and cannot be null");
     }
     else
     {
         this.EnqueuedUtcDate = EnqueuedUtcDate;
     }
     // to ensure "ExecutionUUID" is required (not null)
     if (ExecutionUUID == null)
     {
         throw new InvalidDataException("ExecutionUUID is a required property for OrderExportationReporting and cannot be null");
     }
     else
     {
         this.ExecutionUUID = ExecutionUUID;
     }
     // to ensure "IpAddress" is required (not null)
     if (IpAddress == null)
     {
         throw new InvalidDataException("IpAddress is a required property for OrderExportationReporting and cannot be null");
     }
     else
     {
         this.IpAddress = IpAddress;
     }
     // to ensure "ProcessingStatus" is required (not null)
     if (ProcessingStatus == null)
     {
         throw new InvalidDataException("ProcessingStatus is a required property for OrderExportationReporting and cannot be null");
     }
     else
     {
         this.ProcessingStatus = ProcessingStatus;
     }
     // to ensure "SourceType" is required (not null)
     if (SourceType == null)
     {
         throw new InvalidDataException("SourceType is a required property for OrderExportationReporting and cannot be null");
     }
     else
     {
         this.SourceType = SourceType;
     }
     // to ensure "SourceUserName" is required (not null)
     if (SourceUserName == null)
     {
         throw new InvalidDataException("SourceUserName is a required property for OrderExportationReporting and cannot be null");
     }
     else
     {
         this.SourceUserName = SourceUserName;
     }
     this.AbortionUtcDate     = AbortionUtcDate;
     this.BeginUtcDate        = BeginUtcDate;
     this.BlobNameUri         = BlobNameUri;
     this.EndUtcDate          = EndUtcDate;
     this.ErrorMessage        = ErrorMessage;
     this.ExpirationUtcDate   = ExpirationUtcDate;
     this.FailureUtcDate      = FailureUtcDate;
     this.JsonCriteria        = JsonCriteria;
     this.LastUpdateUtcDate   = LastUpdateUtcDate;
     this.OrderCount          = OrderCount;
     this.RemainingOrderCount = RemainingOrderCount;
     this.ResumedUtcDate      = ResumedUtcDate;
     this.SourceUserId        = SourceUserId;
     this.SuspendedUtcDate    = SuspendedUtcDate;
     this.TimeoutDuration     = TimeoutDuration;
     this.WarningMessage      = WarningMessage;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeOrderReporting" /> class.
 /// </summary>
 /// <param name="ExecutionUUID">ExecutionUUID.</param>
 /// <param name="ChangeOrderType">ChangeOrderType.</param>
 /// <param name="SourceType">SourceType.</param>
 /// <param name="SourceUserId">SourceUserId.</param>
 /// <param name="SourceUserName">SourceUserName.</param>
 /// <param name="CreationUtcDate">The creation UTC date of the execution.</param>
 /// <param name="ProcessingStatus">The processing status of the execution.</param>
 /// <param name="LastUpdateUtcDate">The last update UTC date of the execution.</param>
 /// <param name="ErrorMessage">The error message during the execution.</param>
 /// <param name="IpAddress">The IP address who request this operation.</param>
 /// <param name="TestMode">This operation was a test.</param>
 /// <param name="Details">Details.</param>
 public ChangeOrderReporting(ExecutionUUID ExecutionUUID = default(ExecutionUUID), BusinessOperationType ChangeOrderType = default(BusinessOperationType), SourceType SourceType = default(SourceType), BeezUPCommonUserId SourceUserId = default(BeezUPCommonUserId), string SourceUserName = default(string), DateTime?CreationUtcDate = default(DateTime?), string ProcessingStatus = default(string), DateTime?LastUpdateUtcDate = default(DateTime?), string ErrorMessage = default(string), string IpAddress = default(string), bool?TestMode = default(bool?), Dictionary <string, Object> Details = default(Dictionary <string, Object>))
 {
     this.ExecutionUUID     = ExecutionUUID;
     this.ChangeOrderType   = ChangeOrderType;
     this.SourceType        = SourceType;
     this.SourceUserId      = SourceUserId;
     this.SourceUserName    = SourceUserName;
     this.CreationUtcDate   = CreationUtcDate;
     this.ProcessingStatus  = ProcessingStatus;
     this.LastUpdateUtcDate = LastUpdateUtcDate;
     this.ErrorMessage      = ErrorMessage;
     this.IpAddress         = IpAddress;
     this.TestMode          = TestMode;
     this.Details           = Details;
 }