Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RepaymentOptions"/> class.
 /// </summary>
 public RepaymentOptions()
 {
     FasterRepayment   = new FasterRepayment();
     LowerPayments     = new LowerPayment();
     Deferment         = new Deferment();
     StandardRepayment = new StandardRepayment();
 }
Exemplo n.º 2
0
        public FasterRepayment PostFasterRepaymentOptions(FasterRepayment fasterRepayment)
        {
            var lessonUserId = GetUserLessonId();

            if (!lessonUserId.HasValue)
            {
                return(fasterRepayment);
            }

            lock (_lockObject)
            {
                SaltServiceAgent.PostLesson3(new Lesson3()
                {
                    FasterRepaymentOptions = new List <FasterRepayment>()
                    {
                        fasterRepayment
                    },
                    User = new User()
                    {
                        UserId = lessonUserId.Value
                    }
                }.ToDataContract());
            }

            return(fasterRepayment);
        }
Exemplo n.º 3
0
 public FasterRepayment UpdateFasterRepaymentOptions(string id, FasterRepayment fasterRepayment)
 {
     return(PostFasterRepaymentOptions(fasterRepayment));
 }