public DataFetcher(TransactionsClient transactionsClient, AccountsClient accountsClient, PaymentsClient paymentsClient, CardsClient cardsClient, LoansClient loansClient) { this.transactionsClient = transactionsClient; this.accountsClient = accountsClient; this.paymentsClient = paymentsClient; this.cardsClient = cardsClient; this.loansClient = loansClient; }
/// <summary> /// Create a new instance of the Glo API v1 client using the specified connection. /// </summary> /// <param name="connection"></param> public GloClient(IConnection connection) { Ensure.ArgumentNotNull(connection, nameof(connection)); Connection = connection; var apiConnection = new ApiConnection(connection); Board = new BoardsClient(apiConnection); User = new UserClient(apiConnection); Card = new CardsClient(apiConnection); Column = new ColumnClient(apiConnection); }
public PanelsBranchService(ILogger <PanelsBranchService> logger, TransactionsClient transactionsClient, PaymentsClient paymentsClient, LoansClient loansClient, AccountsClient accountsClient, CardsClient cardsClient ) { this.logger = logger; this.transactionsClient = transactionsClient; this.paymentsClient = paymentsClient; this.loansClient = loansClient; this.accountsClient = accountsClient; this.cardsClient = cardsClient; }
/// <summary> /// Creates a new instance of the QuickPayClient /// </summary> /// <param name="baseUrl">URL for API, if null it defaults to QuickPays standard URL</param> /// <param name="baseUrlInvoicing">URL for Invoicing API, if null it defaults to QuickPays standard URL</param> /// <param name="apiKey"></param> /// <param name="privateKey"></param> /// <param name="userKey"></param> public QuickPayClient(string baseUrl, string baseUrlInvoicing, string apiKey, string privateKey, string userKey) { _url = baseUrl ?? "https://api.quickpay.net/"; _urlInvoicing = baseUrlInvoicing ?? "https://invoicing.quickpay.net/"; _apiKey = apiKey; _privateKey = privateKey; _userKey = userKey; _httpClient = BuildHttpClient(_url, _apiKey, null); Callbacks = new CallbacksClient(_privateKey); Cards = new CardsClient(_httpClient); Fees = new FeesClient(_httpClient); Invoices = new InvoicesClient(BuildHttpClient(_urlInvoicing, _userKey, "application/vnd.api+json")); Payments = new PaymentsClient(_httpClient); Subscriptions = new SubscriptionsClient(_httpClient); }
public SetupController(AccountsClient accountsClient, CardsClient cardsClient, LoansClient loansClient, PaymentsClient paymentsClient, TransactionsClient transactionsClient, UsersClient usersClient, Mapper mapper) { this.accountsClient = accountsClient; this.cardsClient = cardsClient; this.loansClient = loansClient; this.paymentsClient = paymentsClient; this.transactionsClient = transactionsClient; this.usersClient = usersClient; this.mapper = mapper; }
static void RunCardsClient(IMundiAPIClient client) { //Criação + Consulta + Atualização Console.WriteLine("Criação + Consulta + Atualização"); var customerId = CustomersClient.CreateCustomer(client); var cardId = CardsClient.CreateCreditCard(client, customerId); CardsClient.GetCreditCard(client, customerId, cardId); CardsClient.UpdateCreditCard(client, customerId, cardId); //Listagem Console.WriteLine("Listagem"); CardsClient.GetCreditCards(client, customerId); //Exclusão Console.WriteLine("Exclusão"); CardsClient.DeleteCreditCard(client, customerId, cardId); }
public CardsController(QueueingService queueing) { _client = new CardsClient(queueing.ConnectionFactory); _localdataClient = new LocalDataClient(queueing.ConnectionFactory); }
public CardController(ILogger <CardController> logger, CardsClient cardsClient, Mapper mapper) { this.logger = logger; this.cardsClient = cardsClient; this.mapper = mapper; }