Sha256: 67aa643fdbaf1cc328d0c6fbeaf7fe2c61154a31c450005098feb9fd1b812c07

Contents?: true

Size: 964 Bytes

Versions: 16

Compression:

Stored size: 964 Bytes

Contents

require_relative '../service'
module Adyen
  class TerminalsTerminalLevelApi < Service
    attr_accessor :service, :version

    def initialize(client, version = DEFAULT_VERSION)
      super(client, version, 'Management')
    end

    def list_terminals(headers: {}, query_params: {})
      endpoint = '/terminals'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint)
      endpoint += create_query_string(query_params)
      action = { method: 'get', url: endpoint }
      @client.call_adyen_api(@service, action, {}, headers, @version)
    end

    def reassign_terminal(request, terminal_id, headers: {})
      endpoint = '/terminals/{terminalId}/reassign'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint, terminal_id)
      
      action = { method: 'post', url: endpoint }
      @client.call_adyen_api(@service, action, request, headers, @version)
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
adyen-ruby-api-library-10.0.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.9.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.8.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.7.1 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.7.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.6.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.5.2 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.5.1 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.5.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.3.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.2.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.1.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-9.0.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-8.0.1 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-8.0.0 lib/adyen/services/management/terminals_terminal_level_api.rb
adyen-ruby-api-library-8.0.0.pre.beta.1 lib/adyen/services/management/terminals_terminal_level_api.rb