コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelCatalogCategoryMappingInfo" /> class.
 /// </summary>
 /// <param name="CatalogCategoryPath">CatalogCategoryPath (required).</param>
 /// <param name="ChannelCategoryPath">ChannelCategoryPath (required).</param>
 /// <param name="CostValue">In case of CPC_ByCategory or CPA_ByCategory cost type, you have to indicate the cost value..</param>
 /// <param name="Links">Links (required).</param>
 public ChannelCatalogCategoryMappingInfo(BeezUPCommonCatalogCategoryPath CatalogCategoryPath = default(BeezUPCommonCatalogCategoryPath), BeezUPCommonChannelCategoryPath ChannelCategoryPath = default(BeezUPCommonChannelCategoryPath), decimal?CostValue = default(decimal?), List <BeezUPCommonLink2> Links = default(List <BeezUPCommonLink2>))
 {
     // to ensure "CatalogCategoryPath" is required (not null)
     if (CatalogCategoryPath == null)
     {
         throw new InvalidDataException("CatalogCategoryPath is a required property for ChannelCatalogCategoryMappingInfo and cannot be null");
     }
     else
     {
         this.CatalogCategoryPath = CatalogCategoryPath;
     }
     // to ensure "ChannelCategoryPath" is required (not null)
     if (ChannelCategoryPath == null)
     {
         throw new InvalidDataException("ChannelCategoryPath is a required property for ChannelCatalogCategoryMappingInfo and cannot be null");
     }
     else
     {
         this.ChannelCategoryPath = ChannelCategoryPath;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for ChannelCatalogCategoryMappingInfo and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     this.CostValue = CostValue;
 }
コード例 #2
0
        /// <summary>
        /// Returns true if BeezUPCommonCatalogCategoryPath instances are equal
        /// </summary>
        /// <param name="other">Instance of BeezUPCommonCatalogCategoryPath to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BeezUPCommonCatalogCategoryPath other)
        {
            // credit: http://stackoverflow.com/a/10454552/677735
            if (other == null)
            {
                return(false);
            }

            return(false);
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnmapCategoryRequest" /> class.
 /// </summary>
 /// <param name="CatalogCategoryPath">CatalogCategoryPath (required).</param>
 public UnmapCategoryRequest(BeezUPCommonCatalogCategoryPath CatalogCategoryPath = default(BeezUPCommonCatalogCategoryPath))
 {
     // to ensure "CatalogCategoryPath" is required (not null)
     if (CatalogCategoryPath == null)
     {
         throw new InvalidDataException("CatalogCategoryPath is a required property for UnmapCategoryRequest and cannot be null");
     }
     else
     {
         this.CatalogCategoryPath = CatalogCategoryPath;
     }
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetProductsRequest" /> class.
 /// </summary>
 /// <param name="Sku">Search for products containing this SKU (merchant product dentifier)..</param>
 /// <param name="Title">Search for products containing this title.</param>
 /// <param name="CategoryPath">CategoryPath.</param>
 public GetProductsRequest(string Sku = default(string), string Title = default(string), BeezUPCommonCatalogCategoryPath CategoryPath = default(BeezUPCommonCatalogCategoryPath))
 {
     this.Sku          = Sku;
     this.Title        = Title;
     this.CategoryPath = CategoryPath;
 }
コード例 #5
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;
 }
コード例 #6
0
ファイル: Category.cs プロジェクト: BeezUP/api-csharp-client
 /// <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;
     }
 }