Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SetMerchantOrderInfoListRequest" /> class.
 /// </summary>
 /// <param name="OrderMerchantECommerceSoftwareName">OrderMerchantECommerceSoftwareName.</param>
 /// <param name="OrderMerchantECommerceSoftwareVersion">OrderMerchantECommerceSoftwareVersion.</param>
 /// <param name="Orders">Orders (required).</param>
 public SetMerchantOrderInfoListRequest(OrderMerchantECommerceSoftwareName OrderMerchantECommerceSoftwareName = default(OrderMerchantECommerceSoftwareName), OrderMerchantECommerceSoftwareVersion OrderMerchantECommerceSoftwareVersion = default(OrderMerchantECommerceSoftwareVersion), List <SetMerchantOrderInfoListRequestItem> Orders = default(List <SetMerchantOrderInfoListRequestItem>))
 {
     // to ensure "Orders" is required (not null)
     if (Orders == null)
     {
         throw new InvalidDataException("Orders is a required property for SetMerchantOrderInfoListRequest and cannot be null");
     }
     else
     {
         this.Orders = Orders;
     }
     this.OrderMerchantECommerceSoftwareName    = OrderMerchantECommerceSoftwareName;
     this.OrderMerchantECommerceSoftwareVersion = OrderMerchantECommerceSoftwareVersion;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderHeader" /> class.
 /// </summary>
 /// <param name="MarketplaceTechnicalCode">MarketplaceTechnicalCode (required).</param>
 /// <param name="AccountId">AccountId (required).</param>
 /// <param name="BeezUPOrderId">BeezUPOrderId (required).</param>
 /// <param name="BeezUPOrderUrl">BeezUPOrderUrl.</param>
 /// <param name="MarketplaceBusinessCode">MarketplaceBusinessCode (required).</param>
 /// <param name="OrderMarketplaceOrderId">OrderMarketplaceOrderId (required).</param>
 /// <param name="OrderStatusBeezUPOrderStatus">OrderStatusBeezUPOrderStatus (required).</param>
 /// <param name="OrderStatusMarketplaceOrderStatus">OrderStatusMarketplaceOrderStatus.</param>
 /// <param name="OrderMerchantOrderId">OrderMerchantOrderId.</param>
 /// <param name="OrderMerchantECommerceSoftwareName">OrderMerchantECommerceSoftwareName.</param>
 /// <param name="OrderMerchantECommerceSoftwareVersion">OrderMerchantECommerceSoftwareVersion.</param>
 /// <param name="OrderPurchaseUtcDate">The purchase date of this order (required).</param>
 /// <param name="OrderLastModificationUtcDate">The last modification UTC date done by BeezUP of this order (required).</param>
 /// <param name="OrderMarketplaceLastModificationUtcDate">The last modification UTC date done by the marketplace on this order (required).</param>
 /// <param name="OrderBuyerName">OrderBuyerName.</param>
 /// <param name="OrderTotalPrice">The total price of this order (corresponding to the amount paid by the customer).</param>
 /// <param name="OrderCurrencyCode">OrderCurrencyCode.</param>
 /// <param name="Processing">Processing (required).</param>
 /// <param name="Etag">Etag (required).</param>
 /// <param name="Links">Links (required).</param>
 public OrderHeader(BeezUPCommonMarketplaceTechnicalCode MarketplaceTechnicalCode = default(BeezUPCommonMarketplaceTechnicalCode), AccountId AccountId = default(AccountId), BeezUPOrderId BeezUPOrderId = default(BeezUPOrderId), BeezUPCommonHttpUrl BeezUPOrderUrl = default(BeezUPCommonHttpUrl), BeezUPCommonMarketplaceBusinessCode MarketplaceBusinessCode = default(BeezUPCommonMarketplaceBusinessCode), MarketplaceOrderId OrderMarketplaceOrderId = default(MarketplaceOrderId), BeezUPOrderStatus OrderStatusBeezUPOrderStatus = default(BeezUPOrderStatus), MarketplaceOrderStatus OrderStatusMarketplaceOrderStatus = default(MarketplaceOrderStatus), OrderMerchantOrderId OrderMerchantOrderId = default(OrderMerchantOrderId), OrderMerchantECommerceSoftwareName OrderMerchantECommerceSoftwareName = default(OrderMerchantECommerceSoftwareName), OrderMerchantECommerceSoftwareVersion OrderMerchantECommerceSoftwareVersion = default(OrderMerchantECommerceSoftwareVersion), DateTime?OrderPurchaseUtcDate = default(DateTime?), DateTime?OrderLastModificationUtcDate = default(DateTime?), DateTime?OrderMarketplaceLastModificationUtcDate = default(DateTime?), OrderBuyerName OrderBuyerName = default(OrderBuyerName), decimal?OrderTotalPrice = default(decimal?), BeezUPCommonCurrencyCode OrderCurrencyCode = default(BeezUPCommonCurrencyCode), Processing Processing = default(Processing), Etag Etag = default(Etag), OrderHeaderLinks Links = default(OrderHeaderLinks))
 {
     // to ensure "MarketplaceTechnicalCode" is required (not null)
     if (MarketplaceTechnicalCode == null)
     {
         throw new InvalidDataException("MarketplaceTechnicalCode is a required property for OrderHeader 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 OrderHeader and cannot be null");
     }
     else
     {
         this.AccountId = AccountId;
     }
     // to ensure "BeezUPOrderId" is required (not null)
     if (BeezUPOrderId == null)
     {
         throw new InvalidDataException("BeezUPOrderId is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.BeezUPOrderId = BeezUPOrderId;
     }
     // to ensure "MarketplaceBusinessCode" is required (not null)
     if (MarketplaceBusinessCode == null)
     {
         throw new InvalidDataException("MarketplaceBusinessCode is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.MarketplaceBusinessCode = MarketplaceBusinessCode;
     }
     // to ensure "OrderMarketplaceOrderId" is required (not null)
     if (OrderMarketplaceOrderId == null)
     {
         throw new InvalidDataException("OrderMarketplaceOrderId is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderMarketplaceOrderId = OrderMarketplaceOrderId;
     }
     // to ensure "OrderStatusBeezUPOrderStatus" is required (not null)
     if (OrderStatusBeezUPOrderStatus == null)
     {
         throw new InvalidDataException("OrderStatusBeezUPOrderStatus is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderStatusBeezUPOrderStatus = OrderStatusBeezUPOrderStatus;
     }
     // to ensure "OrderPurchaseUtcDate" is required (not null)
     if (OrderPurchaseUtcDate == null)
     {
         throw new InvalidDataException("OrderPurchaseUtcDate is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderPurchaseUtcDate = OrderPurchaseUtcDate;
     }
     // to ensure "OrderLastModificationUtcDate" is required (not null)
     if (OrderLastModificationUtcDate == null)
     {
         throw new InvalidDataException("OrderLastModificationUtcDate is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderLastModificationUtcDate = OrderLastModificationUtcDate;
     }
     // to ensure "OrderMarketplaceLastModificationUtcDate" is required (not null)
     if (OrderMarketplaceLastModificationUtcDate == null)
     {
         throw new InvalidDataException("OrderMarketplaceLastModificationUtcDate is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderMarketplaceLastModificationUtcDate = OrderMarketplaceLastModificationUtcDate;
     }
     // to ensure "Processing" is required (not null)
     if (Processing == null)
     {
         throw new InvalidDataException("Processing is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.Processing = Processing;
     }
     // to ensure "Etag" is required (not null)
     if (Etag == null)
     {
         throw new InvalidDataException("Etag is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.Etag = Etag;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     this.BeezUPOrderUrl = BeezUPOrderUrl;
     this.OrderStatusMarketplaceOrderStatus = OrderStatusMarketplaceOrderStatus;
     this.OrderMerchantOrderId = OrderMerchantOrderId;
     this.OrderMerchantECommerceSoftwareName    = OrderMerchantECommerceSoftwareName;
     this.OrderMerchantECommerceSoftwareVersion = OrderMerchantECommerceSoftwareVersion;
     this.OrderBuyerName    = OrderBuyerName;
     this.OrderTotalPrice   = OrderTotalPrice;
     this.OrderCurrencyCode = OrderCurrencyCode;
 }