Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductExtensionInterface" /> class.
 /// </summary>
 /// <param name="StockItem">StockItem.</param>
 /// <param name="BundleProductOptions">BundleProductOptions.</param>
 /// <param name="DownloadableProductLinks">DownloadableProductLinks.</param>
 /// <param name="DownloadableProductSamples">DownloadableProductSamples.</param>
 /// <param name="ConfigurableProductOptions">ConfigurableProductOptions.</param>
 /// <param name="ConfigurableProductLinks">ConfigurableProductLinks.</param>
 public ProductExtensionInterface(CatalogInventoryDataStockItemInterface StockItem = null, List <BundleDataOptionInterface> BundleProductOptions = null, List <DownloadableDataLinkInterface> DownloadableProductLinks = null, List <DownloadableDataSampleInterface> DownloadableProductSamples = null, List <ConfigurableProductDataOptionInterface> ConfigurableProductOptions = null, List <int?> ConfigurableProductLinks = null)
 {
     this.StockItem                  = StockItem;
     this.BundleProductOptions       = BundleProductOptions;
     this.DownloadableProductLinks   = DownloadableProductLinks;
     this.DownloadableProductSamples = DownloadableProductSamples;
     this.ConfigurableProductOptions = ConfigurableProductOptions;
     this.ConfigurableProductLinks   = ConfigurableProductLinks;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CatalogInventoryDataStockStatusInterface" /> class.
 /// </summary>
 /// <param name="ProductId">ProductId (required).</param>
 /// <param name="StockId">StockId (required).</param>
 /// <param name="Qty">Qty (required).</param>
 /// <param name="StockStatus">StockStatus (required).</param>
 /// <param name="StockItem">StockItem (required).</param>
 public CatalogInventoryDataStockStatusInterface(int?ProductId = null, int?StockId = null, int?Qty = null, int?StockStatus = null, CatalogInventoryDataStockItemInterface StockItem = null)
 {
     // to ensure "ProductId" is required (not null)
     if (ProductId == null)
     {
         throw new InvalidDataException("ProductId is a required property for CatalogInventoryDataStockStatusInterface and cannot be null");
     }
     else
     {
         this.ProductId = ProductId;
     }
     // to ensure "StockId" is required (not null)
     if (StockId == null)
     {
         throw new InvalidDataException("StockId is a required property for CatalogInventoryDataStockStatusInterface and cannot be null");
     }
     else
     {
         this.StockId = StockId;
     }
     // to ensure "Qty" is required (not null)
     if (Qty == null)
     {
         throw new InvalidDataException("Qty is a required property for CatalogInventoryDataStockStatusInterface and cannot be null");
     }
     else
     {
         this.Qty = Qty;
     }
     // to ensure "StockStatus" is required (not null)
     if (StockStatus == null)
     {
         throw new InvalidDataException("StockStatus is a required property for CatalogInventoryDataStockStatusInterface and cannot be null");
     }
     else
     {
         this.StockStatus = StockStatus;
     }
     // to ensure "StockItem" is required (not null)
     if (StockItem == null)
     {
         throw new InvalidDataException("StockItem is a required property for CatalogInventoryDataStockStatusInterface and cannot be null");
     }
     else
     {
         this.StockItem = StockItem;
     }
 }