Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportByDayResponse" /> class.
 /// </summary>
 /// <param name="CurrencyCode">CurrencyCode (required).</param>
 /// <param name="GlobalPerformanceIndicators">GlobalPerformanceIndicators (required).</param>
 /// <param name="Days">Days (required).</param>
 public ReportByDayResponse(BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), List <GlobalPerformanceIndicatorByChannel> GlobalPerformanceIndicators = default(List <GlobalPerformanceIndicatorByChannel>), List <ReportByDay> Days = default(List <ReportByDay>))
 {
     // to ensure "CurrencyCode" is required (not null)
     if (CurrencyCode == null)
     {
         throw new InvalidDataException("CurrencyCode is a required property for ReportByDayResponse and cannot be null");
     }
     else
     {
         this.CurrencyCode = CurrencyCode;
     }
     // to ensure "GlobalPerformanceIndicators" is required (not null)
     if (GlobalPerformanceIndicators == null)
     {
         throw new InvalidDataException("GlobalPerformanceIndicators is a required property for ReportByDayResponse and cannot be null");
     }
     else
     {
         this.GlobalPerformanceIndicators = GlobalPerformanceIndicators;
     }
     // to ensure "Days" is required (not null)
     if (Days == null)
     {
         throw new InvalidDataException("Days is a required property for ReportByDayResponse and cannot be null");
     }
     else
     {
         this.Days = Days;
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NextContractInfo" /> class.
 /// </summary>
 /// <param name="TrialPeriodInMonth">The trial period in month.</param>
 /// <param name="BillingPeriodPercentDiscount">The percent discount related to the billing period.</param>
 /// <param name="DiscountDurationInMonth">The discount duration in month.</param>
 /// <param name="PercentDiscount">The percent of the discount.</param>
 /// <param name="OfferId">OfferId.</param>
 /// <param name="StoreCount">StoreCount.</param>
 /// <param name="StartUtcDate">The start date of your contract.</param>
 /// <param name="CommitmentCalculatedFinishUtcDate">The calculated end date of commitment.</param>
 /// <param name="BillingPeriodInMonth">The billing period in month.</param>
 /// <param name="FixedPrice">The fixed price of your contract.</param>
 /// <param name="OfferName">The offer name based on /offers.</param>
 /// <param name="CurrencyCode">CurrencyCode.</param>
 /// <param name="ContractId">ContractId.</param>
 /// <param name="CommitmentPeriodInMonth">The commitment period in month.</param>
 /// <param name="ClickIncluded">The click included.</param>
 /// <param name="AdditionalClickPrice">Additional click price.</param>
 /// <param name="IpUserCreation">The IP of the user who creates the contract.</param>
 /// <param name="IpUserModification">The IP of the user who modified the contract.</param>
 /// <param name="FixedAndVariableClickInfo">FixedAndVariableClickInfo.</param>
 /// <param name="VariableModelInfo">VariableModelInfo.</param>
 /// <param name="IsCommitmentRenewalAutomatically">Is commitment is automatically renewed.</param>
 /// <param name="DiscountEndUtcDate">The end of your discount.</param>
 /// <param name="IsModifiableContract">Is the contract is modifiable ?.</param>
 /// <param name="Links">Links (required).</param>
 public NextContractInfo(int?TrialPeriodInMonth = default(int?), double?BillingPeriodPercentDiscount = default(double?), int?DiscountDurationInMonth = default(int?), double?PercentDiscount = default(double?), OfferId OfferId = default(OfferId), StoreCount StoreCount = default(StoreCount), DateTime?StartUtcDate = default(DateTime?), DateTime?CommitmentCalculatedFinishUtcDate = default(DateTime?), int?BillingPeriodInMonth = default(int?), double?FixedPrice = default(double?), string OfferName = default(string), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), ContractId ContractId = default(ContractId), int?CommitmentPeriodInMonth = default(int?), int?ClickIncluded = default(int?), double?AdditionalClickPrice = default(double?), string IpUserCreation = default(string), string IpUserModification = default(string), FixedAndVariableClickModelInfo FixedAndVariableClickInfo = default(FixedAndVariableClickModelInfo), VariableModelInfo VariableModelInfo = default(VariableModelInfo), bool?IsCommitmentRenewalAutomatically = default(bool?), DateTime?DiscountEndUtcDate = default(DateTime?), bool?IsModifiableContract = default(bool?), NextContractInfoLinks Links = default(NextContractInfoLinks))
 {
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for NextContractInfo and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     this.TrialPeriodInMonth           = TrialPeriodInMonth;
     this.BillingPeriodPercentDiscount = BillingPeriodPercentDiscount;
     this.DiscountDurationInMonth      = DiscountDurationInMonth;
     this.PercentDiscount = PercentDiscount;
     this.OfferId         = OfferId;
     this.StoreCount      = StoreCount;
     this.StartUtcDate    = StartUtcDate;
     this.CommitmentCalculatedFinishUtcDate = CommitmentCalculatedFinishUtcDate;
     this.BillingPeriodInMonth             = BillingPeriodInMonth;
     this.FixedPrice                       = FixedPrice;
     this.OfferName                        = OfferName;
     this.CurrencyCode                     = CurrencyCode;
     this.ContractId                       = ContractId;
     this.CommitmentPeriodInMonth          = CommitmentPeriodInMonth;
     this.ClickIncluded                    = ClickIncluded;
     this.AdditionalClickPrice             = AdditionalClickPrice;
     this.IpUserCreation                   = IpUserCreation;
     this.IpUserModification               = IpUserModification;
     this.FixedAndVariableClickInfo        = FixedAndVariableClickInfo;
     this.VariableModelInfo                = VariableModelInfo;
     this.IsCommitmentRenewalAutomatically = IsCommitmentRenewalAutomatically;
     this.DiscountEndUtcDate               = DiscountEndUtcDate;
     this.IsModifiableContract             = IsModifiableContract;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TrackedExternalOrder" /> class.
 /// </summary>
 /// <param name="UtcDate">The utc date of the external order. (required).</param>
 /// <param name="MerchantOrderId">The merchant order identifier (required).</param>
 /// <param name="VisitorId">Can be null. The visitor identifier related to this external order.</param>
 /// <param name="TotalAmount">The total amount related to the external order. (required).</param>
 /// <param name="CurrencyCode">CurrencyCode (required).</param>
 /// <param name="PaymentValidated">Indicate if the payment of this external order has been validated or not. (required).</param>
 /// <param name="Products">Can be null. the product list related to this external order..</param>
 public TrackedExternalOrder(DateTime?UtcDate = default(DateTime?), string MerchantOrderId = default(string), string VisitorId = default(string), decimal?TotalAmount = default(decimal?), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), bool?PaymentValidated = default(bool?), List <TrackedExternalOrderProduct> Products = default(List <TrackedExternalOrderProduct>))
 {
     // to ensure "UtcDate" is required (not null)
     if (UtcDate == null)
     {
         throw new InvalidDataException("UtcDate is a required property for TrackedExternalOrder and cannot be null");
     }
     else
     {
         this.UtcDate = UtcDate;
     }
     // to ensure "MerchantOrderId" is required (not null)
     if (MerchantOrderId == null)
     {
         throw new InvalidDataException("MerchantOrderId is a required property for TrackedExternalOrder 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 TrackedExternalOrder 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 TrackedExternalOrder 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 TrackedExternalOrder and cannot be null");
     }
     else
     {
         this.PaymentValidated = PaymentValidated;
     }
     this.VisitorId = VisitorId;
     this.Products  = Products;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContractInfo" /> class.
 /// </summary>
 /// <param name="TrialPeriodInMonth">The trial period in month.</param>
 /// <param name="BillingPeriodPercentDiscount">The percent discount related to the billing period.</param>
 /// <param name="DiscountDurationInMonth">The discount duration in month.</param>
 /// <param name="PercentDiscount">The percent of the discount.</param>
 /// <param name="OfferId">OfferId.</param>
 /// <param name="StoreCount">StoreCount.</param>
 /// <param name="StartUtcDate">The start date of your contract.</param>
 /// <param name="CommitmentCalculatedFinishUtcDate">The calculated end date of commitment.</param>
 /// <param name="BillingPeriodInMonth">The billing period in month.</param>
 /// <param name="FixedPrice">The fixed price of your contract.</param>
 /// <param name="OfferName">The offer name based on /offers.</param>
 /// <param name="CurrencyCode">CurrencyCode.</param>
 /// <param name="ContractId">ContractId.</param>
 /// <param name="CommitmentPeriodInMonth">The commitment period in month.</param>
 /// <param name="ClickIncluded">The click included.</param>
 /// <param name="AdditionalClickPrice">Additional click price.</param>
 /// <param name="IpUserCreation">The IP of the user who creates the contract.</param>
 /// <param name="IpUserModification">The IP of the user who modified the contract.</param>
 /// <param name="FixedAndVariableClickInfo">FixedAndVariableClickInfo.</param>
 /// <param name="VariableModelInfo">VariableModelInfo.</param>
 /// <param name="IsCommitmentRenewalAutomatically">Is commitment is automatically renewed.</param>
 /// <param name="DiscountEndUtcDate">The end of your discount.</param>
 /// <param name="IsModifiableContract">Is the contract is modifiable ?.</param>
 public ContractInfo(int?TrialPeriodInMonth = default(int?), double?BillingPeriodPercentDiscount = default(double?), int?DiscountDurationInMonth = default(int?), double?PercentDiscount = default(double?), OfferId OfferId = default(OfferId), StoreCount StoreCount = default(StoreCount), DateTime?StartUtcDate = default(DateTime?), DateTime?CommitmentCalculatedFinishUtcDate = default(DateTime?), int?BillingPeriodInMonth = default(int?), double?FixedPrice = default(double?), string OfferName = default(string), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), ContractId ContractId = default(ContractId), int?CommitmentPeriodInMonth = default(int?), int?ClickIncluded = default(int?), double?AdditionalClickPrice = default(double?), string IpUserCreation = default(string), string IpUserModification = default(string), FixedAndVariableClickModelInfo FixedAndVariableClickInfo = default(FixedAndVariableClickModelInfo), VariableModelInfo VariableModelInfo = default(VariableModelInfo), bool?IsCommitmentRenewalAutomatically = default(bool?), DateTime?DiscountEndUtcDate = default(DateTime?), bool?IsModifiableContract = default(bool?))
 {
     this.TrialPeriodInMonth           = TrialPeriodInMonth;
     this.BillingPeriodPercentDiscount = BillingPeriodPercentDiscount;
     this.DiscountDurationInMonth      = DiscountDurationInMonth;
     this.PercentDiscount = PercentDiscount;
     this.OfferId         = OfferId;
     this.StoreCount      = StoreCount;
     this.StartUtcDate    = StartUtcDate;
     this.CommitmentCalculatedFinishUtcDate = CommitmentCalculatedFinishUtcDate;
     this.BillingPeriodInMonth             = BillingPeriodInMonth;
     this.FixedPrice                       = FixedPrice;
     this.OfferName                        = OfferName;
     this.CurrencyCode                     = CurrencyCode;
     this.ContractId                       = ContractId;
     this.CommitmentPeriodInMonth          = CommitmentPeriodInMonth;
     this.ClickIncluded                    = ClickIncluded;
     this.AdditionalClickPrice             = AdditionalClickPrice;
     this.IpUserCreation                   = IpUserCreation;
     this.IpUserModification               = IpUserModification;
     this.FixedAndVariableClickInfo        = FixedAndVariableClickInfo;
     this.VariableModelInfo                = VariableModelInfo;
     this.IsCommitmentRenewalAutomatically = IsCommitmentRenewalAutomatically;
     this.DiscountEndUtcDate               = DiscountEndUtcDate;
     this.IsModifiableContract             = IsModifiableContract;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContractMoneyInfo" /> class.
 /// </summary>
 /// <param name="AmountExcludingTaxesAndExcludingCodePromoDiscountIncludingBillingPeriodDiscount">The amount excluding taxes and excluding code promo discount including billing period discount..</param>
 /// <param name="AmountExcludingTaxesIncludingDiscounts">The amount excluding taxes including discounts..</param>
 /// <param name="AmountTaxesExcludingDiscountIncludingBillingPeriodDiscount">The taxes excluding discount including billing period discount..</param>
 /// <param name="AmountIncludingTaxesExcludingDiscountIncludingBillingPeriodDiscount">The amount including taxes excluding discount including billing period discount..</param>
 /// <param name="CurrencyCode">CurrencyCode.</param>
 /// <param name="VatPercent">The VAT percent..</param>
 /// <param name="AmountExcludingTaxesIncludingDiscountsPerMonth">The amount excluding taxes including discounts per month..</param>
 /// <param name="AmountExcludingTaxesAndExcludingDiscounts">The amount excluding taxes and excluding discounts..</param>
 /// <param name="AmountTaxesIncludingDiscounts">Taxes including discounts..</param>
 /// <param name="AmountIncludingTaxesIncludingDiscounts">The amount including taxes including discounts..</param>
 /// <param name="InitialOfferFixedPrice">The initial offer fixed price..</param>
 public ContractMoneyInfo(double?AmountExcludingTaxesAndExcludingCodePromoDiscountIncludingBillingPeriodDiscount = default(double?), double?AmountExcludingTaxesIncludingDiscounts = default(double?), double?AmountTaxesExcludingDiscountIncludingBillingPeriodDiscount = default(double?), double?AmountIncludingTaxesExcludingDiscountIncludingBillingPeriodDiscount = default(double?), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), double?VatPercent = default(double?), double?AmountExcludingTaxesIncludingDiscountsPerMonth = default(double?), double?AmountExcludingTaxesAndExcludingDiscounts = default(double?), double?AmountTaxesIncludingDiscounts = default(double?), double?AmountIncludingTaxesIncludingDiscounts = default(double?), double?InitialOfferFixedPrice = default(double?))
 {
     this.AmountExcludingTaxesAndExcludingCodePromoDiscountIncludingBillingPeriodDiscount = AmountExcludingTaxesAndExcludingCodePromoDiscountIncludingBillingPeriodDiscount;
     this.AmountExcludingTaxesIncludingDiscounts = AmountExcludingTaxesIncludingDiscounts;
     this.AmountTaxesExcludingDiscountIncludingBillingPeriodDiscount          = AmountTaxesExcludingDiscountIncludingBillingPeriodDiscount;
     this.AmountIncludingTaxesExcludingDiscountIncludingBillingPeriodDiscount = AmountIncludingTaxesExcludingDiscountIncludingBillingPeriodDiscount;
     this.CurrencyCode = CurrencyCode;
     this.VatPercent   = VatPercent;
     this.AmountExcludingTaxesIncludingDiscountsPerMonth = AmountExcludingTaxesIncludingDiscountsPerMonth;
     this.AmountExcludingTaxesAndExcludingDiscounts      = AmountExcludingTaxesAndExcludingDiscounts;
     this.AmountTaxesIncludingDiscounts          = AmountTaxesIncludingDiscounts;
     this.AmountIncludingTaxesIncludingDiscounts = AmountIncludingTaxesIncludingDiscounts;
     this.InitialOfferFixedPrice = InitialOfferFixedPrice;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Invoice" /> class.
 /// </summary>
 /// <param name="InvoiceDate">The invoice date (required).</param>
 /// <param name="ContractId">ContractId (required).</param>
 /// <param name="InvoiceNumber">InvoiceNumber (required).</param>
 /// <param name="Amount">The amount of your invoice (required).</param>
 /// <param name="AmountToBePaid">The remaining amount to be paid for this invoice (required).</param>
 /// <param name="CurrencyCode">CurrencyCode (required).</param>
 /// <param name="PaymentStatus">PaymentStatus (required).</param>
 /// <param name="DueDate">DueDate (required).</param>
 /// <param name="InvoiceUrl">The url of the invoice document.</param>
 public Invoice(DateTime?InvoiceDate = default(DateTime?), ContractId ContractId = default(ContractId), InvoiceNumber InvoiceNumber = default(InvoiceNumber), double?Amount = default(double?), double?AmountToBePaid = default(double?), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), InvoicePaymentStatus PaymentStatus = default(InvoicePaymentStatus), DateTime?DueDate = default(DateTime?), string InvoiceUrl = default(string))
 {
     // to ensure "InvoiceDate" is required (not null)
     if (InvoiceDate == null)
     {
         throw new InvalidDataException("InvoiceDate is a required property for Invoice and cannot be null");
     }
     else
     {
         this.InvoiceDate = InvoiceDate;
     }
     // to ensure "ContractId" is required (not null)
     if (ContractId == null)
     {
         throw new InvalidDataException("ContractId is a required property for Invoice and cannot be null");
     }
     else
     {
         this.ContractId = ContractId;
     }
     // to ensure "InvoiceNumber" is required (not null)
     if (InvoiceNumber == null)
     {
         throw new InvalidDataException("InvoiceNumber is a required property for Invoice and cannot be null");
     }
     else
     {
         this.InvoiceNumber = InvoiceNumber;
     }
     // to ensure "Amount" is required (not null)
     if (Amount == null)
     {
         throw new InvalidDataException("Amount is a required property for Invoice and cannot be null");
     }
     else
     {
         this.Amount = Amount;
     }
     // to ensure "AmountToBePaid" is required (not null)
     if (AmountToBePaid == null)
     {
         throw new InvalidDataException("AmountToBePaid is a required property for Invoice and cannot be null");
     }
     else
     {
         this.AmountToBePaid = AmountToBePaid;
     }
     // to ensure "CurrencyCode" is required (not null)
     if (CurrencyCode == null)
     {
         throw new InvalidDataException("CurrencyCode is a required property for Invoice and cannot be null");
     }
     else
     {
         this.CurrencyCode = CurrencyCode;
     }
     // to ensure "PaymentStatus" is required (not null)
     if (PaymentStatus == null)
     {
         throw new InvalidDataException("PaymentStatus is a required property for Invoice and cannot be null");
     }
     else
     {
         this.PaymentStatus = PaymentStatus;
     }
     // to ensure "DueDate" is required (not null)
     if (DueDate == null)
     {
         throw new InvalidDataException("DueDate is a required property for Invoice and cannot be null");
     }
     else
     {
         this.DueDate = DueDate;
     }
     this.InvoiceUrl = InvoiceUrl;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderHeader" /> class.
 /// </summary>
 /// <param name="MarketplaceTechnicalCode">MarketplaceTechnicalCode (required).</param>
 /// <param name="AccountId">AccountId (required).</param>
 /// <param name="BeezUPOrderId">BeezUPOrderId (required).</param>
 /// <param name="BeezUPOrderUrl">BeezUPOrderUrl.</param>
 /// <param name="MarketplaceBusinessCode">MarketplaceBusinessCode (required).</param>
 /// <param name="OrderMarketplaceOrderId">OrderMarketplaceOrderId (required).</param>
 /// <param name="OrderStatusBeezUPOrderStatus">OrderStatusBeezUPOrderStatus (required).</param>
 /// <param name="OrderStatusMarketplaceOrderStatus">OrderStatusMarketplaceOrderStatus.</param>
 /// <param name="OrderMerchantOrderId">OrderMerchantOrderId.</param>
 /// <param name="OrderMerchantECommerceSoftwareName">OrderMerchantECommerceSoftwareName.</param>
 /// <param name="OrderMerchantECommerceSoftwareVersion">OrderMerchantECommerceSoftwareVersion.</param>
 /// <param name="OrderPurchaseUtcDate">The purchase date of this order (required).</param>
 /// <param name="OrderLastModificationUtcDate">The last modification UTC date done by BeezUP of this order (required).</param>
 /// <param name="OrderMarketplaceLastModificationUtcDate">The last modification UTC date done by the marketplace on this order (required).</param>
 /// <param name="OrderBuyerName">OrderBuyerName.</param>
 /// <param name="OrderTotalPrice">The total price of this order (corresponding to the amount paid by the customer).</param>
 /// <param name="OrderCurrencyCode">OrderCurrencyCode.</param>
 /// <param name="Processing">Processing (required).</param>
 /// <param name="Etag">Etag (required).</param>
 /// <param name="Links">Links (required).</param>
 public OrderHeader(BeezUPCommonMarketplaceTechnicalCode MarketplaceTechnicalCode = default(BeezUPCommonMarketplaceTechnicalCode), AccountId AccountId = default(AccountId), BeezUPOrderId BeezUPOrderId = default(BeezUPOrderId), BeezUPCommonHttpUrl BeezUPOrderUrl = default(BeezUPCommonHttpUrl), BeezUPCommonMarketplaceBusinessCode MarketplaceBusinessCode = default(BeezUPCommonMarketplaceBusinessCode), MarketplaceOrderId OrderMarketplaceOrderId = default(MarketplaceOrderId), BeezUPOrderStatus OrderStatusBeezUPOrderStatus = default(BeezUPOrderStatus), MarketplaceOrderStatus OrderStatusMarketplaceOrderStatus = default(MarketplaceOrderStatus), OrderMerchantOrderId OrderMerchantOrderId = default(OrderMerchantOrderId), OrderMerchantECommerceSoftwareName OrderMerchantECommerceSoftwareName = default(OrderMerchantECommerceSoftwareName), OrderMerchantECommerceSoftwareVersion OrderMerchantECommerceSoftwareVersion = default(OrderMerchantECommerceSoftwareVersion), DateTime?OrderPurchaseUtcDate = default(DateTime?), DateTime?OrderLastModificationUtcDate = default(DateTime?), DateTime?OrderMarketplaceLastModificationUtcDate = default(DateTime?), OrderBuyerName OrderBuyerName = default(OrderBuyerName), decimal?OrderTotalPrice = default(decimal?), BeezUPCommonCurrencyCode OrderCurrencyCode = default(BeezUPCommonCurrencyCode), Processing Processing = default(Processing), Etag Etag = default(Etag), OrderHeaderLinks Links = default(OrderHeaderLinks))
 {
     // to ensure "MarketplaceTechnicalCode" is required (not null)
     if (MarketplaceTechnicalCode == null)
     {
         throw new InvalidDataException("MarketplaceTechnicalCode is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.MarketplaceTechnicalCode = MarketplaceTechnicalCode;
     }
     // to ensure "AccountId" is required (not null)
     if (AccountId == null)
     {
         throw new InvalidDataException("AccountId is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.AccountId = AccountId;
     }
     // to ensure "BeezUPOrderId" is required (not null)
     if (BeezUPOrderId == null)
     {
         throw new InvalidDataException("BeezUPOrderId is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.BeezUPOrderId = BeezUPOrderId;
     }
     // to ensure "MarketplaceBusinessCode" is required (not null)
     if (MarketplaceBusinessCode == null)
     {
         throw new InvalidDataException("MarketplaceBusinessCode is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.MarketplaceBusinessCode = MarketplaceBusinessCode;
     }
     // to ensure "OrderMarketplaceOrderId" is required (not null)
     if (OrderMarketplaceOrderId == null)
     {
         throw new InvalidDataException("OrderMarketplaceOrderId is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderMarketplaceOrderId = OrderMarketplaceOrderId;
     }
     // to ensure "OrderStatusBeezUPOrderStatus" is required (not null)
     if (OrderStatusBeezUPOrderStatus == null)
     {
         throw new InvalidDataException("OrderStatusBeezUPOrderStatus is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderStatusBeezUPOrderStatus = OrderStatusBeezUPOrderStatus;
     }
     // to ensure "OrderPurchaseUtcDate" is required (not null)
     if (OrderPurchaseUtcDate == null)
     {
         throw new InvalidDataException("OrderPurchaseUtcDate is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderPurchaseUtcDate = OrderPurchaseUtcDate;
     }
     // to ensure "OrderLastModificationUtcDate" is required (not null)
     if (OrderLastModificationUtcDate == null)
     {
         throw new InvalidDataException("OrderLastModificationUtcDate is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderLastModificationUtcDate = OrderLastModificationUtcDate;
     }
     // to ensure "OrderMarketplaceLastModificationUtcDate" is required (not null)
     if (OrderMarketplaceLastModificationUtcDate == null)
     {
         throw new InvalidDataException("OrderMarketplaceLastModificationUtcDate is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.OrderMarketplaceLastModificationUtcDate = OrderMarketplaceLastModificationUtcDate;
     }
     // to ensure "Processing" is required (not null)
     if (Processing == null)
     {
         throw new InvalidDataException("Processing is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.Processing = Processing;
     }
     // to ensure "Etag" is required (not null)
     if (Etag == null)
     {
         throw new InvalidDataException("Etag is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.Etag = Etag;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for OrderHeader and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     this.BeezUPOrderUrl = BeezUPOrderUrl;
     this.OrderStatusMarketplaceOrderStatus = OrderStatusMarketplaceOrderStatus;
     this.OrderMerchantOrderId = OrderMerchantOrderId;
     this.OrderMerchantECommerceSoftwareName    = OrderMerchantECommerceSoftwareName;
     this.OrderMerchantECommerceSoftwareVersion = OrderMerchantECommerceSoftwareVersion;
     this.OrderBuyerName    = OrderBuyerName;
     this.OrderTotalPrice   = OrderTotalPrice;
     this.OrderCurrencyCode = OrderCurrencyCode;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportByChannelResponse" /> class.
 /// </summary>
 /// <param name="PaginationResult">PaginationResult (required).</param>
 /// <param name="CurrencyCode">CurrencyCode (required).</param>
 /// <param name="Channels">Channels (required).</param>
 /// <param name="Links">Links (required).</param>
 public ReportByChannelResponse(BeezUPCommonPaginationResult PaginationResult = default(BeezUPCommonPaginationResult), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), List <ReportByChannel> Channels = default(List <ReportByChannel>), ReportByChannelResponseLinks Links = default(ReportByChannelResponseLinks))
 {
     // to ensure "PaginationResult" is required (not null)
     if (PaginationResult == null)
     {
         throw new InvalidDataException("PaginationResult is a required property for ReportByChannelResponse and cannot be null");
     }
     else
     {
         this.PaginationResult = PaginationResult;
     }
     // to ensure "CurrencyCode" is required (not null)
     if (CurrencyCode == null)
     {
         throw new InvalidDataException("CurrencyCode is a required property for ReportByChannelResponse and cannot be null");
     }
     else
     {
         this.CurrencyCode = CurrencyCode;
     }
     // to ensure "Channels" is required (not null)
     if (Channels == null)
     {
         throw new InvalidDataException("Channels is a required property for ReportByChannelResponse and cannot be null");
     }
     else
     {
         this.Channels = Channels;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for ReportByChannelResponse and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
 }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StandardOffer" /> class.
 /// </summary>
 /// <param name="AdditionalClickPrice">The additional click price.</param>
 /// <param name="IncludedClick">The included click.</param>
 /// <param name="IsMostPopular">UI purpose. Is the offer is the most popular.</param>
 /// <param name="IsOldOffer">Is an old offer.</param>
 /// <param name="Name">The offer name.</param>
 /// <param name="OfferId">The offer Id.</param>
 /// <param name="FixedPrice">The fixed price of the offer.</param>
 /// <param name="CurrencyCode">CurrencyCode.</param>
 /// <param name="Position">UI purpose. The position of the offer.</param>
 /// <param name="Functionalities">Functionalities.</param>
 public StandardOffer(double?AdditionalClickPrice = default(double?), int?IncludedClick = default(int?), bool?IsMostPopular = default(bool?), bool?IsOldOffer = default(bool?), string Name = default(string), int?OfferId = default(int?), double?FixedPrice = default(double?), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), int?Position = default(int?), List <OfferFunctionality> Functionalities = default(List <OfferFunctionality>))
 {
     this.AdditionalClickPrice = AdditionalClickPrice;
     this.IncludedClick        = IncludedClick;
     this.IsMostPopular        = IsMostPopular;
     this.IsOldOffer           = IsOldOffer;
     this.Name            = Name;
     this.OfferId         = OfferId;
     this.FixedPrice      = FixedPrice;
     this.CurrencyCode    = CurrencyCode;
     this.Position        = Position;
     this.Functionalities = Functionalities;
 }
Example #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportByCategoryResponse" /> class.
 /// </summary>
 /// <param name="PaginationResult">PaginationResult.</param>
 /// <param name="CurrencyCode">CurrencyCode.</param>
 /// <param name="Categories">Categories.</param>
 /// <param name="Links">Links.</param>
 public ReportByCategoryResponse(BeezUPCommonPaginationResult PaginationResult = default(BeezUPCommonPaginationResult), BeezUPCommonCurrencyCode CurrencyCode = default(BeezUPCommonCurrencyCode), List <ReportByCategory> Categories = default(List <ReportByCategory>), ReportByCategoryResponseLinks Links = default(ReportByCategoryResponseLinks))
 {
     this.PaginationResult = PaginationResult;
     this.CurrencyCode     = CurrencyCode;
     this.Categories       = Categories;
     this.Links            = Links;
 }