コード例 #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="ContractBillingPeriodInfo" /> class.
 /// </summary>
 /// <param name="AmountBillingPeriodDiscount">The amount discounted related to the billing period.</param>
 /// <param name="BillingPeriodPercentDiscount">The discount percent related to the billing period.</param>
 /// <param name="BillingPeriodInMonth">BillingPeriodInMonth.</param>
 public ContractBillingPeriodInfo(double?AmountBillingPeriodDiscount = default(double?), double?BillingPeriodPercentDiscount = default(double?), BillingPeriodInMonth BillingPeriodInMonth = default(BillingPeriodInMonth))
 {
     this.AmountBillingPeriodDiscount  = AmountBillingPeriodDiscount;
     this.BillingPeriodPercentDiscount = BillingPeriodPercentDiscount;
     this.BillingPeriodInMonth         = BillingPeriodInMonth;
 }