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()); } }
public ParameterValueProcessor( PaymentApp tenantPaymentApp, CompanyDto company, ApiConfigurationDto apiConfiguration, CompanyAccountDto companyAccount) : this(tenantPaymentApp, company, apiConfiguration, companyAccount, null) { }
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; }
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 }); }
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); }