Sha256: 94efa4df13ae350ac6ba38fe06000ddbbcae7b5321080a163fb919dadcde3a7d
Contents?: true
Size: 1.68 KB
Versions: 9
Compression:
Stored size: 1.68 KB
Contents
require_relative '../service' module Adyen class ManageSCADevicesApi < Service attr_accessor :service, :version def initialize(client, version = DEFAULT_VERSION) super(client, version, 'BalancePlatform') end def complete_registration_of_sca_device(request, id, headers: {}) endpoint = '/registeredDevices/{id}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, id) action = { method: 'patch', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def delete_registration_of_sca_device(id, headers: {}, query_params: {}) endpoint = '/registeredDevices/{id}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, id) endpoint += create_query_string(query_params) action = { method: 'delete', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end def initiate_registration_of_sca_device(request, headers: {}) endpoint = '/registeredDevices'.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 list_registered_sca_devices(headers: {}, query_params: {}) endpoint = '/registeredDevices'.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 end end
Version data entries
9 entries across 9 versions & 1 rubygems