public PagarMeService(string apiKey, string encryptionKey, string apiEndpoint) { _apiKey = apiKey; _encryptionKey = encryptionKey; _apiEndpoint = apiEndpoint; Cards = new PagarMe.Base.ModelCollection <Card>(this, "/cards"); Subscriptions = new PagarMe.Base.ModelCollection <Subscription>(this, "/subscriptions"); Transactions = new PagarMe.Base.ModelCollection <Transaction>(this, "/transactions"); Plans = new PagarMe.Base.ModelCollection <Plan>(this, "/plans"); Customers = new PagarMe.Base.ModelCollection <Customer>(this, "/customers"); Recipients = new PagarMe.Base.ModelCollection <Recipient>(this, "/recipients"); BankAccounts = new PagarMe.Base.ModelCollection <BankAccount>(this, "/bank_accounts"); }
public PagarMeService(string apiKey, string encryptionKey, string apiEndpoint) { _apiKey = apiKey; _encryptionKey = encryptionKey; _apiEndpoint = apiEndpoint; Cards = new PagarMe.Base.ModelCollection<Card>(this, "/cards"); Subscriptions = new PagarMe.Base.ModelCollection<Subscription>(this, "/subscriptions"); Transactions = new PagarMe.Base.ModelCollection<Transaction>(this, "/transactions"); Plans = new PagarMe.Base.ModelCollection<Plan>(this, "/plans"); Customers = new PagarMe.Base.ModelCollection<Customer>(this, "/customers"); Recipients = new PagarMe.Base.ModelCollection<Recipient>(this, "/recipients"); BankAccounts = new PagarMe.Base.ModelCollection<BankAccount>(this, "/bank_accounts"); }