class Adyen::APIKeyMerchantLevelApi

def generate_new_api_key(merchant_id, api_credential_id, headers: {})

def generate_new_api_key(merchant_id, api_credential_id, headers: {})
  endpoint = '/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey'.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

def initialize(client, version = DEFAULT_VERSION)

def initialize(client, version = DEFAULT_VERSION)
  super(client, version, 'Management')
end