class Adyen::APIKeyCompanyLevelApi
def generate_new_api_key(company_id, api_credential_id, headers: {})
def generate_new_api_key(company_id, api_credential_id, headers: {}) endpoint = '/companies/{companyId}/apiCredentials/{apiCredentialId}/generateApiKey'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, company_id, api_credential_id) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end
def initialize(client, version = DEFAULT_VERSION)
def initialize(client, version = DEFAULT_VERSION) super(client, version, 'Management') end