/// <summary>
 /// Initializes a new instance of the <see cref="ContractCommitmentInfo" /> class.
 /// </summary>
 /// <param name="CommitmentCalculatedFinishDate">The commitment end date related to the offer.</param>
 /// <param name="NewContractStartDate">The start date related to the offer.</param>
 /// <param name="CommitmentPeriodInMonth">The commitment period in month related to the offer.</param>
 /// <param name="TrialPeriodInMonth">The trial period in month related to the offer.</param>
 /// <param name="TrialPeriodFinishDate">The trial period end date related to the offer.</param>
 /// <param name="PaymentDelayInDays">The payment delay in days related to the offer.</param>
 /// <param name="OfferId">OfferId.</param>
 /// <param name="OfferName">The offer Name.</param>
 /// <param name="CurrentContractId">Your current contract id.</param>
 /// <param name="CommercialUserId">Your current commercial user id.</param>
 /// <param name="Model">Interal usage: Old offer type. The model description.</param>
 /// <param name="CurrentContractTerminationDate">The current contract termination date.</param>
 /// <param name="RequestedPaymentMethod">RequestedPaymentMethod.</param>
 /// <param name="CurrentCustomerPaymentMethod">CurrentCustomerPaymentMethod.</param>
 /// <param name="ContractType">Internal usage: Old offer type. Your contract type.</param>
 /// <param name="IsModelMustBeTransmittedInNewContract">Internal usage: Old offer type. Is the current contract model needs to be converted into a new contract type.</param>
 /// <param name="FixedAndVariableClickInfo">FixedAndVariableClickInfo.</param>
 /// <param name="VariableModelInfo">VariableModelInfo.</param>
 /// <param name="PaymentMethodAuthorized">PaymentMethodAuthorized.</param>
 /// <param name="CouponOfferCode">CouponOfferCode.</param>
 /// <param name="CommercialCreatorUserId">The commercial that is responsible of the creation of your account.</param>
 /// <param name="MinBillingPeriodInMonths">The minimum billing period in month authorized for this offer..</param>
 /// <param name="IsCustomerWantsToTerminateHisContract">If true, this means you want to leave us and that&#39;s sad... :&#39;-(.</param>
 public ContractCommitmentInfo(DateTime?CommitmentCalculatedFinishDate = default(DateTime?), DateTime?NewContractStartDate = default(DateTime?), int?CommitmentPeriodInMonth = default(int?), int?TrialPeriodInMonth = default(int?), DateTime?TrialPeriodFinishDate = default(DateTime?), int?PaymentDelayInDays = default(int?), OfferId OfferId = default(OfferId), string OfferName = default(string), string CurrentContractId = default(string), string CommercialUserId = default(string), string Model = default(string), DateTime?CurrentContractTerminationDate = default(DateTime?), PaymentMethod RequestedPaymentMethod = default(PaymentMethod), PaymentMethod CurrentCustomerPaymentMethod = default(PaymentMethod), int?ContractType = default(int?), bool?IsModelMustBeTransmittedInNewContract = default(bool?), FixedAndVariableClickModelInfo FixedAndVariableClickInfo = default(FixedAndVariableClickModelInfo), VariableModelInfo VariableModelInfo = default(VariableModelInfo), PaymentMethod PaymentMethodAuthorized = default(PaymentMethod), CouponOfferCode CouponOfferCode = default(CouponOfferCode), string CommercialCreatorUserId = default(string), int?MinBillingPeriodInMonths = default(int?), bool?IsCustomerWantsToTerminateHisContract = default(bool?))
 {
     this.CommitmentCalculatedFinishDate = CommitmentCalculatedFinishDate;
     this.NewContractStartDate           = NewContractStartDate;
     this.CommitmentPeriodInMonth        = CommitmentPeriodInMonth;
     this.TrialPeriodInMonth             = TrialPeriodInMonth;
     this.TrialPeriodFinishDate          = TrialPeriodFinishDate;
     this.PaymentDelayInDays             = PaymentDelayInDays;
     this.OfferId           = OfferId;
     this.OfferName         = OfferName;
     this.CurrentContractId = CurrentContractId;
     this.CommercialUserId  = CommercialUserId;
     this.Model             = Model;
     this.CurrentContractTerminationDate = CurrentContractTerminationDate;
     this.RequestedPaymentMethod         = RequestedPaymentMethod;
     this.CurrentCustomerPaymentMethod   = CurrentCustomerPaymentMethod;
     this.ContractType = ContractType;
     this.IsModelMustBeTransmittedInNewContract = IsModelMustBeTransmittedInNewContract;
     this.FixedAndVariableClickInfo             = FixedAndVariableClickInfo;
     this.VariableModelInfo        = VariableModelInfo;
     this.PaymentMethodAuthorized  = PaymentMethodAuthorized;
     this.CouponOfferCode          = CouponOfferCode;
     this.CommercialCreatorUserId  = CommercialCreatorUserId;
     this.MinBillingPeriodInMonths = MinBillingPeriodInMonths;
     this.IsCustomerWantsToTerminateHisContract = IsCustomerWantsToTerminateHisContract;
 }
예제 #2
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;
 }