Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Category" /> class.
 /// </summary>
 /// <param name="CategoryId">CategoryId (required).</param>
 /// <param name="CategoryPath">CategoryPath (required).</param>
 public Category(BeezUPCommonCatalogCategoryId CategoryId = default(BeezUPCommonCatalogCategoryId), BeezUPCommonCatalogCategoryPath CategoryPath = default(BeezUPCommonCatalogCategoryPath))
 {
     // to ensure "CategoryId" is required (not null)
     if (CategoryId == null)
     {
         throw new InvalidDataException("CategoryId is a required property for Category and cannot be null");
     }
     else
     {
         this.CategoryId = CategoryId;
     }
     // to ensure "CategoryPath" is required (not null)
     if (CategoryPath == null)
     {
         throw new InvalidDataException("CategoryPath is a required property for Category and cannot be null");
     }
     else
     {
         this.CategoryPath = CategoryPath;
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportByCategory" /> class.
 /// </summary>
 /// <param name="CatalogCategoryId">CatalogCategoryId (required).</param>
 /// <param name="CatalogCategoryPath">CatalogCategoryPath.</param>
 /// <param name="EnabledProductCount">The enabled product count for this category (required).</param>
 /// <param name="CatalogProductCount">The catalog product count related to this category (required).</param>
 /// <param name="ClickCount">The click count for this category (required).</param>
 /// <param name="Cost">The cost for this category (required).</param>
 /// <param name="OrderCount">The order count for this category (required).</param>
 /// <param name="TurnOver">The Turnover for this category (required).</param>
 /// <param name="Margin">The margin for this category (required).</param>
 /// <param name="PerformanceIndicator">The performance indicator based on the performance indicator formula indicated in the request for this category (required).</param>
 /// <param name="Links">Links.</param>
 public ReportByCategory(BeezUPCommonCatalogCategoryId CatalogCategoryId = default(BeezUPCommonCatalogCategoryId), BeezUPCommonCatalogCategoryPath CatalogCategoryPath = default(BeezUPCommonCatalogCategoryPath), int?EnabledProductCount = default(int?), int?CatalogProductCount = default(int?), int?ClickCount = default(int?), decimal?Cost = default(decimal?), int?OrderCount = default(int?), decimal?TurnOver = default(decimal?), decimal?Margin = default(decimal?), decimal?PerformanceIndicator = default(decimal?), ReportByCategoryLinks Links = default(ReportByCategoryLinks))
 {
     // to ensure "CatalogCategoryId" is required (not null)
     if (CatalogCategoryId == null)
     {
         throw new InvalidDataException("CatalogCategoryId is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.CatalogCategoryId = CatalogCategoryId;
     }
     // to ensure "EnabledProductCount" is required (not null)
     if (EnabledProductCount == null)
     {
         throw new InvalidDataException("EnabledProductCount is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.EnabledProductCount = EnabledProductCount;
     }
     // to ensure "CatalogProductCount" is required (not null)
     if (CatalogProductCount == null)
     {
         throw new InvalidDataException("CatalogProductCount is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.CatalogProductCount = CatalogProductCount;
     }
     // to ensure "ClickCount" is required (not null)
     if (ClickCount == null)
     {
         throw new InvalidDataException("ClickCount is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.ClickCount = ClickCount;
     }
     // to ensure "Cost" is required (not null)
     if (Cost == null)
     {
         throw new InvalidDataException("Cost is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.Cost = Cost;
     }
     // to ensure "OrderCount" is required (not null)
     if (OrderCount == null)
     {
         throw new InvalidDataException("OrderCount is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.OrderCount = OrderCount;
     }
     // to ensure "TurnOver" is required (not null)
     if (TurnOver == null)
     {
         throw new InvalidDataException("TurnOver is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.TurnOver = TurnOver;
     }
     // to ensure "Margin" is required (not null)
     if (Margin == null)
     {
         throw new InvalidDataException("Margin is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.Margin = Margin;
     }
     // to ensure "PerformanceIndicator" is required (not null)
     if (PerformanceIndicator == null)
     {
         throw new InvalidDataException("PerformanceIndicator is a required property for ReportByCategory and cannot be null");
     }
     else
     {
         this.PerformanceIndicator = PerformanceIndicator;
     }
     this.CatalogCategoryPath = CatalogCategoryPath;
     this.Links = Links;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Product" /> class.
 /// </summary>
 /// <param name="ProductId">ProductId.</param>
 /// <param name="CategoryId">CategoryId.</param>
 /// <param name="Values">Values.</param>
 public Product(BeezUPCommonProductId ProductId = default(BeezUPCommonProductId), BeezUPCommonCatalogCategoryId CategoryId = default(BeezUPCommonCatalogCategoryId), ProductValues Values = default(ProductValues))
 {
     this.ProductId  = ProductId;
     this.CategoryId = CategoryId;
     this.Values     = Values;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportByDayRequest" /> class.
 /// </summary>
 /// <param name="ChannelIds">Indicate the channel identifier list.</param>
 /// <param name="ProductId">ProductId.</param>
 /// <param name="CatalogCategoryId">CatalogCategoryId.</param>
 /// <param name="BeginPeriodUtcDate">The begin date period you want to get the report (required).</param>
 /// <param name="EndPeriodUtcDate">The end date period you want to get the report. (required).</param>
 /// <param name="AdvancedFilters">AdvancedFilters.</param>
 public ReportByDayRequest(List <BeezUPCommonChannelId> ChannelIds = default(List <BeezUPCommonChannelId>), BeezUPCommonProductId ProductId = default(BeezUPCommonProductId), BeezUPCommonCatalogCategoryId CatalogCategoryId = default(BeezUPCommonCatalogCategoryId), DateTime?BeginPeriodUtcDate = default(DateTime?), DateTime?EndPeriodUtcDate = default(DateTime?), ReportAdvancedFilters AdvancedFilters = default(ReportAdvancedFilters))
 {
     // to ensure "BeginPeriodUtcDate" is required (not null)
     if (BeginPeriodUtcDate == null)
     {
         throw new InvalidDataException("BeginPeriodUtcDate is a required property for ReportByDayRequest and cannot be null");
     }
     else
     {
         this.BeginPeriodUtcDate = BeginPeriodUtcDate;
     }
     // to ensure "EndPeriodUtcDate" is required (not null)
     if (EndPeriodUtcDate == null)
     {
         throw new InvalidDataException("EndPeriodUtcDate is a required property for ReportByDayRequest and cannot be null");
     }
     else
     {
         this.EndPeriodUtcDate = EndPeriodUtcDate;
     }
     this.ChannelIds        = ChannelIds;
     this.ProductId         = ProductId;
     this.CatalogCategoryId = CatalogCategoryId;
     this.AdvancedFilters   = AdvancedFilters;
 }