Class: Tikkie::Api::Client
- Inherits:
-
Object
- Object
- Tikkie::Api::Client
- Defined in:
- lib/tikkie/api/client.rb
Overview
Tikkie API client.
Instance Method Summary collapse
-
#initialize(api_key:, app_token: nil, sandbox: false) ⇒ Client
constructor
A new instance of Client.
- #payment_requests ⇒ Object
- #payment_requests_subscription ⇒ Object
- #payments ⇒ Object
- #refunds ⇒ Object
- #sandbox_apps ⇒ Object
Constructor Details
#initialize(api_key:, app_token: nil, sandbox: false) ⇒ Client
Returns a new instance of Client.
7 8 9 |
# File 'lib/tikkie/api/client.rb', line 7 def initialize(api_key:, app_token: nil, sandbox: false) @config = Tikkie::Api::Configuration.new(api_key: api_key, app_token: app_token, sandbox: sandbox) end |
Instance Method Details
#payment_requests ⇒ Object
15 16 17 |
# File 'lib/tikkie/api/client.rb', line 15 def payment_requests Tikkie::Api::Clients::PaymentRequests.new(@config) end |
#payment_requests_subscription ⇒ Object
11 12 13 |
# File 'lib/tikkie/api/client.rb', line 11 def payment_requests_subscription Tikkie::Api::Clients::PaymentRequestsSubscription.new(@config) end |
#payments ⇒ Object
19 20 21 |
# File 'lib/tikkie/api/client.rb', line 19 def payments Tikkie::Api::Clients::Payments.new(@config) end |
#refunds ⇒ Object
23 24 25 |
# File 'lib/tikkie/api/client.rb', line 23 def refunds Tikkie::Api::Clients::Refunds.new(@config) end |
#sandbox_apps ⇒ Object
27 28 29 |
# File 'lib/tikkie/api/client.rb', line 27 def sandbox_apps Tikkie::Api::Clients::SandboxApps.new(@config) end |