xero-ruby 2.1.0 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -9
  3. data/build_notes.md +25 -6
  4. data/docs/accounting/Account.md +1 -1
  5. data/docs/accounting/AccountingApi.md +4 -1
  6. data/docs/accounting/AccountsPayable.md +2 -2
  7. data/docs/accounting/AccountsReceivable.md +2 -2
  8. data/docs/accounting/Allocation.md +1 -1
  9. data/docs/accounting/BankTransaction.md +6 -6
  10. data/docs/accounting/BankTransfer.md +3 -3
  11. data/docs/accounting/BatchPayment.md +2 -2
  12. data/docs/accounting/BrandingTheme.md +1 -1
  13. data/docs/accounting/Contact.md +2 -2
  14. data/docs/accounting/CreditNote.md +6 -6
  15. data/docs/accounting/Employee.md +1 -1
  16. data/docs/accounting/ExpenseClaim.md +4 -4
  17. data/docs/accounting/HistoryRecord.md +1 -1
  18. data/docs/accounting/Invoice.md +12 -10
  19. data/docs/accounting/Item.md +3 -3
  20. data/docs/accounting/Journal.md +1 -1
  21. data/docs/accounting/JournalLine.md +3 -3
  22. data/docs/accounting/LineItem.md +6 -6
  23. data/docs/accounting/LinkedTransaction.md +1 -1
  24. data/docs/accounting/ManualJournal.md +1 -1
  25. data/docs/accounting/ManualJournalLine.md +2 -2
  26. data/docs/accounting/Organisation.md +1 -1
  27. data/docs/accounting/Overpayment.md +6 -6
  28. data/docs/accounting/Payment.md +3 -3
  29. data/docs/accounting/Prepayment.md +6 -6
  30. data/docs/accounting/Purchase.md +1 -1
  31. data/docs/accounting/PurchaseOrder.md +6 -6
  32. data/docs/accounting/Quote.md +5 -5
  33. data/docs/accounting/Receipt.md +4 -4
  34. data/docs/accounting/RepeatingInvoice.md +3 -3
  35. data/docs/accounting/Report.md +1 -1
  36. data/docs/accounting/ReportWithRow.md +1 -1
  37. data/docs/accounting/TaxComponent.md +1 -1
  38. data/docs/accounting/TaxRate.md +2 -2
  39. data/docs/accounting/TenNinetyNineContact.md +13 -13
  40. data/docs/accounting/TrackingOption.md +3 -3
  41. data/docs/accounting/User.md +1 -1
  42. data/docs/assets/Asset.md +3 -3
  43. data/docs/assets/AssetApi.md +6 -6
  44. data/docs/assets/BookDepreciationDetail.md +6 -6
  45. data/docs/assets/BookDepreciationSetting.md +1 -1
  46. data/docs/projects/Amount.md +1 -1
  47. data/docs/projects/ProjectCreateOrUpdate.md +1 -1
  48. data/lib/xero-ruby.rb +1 -1
  49. data/lib/xero-ruby/api/accounting_api.rb +434 -216
  50. data/lib/xero-ruby/api/asset_api.rb +19 -13
  51. data/lib/xero-ruby/api/project_api.rb +27 -14
  52. data/lib/xero-ruby/api_client.rb +34 -1
  53. data/lib/xero-ruby/api_error.rb +1 -1
  54. data/lib/xero-ruby/configuration.rb +2 -2
  55. data/lib/xero-ruby/models/accounting/account.rb +2 -18
  56. data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
  57. data/lib/xero-ruby/models/accounting/accounts.rb +2 -2
  58. data/lib/xero-ruby/models/accounting/accounts_payable.rb +2 -2
  59. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +2 -2
  60. data/lib/xero-ruby/models/accounting/address.rb +2 -2
  61. data/lib/xero-ruby/models/accounting/allocation.rb +2 -2
  62. data/lib/xero-ruby/models/accounting/allocations.rb +2 -2
  63. data/lib/xero-ruby/models/accounting/attachment.rb +2 -2
  64. data/lib/xero-ruby/models/accounting/attachments.rb +2 -2
  65. data/lib/xero-ruby/models/accounting/balances.rb +2 -2
  66. data/lib/xero-ruby/models/accounting/bank_transaction.rb +2 -7
  67. data/lib/xero-ruby/models/accounting/bank_transactions.rb +2 -2
  68. data/lib/xero-ruby/models/accounting/bank_transfer.rb +2 -2
  69. data/lib/xero-ruby/models/accounting/bank_transfers.rb +2 -2
  70. data/lib/xero-ruby/models/accounting/batch_payment.rb +2 -17
  71. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +2 -2
  72. data/lib/xero-ruby/models/accounting/batch_payments.rb +2 -2
  73. data/lib/xero-ruby/models/accounting/bill.rb +2 -2
  74. data/lib/xero-ruby/models/accounting/branding_theme.rb +2 -2
  75. data/lib/xero-ruby/models/accounting/branding_themes.rb +2 -2
  76. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +2 -2
  77. data/lib/xero-ruby/models/accounting/cis_setting.rb +2 -2
  78. data/lib/xero-ruby/models/accounting/cis_settings.rb +2 -2
  79. data/lib/xero-ruby/models/accounting/contact.rb +2 -2
  80. data/lib/xero-ruby/models/accounting/contact_group.rb +2 -2
  81. data/lib/xero-ruby/models/accounting/contact_groups.rb +2 -2
  82. data/lib/xero-ruby/models/accounting/contact_person.rb +2 -2
  83. data/lib/xero-ruby/models/accounting/contacts.rb +2 -2
  84. data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
  85. data/lib/xero-ruby/models/accounting/credit_note.rb +2 -2
  86. data/lib/xero-ruby/models/accounting/credit_notes.rb +2 -2
  87. data/lib/xero-ruby/models/accounting/currencies.rb +2 -2
  88. data/lib/xero-ruby/models/accounting/currency.rb +2 -2
  89. data/lib/xero-ruby/models/accounting/currency_code.rb +5 -3
  90. data/lib/xero-ruby/models/accounting/element.rb +2 -2
  91. data/lib/xero-ruby/models/accounting/employee.rb +5 -4
  92. data/lib/xero-ruby/models/accounting/employees.rb +2 -2
  93. data/lib/xero-ruby/models/accounting/error.rb +2 -2
  94. data/lib/xero-ruby/models/accounting/expense_claim.rb +2 -2
  95. data/lib/xero-ruby/models/accounting/expense_claims.rb +2 -2
  96. data/lib/xero-ruby/models/accounting/external_link.rb +2 -2
  97. data/lib/xero-ruby/models/accounting/history_record.rb +2 -2
  98. data/lib/xero-ruby/models/accounting/history_records.rb +2 -2
  99. data/lib/xero-ruby/models/accounting/invoice.rb +13 -3
  100. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +2 -2
  101. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +2 -2
  102. data/lib/xero-ruby/models/accounting/invoices.rb +2 -2
  103. data/lib/xero-ruby/models/accounting/item.rb +2 -2
  104. data/lib/xero-ruby/models/accounting/items.rb +2 -2
  105. data/lib/xero-ruby/models/accounting/journal.rb +2 -2
  106. data/lib/xero-ruby/models/accounting/journal_line.rb +2 -2
  107. data/lib/xero-ruby/models/accounting/journals.rb +2 -2
  108. data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
  109. data/lib/xero-ruby/models/accounting/line_item.rb +2 -2
  110. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +2 -2
  111. data/lib/xero-ruby/models/accounting/linked_transaction.rb +2 -2
  112. data/lib/xero-ruby/models/accounting/linked_transactions.rb +2 -2
  113. data/lib/xero-ruby/models/accounting/manual_journal.rb +2 -2
  114. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +2 -2
  115. data/lib/xero-ruby/models/accounting/manual_journals.rb +2 -2
  116. data/lib/xero-ruby/models/accounting/online_invoice.rb +2 -2
  117. data/lib/xero-ruby/models/accounting/online_invoices.rb +2 -2
  118. data/lib/xero-ruby/models/accounting/organisation.rb +2 -4
  119. data/lib/xero-ruby/models/accounting/organisations.rb +2 -2
  120. data/lib/xero-ruby/models/accounting/overpayment.rb +2 -2
  121. data/lib/xero-ruby/models/accounting/overpayments.rb +2 -2
  122. data/lib/xero-ruby/models/accounting/payment.rb +2 -2
  123. data/lib/xero-ruby/models/accounting/payment_delete.rb +2 -2
  124. data/lib/xero-ruby/models/accounting/payment_service.rb +2 -2
  125. data/lib/xero-ruby/models/accounting/payment_services.rb +2 -2
  126. data/lib/xero-ruby/models/accounting/payment_term.rb +2 -2
  127. data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
  128. data/lib/xero-ruby/models/accounting/payments.rb +2 -2
  129. data/lib/xero-ruby/models/accounting/phone.rb +2 -2
  130. data/lib/xero-ruby/models/accounting/prepayment.rb +2 -2
  131. data/lib/xero-ruby/models/accounting/prepayments.rb +2 -2
  132. data/lib/xero-ruby/models/accounting/purchase.rb +2 -2
  133. data/lib/xero-ruby/models/accounting/purchase_order.rb +2 -2
  134. data/lib/xero-ruby/models/accounting/purchase_orders.rb +2 -2
  135. data/lib/xero-ruby/models/accounting/quote.rb +2 -2
  136. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
  137. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
  138. data/lib/xero-ruby/models/accounting/quotes.rb +2 -2
  139. data/lib/xero-ruby/models/accounting/receipt.rb +2 -2
  140. data/lib/xero-ruby/models/accounting/receipts.rb +2 -2
  141. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +2 -2
  142. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +2 -2
  143. data/lib/xero-ruby/models/accounting/report.rb +2 -2
  144. data/lib/xero-ruby/models/accounting/report_attribute.rb +2 -2
  145. data/lib/xero-ruby/models/accounting/report_cell.rb +2 -2
  146. data/lib/xero-ruby/models/accounting/report_fields.rb +2 -2
  147. data/lib/xero-ruby/models/accounting/report_row.rb +2 -2
  148. data/lib/xero-ruby/models/accounting/report_rows.rb +2 -2
  149. data/lib/xero-ruby/models/accounting/report_with_row.rb +2 -2
  150. data/lib/xero-ruby/models/accounting/report_with_rows.rb +2 -2
  151. data/lib/xero-ruby/models/accounting/reports.rb +2 -2
  152. data/lib/xero-ruby/models/accounting/request_empty.rb +2 -2
  153. data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
  154. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +2 -2
  155. data/lib/xero-ruby/models/accounting/schedule.rb +2 -2
  156. data/lib/xero-ruby/models/accounting/tax_component.rb +2 -2
  157. data/lib/xero-ruby/models/accounting/tax_rate.rb +2 -2
  158. data/lib/xero-ruby/models/accounting/tax_rates.rb +2 -2
  159. data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
  160. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +2 -2
  161. data/lib/xero-ruby/models/accounting/time_zone.rb +2 -1
  162. data/lib/xero-ruby/models/accounting/tracking_categories.rb +2 -2
  163. data/lib/xero-ruby/models/accounting/tracking_category.rb +2 -2
  164. data/lib/xero-ruby/models/accounting/tracking_option.rb +10 -10
  165. data/lib/xero-ruby/models/accounting/tracking_options.rb +2 -2
  166. data/lib/xero-ruby/models/accounting/user.rb +2 -2
  167. data/lib/xero-ruby/models/accounting/users.rb +2 -2
  168. data/lib/xero-ruby/models/accounting/validation_error.rb +2 -2
  169. data/lib/xero-ruby/models/assets/asset.rb +2 -2
  170. data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
  171. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
  172. data/lib/xero-ruby/models/assets/asset_type.rb +2 -2
  173. data/lib/xero-ruby/models/assets/assets.rb +2 -2
  174. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +2 -2
  175. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +2 -2
  176. data/lib/xero-ruby/models/assets/error.rb +2 -2
  177. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +2 -2
  178. data/lib/xero-ruby/models/assets/pagination.rb +2 -2
  179. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +2 -2
  180. data/lib/xero-ruby/models/assets/setting.rb +2 -2
  181. data/lib/xero-ruby/models/projects/amount.rb +2 -2
  182. data/lib/xero-ruby/models/projects/charge_type.rb +1 -1
  183. data/lib/xero-ruby/models/projects/currency_code.rb +1 -1
  184. data/lib/xero-ruby/models/projects/error.rb +2 -2
  185. data/lib/xero-ruby/models/projects/pagination.rb +2 -2
  186. data/lib/xero-ruby/models/projects/project.rb +2 -2
  187. data/lib/xero-ruby/models/projects/project_create_or_update.rb +2 -2
  188. data/lib/xero-ruby/models/projects/project_patch.rb +2 -2
  189. data/lib/xero-ruby/models/projects/project_status.rb +1 -1
  190. data/lib/xero-ruby/models/projects/project_user.rb +2 -2
  191. data/lib/xero-ruby/models/projects/project_users.rb +2 -2
  192. data/lib/xero-ruby/models/projects/projects.rb +2 -2
  193. data/lib/xero-ruby/models/projects/task.rb +2 -2
  194. data/lib/xero-ruby/models/projects/task_create_or_update.rb +2 -2
  195. data/lib/xero-ruby/models/projects/tasks.rb +2 -2
  196. data/lib/xero-ruby/models/projects/time_entries.rb +2 -2
  197. data/lib/xero-ruby/models/projects/time_entry.rb +2 -2
  198. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +2 -2
  199. data/lib/xero-ruby/version.rb +2 -2
  200. data/xero-ruby-2.2.3.gem +0 -0
  201. data/xero-ruby.gem +0 -0
  202. data/xero-ruby.gemspec +2 -2
  203. metadata +5 -3
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **depreciation_method** | **String** | The method of depreciation applied to this asset. See Depreciation Methods | [optional]
8
8
  **averaging_method** | **String** | The method of averaging applied to this asset. See Averaging Methods | [optional]
