Sha256: 0a4eec27ac1e402ec19049c2e2ec3c1da1deeeb2ea330b73e8d876547e198d48
Contents?: true
Size: 1.86 KB
Versions: 22
Compression:
Stored size: 1.86 KB
Contents
require_relative './service' module Adyen class PosTerminalManagement < Service attr_accessor :service, :version DEFAULT_VERSION = 1 def initialize(client, version = DEFAULT_VERSION) super(client, version, 'PosTerminalManagement') end def assign_terminals(request, headers: {}) endpoint = '/assignTerminals'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def find_terminal(request, headers: {}) endpoint = '/findTerminal'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def get_stores_under_account(request, headers: {}) endpoint = '/getStoresUnderAccount'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def get_terminal_details(request, headers: {}) endpoint = '/getTerminalDetails'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def get_terminals_under_account(request, headers: {}) endpoint = '/getTerminalsUnderAccount'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
adyen-ruby-api-library-7.0.3 | lib/adyen/services/posTerminalManagement.rb |
adyen-ruby-api-library-7.0.2 | lib/adyen/services/posTerminalManagement.rb |