/// <summary>
 /// Initializes a new instance of the <see cref="AutomaticTransitionInfo" /> class.
 /// </summary>
 /// <param name="MarketplaceTechnicalCode">MarketplaceTechnicalCode (required).</param>
 /// <param name="AccountId">AccountId (required).</param>
 /// <param name="OrderStatusTransitionId">OrderStatusTransitionId (required).</param>
 /// <param name="Enabled">Enabled (required).</param>
 /// <param name="MarketplaceBusinessCode">MarketplaceBusinessCode (required).</param>
 /// <param name="BeezUPOrderStatus">BeezUPOrderStatus (required).</param>
 /// <param name="BusinessOperationType">BusinessOperationType (required).</param>
 /// <param name="Links">Links.</param>
 public AutomaticTransitionInfo(BeezUPCommonMarketplaceTechnicalCode MarketplaceTechnicalCode = default(BeezUPCommonMarketplaceTechnicalCode), AccountId AccountId = default(AccountId), int?OrderStatusTransitionId = default(int?), bool?Enabled = default(bool?), BeezUPCommonMarketplaceBusinessCode MarketplaceBusinessCode = default(BeezUPCommonMarketplaceBusinessCode), BeezUPOrderStatus BeezUPOrderStatus = default(BeezUPOrderStatus), BusinessOperationType BusinessOperationType = default(BusinessOperationType), AutomaticTransitionInfoLinks Links = default(AutomaticTransitionInfoLinks))
 {
     // to ensure "MarketplaceTechnicalCode" is required (not null)
     if (MarketplaceTechnicalCode == null)
     {
         throw new InvalidDataException("MarketplaceTechnicalCode is a required property for AutomaticTransitionInfo and cannot be null");
     }
     else
     {
         this.MarketplaceTechnicalCode = MarketplaceTechnicalCode;
     }
     // to ensure "AccountId" is required (not null)
     if (AccountId == null)
     {
         throw new InvalidDataException("AccountId is a required property for AutomaticTransitionInfo and cannot be null");
     }
     else
     {
         this.AccountId = AccountId;
     }
     // to ensure "OrderStatusTransitionId" is required (not null)
     if (OrderStatusTransitionId == null)
     {
         throw new InvalidDataException("OrderStatusTransitionId is a required property for AutomaticTransitionInfo and cannot be null");
     }
     else
     {
         this.OrderStatusTransitionId = OrderStatusTransitionId;
     }
     // to ensure "Enabled" is required (not null)
     if (Enabled == null)
     {
         throw new InvalidDataException("Enabled is a required property for AutomaticTransitionInfo and cannot be null");
     }
     else
     {
         this.Enabled = Enabled;
     }
     // to ensure "MarketplaceBusinessCode" is required (not null)
     if (MarketplaceBusinessCode == null)
     {
         throw new InvalidDataException("MarketplaceBusinessCode is a required property for AutomaticTransitionInfo and cannot be null");
     }
     else
     {
         this.MarketplaceBusinessCode = MarketplaceBusinessCode;
     }
     // to ensure "BeezUPOrderStatus" is required (not null)
     if (BeezUPOrderStatus == null)
     {
         throw new InvalidDataException("BeezUPOrderStatus is a required property for AutomaticTransitionInfo and cannot be null");
     }
     else
     {
         this.BeezUPOrderStatus = BeezUPOrderStatus;
     }
     // to ensure "BusinessOperationType" is required (not null)
     if (BusinessOperationType == null)
     {
         throw new InvalidDataException("BusinessOperationType is a required property for AutomaticTransitionInfo and cannot be null");
     }
     else
     {
         this.BusinessOperationType = BusinessOperationType;
     }
     this.Links = Links;
 }
Exemple #2
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;
 }