Sha256: 7d11fbc6fbc57d6a8436fd8dcacd16629c87865a3f9259bc875db58058a14d73

Contents?: true

Size: 768 Bytes

Versions: 1

Compression:

Stored size: 768 Bytes

Contents

# frozen_string_literal: true

module Tikkie
  module Api
    # Tikkie API client.
    class Client
      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

      def payment_requests_subscription
        Tikkie::Api::Clients::PaymentRequestsSubscription.new(@config)
      end

      def payment_requests
        Tikkie::Api::Clients::PaymentRequests.new(@config)
      end

      def payments
        Tikkie::Api::Clients::Payments.new(@config)
      end

      def refunds
        Tikkie::Api::Clients::Refunds.new(@config)
      end

      def sandbox_apps
        Tikkie::Api::Clients::SandboxApps.new(@config)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tikkie-api-2.0.0 lib/tikkie/api/client.rb