9
- **depreciation_rate** | **Float** | The rate of depreciation (e.g. 0.05) | [optional]
9
+ **depreciation_rate** | **BigDecimal** | The rate of depreciation (e.g. 0.05) | [optional]
10
10
  **effective_life_years** | **Integer** | Effective life of the asset in years (e.g. 5) | [optional]
11
11
  **depreciation_calculation_method** | **String** | See Depreciation Calculation Methods | [optional]
12
12
  **depreciable_object_id** | **String** | Unique Xero identifier for the depreciable object | [optional]
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **currency** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
8
- **value** | **Float** | | [optional]
8
+ **value** | **BigDecimal** | | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **contact_id** | **String** | Identifier of the contact this project was created for. | [optional]
8
8
  **name** | **String** | Name of the project. |
9
- **estimate_amount** | **Float** | | [optional]
9
+ **estimate_amount** | **BigDecimal** | | [optional]
10
10
  **deadline_utc** | **DateTime** | Deadline for the project. UTC Date Time in ISO-8601 format. | [optional]
11
11
 
12
12
  ## Code Sample
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.2.12
6
+ The version of the OpenAPI document: 2.3.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.2.12
6
+ The version of the OpenAPI document: 2.3.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
@@ -50,7 +50,8 @@ module XeroRuby
50
50
  local_var_path = '/Accounts'
51
51
 
52
52
  # camelize keys of incoming `where` opts
53
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
53
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
54
+
54
55
  # query parameters
55
56
  query_params = opts[:query_params] || {}
56
57
 
@@ -137,7 +138,8 @@ module XeroRuby
137
138
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
138
139
 
139
140
  # camelize keys of incoming `where` opts
140
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
141
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
142
+
141
143
  # query parameters
142
144
  query_params = opts[:query_params] || {}
143
145
 
@@ -224,7 +226,8 @@ module XeroRuby
224
226
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
225
227
 
226
228
  # camelize keys of incoming `where` opts
227
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
229
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
230
+
228
231
  # query parameters
229
232
  query_params = opts[:query_params] || {}
230
233
 
@@ -305,7 +308,8 @@ module XeroRuby
305
308
  local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
306
309
 
307
310
  # camelize keys of incoming `where` opts
308
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
311
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
312
+
309
313
  # query parameters
310
314
  query_params = opts[:query_params] || {}
311
315
 
@@ -384,7 +388,8 @@ module XeroRuby
384
388
  local_var_path = '/BankTransactions'
385
389
 
386
390
  # camelize keys of incoming `where` opts
387
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
391
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
392
+
388
393
  # query parameters
389
394
  query_params = opts[:query_params] || {}
390
395
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -461,7 +466,8 @@ module XeroRuby
461
466
  local_var_path = '/BankTransfers'
462
467
 
463
468
  # camelize keys of incoming `where` opts
464
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
469
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
470
+
465
471
  # query parameters
466
472
  query_params = opts[:query_params] || {}
467
473
 
@@ -546,7 +552,8 @@ module XeroRuby
546
552
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
547
553
 
548
554
  # camelize keys of incoming `where` opts
549
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
555
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
556
+
550
557
  # query parameters
551
558
  query_params = opts[:query_params] || {}
552
559
 
@@ -625,7 +632,8 @@ module XeroRuby
625
632
  local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
626
633
 
627
634
  # camelize keys of incoming `where` opts
628
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
635
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
636
+
629
637
  # query parameters
630
638
  query_params = opts[:query_params] || {}
631
639
 
@@ -702,7 +710,8 @@ module XeroRuby
702
710
  local_var_path = '/BatchPayments'
703
711
 
704
712
  # camelize keys of incoming `where` opts
705
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
713
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
714
+
706
715
  # query parameters
707
716
  query_params = opts[:query_params] || {}
708
717
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -784,7 +793,8 @@ module XeroRuby
784
793
  local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s)
785
794
 
786
795
  # camelize keys of incoming `where` opts
787
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
796
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
797
+
788
798
  # query parameters
789
799
  query_params = opts[:query_params] || {}
790
800
 
@@ -865,7 +875,8 @@ module XeroRuby
865
875
  local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
866
876
 
867
877
  # camelize keys of incoming `where` opts
868
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
878
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
879
+
869
880
  # query parameters
870
881
  query_params = opts[:query_params] || {}
871
882
 
@@ -950,7 +961,8 @@ module XeroRuby
950
961
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
951
962
 
952
963
  # camelize keys of incoming `where` opts
953
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
964
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
965
+
954
966
  # query parameters
955
967
  query_params = opts[:query_params] || {}
956
968
 
@@ -1025,7 +1037,8 @@ module XeroRuby
1025
1037
  local_var_path = '/ContactGroups'
1026
1038
 
1027
1039
  # camelize keys of incoming `where` opts
1028
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1040
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1041
+
1029
1042
  # query parameters
1030
1043
  query_params = opts[:query_params] || {}
1031
1044
 
@@ -1106,7 +1119,8 @@ module XeroRuby
1106
1119
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
1107
1120
 
1108
1121
  # camelize keys of incoming `where` opts
1109
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1122
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1123
+
1110
1124
  # query parameters
1111
1125
  query_params = opts[:query_params] || {}
1112
1126
 
@@ -1187,7 +1201,8 @@ module XeroRuby
1187
1201
  local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s)
1188
1202
 
1189
1203
  # camelize keys of incoming `where` opts
1190
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1204
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1205
+
1191
1206
  # query parameters
1192
1207
  query_params = opts[:query_params] || {}
1193
1208
 
@@ -1264,7 +1279,8 @@ module XeroRuby
1264
1279
  local_var_path = '/Contacts'
1265
1280
 
1266
1281
  # camelize keys of incoming `where` opts
1267
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1282
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1283
+
1268
1284
  # query parameters
1269
1285
  query_params = opts[:query_params] || {}
1270
1286
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -1348,7 +1364,8 @@ module XeroRuby
1348
1364
  local_var_path = '/CreditNotes/{CreditNoteID}/Allocations'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
1349
1365
 
1350
1366
  # camelize keys of incoming `where` opts
1351
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1367
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1368
+
1352
1369
  # query parameters
1353
1370
  query_params = opts[:query_params] || {}
1354
1371
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -1438,7 +1455,8 @@ module XeroRuby
1438
1455
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
1439
1456
 
1440
1457
  # camelize keys of incoming `where` opts
1441
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1458
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1459
+
1442
1460
  # query parameters
1443
1461
  query_params = opts[:query_params] || {}
1444
1462
  query_params[:'IncludeOnline'] = opts[:'include_online'] if !opts[:'include_online'].nil?
@@ -1520,7 +1538,8 @@ module XeroRuby
1520
1538
  local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
1521
1539
 
1522
1540
  # camelize keys of incoming `where` opts
1523
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1541
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1542
+
1524
1543
  # query parameters
1525
1544
  query_params = opts[:query_params] || {}
1526
1545
 
@@ -1599,7 +1618,8 @@ module XeroRuby
1599
1618
  local_var_path = '/CreditNotes'
1600
1619
 
1601
1620
  # camelize keys of incoming `where` opts
1602
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1621
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1622
+
1603
1623
  # query parameters
1604
1624
  query_params = opts[:query_params] || {}
1605
1625
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -1674,7 +1694,8 @@ module XeroRuby
1674
1694
  local_var_path = '/Currencies'
