/// <summary> /// Initializes a new instance of the <see cref="TrackedClick" /> class. /// </summary> /// <param name="UtcDate">The utc date of the click (required).</param> /// <param name="Product">Product (required).</param> /// <param name="IpAddress">The user's IP address related to this click (required).</param> /// <param name="Channel">Channel (required).</param> public TrackedClick(DateTime?UtcDate = default(DateTime?), BeezUPCommonProductBasicInfo Product = default(BeezUPCommonProductBasicInfo), string IpAddress = default(string), BeezUPCommonChannelBasicInfo Channel = default(BeezUPCommonChannelBasicInfo)) { // to ensure "UtcDate" is required (not null) if (UtcDate == null) { throw new InvalidDataException("UtcDate is a required property for TrackedClick and cannot be null"); } else { this.UtcDate = UtcDate; } // to ensure "Product" is required (not null) if (Product == null) { throw new InvalidDataException("Product is a required property for TrackedClick and cannot be null"); } else { this.Product = Product; } // to ensure "IpAddress" is required (not null) if (IpAddress == null) { throw new InvalidDataException("IpAddress is a required property for TrackedClick and cannot be null"); } else { this.IpAddress = IpAddress; } // to ensure "Channel" is required (not null) if (Channel == null) { throw new InvalidDataException("Channel is a required property for TrackedClick and cannot be null"); } else { this.Channel = Channel; } }
/// <summary> /// Initializes a new instance of the <see cref="ReportByProduct" /> class. /// </summary> /// <param name="Product">Product (required).</param> /// <param name="EnabledOnChannelCount">The count of channel where this product is enabled (required).</param> /// <param name="ChannelCount">The channel count where this product can be enabled (required).</param> /// <param name="ClickCount">The click count for this product (required).</param> /// <param name="Cost">The cost for this product (required).</param> /// <param name="OrderCount">The order count for this product (required).</param> /// <param name="TurnOver">The Turnover for this product (required).</param> /// <param name="Margin">The margin for this product (required).</param> /// <param name="PerformanceIndicator">The performance indicator based on the performance indicator formula indicated in the request for this product (required).</param> /// <param name="Links">Links (required).</param> public ReportByProduct(BeezUPCommonProductBasicInfo Product = default(BeezUPCommonProductBasicInfo), int?EnabledOnChannelCount = default(int?), int?ChannelCount = 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?), ReportByProductLinks Links = default(ReportByProductLinks)) { // to ensure "Product" is required (not null) if (Product == null) { throw new InvalidDataException("Product is a required property for ReportByProduct and cannot be null"); } else { this.Product = Product; } // to ensure "EnabledOnChannelCount" is required (not null) if (EnabledOnChannelCount == null) { throw new InvalidDataException("EnabledOnChannelCount is a required property for ReportByProduct and cannot be null"); } else { this.EnabledOnChannelCount = EnabledOnChannelCount; } // to ensure "ChannelCount" is required (not null) if (ChannelCount == null) { throw new InvalidDataException("ChannelCount is a required property for ReportByProduct and cannot be null"); } else { this.ChannelCount = ChannelCount; } // to ensure "ClickCount" is required (not null) if (ClickCount == null) { throw new InvalidDataException("ClickCount is a required property for ReportByProduct 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 ReportByProduct 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 ReportByProduct 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 ReportByProduct 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 ReportByProduct 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 ReportByProduct and cannot be null"); } else { this.PerformanceIndicator = PerformanceIndicator; } // to ensure "Links" is required (not null) if (Links == null) { throw new InvalidDataException("Links is a required property for ReportByProduct and cannot be null"); } else { this.Links = Links; } }