class Adyen::APICredentialsCompanyLevelApi
Do not edit the class manually.
Ref: openapi-generator.tech<br>NOTE: This class is auto generated by OpenAPI Generator
def create_api_credential(request, company_id, headers: {})
def create_api_credential(request, company_id, headers: {}) endpoint = '/companies/{companyId}/apiCredentials'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, company_id) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end
def get_api_credential(company_id, api_credential_id, headers: {})
def get_api_credential(company_id, api_credential_id, headers: {}) endpoint = '/companies/{companyId}/apiCredentials/{apiCredentialId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, company_id, api_credential_id) action = { method: 'get', 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
def list_api_credentials(company_id, headers: {}, query_params: {})
def list_api_credentials(company_id, headers: {}, query_params: {}) endpoint = '/companies/{companyId}/apiCredentials'.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 update_api_credential(request, company_id, api_credential_id, headers: {})
def update_api_credential(request, company_id, api_credential_id, headers: {}) endpoint = '/companies/{companyId}/apiCredentials/{apiCredentialId}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, company_id, api_credential_id) action = { method: 'patch', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end