public SyncServerService(IProductApi productApi, IThemeApi themeApi, IShippingApi shippingApi, IPaymentApi paymentApi, IOrderApi orderApi) { _themeApi = themeApi; _productApi = productApi; _shippingApi = shippingApi; _paymentApi = paymentApi; _orderApi = orderApi; }
// private readonly IPaymentMethod _paymentMethod; public CheckoutController(ICustomerApi customerApi, IConfigApi configApi, IPaymentApi paymentApi, ICheckoutApi checkoutApi, IOrderApi orderApi, IShippingApi shippingApi, IAuthenticationService authenticationService, ICustomerApi customerRepository, IB2BApi b2bRepository) { _customerApi = customerApi; _configApi = configApi; _paymentApi = paymentApi; _checkoutApi = checkoutApi; _orderApi = orderApi; _shippingApi = shippingApi; _authenticationService = authenticationService; _customerRepository = customerRepository; _b2bRepository = b2bRepository; }
public HeroService(HttpClient httpClient, IProductApi productService, IPaxApi paxService, ISearchApi searchApi, IScheduleApi scheduleApi, IProductPricingApi productPricingApi, IPaymentApi paymentApi, IBookingApi bookingApi, IVoucherApi voucherApi) { _httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); ProductApi = productService ?? throw new ArgumentNullException(nameof(productService)); PaxApi = paxService ?? throw new ArgumentNullException(nameof(paxService)); SearchApi = searchApi ?? throw new ArgumentNullException(nameof(searchApi)); ScheduleApi = scheduleApi ?? throw new ArgumentNullException(nameof(scheduleApi)); ProductPricingApi = productPricingApi ?? throw new ArgumentNullException(nameof(productPricingApi)); PaymentApi = paymentApi ?? throw new ArgumentNullException(nameof(paymentApi)); BookingApi = bookingApi ?? throw new ArgumentNullException(nameof(bookingApi)); VoucherApi = voucherApi ?? throw new ArgumentNullException(nameof(voucherApi)); }
public void Init() { try { var asyncRestClientFactory = ServiceFactory.Instance.Create <IAsyncRestClientFactory>(); asyncRestClientBilling = asyncRestClientFactory.CreateClient(RestClientDefinitionBuilder.Build() .ForServiceUri(billingServiceBaseUrl) .Create()); Headers = new Dictionary <string, string>(); Headers.Add("Authorization", authorizationTokenV2); paymentApiService = IocContainer.Resolve <IPaymentApi>(); paymentCollectionService = IocContainer.Resolve <IPaymentCollectionService>(); } catch (Exception ex) { log.Fatal(ex); } }
public void OneTimeSetup() { _paymentApi = new SimplePaymentMock(); }
public PaymentController(ICurrentUserService currentUser, IPaymentApi paymentApi) { _currentUser = currentUser; _paymentApi = paymentApi; }
public PaymentService(IPaymentApi paymentApi, IPaymentRepository repository) { this.paymentApi = paymentApi; this.repository = repository; }
public PaymentsSetup(ILogger <PaymentsSetup> log, IPaymentApi paymentApi) { Log = log; PaymentApiInstance = paymentApi; }
public PaymentController(IBusPublisher busPublisher, IPaymentApi paymentApi) : base(busPublisher) { _paymentApi = paymentApi; }