require_relative '../service' module Adyen # NOTE: This class is auto generated by OpenAPI Generator # Ref: https://openapi-generator.tech # # Do not edit the class manually. class ClientKeyMerchantLevelApi < Service attr_accessor :service, :version def initialize(client, version = DEFAULT_VERSION) super(client, version, 'Management') end # Generate new client key def generate_new_client_key(merchant_id, api_credential_id, headers: {}) endpoint = '/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateClientKey'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, merchant_id, api_credential_id) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end end end