class Adyen::TerminalCloudAPI

def async(request, headers: {})

def async(request, headers: {})
  endpoint = '/async'.gsub(/{.+?}/, '%s')
  endpoint = endpoint.gsub(%r{^/}, '')
  endpoint = format(endpoint)
  action = { method: 'post', url: endpoint }
  @client.call_adyen_api(@service, action, request, headers, @version)
end

def connected_terminals(request, headers: {})

def connected_terminals(request, headers: {})
  endpoint = '/connectedTerminals'.gsub(/{.+?}/, '%s')
  endpoint = endpoint.gsub(%r{^/}, '')
  endpoint = format(endpoint)
  
  action = { method: 'post', url: endpoint }
  @client.call_adyen_api(@service, action, request, headers, @version)
end

def initialize(client)

def initialize(client)
  super(client, nil ,'TerminalCloudAPI')
end

def sync(request, headers: {})

def sync(request, headers: {})
  endpoint = '/sync'.gsub(/{.+?}/, '%s')
  endpoint = endpoint.gsub(%r{^/}, '')
  endpoint = format(endpoint)
  
  action = { method: 'post', url: endpoint }
  @client.call_adyen_api(@service, action, request, headers, @version)
end