コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateContract" /> class.
 /// </summary>
 /// <param name="OfferId">OfferId (required).</param>
 /// <param name="StoreCount">StoreCount (required).</param>
 /// <param name="CouponDiscountCode">CouponDiscountCode.</param>
 /// <param name="CouponOfferCode">CouponOfferCode.</param>
 /// <param name="BillingPeriodInMonth">BillingPeriodInMonth (required).</param>
 public CreateContract(OfferId OfferId = default(OfferId), StoreCount StoreCount = default(StoreCount), CouponDiscountCode CouponDiscountCode = default(CouponDiscountCode), CouponOfferCode CouponOfferCode = default(CouponOfferCode), BillingPeriodInMonth BillingPeriodInMonth = default(BillingPeriodInMonth))
 {
     // to ensure "OfferId" is required (not null)
     if (OfferId == null)
     {
         throw new InvalidDataException("OfferId is a required property for CreateContract and cannot be null");
     }
     else
     {
         this.OfferId = OfferId;
     }
     // to ensure "StoreCount" is required (not null)
     if (StoreCount == null)
     {
         throw new InvalidDataException("StoreCount is a required property for CreateContract and cannot be null");
     }
     else
     {
         this.StoreCount = StoreCount;
     }
     // to ensure "BillingPeriodInMonth" is required (not null)
     if (BillingPeriodInMonth == null)
     {
         throw new InvalidDataException("BillingPeriodInMonth is a required property for CreateContract and cannot be null");
     }
     else
     {
         this.BillingPeriodInMonth = BillingPeriodInMonth;
     }
     this.CouponDiscountCode = CouponDiscountCode;
     this.CouponOfferCode    = CouponOfferCode;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContractStoreInfo" /> class.
 /// </summary>
 /// <param name="StoreCount">StoreCount.</param>
 /// <param name="MaxStoreCount">The maximum store count related to the offer..</param>
 /// <param name="MinStoreCount">The minimum store count related to the offer..</param>
 /// <param name="OwnedStoreCount">The owned store count..</param>
 /// <param name="AdditionalStorePrice">The additional store price..</param>
 /// <param name="StoreIncluded">The store count included in the offer..</param>
 public ContractStoreInfo(StoreCount StoreCount = default(StoreCount), int?MaxStoreCount = default(int?), int?MinStoreCount = default(int?), int?OwnedStoreCount = default(int?), double?AdditionalStorePrice = default(double?), int?StoreIncluded = default(int?))
 {
     this.StoreCount           = StoreCount;
     this.MaxStoreCount        = MaxStoreCount;
     this.MinStoreCount        = MinStoreCount;
     this.OwnedStoreCount      = OwnedStoreCount;
     this.AdditionalStorePrice = AdditionalStorePrice;
     this.StoreIncluded        = StoreIncluded;
 }
コード例 #3
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;
 }
コード例 #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;
 }