示例#1
0
        public CheckoutApi(CheckoutConfiguration configuration) : base(configuration)
        {
            var apiClient = new ApiClient(configuration.HttpClientFactory,
                                          configuration.Environment.GetAttribute <EnvironmentAttribute>().ApiUri);

            _tokensClient         = new TokensClient(apiClient, configuration);
            _customersClient      = new CustomersClient(apiClient, configuration);
            _sourcesClient        = new SourcesClient(apiClient, configuration);
            _paymentsClient       = new PaymentsClient(apiClient, configuration);
            _instrumentsClient    = new InstrumentsClient(apiClient, configuration);
            _disputesClient       = new DisputesClient(apiClient, configuration);
            _webhooksClient       = new WebhooksClient(apiClient, configuration);
            _eventsClient         = new EventsClient(apiClient, configuration);
            _riskClient           = new RiskClient(apiClient, configuration);
            _paymentLinksClient   = new PaymentLinksClient(apiClient, configuration);
            _reconciliationClient = new ReconciliationClient(apiClient, configuration);
            _hostedPaymentsClient = new HostedPaymentsClient(apiClient, configuration);
        }
示例#2
0
        public CheckoutApi(CheckoutConfiguration configuration)
        {
            var baseApiClient = BaseApiClient(configuration);

            _tokensClient      = new TokensClient(baseApiClient, configuration);
            _customersClient   = new CustomersClient(baseApiClient, configuration);
            _paymentsClient    = new PaymentsClient(baseApiClient, configuration);
            _instrumentsClient = new InstrumentsClient(baseApiClient, configuration);
            _disputesClient    = new DisputesClient(baseApiClient, configuration);
            _riskClient        = new RiskClient(baseApiClient, configuration);
            _forexClient       = new ForexClient(baseApiClient, configuration);
            _workflowsClient   = new WorkflowsClient(baseApiClient, configuration);
            _sessionsClient    = new SessionsClient(baseApiClient, configuration);
            _accountsClient    = new AccountsClient(
                baseApiClient,
                FilesApiClient(configuration),
                configuration);
            _paymentLinksClient   = new PaymentLinksClient(baseApiClient, configuration);
            _hostedPaymentsClient = new HostedPaymentsClient(baseApiClient, configuration);
            _balancesClient       = new BalancesClient(BalancesApiClient(configuration),
                                                       configuration);
            _transfersClient = new TransfersClient(TransfersApiClient(configuration),
                                                   configuration);
        }
示例#3
0
 public InstrumentsClientTests()
 {
     _instrumentsClient = ServiceProvider.GetRequiredService <IInstrumentsClient>();
 }