Example #1
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 #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;
 }
Example #3
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;
 }