Case insensitive query not supported
meshin opened this issue · 1 comments
meshin commented
Xero API supports case insensitive queries with ToLower()
. Example:
GET /api.xro/2.0/Contacts?where=Contact.Name.ToLower().Contains("abc")
I can't find implementation of it in the gem. Is there any?
Monkeypatching doesn't work. My query is:
client.accounting_api.get_contacts(tenant_id, order: 'Name ASC', where: {
name: ['Contains', query.to_s],
is_customer: ['==', true],
contact_status: ['=', 'ACTIVE']
}).contacts