1675
1695
 
1676
1696
  # camelize keys of incoming `where` opts
1677
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1697
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1698
+
1678
1699
  # query parameters
1679
1700
  query_params = opts[:query_params] || {}
1680
1701
 
@@ -1751,7 +1772,8 @@ module XeroRuby
1751
1772
  local_var_path = '/Employees'
1752
1773
 
1753
1774
  # camelize keys of incoming `where` opts
1754
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1775
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1776
+
1755
1777
  # query parameters
1756
1778
  query_params = opts[:query_params] || {}
1757
1779
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -1833,7 +1855,8 @@ module XeroRuby
1833
1855
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
1834
1856
 
1835
1857
  # camelize keys of incoming `where` opts
1836
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1858
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1859
+
1837
1860
  # query parameters
1838
1861
  query_params = opts[:query_params] || {}
1839
1862
 
@@ -1908,7 +1931,8 @@ module XeroRuby
1908
1931
  local_var_path = '/ExpenseClaims'
1909
1932
 
1910
1933
  # camelize keys of incoming `where` opts
1911
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1934
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1935
+
1912
1936
  # query parameters
1913
1937
  query_params = opts[:query_params] || {}
1914
1938
 
@@ -1997,7 +2021,8 @@ module XeroRuby
1997
2021
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
1998
2022
 
1999
2023
  # camelize keys of incoming `where` opts
2000
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2024
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2025
+
2001
2026
  # query parameters
2002
2027
  query_params = opts[:query_params] || {}
2003
2028
  query_params[:'IncludeOnline'] = opts[:'include_online'] if !opts[:'include_online'].nil?
@@ -2079,7 +2104,8 @@ module XeroRuby
2079
2104
  local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
2080
2105
 
2081
2106
  # camelize keys of incoming `where` opts
2082
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2107
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2108
+
2083
2109
  # query parameters
2084
2110
  query_params = opts[:query_params] || {}
2085
2111
 
@@ -2158,7 +2184,8 @@ module XeroRuby
2158
2184
  local_var_path = '/Invoices'
2159
2185
 
2160
2186
  # camelize keys of incoming `where` opts
2161
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2187
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2188
+
2162
2189
  # query parameters
2163
2190
  query_params = opts[:query_params] || {}
2164
2191
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -2241,7 +2268,8 @@ module XeroRuby
2241
2268
  local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s)
2242
2269
 
2243
2270
  # camelize keys of incoming `where` opts
2244
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2271
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2272
+
2245
2273
  # query parameters
2246
2274
  query_params = opts[:query_params] || {}
2247
2275
 
@@ -2320,7 +2348,8 @@ module XeroRuby
2320
2348
  local_var_path = '/Items'
2321
2349
 
2322
2350
  # camelize keys of incoming `where` opts
2323
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2351
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2352
+
2324
2353
  # query parameters
2325
2354
  query_params = opts[:query_params] || {}
2326
2355
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -2397,7 +2426,8 @@ module XeroRuby
2397
2426
  local_var_path = '/LinkedTransactions'
2398
2427
 
2399
2428
  # camelize keys of incoming `where` opts
2400
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2429
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2430
+
2401
2431
  # query parameters
2402
2432
  query_params = opts[:query_params] || {}
2403
2433
 
@@ -2484,7 +2514,8 @@ module XeroRuby
2484
2514
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
2485
2515
 
2486
2516
  # camelize keys of incoming `where` opts
2487
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2517
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2518
+
2488
2519
  # query parameters
2489
2520
  query_params = opts[:query_params] || {}
2490
2521
 
@@ -2561,7 +2592,8 @@ module XeroRuby
2561
2592
  local_var_path = '/ManualJournals'
2562
2593
 
2563
2594
  # camelize keys of incoming `where` opts
2564
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2595
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2596
+
2565
2597
  # query parameters
2566
2598
  query_params = opts[:query_params] || {}
2567
2599
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -2645,7 +2677,8 @@ module XeroRuby
2645
2677
  local_var_path = '/Overpayments/{OverpaymentID}/Allocations'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
2646
2678
 
2647
2679
  # camelize keys of incoming `where` opts
2648
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2680
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2681
+
2649
2682
  # query parameters
2650
2683
  query_params = opts[:query_params] || {}
2651
2684
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -2727,7 +2760,8 @@ module XeroRuby
2727
2760
  local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
2728
2761
 
2729
2762
  # camelize keys of incoming `where` opts
2730
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2763
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2764
+
2731
2765
  # query parameters
2732
2766
  query_params = opts[:query_params] || {}
2733
2767
 
@@ -2802,7 +2836,8 @@ module XeroRuby
2802
2836
  local_var_path = '/Payments'
2803
2837
 
2804
2838
  # camelize keys of incoming `where` opts
2805
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2839
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2840
+
2806
2841
  # query parameters
2807
2842
  query_params = opts[:query_params] || {}
2808
2843
 
@@ -2883,7 +2918,8 @@ module XeroRuby
2883
2918
  local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
2884
2919
 
2885
2920
  # camelize keys of incoming `where` opts
2886
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2921
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2922
+
2887
2923
  # query parameters
2888
2924
  query_params = opts[:query_params] || {}
2889
2925
 
@@ -2958,7 +2994,8 @@ module XeroRuby
2958
2994
  local_var_path = '/PaymentServices'
2959
2995
 
2960
2996
  # camelize keys of incoming `where` opts
2961
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2997
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2998
+
2962
2999
  # query parameters
2963
3000
  query_params = opts[:query_params] || {}
2964
3001
 
@@ -3035,7 +3072,8 @@ module XeroRuby
3035
3072
  local_var_path = '/Payments'
3036
3073
 
3037
3074
  # camelize keys of incoming `where` opts
3038
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3075
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3076
+
3039
3077
  # query parameters
3040
3078
  query_params = opts[:query_params] || {}
3041
3079
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -3119,7 +3157,8 @@ module XeroRuby
3119
3157
  local_var_path = '/Prepayments/{PrepaymentID}/Allocations'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
3120
3158
 
3121
3159
  # camelize keys of incoming `where` opts
3122
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3160
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3161
+
3123
3162
  # query parameters
3124
3163
  query_params = opts[:query_params] || {}
3125
3164
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -3201,7 +3240,8 @@ module XeroRuby
3201
3240
  local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
3202
3241
 
3203
3242
  # camelize keys of incoming `where` opts
3204
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3243
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3244
+
3205
3245
  # query parameters
3206
3246
  query_params = opts[:query_params] || {}
3207
3247
 
@@ -3282,7 +3322,8 @@ module XeroRuby
3282
3322
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
3283
3323
 
3284
3324
  # camelize keys of incoming `where` opts
3285
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3325
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3326
+
3286
3327
  # query parameters
3287
3328
  query_params = opts[:query_params] || {}
3288
3329
 
@@ -3359,7 +3400,8 @@ module XeroRuby
3359
3400
  local_var_path = '/PurchaseOrders'
3360
3401
 
3361
3402
  # camelize keys of incoming `where` opts
3362
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3403
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3404
+
3363
3405
  # query parameters
3364
3406
  query_params = opts[:query_params] || {}
3365
3407
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -3447,7 +3489,8 @@ module XeroRuby
3447
3489
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3448
3490
 
3449
3491
  # camelize keys of incoming `where` opts
3450
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3492
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3493
+
3451
3494
  # query parameters
3452
3495
  query_params = opts[:query_params] || {}
3453
3496
 
@@ -3528,7 +3571,8 @@ module XeroRuby
3528
3571
  local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
3529
3572
 
3530
3573
  # camelize keys of incoming `where` opts
3531
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3574
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3575
+
3532
3576
  # query parameters
3533
3577
  query_params = opts[:query_params] || {}
3534
3578
 
@@ -3605,7 +3649,8 @@ module XeroRuby
3605
3649
  local_var_path = '/Quotes'
3606
3650
 
3607
3651
  # camelize keys of incoming `where` opts
3608
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3652
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3653
+
3609
3654
  # query parameters
3610
3655
  query_params = opts[:query_params] || {}
3611
3656
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -3683,7 +3728,8 @@ module XeroRuby
3683
3728
  local_var_path = '/Receipts'
3684
3729
 
3685
3730
  # camelize keys of incoming `where` opts
3686
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3731
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3732
+
3687
3733
  # query parameters
3688
3734
  query_params = opts[:query_params] || {}
3689
3735
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -3771,7 +3817,8 @@ module XeroRuby
3771
3817
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3772
3818
 
3773
3819
  # camelize keys of incoming `where` opts
3774
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3820
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3821
+
3775
3822
  # query parameters
3776
3823
  query_params = opts[:query_params] || {}
3777
3824
 
@@ -3852,7 +3899,8 @@ module XeroRuby
3852
3899
  local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
3853
3900
 
3854
3901
  # camelize keys of incoming `where` opts
3855
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3902
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3903
+
3856
3904
  # query parameters
3857
3905
  query_params = opts[:query_params] || {}
3858
3906
 
@@ -3939,7 +3987,8 @@ module XeroRuby
3939
3987
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3940
3988
 
3941
3989
  # camelize keys of incoming `where` opts
3942
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3990
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3991
+
3943
3992
  # query parameters
3944
3993
  query_params = opts[:query_params] || {}
3945
3994
 
@@ -4020,7 +4069,8 @@ module XeroRuby
4020
4069
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
4021
4070
 
4022
4071
  # camelize keys of incoming `where` opts
4023
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4072
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4073
+
4024
4074
  # query parameters
4025
4075
  query_params = opts[:query_params] || {}
4026
4076
 
@@ -4095,7 +4145,8 @@ module XeroRuby
4095
4145
  local_var_path = '/TaxRates'
4096
4146
 
4097
4147
  # camelize keys of incoming `where` opts
4098
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4148
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4149
+
4099
4150
  # query parameters
4100
4151
  query_params = opts[:query_params] || {}
4101
4152
 
@@ -4170,7 +4221,8 @@ module XeroRuby
4170
4221
  local_var_path = '/TrackingCategories'
4171
4222
 
4172
4223
  # camelize keys of incoming `where` opts
4173
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4224
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4225
+
4174
4226
  # query parameters
4175
4227
  query_params = opts[:query_params] || {}
4176
4228
 
@@ -4251,7 +4303,8 @@ module XeroRuby
4251
4303
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
4252
4304
 
4253
4305
  # camelize keys of incoming `where` opts
4254
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4306
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4307
+
4255
4308
  # query parameters
4256
4309
  query_params = opts[:query_params] || {}
4257
4310
 
@@ -4326,7 +4379,8 @@ module XeroRuby
4326
4379
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
4327
4380
 
4328
4381
  # camelize keys of incoming `where` opts
