Class: Hithorizons::Invoicing::SearchUnstructured

Inherits:
BaseApi show all
Defined in:
lib/hithorizons/invoicing/search_unstructured.rb

Constant Summary

Constants inherited from BaseApi

BaseApi::API_URL

Constants inherited from BaseApi

BaseApi::API_URL

Class Method Summary collapse

Methods inherited from BaseApi

api_key

Methods inherited from BaseApi

api_key, initialize_client, process_request, request

Class Method Details

.get(country_code:, ids: nil, name: nil, address: nil, max_results: nil) ⇒ Object



6
7
8
9
# File 'lib/hithorizons/invoicing/search_unstructured.rb', line 6

def self.get(country_code:, ids: nil, name: nil, address: nil, max_results: nil)
  payload = { Ids: ids, Name: name, Address: address, MaxResults: max_results }
  process_request("/#{country_code}/Company/SearchUnstructured", 'GET', payload.compact)
end