Skip to content

Update all services #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions lib/adyen/services/posTerminalManagement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ def initialize(client, version = DEFAULT_VERSION)
end

# Assign terminals
#
# Deprecated since POS Terminal Management API v1
# Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
def assign_terminals(request, headers: {})
endpoint = '/assignTerminals'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand All @@ -24,6 +27,9 @@ def assign_terminals(request, headers: {})
end

# Get the account or store of a terminal
#
# Deprecated since POS Terminal Management API v1
# Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
def find_terminal(request, headers: {})
endpoint = '/findTerminal'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand All @@ -34,6 +40,9 @@ def find_terminal(request, headers: {})
end

# Get the stores of an account
#
# Deprecated since POS Terminal Management API v1
# Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
def get_stores_under_account(request, headers: {})
endpoint = '/getStoresUnderAccount'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand All @@ -44,6 +53,9 @@ def get_stores_under_account(request, headers: {})
end

# Get the details of a terminal
#
# Deprecated since POS Terminal Management API v1
# Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
def get_terminal_details(request, headers: {})
endpoint = '/getTerminalDetails'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand All @@ -54,6 +66,9 @@ def get_terminal_details(request, headers: {})
end

# Get the list of terminals
#
# Deprecated since POS Terminal Management API v1
# Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
def get_terminals_under_account(request, headers: {})
endpoint = '/getTerminalsUnderAccount'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
Expand Down
Loading