4329
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4382
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4383
+
4330
4384
  # query parameters
4331
4385
  query_params = opts[:query_params] || {}
4332
4386
 
@@ -4405,7 +4459,8 @@ module XeroRuby
4405
4459
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts/{ContactID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s).sub('{' + 'ContactID' + '}', contact_id.to_s)
4406
4460
 
4407
4461
  # camelize keys of incoming `where` opts
4408
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4462
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4463
+
4409
4464
  # query parameters
4410
4465
  query_params = opts[:query_params] || {}
4411
4466
 
@@ -4478,7 +4533,8 @@ module XeroRuby
4478
4533
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
4479
4534
 
4480
4535
  # camelize keys of incoming `where` opts
4481
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4536
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4537
+
4482
4538
  # query parameters
4483
4539
  query_params = opts[:query_params] || {}
4484
4540
 
@@ -4549,7 +4605,8 @@ module XeroRuby
4549
4605
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
4550
4606
 
4551
4607
  # camelize keys of incoming `where` opts
4552
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4608
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4609
+
4553
4610
  # query parameters
4554
4611
  query_params = opts[:query_params] || {}
4555
4612
 
@@ -4622,7 +4679,8 @@ module XeroRuby
4622
4679
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
4623
4680
 
4624
4681
  # camelize keys of incoming `where` opts
4625
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4682
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4683
+
4626
4684
  # query parameters
4627
4685
  query_params = opts[:query_params] || {}
4628
4686
 
@@ -4701,7 +4759,8 @@ module XeroRuby
4701
4759
  local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
4702
4760
 
4703
4761
  # camelize keys of incoming `where` opts
4704
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4762
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4763
+
4705
4764
  # query parameters
4706
4765
  query_params = opts[:query_params] || {}
4707
4766
 
@@ -4776,7 +4835,8 @@ module XeroRuby
4776
4835
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
4777
4836
 
4778
4837
  # camelize keys of incoming `where` opts
4779
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4838
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4839
+
4780
4840
  # query parameters
4781
4841
  query_params = opts[:query_params] || {}
4782
4842
 
@@ -4855,7 +4915,8 @@ module XeroRuby
4855
4915
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s)
4856
4916
 
4857
4917
  # camelize keys of incoming `where` opts
4858
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4918
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4919
+
4859
4920
  # query parameters
4860
4921
  query_params = opts[:query_params] || {}
4861
4922
 
@@ -4934,7 +4995,8 @@ module XeroRuby
4934
4995
  local_var_path = '/Invoices/{InvoiceID}/Email'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
4935
4996
 
4936
4997
  # camelize keys of incoming `where` opts
4937
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4998
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4999
+
4938
5000
  # query parameters
4939
5001
  query_params = opts[:query_params] || {}
4940
5002
 
@@ -5009,7 +5071,8 @@ module XeroRuby
5009
5071
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
5010
5072
 
5011
5073
  # camelize keys of incoming `where` opts
5012
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5074
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5075
+
5013
5076
  # query parameters
5014
5077
  query_params = opts[:query_params] || {}
5015
5078
 
@@ -5094,7 +5157,8 @@ module XeroRuby
5094
5157
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
5095
5158
 
5096
5159
  # camelize keys of incoming `where` opts
5097
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5160
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5161
+
5098
5162
  # query parameters
5099
5163
  query_params = opts[:query_params] || {}
5100
5164
 
@@ -5180,7 +5244,8 @@ module XeroRuby
5180
5244
  local_var_path = '/Accounts/{AccountID}/Attachments/{AttachmentID}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
5181
5245
 
5182
5246
  # camelize keys of incoming `where` opts
5183
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5247
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5248
+
5184
5249
  # query parameters
5185
5250
  query_params = opts[:query_params] || {}
5186
5251
 
@@ -5254,7 +5319,8 @@ module XeroRuby
5254
5319
  local_var_path = '/Accounts/{AccountID}/Attachments'.sub('{' + 'AccountID' + '}', account_id.to_s)
5255
5320
 
5256
5321
  # camelize keys of incoming `where` opts
5257
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5322
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5323
+
5258
5324
  # query parameters
5259
5325
  query_params = opts[:query_params] || {}
5260
5326
 
@@ -5327,7 +5393,8 @@ module XeroRuby
5327
5393
  local_var_path = '/Accounts'
5328
5394
 
5329
5395
  # camelize keys of incoming `where` opts
5330
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5396
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5397
+
5331
5398
  # query parameters
5332
5399
  query_params = opts[:query_params] || {}
5333
5400
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -5405,7 +5472,8 @@ module XeroRuby
5405
5472
  local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5406
5473
 
5407
5474
  # camelize keys of incoming `where` opts
5408
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5475
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5476
+
5409
5477
  # query parameters
5410
5478
  query_params = opts[:query_params] || {}
5411
5479
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -5491,7 +5559,8 @@ module XeroRuby
5491
5559
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
5492
5560
 
5493
5561
  # camelize keys of incoming `where` opts
5494
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5562
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5563
+
5495
5564
  # query parameters
5496
5565
  query_params = opts[:query_params] || {}
5497
5566
 
@@ -5577,7 +5646,8 @@ module XeroRuby
5577
5646
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
5578
5647
 
5579
5648
  # camelize keys of incoming `where` opts
5580
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5649
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5650
+
5581
5651
  # query parameters
5582
5652
  query_params = opts[:query_params] || {}
5583
5653
 
@@ -5651,7 +5721,8 @@ module XeroRuby
5651
5721
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5652
5722
 
5653
5723
  # camelize keys of incoming `where` opts
5654
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5724
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5725
+
5655
5726
  # query parameters
5656
5727
  query_params = opts[:query_params] || {}
5657
5728
 
@@ -5728,7 +5799,8 @@ module XeroRuby
5728
5799
  local_var_path = '/BankTransactions'
5729
5800
 
5730
5801
  # camelize keys of incoming `where` opts
5731
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5802
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5803
+
5732
5804
  # query parameters
5733
5805
  query_params = opts[:query_params] || {}
5734
5806
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -5806,7 +5878,8 @@ module XeroRuby
5806
5878
  local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5807
5879
 
5808
5880
  # camelize keys of incoming `where` opts
5809
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5881
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5882
+
5810
5883
  # query parameters
5811
5884
  query_params = opts[:query_params] || {}
5812
5885
 
@@ -5879,7 +5952,8 @@ module XeroRuby
5879
5952
  local_var_path = '/BankTransfers/{BankTransferID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
5880
5953
 
5881
5954
  # camelize keys of incoming `where` opts
5882
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5955
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5956
+
5883
5957
  # query parameters
5884
5958
  query_params = opts[:query_params] || {}
5885
5959
 
@@ -5964,7 +6038,8 @@ module XeroRuby
5964
6038
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
5965
6039
 
5966
6040
  # camelize keys of incoming `where` opts
5967
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6041
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6042
+
5968
6043
  # query parameters
5969
6044
  query_params = opts[:query_params] || {}
5970
6045
 
@@ -6050,7 +6125,8 @@ module XeroRuby
6050
6125
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
6051
6126
 
6052
6127
  # camelize keys of incoming `where` opts
6053
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6128
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6129
+
6054
6130
  # query parameters
6055
6131
  query_params = opts[:query_params] || {}
6056
6132
 
@@ -6124,7 +6200,8 @@ module XeroRuby
6124
6200
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
6125
6201
 
6126
6202
  # camelize keys of incoming `where` opts
6127
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6203
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6204
+
6128
6205
  # query parameters
6129
6206
  query_params = opts[:query_params] || {}
6130
6207
 
@@ -6197,7 +6274,8 @@ module XeroRuby
6197
6274
  local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
6198
6275
 
6199
6276
  # camelize keys of incoming `where` opts
6200
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6277
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6278
+
6201
6279
  # query parameters
6202
6280
  query_params = opts[:query_params] || {}
6203
6281
 
@@ -6270,7 +6348,8 @@ module XeroRuby
6270
6348
  local_var_path = '/BankTransfers'
6271
6349
 
6272
6350
  # camelize keys of incoming `where` opts
6273
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6351
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6352
+
6274
6353
  # query parameters
6275
6354
  query_params = opts[:query_params] || {}
6276
6355
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -6346,7 +6425,8 @@ module XeroRuby
6346
6425
  local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s)
6347
6426
 
6348
6427
  # camelize keys of incoming `where` opts
6349
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6428
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6429
+
6350
6430
  # query parameters
6351
6431
  query_params = opts[:query_params] || {}
6352
6432
 
@@ -6419,7 +6499,8 @@ module XeroRuby
6419
6499
  local_var_path = '/BatchPayments'
6420
6500
 
6421
6501
  # camelize keys of incoming `where` opts
6422
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6502
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6503
+
6423
6504
  # query parameters
6424
6505
  query_params = opts[:query_params] || {}
6425
6506
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -6495,7 +6576,8 @@ module XeroRuby
6495
6576
  local_var_path = '/BrandingThemes/{BrandingThemeID}'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
6496
6577
 
6497
6578
  # camelize keys of incoming `where` opts
6498
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6579
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6580
+
6499
6581
  # query parameters
6500
6582
  query_params = opts[:query_params] || {}
6501
6583
 
@@ -6568,7 +6650,8 @@ module XeroRuby
6568
6650
  local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
6569
6651
 
6570
6652
  # camelize keys of incoming `where` opts
6571
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6653
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6654
+
6572
6655
  # query parameters
6573
6656
  query_params = opts[:query_params] || {}
6574
6657
 
@@ -6635,7 +6718,8 @@ module XeroRuby
6635
6718
  local_var_path = '/BrandingThemes'
6636
6719
 
6637
6720
  # camelize keys of incoming `where` opts
6638
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6721
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6722
+
6639
6723
  # query parameters
6640
6724
  query_params = opts[:query_params] || {}
6641
6725
 
@@ -6708,7 +6792,8 @@ module XeroRuby
6708
6792
  local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s)
6709
6793
 
6710
6794
  # camelize keys of incoming `where` opts
6711
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6795
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6796
+
6712
6797
  # query parameters
6713
6798
  query_params = opts[:query_params] || {}
6714
6799
 
@@ -6793,7 +6878,8 @@ module XeroRuby
6793
6878
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
6794
6879
 
6795
6880
  # camelize keys of incoming `where` opts
6796
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6881
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6882
+
6797
6883
  # query parameters
6798
6884
  query_params = opts[:query_params] || {}
6799
6885
 
@@ -6879,7 +6965,8 @@ module XeroRuby
6879
6965
  local_var_path = '/Contacts/{ContactID}/Attachments/{AttachmentID}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
6880
6966
 
6881
6967
  # camelize keys of incoming `where` opts
