예제 #1
0
 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;
        }
예제 #3
0
 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));
 }
예제 #4
0
        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);
            }
        }
예제 #5
0
 public void OneTimeSetup()
 {
     _paymentApi = new SimplePaymentMock();
 }
 public PaymentController(ICurrentUserService currentUser, IPaymentApi paymentApi)
 {
     _currentUser = currentUser;
     _paymentApi  = paymentApi;
 }
예제 #7
0
 public PaymentService(IPaymentApi paymentApi, IPaymentRepository repository)
 {
     this.paymentApi = paymentApi;
     this.repository = repository;
 }
예제 #8
0
 public PaymentsSetup(ILogger <PaymentsSetup> log, IPaymentApi paymentApi)
 {
     Log = log;
     PaymentApiInstance = paymentApi;
 }
예제 #9
0
 public PaymentController(IBusPublisher busPublisher, IPaymentApi paymentApi) : base(busPublisher)
 {
     _paymentApi = paymentApi;
 }