lib/moip2/api.rb in moip2-1.0.0 vs lib/moip2/api.rb in moip2-1.1.0
- old
+ new
@@ -12,10 +12,18 @@
def payment
Moip2::PaymentApi.new(client)
end
+ def balances
+ Moip2::BalancesApi.new(client)
+ end
+
+ def entries
+ Moip2::EntryApi.new(client)
+ end
+
def invoice
Moip2::InvoiceApi.new client
end
def refund
@@ -40,12 +48,19 @@
def accounts
Moip2::AccountsApi.new(client)
end
+ def bank_accounts
+ Moip2::BankAccountsApi.new(client)
+ end
+
+ def webhooks
+ Moip2::WebhooksApi.new(client)
+ end
+
def connect
- host = Moip2::ConnectApi.host(client.env)
- connect_client = Client.new(client.env, client.auth, host, client.opts)
+ connect_client = Moip2::ConnectClient.new(client.env, client.auth, client.opts)
Moip2::ConnectApi.new(connect_client)
end
def notifications
Moip2::NotificationsApi.new(client)