6882
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6968
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6969
+
6883
6970
  # query parameters
6884
6971
  query_params = opts[:query_params] || {}
6885
6972
 
@@ -6953,7 +7040,8 @@ module XeroRuby
6953
7040
  local_var_path = '/Contacts/{ContactID}/Attachments'.sub('{' + 'ContactID' + '}', contact_id.to_s)
6954
7041
 
6955
7042
  # camelize keys of incoming `where` opts
6956
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7043
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7044
+
6957
7045
  # query parameters
6958
7046
  query_params = opts[:query_params] || {}
6959
7047
 
@@ -7026,7 +7114,8 @@ module XeroRuby
7026
7114
  local_var_path = '/Contacts/{ContactNumber}'.sub('{' + 'ContactNumber' + '}', contact_number.to_s)
7027
7115
 
7028
7116
  # camelize keys of incoming `where` opts
7029
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7117
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7118
+
7030
7119
  # query parameters
7031
7120
  query_params = opts[:query_params] || {}
7032
7121
 
@@ -7099,7 +7188,8 @@ module XeroRuby
7099
7188
  local_var_path = '/Contacts/{ContactID}/CISSettings'.sub('{' + 'ContactID' + '}', contact_id.to_s)
7100
7189
 
7101
7190
  # camelize keys of incoming `where` opts
7102
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7191
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7192
+
7103
7193
  # query parameters
7104
7194
  query_params = opts[:query_params] || {}
7105
7195
 
@@ -7172,7 +7262,8 @@ module XeroRuby
7172
7262
  local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
7173
7263
 
7174
7264
  # camelize keys of incoming `where` opts
7175
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7265
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7266
+
7176
7267
  # query parameters
7177
7268
  query_params = opts[:query_params] || {}
7178
7269
 
@@ -7243,7 +7334,8 @@ module XeroRuby
7243
7334
  local_var_path = '/ContactGroups'
7244
7335
 
7245
7336
  # camelize keys of incoming `where` opts
7246
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7337
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7338
+
7247
7339
  # query parameters
7248
7340
  query_params = opts[:query_params] || {}
7249
7341
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -7318,7 +7410,8 @@ module XeroRuby
7318
7410
  local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s)
7319
7411
 
7320
7412
  # camelize keys of incoming `where` opts
7321
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7413
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7414
+
7322
7415
  # query parameters
7323
7416
  query_params = opts[:query_params] || {}
7324
7417
 
@@ -7397,7 +7490,8 @@ module XeroRuby
7397
7490
  local_var_path = '/Contacts'
7398
7491
 
7399
7492
  # camelize keys of incoming `where` opts
7400
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7493
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7494
+
7401
7495
  # query parameters
7402
7496
  query_params = opts[:query_params] || {}
7403
7497
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -7478,7 +7572,8 @@ module XeroRuby
7478
7572
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7479
7573
 
7480
7574
  # camelize keys of incoming `where` opts
7481
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7575
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7576
+
7482
7577
  # query parameters
7483
7578
  query_params = opts[:query_params] || {}
7484
7579
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -7552,7 +7647,8 @@ module XeroRuby
7552
7647
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7553
7648
 
7554
7649
  # camelize keys of incoming `where` opts
7555
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7650
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7651
+
7556
7652
  # query parameters
7557
7653
  query_params = opts[:query_params] || {}
7558
7654
 
@@ -7637,7 +7733,8 @@ module XeroRuby
7637
7733
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
7638
7734
 
7639
7735
  # camelize keys of incoming `where` opts
7640
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7736
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7737
+
7641
7738
  # query parameters
7642
7739
  query_params = opts[:query_params] || {}
7643
7740
 
@@ -7723,7 +7820,8 @@ module XeroRuby
7723
7820
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
7724
7821
 
7725
7822
  # camelize keys of incoming `where` opts
7726
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7823
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7824
+
7727
7825
  # query parameters
7728
7826
  query_params = opts[:query_params] || {}
7729
7827
 
@@ -7797,7 +7895,8 @@ module XeroRuby
7797
7895
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7798
7896
 
7799
7897
  # camelize keys of incoming `where` opts
7800
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7898
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7899
+
7801
7900
  # query parameters
7802
7901
  query_params = opts[:query_params] || {}
7803
7902
 
@@ -7870,7 +7969,8 @@ module XeroRuby
7870
7969
  local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7871
7970
 
7872
7971
  # camelize keys of incoming `where` opts
7873
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7972
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7973
+
7874
7974
  # query parameters
7875
7975
  query_params = opts[:query_params] || {}
7876
7976
 
@@ -7947,7 +8047,8 @@ module XeroRuby
7947
8047
  local_var_path = '/CreditNotes'
7948
8048
 
7949
8049
  # camelize keys of incoming `where` opts
7950
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8050
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8051
+
7951
8052
  # query parameters
7952
8053
  query_params = opts[:query_params] || {}
7953
8054
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8023,7 +8124,8 @@ module XeroRuby
8023
8124
  local_var_path = '/Currencies'
8024
8125
 
8025
8126
  # camelize keys of incoming `where` opts
8026
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8127
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8128
+
8027
8129
  # query parameters
8028
8130
  query_params = opts[:query_params] || {}
8029
8131
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8098,7 +8200,8 @@ module XeroRuby
8098
8200
  local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
8099
8201
 
8100
8202
  # camelize keys of incoming `where` opts
8101
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8203
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8204
+
8102
8205
  # query parameters
8103
8206
  query_params = opts[:query_params] || {}
8104
8207
 
@@ -8171,7 +8274,8 @@ module XeroRuby
8171
8274
  local_var_path = '/Employees'
8172
8275
 
8173
8276
  # camelize keys of incoming `where` opts
8174
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8277
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8278
+
8175
8279
  # query parameters
8176
8280
  query_params = opts[:query_params] || {}
8177
8281
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8247,7 +8351,8 @@ module XeroRuby
8247
8351
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
8248
8352
 
8249
8353
  # camelize keys of incoming `where` opts
8250
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8354
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8355
+
8251
8356
  # query parameters
8252
8357
  query_params = opts[:query_params] || {}
8253
8358
 
@@ -8320,7 +8425,8 @@ module XeroRuby
8320
8425
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
8321
8426
 
8322
8427
  # camelize keys of incoming `where` opts
8323
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8428
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8429
+
8324
8430
  # query parameters
8325
8431
  query_params = opts[:query_params] || {}
8326
8432
 
@@ -8393,7 +8499,8 @@ module XeroRuby
8393
8499
  local_var_path = '/ExpenseClaims'
8394
8500
 
8395
8501
  # camelize keys of incoming `where` opts
8396
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8502
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8503
+
8397
8504
  # query parameters
8398
8505
  query_params = opts[:query_params] || {}
8399
8506
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8471,7 +8578,8 @@ module XeroRuby
8471
8578
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8472
8579
 
8473
8580
  # camelize keys of incoming `where` opts
8474
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8581
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8582
+
8475
8583
  # query parameters
8476
8584
  query_params = opts[:query_params] || {}
8477
8585
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -8545,7 +8653,8 @@ module XeroRuby
8545
8653
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8546
8654
 
8547
8655
  # camelize keys of incoming `where` opts
8548
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8656
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8657
+
8549
8658
  # query parameters
8550
8659
  query_params = opts[:query_params] || {}
8551
8660
 
@@ -8630,7 +8739,8 @@ module XeroRuby
8630
8739
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
8631
8740
 
8632
8741
  # camelize keys of incoming `where` opts
8633
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8742
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8743
+
8634
8744
  # query parameters
8635
8745
  query_params = opts[:query_params] || {}
8636
8746
 
@@ -8716,7 +8826,8 @@ module XeroRuby
8716
8826
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
8717
8827
 
8718
8828
  # camelize keys of incoming `where` opts
8719
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8829
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8830
+
8720
8831
  # query parameters
8721
8832
  query_params = opts[:query_params] || {}
8722
8833
 
@@ -8790,7 +8901,8 @@ module XeroRuby
8790
8901
  local_var_path = '/Invoices/{InvoiceID}/Attachments'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8791
8902
 
8792
8903
  # camelize keys of incoming `where` opts
8793
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8904
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8905
+
8794
8906
  # query parameters
8795
8907
  query_params = opts[:query_params] || {}
8796
8908
 
@@ -8863,7 +8975,8 @@ module XeroRuby
8863
8975
  local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8864
8976
 
8865
8977
  # camelize keys of incoming `where` opts
8866
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8978
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8979
+
8867
8980
  # query parameters
8868
8981
  query_params = opts[:query_params] || {}
8869
8982
 
@@ -8930,7 +9043,8 @@ module XeroRuby
8930
9043
  local_var_path = '/InvoiceReminders/Settings'
8931
9044
 
8932
9045
  # camelize keys of incoming `where` opts
8933
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9046
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9047
+
8934
9048
  # query parameters
8935
9049
  query_params = opts[:query_params] || {}
8936
9050
 
@@ -9019,7 +9133,8 @@ module XeroRuby
9019
9133
  local_var_path = '/Invoices'
9020
9134
 
9021
9135
  # camelize keys of incoming `where` opts
9022
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9136
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9137
+
9023
9138
  # query parameters
9024
9139
  query_params = opts[:query_params] || {}
9025
9140
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -9105,7 +9220,8 @@ module XeroRuby
9105
9220
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
9106
9221
 
9107
9222
  # camelize keys of incoming `where` opts
9108
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9223
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9224
+
9109
9225
  # query parameters
9110
9226
  query_params = opts[:query_params] || {}
9111
9227
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -9179,7 +9295,8 @@ module XeroRuby
9179
9295
  local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s)
9180
9296
 
9181
9297
  # camelize keys of incoming `where` opts
9182
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9298
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9299
+
9183
9300
  # query parameters
9184
9301
  query_params = opts[:query_params] || {}
9185
9302
 
@@ -9254,7 +9371,8 @@ module XeroRuby
9254
9371
  local_var_path = '/Items'
9255
9372
 
9256
9373
  # camelize keys of incoming `where` opts
9257
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9374
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9375
+
9258
9376
  # query parameters
9259
9377
  query_params = opts[:query_params] || {}
9260
9378
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -9331,7 +9449,8 @@ module XeroRuby
9331
9449
  local_var_path = '/Journals/{JournalID}'.sub('{' + 'JournalID' + '}', journal_id.to_s)
9332
9450
 
9333
9451
  # camelize keys of incoming `where` opts
9334
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9452
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9453
+
9335
9454
  # query parameters
9336
9455
  query_params = opts[:query_params] || {}
9337
9456
 
@@ -9404,7 +9523,8 @@ module XeroRuby
9404
9523
  local_var_path = '/Journals'
