/// <summary> /// Initializes a new instance of the <see cref="GlobalPerformanceIndicatorByChannel" /> class. /// </summary> /// <param name="Channel">Channel (required).</param> /// <param name="GlobalPerformanceIndicator">Indicates the global performance indicator for this channel (required).</param> public GlobalPerformanceIndicatorByChannel(BeezUPCommonChannelBasicInfo Channel = default(BeezUPCommonChannelBasicInfo), decimal?GlobalPerformanceIndicator = default(decimal?)) { // to ensure "Channel" is required (not null) if (Channel == null) { throw new InvalidDataException("Channel is a required property for GlobalPerformanceIndicatorByChannel and cannot be null"); } else { this.Channel = Channel; } // to ensure "GlobalPerformanceIndicator" is required (not null) if (GlobalPerformanceIndicator == null) { throw new InvalidDataException("GlobalPerformanceIndicator is a required property for GlobalPerformanceIndicatorByChannel and cannot be null"); } else { this.GlobalPerformanceIndicator = GlobalPerformanceIndicator; } }
/// <summary> /// Initializes a new instance of the <see cref="ReportByDayByChannel" /> class. /// </summary> /// <param name="Channel">Channel (required).</param> /// <param name="ClickCount">The click count for this channel (required).</param> /// <param name="Cost">The cost for this channel (required).</param> /// <param name="OrderCount">The order count for this channel (required).</param> /// <param name="TurnOver">The Turnover for this channel (required).</param> /// <param name="Margin">The margin for this channel (required).</param> /// <param name="PerformanceIndicator">The performance indicator based on the performance indicator formula indicated in the request for this channel (required).</param> public ReportByDayByChannel(BeezUPCommonChannelBasicInfo Channel = default(BeezUPCommonChannelBasicInfo), int?ClickCount = default(int?), decimal?Cost = default(decimal?), int?OrderCount = default(int?), decimal?TurnOver = default(decimal?), decimal?Margin = default(decimal?), decimal?PerformanceIndicator = default(decimal?)) { // to ensure "Channel" is required (not null) if (Channel == null) { throw new InvalidDataException("Channel is a required property for ReportByDayByChannel and cannot be null"); } else { this.Channel = Channel; } // to ensure "ClickCount" is required (not null) if (ClickCount == null) { throw new InvalidDataException("ClickCount is a required property for ReportByDayByChannel 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 ReportByDayByChannel 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 ReportByDayByChannel 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 ReportByDayByChannel 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 ReportByDayByChannel 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 ReportByDayByChannel and cannot be null"); } else { this.PerformanceIndicator = PerformanceIndicator; } }
/// <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="TrackedOrder" /> class. /// </summary> /// <param name="UtcDate">The utc date of the order. (required).</param> /// <param name="Channel">Channel (required).</param> /// <param name="MerchantOrderId">The merchant order identifier (required).</param> /// <param name="TotalAmount">The total amount related to the order. (required).</param> /// <param name="CurrencyCode">CurrencyCode (required).</param> /// <param name="PaymentValidated">Indicate if the payment of this order has been validated or not. (required).</param> /// <param name="Products">the product list related to this order. (required).</param> public TrackedOrder(DateTime?UtcDate = default(DateTime?), BeezUPCommonChannelBasicInfo Channel = default(BeezUPCommonChannelBasicInfo), string MerchantOrderId = default(string), decimal?TotalAmount = default(decimal?), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), bool?PaymentValidated = default(bool?), List <TrackedOrderProduct> Products = default(List <TrackedOrderProduct>)) { // to ensure "UtcDate" is required (not null) if (UtcDate == null) { throw new InvalidDataException("UtcDate is a required property for TrackedOrder and cannot be null"); } else { this.UtcDate = UtcDate; } // to ensure "Channel" is required (not null) if (Channel == null) { throw new InvalidDataException("Channel is a required property for TrackedOrder and cannot be null"); } else { this.Channel = Channel; } // to ensure "MerchantOrderId" is required (not null) if (MerchantOrderId == null) { throw new InvalidDataException("MerchantOrderId is a required property for TrackedOrder and cannot be null"); } else { this.MerchantOrderId = MerchantOrderId; } // to ensure "TotalAmount" is required (not null) if (TotalAmount == null) { throw new InvalidDataException("TotalAmount is a required property for TrackedOrder and cannot be null"); } else { this.TotalAmount = TotalAmount; } // to ensure "CurrencyCode" is required (not null) if (CurrencyCode == null) { throw new InvalidDataException("CurrencyCode is a required property for TrackedOrder and cannot be null"); } else { this.CurrencyCode = CurrencyCode; } // to ensure "PaymentValidated" is required (not null) if (PaymentValidated == null) { throw new InvalidDataException("PaymentValidated is a required property for TrackedOrder and cannot be null"); } else { this.PaymentValidated = PaymentValidated; } // to ensure "Products" is required (not null) if (Products == null) { throw new InvalidDataException("Products is a required property for TrackedOrder and cannot be null"); } else { this.Products = Products; } }