Sha256: d4842d0d0f3d39b0a5536625a848fdc9ac68c7a0e8a261dbd98ae420120d49c3

Contents?: true

Size: 777 Bytes

Versions: 16

Compression:

Stored size: 777 Bytes

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class ConnectedAccounts < BaseClient
      def get(connected_account_id_or_params)
        params = if connected_account_id_or_params.is_a?(String)
          {connected_account_id: connected_account_id_or_params}
        else
          connected_account_id_or_params
        end

        request_seam_object(
          :get,
          "/connected_accounts/get",
          Seam::ConnectedAccount,
          "connected_account",
          params: params
        )
      end

      def list(params = {})
        request_seam_object(
          :get,
          "/connected_accounts/list",
          Seam::ConnectedAccount,
          "connected_accounts",
          params: params
        )
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
seamapi-1.14.0 lib/seam/clients/connected_accounts.rb
seamapi-1.13.0 lib/seam/clients/connected_accounts.rb
seamapi-1.12.1 lib/seam/clients/connected_accounts.rb
seamapi-1.12.0 lib/seam/clients/connected_accounts.rb
seamapi-1.11.2 lib/seam/clients/connected_accounts.rb
seamapi-1.11.1 lib/seam/clients/connected_accounts.rb
seamapi-1.11.0 lib/seam/clients/connected_accounts.rb
seamapi-1.10.0 lib/seam/clients/connected_accounts.rb
seamapi-1.9.0 lib/seam/clients/connected_accounts.rb
seamapi-1.8.0 lib/seam/clients/connected_accounts.rb
seamapi-1.7.0 lib/seam/clients/connected_accounts.rb
seamapi-1.6.0 lib/seam/clients/connected_accounts.rb
seamapi-1.5.0 lib/seam/clients/connected_accounts.rb
seamapi-1.4.0 lib/seam/clients/connected_accounts.rb
seamapi-1.3.2 lib/seam/clients/connected_accounts.rb
seamapi-1.3.1 lib/seam/clients/connected_accounts.rb