9405
9524
 
9406
9525
  # camelize keys of incoming `where` opts
9407
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9526
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9527
+
9408
9528
  # query parameters
9409
9529
  query_params = opts[:query_params] || {}
9410
9530
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
@@ -9480,7 +9600,8 @@ module XeroRuby
9480
9600
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
9481
9601
 
9482
9602
  # camelize keys of incoming `where` opts
9483
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9603
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9604
+
9484
9605
  # query parameters
9485
9606
  query_params = opts[:query_params] || {}
9486
9607
 
@@ -9559,7 +9680,8 @@ module XeroRuby
9559
9680
  local_var_path = '/LinkedTransactions'
9560
9681
 
9561
9682
  # camelize keys of incoming `where` opts
9562
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9683
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9684
+
9563
9685
  # query parameters
9564
9686
  query_params = opts[:query_params] || {}
9565
9687
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
@@ -9638,7 +9760,8 @@ module XeroRuby
9638
9760
  local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
9639
9761
 
9640
9762
  # camelize keys of incoming `where` opts
9641
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9763
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9764
+
9642
9765
  # query parameters
9643
9766
  query_params = opts[:query_params] || {}
9644
9767
 
@@ -9723,7 +9846,8 @@ module XeroRuby
9723
9846
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
9724
9847
 
9725
9848
  # camelize keys of incoming `where` opts
9726
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9849
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9850
+
9727
9851
  # query parameters
9728
9852
  query_params = opts[:query_params] || {}
9729
9853
 
