Class: Adyen::PosTerminalManagement
- Defined in:
- lib/adyen/services/posTerminalManagement.rb
Overview
NOTE: This class is auto generated by OpenAPI Generator Ref: openapi-generator.tech
Do not edit the class manually.
Constant Summary collapse
- DEFAULT_VERSION =
1
Instance Attribute Summary collapse
-
#service ⇒ Object
Returns the value of attribute service.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#assign_terminals(request, headers: {}) ⇒ Object
Assign terminals.
-
#find_terminal(request, headers: {}) ⇒ Object
Get the account or store of a terminal.
-
#get_stores_under_account(request, headers: {}) ⇒ Object
Get the stores of an account.
-
#get_terminal_details(request, headers: {}) ⇒ Object
Get the details of a terminal.
-
#get_terminals_under_account(request, headers: {}) ⇒ Object
Get the list of terminals.
-
#initialize(client, version = DEFAULT_VERSION) ⇒ PosTerminalManagement
constructor
A new instance of PosTerminalManagement.
Methods inherited from Service
action_for_method_name, #create_query_string
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ PosTerminalManagement
Returns a new instance of PosTerminalManagement.
12 13 14 |
# File 'lib/adyen/services/posTerminalManagement.rb', line 12 def initialize(client, version = DEFAULT_VERSION) super(client, version, 'PosTerminalManagement') end |
Instance Attribute Details
#service ⇒ Object
Returns the value of attribute service.
9 10 11 |
# File 'lib/adyen/services/posTerminalManagement.rb', line 9 def service @service end |
#version ⇒ Object
Returns the value of attribute version.
9 10 11 |
# File 'lib/adyen/services/posTerminalManagement.rb', line 9 def version @version end |
Instance Method Details
#assign_terminals(request, headers: {}) ⇒ Object
Assign terminals
Deprecated since POS Terminal Management API v1 Use [Management API](docs.adyen.com/api-explorer/Management/latest/overview).
20 21 22 23 24 25 26 27 |
# File 'lib/adyen/services/posTerminalManagement.rb', line 20 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 |
#find_terminal(request, headers: {}) ⇒ Object
Get the account or store of a terminal
Deprecated since POS Terminal Management API v1 Use [Management API](docs.adyen.com/api-explorer/Management/latest/overview).
33 34 35 36 37 38 39 40 |
# File 'lib/adyen/services/posTerminalManagement.rb', line 33 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 |
#get_stores_under_account(request, headers: {}) ⇒ Object
Get the stores of an account
Deprecated since POS Terminal Management API v1 Use [Management API](docs.adyen.com/api-explorer/Management/latest/overview).
46 47 48 49 50 51 52 53 |
# File 'lib/adyen/services/posTerminalManagement.rb', line 46 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 |
#get_terminal_details(request, headers: {}) ⇒ Object
Get the details of a terminal
Deprecated since POS Terminal Management API v1 Use [Management API](docs.adyen.com/api-explorer/Management/latest/overview).
59 60 61 62 63 64 65 66 |
# File 'lib/adyen/services/posTerminalManagement.rb', line 59 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 |
#get_terminals_under_account(request, headers: {}) ⇒ Object
Get the list of terminals
Deprecated since POS Terminal Management API v1 Use [Management API](docs.adyen.com/api-explorer/Management/latest/overview).
72 73 74 75 76 77 78 79 |
# File 'lib/adyen/services/posTerminalManagement.rb', line 72 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 |