public CampaignCodeInfo(
     int campaignCode,
     int contractLengthInMonths,
     string description,
     Decimal fromAmount,
     decimal toAmount,
     Decimal initialFee,
     Decimal interestRatePercent,
     Decimal monthlyAnnuityFactor,
     Decimal notificationFee,
     int numberOfInterestFreeMonths,
     int numberOfPaymentFreeMonths,
     PaymentPlanType paymentPlanType)
 {
     CampaignCode           = campaignCode;
     ContractLengthInMonths = contractLengthInMonths;
     Description            = description;
     FromAmount             = fromAmount;
     ToAmount                   = toAmount;
     InitialFee                 = initialFee;
     InterestRatePercent        = interestRatePercent;
     MonthlyAnnuityFactor       = monthlyAnnuityFactor;
     NotificationFee            = NotificationFee;
     NumberOfInterestFreeMonths = numberOfInterestFreeMonths;
     NumberOfPaymentFreeMonths  = numberOfPaymentFreeMonths;
     PaymentPlanType            = paymentPlanType;
 }
Beispiel #2
0
 private void AddCollectionToExcludePaymentMethodList(IEnumerable <PaymentMethod> paymentMethods)
 {
     foreach (var pm in paymentMethods)
     {
         if (pm == PaymentMethod.INVOICE)
         {
             ExcludedPaymentMethod.AddRange(InvoiceType.GetAllInvoiceValues());
         }
         else if (pm == PaymentMethod.PAYMENTPLAN)
         {
             ExcludedPaymentMethod.AddRange(PaymentPlanType.AllPaymentPlanValues());
         }
         else
         {
             ExcludedPaymentMethod.Add(pm.Value);
         }
     }
 }