コード例 #1
0
        public void FA_TestSendPaymentApp()
        {
            CreateUser();
            CreateOrder();

            PaymentApp app = new PaymentApp()
            {
                ConsumerEmail = SampleObjects._user.Email,
                OrderId       = SampleObjects._order.Id,
                UsrType       = PaymentApp.UserType.Manual,
                PaymenType    = PaymentApp.PaymentType.Manual,
                Amount        = 100.00f,
                FirstName     = "Fake",
                LastName      = "Person" + RandomString(3, true),
                Paid          = false
            };

            try
            {
                string response = lender.Apps.SendPaymentApp(app);
                Assert.IsNotNull(response, String.Format("Expected Success message of Sending Payment , Actual: {0}", response));
            }
            catch (Exception e)
            {
                throw new Exception(e.ToString());
            }
        }
コード例 #2
0
ファイル: ParameterValueProcessor.cs プロジェクト: Poepon/JK
 public ParameterValueProcessor(
     PaymentApp tenantPaymentApp,
     CompanyDto company,
     ApiConfigurationDto apiConfiguration,
     CompanyAccountDto companyAccount) :
     this(tenantPaymentApp, company, apiConfiguration, companyAccount, null)
 {
 }
コード例 #3
0
ファイル: ParameterValueProcessor.cs プロジェクト: Poepon/JK
 public ParameterValueProcessor(
     PaymentApp tenantPaymentApp,
     CompanyDto company,
     ApiConfigurationDto apiConfiguration,
     CompanyAccountDto companyAccount,
     PaymentOrderDto paymentOrder)
 {
     this.paymentOrder     = paymentOrder;
     this.companyAccount   = companyAccount;
     this.apiConfiguration = apiConfiguration;
     this.tenantPaymentApp = tenantPaymentApp;
     this.company          = company;
 }
コード例 #4
0
 public SendPaymentAppRequest(PaymentApp app) : base("lender/consumer/payment", Method.POST)
 {
     AddJsonBody(new Request
     {
         ConsumerEmail = app.ConsumerEmail,
         OrderId       = app.OrderId,
         UserType      = PaymentApp.UserTypeToString(app.UsrType),
         PaymentType   = PaymentApp.PaymentTypeToString(app.PaymenType),
         Amount        = app.Amount,
         FirstName     = app.FirstName,
         LastName      = app.LastName,
         Paid          = app.Paid
     });
 }
コード例 #5
0
 public CustomerAppLinkRequest(string orderId, string consumerId, PaymentApp.LinkType paymentType) : base("lender/{order_id}/{consumer_id}/{link_type}", Method.GET)
 {
     AddParameter("order_id", orderId, ParameterType.UrlSegment);
     AddParameter("consumer_id", consumerId, ParameterType.UrlSegment);
     AddParameter("link_type", PaymentApp.LinkTypeToString(paymentType), ParameterType.UrlSegment);
 }