@@ -9809,7 +9933,8 @@ module XeroRuby
9809
9933
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{AttachmentID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
9810
9934
 
9811
9935
  # camelize keys of incoming `where` opts
9812
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9936
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9937
+
9813
9938
  # query parameters
9814
9939
  query_params = opts[:query_params] || {}
9815
9940
 
@@ -9883,7 +10008,8 @@ module XeroRuby
9883
10008
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
9884
10009
 
9885
10010
  # camelize keys of incoming `where` opts
9886
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10011
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10012
+
9887
10013
  # query parameters
9888
10014
  query_params = opts[:query_params] || {}
9889
10015
 
@@ -9958,7 +10084,8 @@ module XeroRuby
9958
10084
  local_var_path = '/ManualJournals'
9959
10085
 
9960
10086
  # camelize keys of incoming `where` opts
9961
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10087
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10088
+
9962
10089
  # query parameters
9963
10090
  query_params = opts[:query_params] || {}
9964
10091
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -10035,7 +10162,8 @@ module XeroRuby
10035
10162
  local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
10036
10163
 
10037
10164
  # camelize keys of incoming `where` opts
10038
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10165
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10166
+
10039
10167
  # query parameters
10040
10168
  query_params = opts[:query_params] || {}
10041
10169
 
@@ -10108,7 +10236,8 @@ module XeroRuby
10108
10236
  local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', organisation_id.to_s)
10109
10237
 
10110
10238
  # camelize keys of incoming `where` opts
10111
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10239
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10240
+
10112
10241
  # query parameters
10113
10242
  query_params = opts[:query_params] || {}
10114
10243
 
@@ -10175,7 +10304,8 @@ module XeroRuby
10175
10304
  local_var_path = '/Organisation'
10176
10305
 
10177
10306
  # camelize keys of incoming `where` opts
10178
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10307
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10308
+
10179
10309
  # query parameters
10180
10310
  query_params = opts[:query_params] || {}
10181
10311
 
@@ -10248,7 +10378,8 @@ module XeroRuby
10248
10378
  local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
10249
10379
 
10250
10380
  # camelize keys of incoming `where` opts
10251
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10381
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10382
+
10252
10383
  # query parameters
10253
10384
  query_params = opts[:query_params] || {}
10254
10385
 
@@ -10321,7 +10452,8 @@ module XeroRuby
10321
10452
  local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
10322
10453
 
10323
10454
  # camelize keys of incoming `where` opts
10324
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10455
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10456
+
10325
10457
  # query parameters
10326
10458
  query_params = opts[:query_params] || {}
10327
10459
 
@@ -10398,7 +10530,8 @@ module XeroRuby
10398
10530
  local_var_path = '/Overpayments'
10399
10531
 
10400
10532
  # camelize keys of incoming `where` opts
10401
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10533
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10534
+
10402
10535
  # query parameters
10403
10536
  query_params = opts[:query_params] || {}
10404
10537
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -10476,7 +10609,8 @@ module XeroRuby
10476
10609
  local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
10477
10610
 
10478
10611
  # camelize keys of incoming `where` opts
10479
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10612
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10613
+
10480
10614
  # query parameters
10481
10615
  query_params = opts[:query_params] || {}
10482
10616
 
@@ -10549,7 +10683,8 @@ module XeroRuby
10549
10683
  local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
10550
10684
 
10551
10685
  # camelize keys of incoming `where` opts
10552
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10686
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10687
+
10553
10688
  # query parameters
10554
10689
  query_params = opts[:query_params] || {}
10555
10690
 
@@ -10616,7 +10751,8 @@ module XeroRuby
10616
10751
  local_var_path = '/PaymentServices'
10617
10752
 
10618
10753
  # camelize keys of incoming `where` opts
10619
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10754
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10755
+
10620
10756
  # query parameters
10621
10757
  query_params = opts[:query_params] || {}
10622
10758
 
@@ -10691,7 +10827,8 @@ module XeroRuby
10691
10827
  local_var_path = '/Payments'
10692
10828
 
10693
10829
  # camelize keys of incoming `where` opts
10694
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10830
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10831
+
10695
10832
  # query parameters
10696
10833
  query_params = opts[:query_params] || {}
10697
10834
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -10768,7 +10905,8 @@ module XeroRuby
10768
10905
  local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
10769
10906
 
10770
10907
  # camelize keys of incoming `where` opts
10771
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10908
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10909
+
10772
10910
  # query parameters
10773
10911
  query_params = opts[:query_params] || {}
10774
10912
 
@@ -10841,7 +10979,8 @@ module XeroRuby
10841
10979
  local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
10842
10980
 
10843
10981
  # camelize keys of incoming `where` opts
10844
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10982
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10983
+
10845
10984
  # query parameters
10846
10985
  query_params = opts[:query_params] || {}
10847
10986
 
@@ -10918,7 +11057,8 @@ module XeroRuby
10918
11057
  local_var_path = '/Prepayments'
10919
11058
 
10920
11059
  # camelize keys of incoming `where` opts
10921
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11060
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11061
+
10922
11062
  # query parameters
10923
11063
  query_params = opts[:query_params] || {}
10924
11064
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -10996,7 +11136,8 @@ module XeroRuby
10996
11136
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
10997
11137
 
10998
11138
  # camelize keys of incoming `where` opts
10999
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11139
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11140
+
11000
11141
  # query parameters
11001
11142
  query_params = opts[:query_params] || {}
11002
11143
 
@@ -11069,7 +11210,8 @@ module XeroRuby
11069
11210
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
11070
11211
 
11071
11212
  # camelize keys of incoming `where` opts
11072
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11213
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11214
+
11073
11215
  # query parameters
11074
11216
  query_params = opts[:query_params] || {}
11075
11217
 
@@ -11142,7 +11284,8 @@ module XeroRuby
11142
11284
  local_var_path = '/PurchaseOrders/{PurchaseOrderNumber}'.sub('{' + 'PurchaseOrderNumber' + '}', purchase_order_number.to_s)
11143
11285
 
11144
11286
  # camelize keys of incoming `where` opts
11145
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11287
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11288
+
11146
11289
  # query parameters
11147
11290
  query_params = opts[:query_params] || {}
11148
11291
 
@@ -11215,7 +11358,8 @@ module XeroRuby
11215
11358
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
11216
11359
 
11217
11360
  # camelize keys of incoming `where` opts
11218
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11361
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11362
+
11219
11363
  # query parameters
11220
11364
  query_params = opts[:query_params] || {}
11221
11365
 
@@ -11298,7 +11442,8 @@ module XeroRuby
11298
11442
  local_var_path = '/PurchaseOrders'
11299
11443
 
11300
11444
  # camelize keys of incoming `where` opts
11301
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11445
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11446
+
11302
11447
  # query parameters
11303
11448
  query_params = opts[:query_params] || {}
11304
11449
  query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
@@ -11377,7 +11522,8 @@ module XeroRuby
11377
11522
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
11378
11523
 
11379
11524
  # camelize keys of incoming `where` opts
11380
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11525
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11526
+
11381
11527
  # query parameters
11382
11528
  query_params = opts[:query_params] || {}
11383
11529
 
@@ -11450,7 +11596,8 @@ module XeroRuby
11450
11596
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
11451
11597
 
11452
11598
  # camelize keys of incoming `where` opts
11453
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11599
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11600
+
11454
11601
  # query parameters
11455
11602
  query_params = opts[:query_params] || {}
11456
11603
 
@@ -11535,7 +11682,8 @@ module XeroRuby
11535
11682
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
11536
11683
 
11537
11684
  # camelize keys of incoming `where` opts
11538
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11685
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11686
+
11539
11687
  # query parameters
11540
11688
  query_params = opts[:query_params] || {}
11541
11689
 
@@ -11621,7 +11769,8 @@ module XeroRuby
11621
11769
  local_var_path = '/Quotes/{QuoteID}/Attachments/{AttachmentID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
11622
11770
 
11623
11771
  # camelize keys of incoming `where` opts
11624
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11772
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11773
+
11625
11774
  # query parameters
11626
11775
  query_params = opts[:query_params] || {}
11627
11776
 
@@ -11695,7 +11844,8 @@ module XeroRuby
11695
11844
  local_var_path = '/Quotes/{QuoteID}/Attachments'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
11696
11845
 
11697
11846
  # camelize keys of incoming `where` opts
11698
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11847
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11848
+
11699
11849
  # query parameters
11700
11850
  query_params = opts[:query_params] || {}
11701
11851
 
@@ -11768,7 +11918,8 @@ module XeroRuby
11768
11918
  local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
11769
11919
 
11770
11920
  # camelize keys of incoming `where` opts
11771
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11921
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11922
+
11772
11923
  # query parameters
11773
11924
  query_params = opts[:query_params] || {}
11774
11925
 
@@ -11822,6 +11973,7 @@ module XeroRuby
11822
11973
  # @option opts [String] :status Filter for quotes of a particular Status
11823
11974
  # @option opts [Integer] :page e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote
11824
11975
  # @option opts [String] :order Order by an any element
11976
+ # @option opts [String] :quote_number Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)
11825
11977
  # @return [Quotes]
11826
11978
  def get_quotes(xero_tenant_id, opts = {})
11827
11979
  data, _status_code, _headers = get_quotes_with_http_info(xero_tenant_id, opts)
@@ -11840,6 +11992,7 @@ module XeroRuby
11840
11992
  # @option opts [String] :status Filter for quotes of a particular Status
11841
11993
  # @option opts [Integer] :page e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote
11842
11994
  # @option opts [String] :order Order by an any element
11995
+ # @option opts [String] :quote_number Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)
11843
11996
  # @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
11844
11997
  def get_quotes_with_http_info(xero_tenant_id, opts = {})
11845
11998
  if @api_client.config.debugging
@@ -11853,7 +12006,8 @@ module XeroRuby
11853
12006
  local_var_path = '/Quotes'
11854
12007
 
11855
12008
  # camelize keys of incoming `where` opts
11856
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12009
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12010
+
11857
12011
  # query parameters
11858
12012
  query_params = opts[:query_params] || {}
11859
12013
  query_params[:'DateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil?
@@ -11864,6 +12018,7 @@ module XeroRuby
11864
12018
  query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
11865
12019
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
11866
12020
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
12021
+ query_params[:'QuoteNumber'] = opts[:'quote_number'] if !opts[:'quote_number'].nil?
11867
12022
 
11868
12023
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11869
12024
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -11937,7 +12092,8 @@ module XeroRuby
11937
12092
  local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
11938
12093
 
11939
12094
  # camelize keys of incoming `where` opts
11940
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12095
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12096
+
11941
12097
  # query parameters
11942
12098
  query_params = opts[:query_params] || {}
11943
12099
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -12023,7 +12179,8 @@ module XeroRuby
12023
12179
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
12024
12180
 
12025
12181
  # camelize keys of incoming `where` opts
12026
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12182
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12183
+
12027
12184
  # query parameters
12028
12185
  query_params = opts[:query_params] || {}
12029
12186
 
@@ -12109,7 +12266,8 @@ module XeroRuby
12109
12266
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{AttachmentID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
12110
12267
 
12111
12268
  # camelize keys of incoming `where` opts
12112
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12269
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12270
+
12113
12271
  # query parameters
12114
12272
  query_params = opts[:query_params] || {}
12115
12273
 
@@ -12183,7 +12341,8 @@ module XeroRuby
12183
12341
  local_var_path = '/Receipts/{ReceiptID}/Attachments'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
12184
12342
 
12185
12343
  # camelize keys of incoming `where` opts
12186
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12344
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12345
+
12187
12346
  # query parameters
12188
12347
  query_params = opts[:query_params] || {}
12189
12348
 
@@ -12256,7 +12415,8 @@ module XeroRuby
12256
12415
  local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
12257
12416
 
12258
12417
  # camelize keys of incoming `where` opts
12259
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12418
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12419
+
12260
12420
  # query parameters
12261
12421
  query_params = opts[:query_params] || {}
12262
12422
 
@@ -12331,7 +12491,8 @@ module XeroRuby
12331
12491
  local_var_path = '/Receipts'
12332
12492
 
12333
12493
  # camelize keys of incoming `where` opts
12334
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12494
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12495
+
12335
12496
  # query parameters
12336
12497
  query_params = opts[:query_params] || {}
12337
12498
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -12408,7 +12569,8 @@ module XeroRuby
12408
12569
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
12409
12570
 
12410
12571
  # camelize keys of incoming `where` opts
12411
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12572
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12573
+
12412
12574
  # query parameters
12413
12575
  query_params = opts[:query_params] || {}
12414
12576
 
@@ -12493,7 +12655,8 @@ module XeroRuby
12493
12655
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
12494
12656
 
12495
12657
  # camelize keys of incoming `where` opts
12496
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12658
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12659
+
12497
12660
  # query parameters
12498
12661
  query_params = opts[:query_params] || {}
12499
12662
 
@@ -12579,7 +12742,8 @@ module XeroRuby
12579
12742
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
12580
12743
 
12581
12744
  # camelize keys of incoming `where` opts
12582
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12745
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12746
+
12583
12747
  # query parameters
12584
12748
  query_params = opts[:query_params] || {}
12585
12749
 
@@ -12653,7 +12817,8 @@ module XeroRuby
12653
12817
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
12654
12818
 
12655
12819
  # camelize keys of incoming `where` opts
12656
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12820
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12821
+
12657
12822
  # query parameters
12658
12823
  query_params = opts[:query_params] || {}
12659
12824
 
@@ -12726,7 +12891,8 @@ module XeroRuby
12726
12891
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
12727
12892
 
12728
12893
  # camelize keys of incoming `where` opts
12729
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12894
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12895
+
12730
12896
  # query parameters
12731
12897
  query_params = opts[:query_params] || {}
12732
12898
 
@@ -12797,7 +12963,8 @@ module XeroRuby
12797
12963
  local_var_path = '/RepeatingInvoices'
12798
12964
 
12799
12965
  # camelize keys of incoming `where` opts
12800
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
12966
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12967
+
12801
12968
  # query parameters
12802
12969
  query_params = opts[:query_params] || {}
12803
12970
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -12878,7 +13045,8 @@ module XeroRuby
12878
13045
  local_var_path = '/Reports/AgedPayablesByContact'
12879
13046
 
12880
13047
  # camelize keys of incoming `where` opts
12881
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13048
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13049
+
12882
13050
  # query parameters
12883
13051
  query_params = opts[:query_params] || {}
12884
13052
  query_params[:'contactId'] = contact_id
@@ -12961,7 +13129,8 @@ module XeroRuby
12961
13129
  local_var_path = '/Reports/AgedReceivablesByContact'
12962
13130
 
12963
13131
  # camelize keys of incoming `where` opts
12964
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13132
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13133
+
12965
13134
  # query parameters
12966
13135
  query_params = opts[:query_params] || {}
12967
13136
  query_params[:'contactId'] = contact_id
@@ -13038,7 +13207,8 @@ module XeroRuby
13038
13207
  local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', report_id.to_s)
13039
13208
 
13040
13209
  # camelize keys of incoming `where` opts
13041
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13210
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13211
+
13042
13212
  # query parameters
13043
13213
  query_params = opts[:query_params] || {}
13044
13214
 
@@ -13105,7 +13275,8 @@ module XeroRuby
13105
13275
  local_var_path = '/Reports'
13106
13276
 
13107
13277
  # camelize keys of incoming `where` opts
13108
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13278
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13279
+
13109
13280
  # query parameters
13110
13281
  query_params = opts[:query_params] || {}
13111
13282
 
@@ -13190,7 +13361,8 @@ module XeroRuby
13190
13361
  local_var_path = '/Reports/BalanceSheet'
13191
13362
 
13192
13363
  # camelize keys of incoming `where` opts
13193
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13364
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13365
+
13194
13366
  # query parameters
13195
13367
  query_params = opts[:query_params] || {}
13196
13368
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -13268,7 +13440,8 @@ module XeroRuby
13268
13440
  local_var_path = '/Reports/BankSummary'
13269
13441
 
13270
13442
  # camelize keys of incoming `where` opts
13271
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13443
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13444
+
13272
13445
  # query parameters
13273
13446
  query_params = opts[:query_params] || {}
13274
13447
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
@@ -13343,7 +13516,8 @@ module XeroRuby
13343
13516
  local_var_path = '/Reports/BudgetSummary'
13344
13517
 
13345
13518
  # camelize keys of incoming `where` opts
13346
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13519
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13520
+
13347
13521
  # query parameters
13348
13522
  query_params = opts[:query_params] || {}
13349
13523
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -13415,7 +13589,8 @@ module XeroRuby
13415
13589
  local_var_path = '/Reports/ExecutiveSummary'
13416
13590
 
13417
13591
  # camelize keys of incoming `where` opts
13418
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13592
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13593
+
13419
13594
  # query parameters
13420
13595
  query_params = opts[:query_params] || {}
13421
13596
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -13507,7 +13682,8 @@ module XeroRuby
13507
13682
  local_var_path = '/Reports/ProfitAndLoss'
13508
13683
 
13509
13684
  # camelize keys of incoming `where` opts
13510
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13685
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13686
+
13511
13687
  # query parameters
13512
13688
  query_params = opts[:query_params] || {}
13513
13689
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
@@ -13586,7 +13762,8 @@ module XeroRuby
13586
13762
  local_var_path = '/Reports/TenNinetyNine'
13587
13763
 
13588
13764
  # camelize keys of incoming `where` opts
13589
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13765
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13766
+
13590
13767
  # query parameters
13591
13768
  query_params = opts[:query_params] || {}
13592
13769
  query_params[:'reportYear'] = opts[:'report_year'] if !opts[:'report_year'].nil?
@@ -13658,7 +13835,8 @@ module XeroRuby
13658
13835
  local_var_path = '/Reports/TrialBalance'
13659
13836
 
13660
13837
  # camelize keys of incoming `where` opts
13661
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13838
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13839
+
13662
13840
  # query parameters
13663
13841
  query_params = opts[:query_params] || {}
13664
13842
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -13733,7 +13911,8 @@ module XeroRuby
13733
13911
  local_var_path = '/TaxRates'
13734
13912
 
13735
13913
  # camelize keys of incoming `where` opts
13736
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13914
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13915
+
13737
13916
  # query parameters
13738
13917
  query_params = opts[:query_params] || {}
13739
13918
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -13809,7 +13988,8 @@ module XeroRuby
13809
13988
  local_var_path = '/TrackingCategories'
13810
13989
 
13811
13990
  # camelize keys of incoming `where` opts
13812
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
13991
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13992
+
13813
13993
  # query parameters
13814
13994
  query_params = opts[:query_params] || {}
13815
13995
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -13885,7 +14065,8 @@ module XeroRuby
13885
14065
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
13886
14066
 
13887
14067
  # camelize keys of incoming `where` opts
13888
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14068
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14069
+
13889
14070
  # query parameters
13890
14071
  query_params = opts[:query_params] || {}
13891
14072
 
@@ -13958,7 +14139,8 @@ module XeroRuby
13958
14139
  local_var_path = '/Users/{UserID}'.sub('{' + 'UserID' + '}', user_id.to_s)
13959
14140
 
13960
14141
  # camelize keys of incoming `where` opts
13961
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14142
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14143
+
13962
14144
  # query parameters
13963
14145
  query_params = opts[:query_params] || {}
13964
14146
 
@@ -14031,7 +14213,8 @@ module XeroRuby
14031
14213
  local_var_path = '/Users'
14032
14214
 
14033
14215
  # camelize keys of incoming `where` opts
14034
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14216
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14217
+
14035
14218
  # query parameters
14036
14219
  query_params = opts[:query_params] || {}
14037
14220
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -14113,7 +14296,8 @@ module XeroRuby
14113
14296
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
14114
14297
 
14115
14298
  # camelize keys of incoming `where` opts
14116
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14299
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14300
+
14117
14301
  # query parameters
14118
14302
  query_params = opts[:query_params] || {}
14119
14303
 
@@ -14200,7 +14384,8 @@ module XeroRuby
14200
14384
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14201
14385
 
14202
14386
  # camelize keys of incoming `where` opts
14203
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14387
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14388
+
14204
14389
  # query parameters
14205
14390
  query_params = opts[:query_params] || {}
14206
14391
 
@@ -14283,7 +14468,8 @@ module XeroRuby
14283
14468
  local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
14284
14469
 
14285
14470
  # camelize keys of incoming `where` opts
14286
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14471
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14472
+
14287
14473
  # query parameters
14288
14474
  query_params = opts[:query_params] || {}
14289
14475
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -14371,7 +14557,8 @@ module XeroRuby
14371
14557
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14372
14558
 
14373
14559
  # camelize keys of incoming `where` opts
14374
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14560
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14561
+
14375
14562
  # query parameters
14376
14563
  query_params = opts[:query_params] || {}
14377
14564
 
@@ -14456,7 +14643,8 @@ module XeroRuby
14456
14643
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14457
14644
 
14458
14645
  # camelize keys of incoming `where` opts
14459
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14646
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14647
+
14460
14648
  # query parameters
14461
14649
  query_params = opts[:query_params] || {}
14462
14650
 
@@ -14535,7 +14723,8 @@ module XeroRuby
14535
14723
  local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s)
14536
14724
 
14537
14725
  # camelize keys of incoming `where` opts
14538
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14726
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14727
+
14539
14728
  # query parameters
14540
14729
  query_params = opts[:query_params] || {}
14541
14730
 
@@ -14620,7 +14809,8 @@ module XeroRuby
14620
14809
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14621
14810
 
14622
14811
  # camelize keys of incoming `where` opts
14623
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14812
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14813
+
14624
14814
  # query parameters
14625
14815
  query_params = opts[:query_params] || {}
14626
14816
 
@@ -14701,7 +14891,8 @@ module XeroRuby
14701
14891
  local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
14702
14892
 
14703
14893
  # camelize keys of incoming `where` opts
14704
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14894
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14895
+
14705
14896
  # query parameters
14706
14897
  query_params = opts[:query_params] || {}
14707
14898
 
@@ -14784,7 +14975,8 @@ module XeroRuby
14784
14975
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
14785
14976
 
14786
14977
  # camelize keys of incoming `where` opts
14787
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
14978
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14979
+
14788
14980
  # query parameters
14789
14981
  query_params = opts[:query_params] || {}
14790
14982
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -14872,7 +15064,8 @@ module XeroRuby
14872
15064
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14873
15065
 
14874
15066
  # camelize keys of incoming `where` opts
14875
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15067
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15068
+
14876
15069
  # query parameters
14877
15070
  query_params = opts[:query_params] || {}
14878
15071
 
@@ -14953,7 +15146,8 @@ module XeroRuby
14953
15146
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
14954
15147
 
14955
15148
  # camelize keys of incoming `where` opts
14956
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15149
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15150
+
14957
15151
  # query parameters
14958
15152
  query_params = opts[:query_params] || {}
14959
15153
 
@@ -15036,7 +15230,8 @@ module XeroRuby
15036
15230
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
15037
15231
 
15038
15232
  # camelize keys of incoming `where` opts
15039
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15233
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15234
+
15040
15235
  # query parameters
15041
15236
  query_params = opts[:query_params] || {}
15042
15237
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -15124,7 +15319,8 @@ module XeroRuby
15124
15319
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
15125
15320
 
15126
15321
  # camelize keys of incoming `where` opts
15127
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15322
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15323
+
15128
15324
  # query parameters
15129
15325
  query_params = opts[:query_params] || {}
15130
15326
 
@@ -15207,7 +15403,8 @@ module XeroRuby
15207
15403
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
15208
15404
 
15209
15405
  # camelize keys of incoming `where` opts
15210
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15406
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15407
+
15211
15408
  # query parameters
15212
15409
  query_params = opts[:query_params] || {}
15213
15410
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -15289,7 +15486,8 @@ module XeroRuby
15289
15486
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
15290
15487
 
15291
15488
  # camelize keys of incoming `where` opts
15292
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15489
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15490
+
15293
15491
  # query parameters
15294
15492
  query_params = opts[:query_params] || {}
15295
15493
 
@@ -15370,7 +15568,8 @@ module XeroRuby
15370
15568
  local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
15371
15569
 
15372
15570
  # camelize keys of incoming `where` opts
15373
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15571
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15572
+
15374
15573
  # query parameters
15375
15574
  query_params = opts[:query_params] || {}
15376
15575
 
@@ -15457,7 +15656,8 @@ module XeroRuby
15457
15656
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
15458
15657
 
15459
15658
  # camelize keys of incoming `where` opts
15460
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15659
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15660
+
15461
15661
  # query parameters
15462
15662
  query_params = opts[:query_params] || {}
15463
15663
 
@@ -15536,7 +15736,8 @@ module XeroRuby
15536
15736
  local_var_path = '/BankTransactions'
15537
15737
 
15538
15738
  # camelize keys of incoming `where` opts
15539
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15739
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15740
+
15540
15741
  # query parameters
15541
15742
  query_params = opts[:query_params] || {}
15542
15743
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15615,7 +15816,8 @@ module XeroRuby
15615
15816
  local_var_path = '/Contacts'
15616
15817
 
15617
15818
  # camelize keys of incoming `where` opts
15618
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15819
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15820
+
15619
15821
  # query parameters
15620
15822
  query_params = opts[:query_params] || {}
15621
15823
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15695,7 +15897,8 @@ module XeroRuby
15695
15897
  local_var_path = '/CreditNotes'
15696
15898
 
15697
15899
  # camelize keys of incoming `where` opts
15698
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15900
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15901
+
15699
15902
  # query parameters
15700
15903
  query_params = opts[:query_params] || {}
15701
15904
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15774,7 +15977,8 @@ module XeroRuby
15774
15977
  local_var_path = '/Employees'
15775
15978
 
15776
15979
  # camelize keys of incoming `where` opts
15777
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
15980
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15981
+
15778
15982
  # query parameters
15779
15983
  query_params = opts[:query_params] || {}
15780
15984
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15854,7 +16058,8 @@ module XeroRuby
15854
16058
  local_var_path = '/Invoices'
15855
16059
 
15856
16060
  # camelize keys of incoming `where` opts
15857
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16061
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16062
+
15858
16063
  # query parameters
15859
16064
  query_params = opts[:query_params] || {}
15860
16065
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15935,7 +16140,8 @@ module XeroRuby
15935
16140
  local_var_path = '/Items'
15936
16141
 
15937
16142
  # camelize keys of incoming `where` opts
15938
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16143
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16144
+
15939
16145
  # query parameters
15940
16146
  query_params = opts[:query_params] || {}
15941
16147
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -16014,7 +16220,8 @@ module XeroRuby
16014
16220
  local_var_path = '/ManualJournals'
16015
16221
 
16016
16222
  # camelize keys of incoming `where` opts
16017
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16223
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16224
+
16018
16225
  # query parameters
16019
16226
  query_params = opts[:query_params] || {}
16020
16227
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -16092,7 +16299,8 @@ module XeroRuby
16092
16299
  local_var_path = '/PurchaseOrders'
16093
16300
 
16094
16301
  # camelize keys of incoming `where` opts
16095
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16302
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16303
+
16096
16304
  # query parameters
16097
16305
  query_params = opts[:query_params] || {}
16098
16306
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -16170,7 +16378,8 @@ module XeroRuby
16170
16378
  local_var_path = '/Quotes'
16171
16379
 
16172
16380
  # camelize keys of incoming `where` opts
16173
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16381
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16382
+
16174
16383
  # query parameters
16175
16384
  query_params = opts[:query_params] || {}
16176
16385
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -16252,7 +16461,8 @@ module XeroRuby
16252
16461
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
16253
16462
 
16254
16463
  # camelize keys of incoming `where` opts
16255
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16464
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16465
+
16256
16466
  # query parameters
16257
16467
  query_params = opts[:query_params] || {}
16258
16468
 
@@ -16333,7 +16543,8 @@ module XeroRuby
16333
16543
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
16334
16544
 
16335
16545
  # camelize keys of incoming `where` opts
16336
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16546
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16547
+
16337
16548
  # query parameters
16338
16549
  query_params = opts[:query_params] || {}
16339
16550
 
@@ -16420,7 +16631,8 @@ module XeroRuby
16420
16631
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
16421
16632
 
16422
16633
  # camelize keys of incoming `where` opts
16423
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16634
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16635
+
16424
16636
  # query parameters
16425
16637
  query_params = opts[:query_params] || {}
16426
16638
 
@@ -16503,7 +16715,8 @@ module XeroRuby
16503
16715
  local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
16504
16716
 
16505
16717
  # camelize keys of incoming `where` opts
16506
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16718
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16719
+
16507
16720
  # query parameters
16508
16721
  query_params = opts[:query_params] || {}
16509
16722
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -16591,7 +16804,8 @@ module XeroRuby
16591
16804
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
16592
16805
 
16593
16806
  # camelize keys of incoming `where` opts
16594
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16807
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16808
+
16595
16809
  # query parameters
16596
16810
  query_params = opts[:query_params] || {}
16597
16811
 
@@ -16678,7 +16892,8 @@ module XeroRuby
16678
16892
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
16679
16893
 
16680
16894
  # camelize keys of incoming `where` opts
16681
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16895
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16896
+
16682
16897
  # query parameters
16683
16898
  query_params = opts[:query_params] || {}
16684
16899
 
@@ -16753,7 +16968,8 @@ module XeroRuby
16753
16968
  local_var_path = '/TaxRates'
16754
16969
 
16755
16970
  # camelize keys of incoming `where` opts
16756
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
16971
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16972
+
16757
16973
  # query parameters
16758
16974
  query_params = opts[:query_params] || {}
16759
16975
 
@@ -16834,7 +17050,8 @@ module XeroRuby
16834
17050
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
16835
17051
 
16836
17052
  # camelize keys of incoming `where` opts
16837
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
17053
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
17054
+
16838
17055
  # query parameters
16839
17056
  query_params = opts[:query_params] || {}
16840
17057
 
@@ -16921,7 +17138,8 @@ module XeroRuby
16921
17138
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s)
16922
17139
 
16923
17140
  # camelize keys of incoming `where` opts
16924
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
17141
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
17142
+
16925
17143
  # query parameters
16926
17144
  query_params = opts[:query_params] || {}
16927
17145