Sha256: ee26e4f4c602d200c4bf4c057c79cee83bb544e7d61e732768675d3a8b96c49b
Contents?: true
Size: 1.41 KB
Versions: 3
Compression:
Stored size: 1.41 KB
Contents
require_relative '../service' module Adyen class AndroidFilesCompanyLevelApi < Service attr_accessor :service, :version def initialize(client, version = DEFAULT_VERSION) super(client, version, 'Management') end def list_android_apps(company_id, headers: {}, query_params: {}) endpoint = '/companies/{companyId}/androidApps'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, company_id) endpoint += create_query_string(query_params) action = { method: 'get', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end def get_android_app(company_id, id, headers: {}) endpoint = '/companies/{companyId}/androidApps/{id}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, company_id, id) action = { method: 'get', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end def list_android_certificates(company_id, headers: {}, query_params: {}) endpoint = '/companies/{companyId}/androidCertificates'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, company_id) 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
3 entries across 3 versions & 1 rubygems