Ejemplo n.º 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);
        }
 public WebhooksListModel(IWebhooksClient webhooksClient)
 {
     _webhooksClient = webhooksClient;
 }
Ejemplo n.º 3
0
 public WebhooksWorker(ILogger <WebhooksWorker> logger, IOptions <WebhooksWorkerOptions> options, IWebhooksClient webhooksClient)
 {
     _logger         = logger;
     Options         = options.Value;
     _webhooksClient = webhooksClient;
 }