xero-ruby 1.1.0 → 2.1.0

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 (218) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +181 -72
  3. data/build_notes.md +43 -0
  4. data/docs/accounting/AccountingApi.md +1503 -779
  5. data/docs/accounting/Allocation.md +11 -1
  6. data/docs/accounting/Attachment.md +1 -1
  7. data/docs/accounting/BankTransfer.md +1 -1
  8. data/docs/accounting/BatchPayment.md +1 -1
  9. data/docs/accounting/Contact.md +2 -2
  10. data/docs/accounting/CreditNote.md +2 -2
  11. data/docs/accounting/Invoice.md +2 -2
  12. data/docs/accounting/ManualJournalLine.md +2 -0
  13. data/docs/accounting/Organisation.md +3 -1
  14. data/docs/accounting/Payment.md +4 -4
  15. data/docs/accounting/Quote.md +5 -1
  16. data/docs/accounting/Report.md +1 -1
  17. data/docs/accounting/{TenNinteyNineContact.md → TenNinetyNineContact.md} +2 -2
  18. data/docs/assets/AssetApi.md +40 -16
  19. data/docs/assets/AssetType.md +1 -1
  20. data/docs/projects/Amount.md +19 -0
  21. data/docs/projects/ChargeType.md +16 -0
  22. data/docs/projects/CurrencyCode.md +16 -0
  23. data/docs/projects/Error.md +19 -0
  24. data/docs/projects/Pagination.md +23 -0
  25. data/docs/projects/Project.md +59 -0
  26. data/docs/projects/ProjectApi.md +979 -0
  27. data/docs/projects/ProjectCreateOrUpdate.md +23 -0
  28. data/docs/projects/ProjectPatch.md +17 -0
  29. data/docs/projects/ProjectStatus.md +16 -0
  30. data/docs/projects/ProjectUser.md +21 -0
  31. data/docs/projects/ProjectUsers.md +19 -0
  32. data/docs/projects/Projects.md +19 -0
  33. data/docs/projects/Task.md +45 -0
  34. data/docs/projects/TaskCreateOrUpdate.md +23 -0
  35. data/docs/projects/Tasks.md +19 -0
  36. data/docs/projects/TimeEntries.md +19 -0
  37. data/docs/projects/TimeEntry.md +33 -0
  38. data/docs/projects/TimeEntryCreateOrUpdate.md +25 -0
  39. data/lib/xero-ruby.rb +22 -3
  40. data/lib/xero-ruby/api/accounting_api.rb +1368 -72
  41. data/lib/xero-ruby/api/asset_api.rb +39 -3
  42. data/lib/xero-ruby/api/project_api.rb +1113 -0
  43. data/lib/xero-ruby/api_client.rb +104 -38
  44. data/lib/xero-ruby/api_error.rb +2 -2
  45. data/lib/xero-ruby/configuration.rb +4 -5
  46. data/lib/xero-ruby/models/accounting/account.rb +61 -20
  47. data/lib/xero-ruby/models/accounting/account_type.rb +2 -2
  48. data/lib/xero-ruby/models/accounting/accounts.rb +8 -3
  49. data/lib/xero-ruby/models/accounting/accounts_payable.rb +11 -5
  50. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +11 -5
  51. data/lib/xero-ruby/models/accounting/address.rb +19 -12
  52. data/lib/xero-ruby/models/accounting/allocation.rb +66 -9
  53. data/lib/xero-ruby/models/accounting/allocations.rb +8 -3
  54. data/lib/xero-ruby/models/accounting/attachment.rb +13 -9
  55. data/lib/xero-ruby/models/accounting/attachments.rb +8 -3
  56. data/lib/xero-ruby/models/accounting/balances.rb +9 -3
  57. data/lib/xero-ruby/models/accounting/bank_transaction.rb +43 -24
  58. data/lib/xero-ruby/models/accounting/bank_transactions.rb +8 -3
  59. data/lib/xero-ruby/models/accounting/bank_transfer.rb +20 -14
  60. data/lib/xero-ruby/models/accounting/bank_transfers.rb +8 -3
  61. data/lib/xero-ruby/models/accounting/batch_payment.rb +29 -19
  62. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +11 -7
  63. data/lib/xero-ruby/models/accounting/batch_payments.rb +8 -3
  64. data/lib/xero-ruby/models/accounting/bill.rb +8 -3
  65. data/lib/xero-ruby/models/accounting/branding_theme.rb +13 -8
  66. data/lib/xero-ruby/models/accounting/branding_themes.rb +8 -3
  67. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +9 -5
  68. data/lib/xero-ruby/models/accounting/cis_setting.rb +8 -4
  69. data/lib/xero-ruby/models/accounting/cis_settings.rb +8 -3
  70. data/lib/xero-ruby/models/accounting/contact.rb +51 -37
  71. data/lib/xero-ruby/models/accounting/contact_group.rb +12 -6
  72. data/lib/xero-ruby/models/accounting/contact_groups.rb +8 -3
  73. data/lib/xero-ruby/models/accounting/contact_person.rb +10 -6
  74. data/lib/xero-ruby/models/accounting/contacts.rb +8 -3
  75. data/lib/xero-ruby/models/accounting/country_code.rb +2 -2
  76. data/lib/xero-ruby/models/accounting/credit_note.rb +47 -30
  77. data/lib/xero-ruby/models/accounting/credit_notes.rb +8 -3
  78. data/lib/xero-ruby/models/accounting/currencies.rb +8 -3
  79. data/lib/xero-ruby/models/accounting/currency.rb +9 -4
  80. data/lib/xero-ruby/models/accounting/currency_code.rb +2 -2
  81. data/lib/xero-ruby/models/accounting/element.rb +14 -4
  82. data/lib/xero-ruby/models/accounting/employee.rb +17 -8
  83. data/lib/xero-ruby/models/accounting/employees.rb +8 -3
  84. data/lib/xero-ruby/models/accounting/error.rb +10 -6
  85. data/lib/xero-ruby/models/accounting/expense_claim.rb +26 -15
  86. data/lib/xero-ruby/models/accounting/expense_claims.rb +8 -3
  87. data/lib/xero-ruby/models/accounting/external_link.rb +14 -4
  88. data/lib/xero-ruby/models/accounting/history_record.rb +10 -6
  89. data/lib/xero-ruby/models/accounting/history_records.rb +8 -3
  90. data/lib/xero-ruby/models/accounting/invoice.rb +69 -46
  91. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +7 -3
  92. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +8 -3
  93. data/lib/xero-ruby/models/accounting/invoices.rb +8 -3
  94. data/lib/xero-ruby/models/accounting/item.rb +24 -18
  95. data/lib/xero-ruby/models/accounting/items.rb +8 -3
  96. data/lib/xero-ruby/models/accounting/journal.rb +39 -10
  97. data/lib/xero-ruby/models/accounting/journal_line.rb +21 -16
  98. data/lib/xero-ruby/models/accounting/journals.rb +8 -3
  99. data/lib/xero-ruby/models/accounting/line_amount_types.rb +2 -2
  100. data/lib/xero-ruby/models/accounting/line_item.rb +25 -21
  101. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +10 -6
  102. data/lib/xero-ruby/models/accounting/linked_transaction.rb +25 -13
  103. data/lib/xero-ruby/models/accounting/linked_transactions.rb +8 -3
  104. data/lib/xero-ruby/models/accounting/manual_journal.rb +25 -15
  105. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +26 -12
  106. data/lib/xero-ruby/models/accounting/manual_journals.rb +8 -3
  107. data/lib/xero-ruby/models/accounting/online_invoice.rb +7 -3
  108. data/lib/xero-ruby/models/accounting/online_invoices.rb +8 -3
  109. data/lib/xero-ruby/models/accounting/organisation.rb +122 -32
  110. data/lib/xero-ruby/models/accounting/organisations.rb +8 -3
  111. data/lib/xero-ruby/models/accounting/overpayment.rb +36 -23
  112. data/lib/xero-ruby/models/accounting/overpayments.rb +8 -3
  113. data/lib/xero-ruby/models/accounting/payment.rb +47 -24
  114. data/lib/xero-ruby/models/accounting/payment_delete.rb +7 -3
  115. data/lib/xero-ruby/models/accounting/payment_service.rb +12 -8
  116. data/lib/xero-ruby/models/accounting/payment_services.rb +8 -3
  117. data/lib/xero-ruby/models/accounting/payment_term.rb +9 -3
  118. data/lib/xero-ruby/models/accounting/payment_term_type.rb +2 -2
  119. data/lib/xero-ruby/models/accounting/payments.rb +8 -3
  120. data/lib/xero-ruby/models/accounting/phone.rb +16 -6
  121. data/lib/xero-ruby/models/accounting/prepayment.rb +37 -23
  122. data/lib/xero-ruby/models/accounting/prepayments.rb +8 -3
  123. data/lib/xero-ruby/models/accounting/purchase.rb +11 -7
  124. data/lib/xero-ruby/models/accounting/purchase_order.rb +45 -33
  125. data/lib/xero-ruby/models/accounting/purchase_orders.rb +8 -3
  126. data/lib/xero-ruby/models/accounting/quote.rb +58 -28
  127. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +2 -2
  128. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +3 -2
  129. data/lib/xero-ruby/models/accounting/quotes.rb +8 -3
  130. data/lib/xero-ruby/models/accounting/receipt.rb +32 -19
  131. data/lib/xero-ruby/models/accounting/receipts.rb +8 -3
  132. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +30 -17
  133. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +8 -3
  134. data/lib/xero-ruby/models/accounting/report.rb +15 -9
  135. data/lib/xero-ruby/models/accounting/report_attribute.rb +9 -3
  136. data/lib/xero-ruby/models/accounting/report_cell.rb +9 -3
  137. data/lib/xero-ruby/models/accounting/report_fields.rb +10 -3
  138. data/lib/xero-ruby/models/accounting/report_row.rb +10 -3
  139. data/lib/xero-ruby/models/accounting/report_rows.rb +11 -3
  140. data/lib/xero-ruby/models/accounting/report_with_row.rb +15 -9
  141. data/lib/xero-ruby/models/accounting/report_with_rows.rb +8 -3
  142. data/lib/xero-ruby/models/accounting/reports.rb +8 -3
  143. data/lib/xero-ruby/models/accounting/request_empty.rb +7 -3
  144. data/lib/xero-ruby/models/accounting/row_type.rb +2 -2
  145. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +8 -4
  146. data/lib/xero-ruby/models/accounting/schedule.rb +23 -11
  147. data/lib/xero-ruby/models/accounting/tax_component.rb +11 -7
  148. data/lib/xero-ruby/models/accounting/tax_rate.rb +100 -18
  149. data/lib/xero-ruby/models/accounting/tax_rates.rb +8 -3
  150. data/lib/xero-ruby/models/accounting/tax_type.rb +2 -2
  151. data/lib/xero-ruby/models/accounting/{ten_nintey_nine_contact.rb → ten_ninety_nine_contact.rb} +44 -40
  152. data/lib/xero-ruby/models/accounting/time_zone.rb +2 -2
  153. data/lib/xero-ruby/models/accounting/tracking_categories.rb +8 -3
  154. data/lib/xero-ruby/models/accounting/tracking_category.rb +15 -8
  155. data/lib/xero-ruby/models/accounting/tracking_option.rb +13 -6
  156. data/lib/xero-ruby/models/accounting/tracking_options.rb +8 -3
  157. data/lib/xero-ruby/models/accounting/user.rb +20 -9
  158. data/lib/xero-ruby/models/accounting/users.rb +8 -3
  159. data/lib/xero-ruby/models/accounting/validation_error.rb +7 -3
  160. data/lib/xero-ruby/models/assets/asset.rb +24 -17
  161. data/lib/xero-ruby/models/assets/asset_status.rb +2 -2
  162. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +2 -2
  163. data/lib/xero-ruby/models/assets/asset_type.rb +13 -13
  164. data/lib/xero-ruby/models/assets/assets.rb +9 -3
  165. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +19 -15
  166. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +26 -11
  167. data/lib/xero-ruby/models/assets/error.rb +11 -7
  168. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +12 -8
  169. data/lib/xero-ruby/models/assets/pagination.rb +11 -3
  170. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +11 -7
  171. data/lib/xero-ruby/models/assets/setting.rb +14 -10
  172. data/lib/xero-ruby/models/projects/amount.rb +218 -0
  173. data/lib/xero-ruby/models/projects/charge_type.rb +38 -0
  174. data/lib/xero-ruby/models/projects/currency_code.rb +199 -0
  175. data/lib/xero-ruby/models/projects/error.rb +218 -0
  176. data/lib/xero-ruby/models/projects/pagination.rb +238 -0
  177. data/lib/xero-ruby/models/projects/project.rb +423 -0
  178. data/lib/xero-ruby/models/projects/project_create_or_update.rb +243 -0
  179. data/lib/xero-ruby/models/projects/project_patch.rb +213 -0
  180. data/lib/xero-ruby/models/projects/project_status.rb +37 -0
  181. data/lib/xero-ruby/models/projects/project_user.rb +228 -0
  182. data/lib/xero-ruby/models/projects/project_users.rb +220 -0
  183. data/lib/xero-ruby/models/projects/projects.rb +220 -0
  184. data/lib/xero-ruby/models/projects/task.rb +385 -0
  185. data/lib/xero-ruby/models/projects/task_create_or_update.rb +253 -0
  186. data/lib/xero-ruby/models/projects/tasks.rb +220 -0
  187. data/lib/xero-ruby/models/projects/time_entries.rb +220 -0
  188. data/lib/xero-ruby/models/projects/time_entry.rb +324 -0
  189. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +268 -0
  190. data/lib/xero-ruby/version.rb +3 -3
  191. data/spec/accounting/api/accounting_api_spec.rb +3 -3
  192. data/spec/accounting/models/ten_nintey_nine_contact_spec.rb +6 -6
  193. data/spec/api_client_spec.rb +125 -38
  194. data/spec/assets/api/asset_api_spec.rb +3 -3
  195. data/spec/configuration_spec.rb +7 -23
  196. data/spec/projects/api/project_api_spec.rb +229 -0
  197. data/spec/projects/models/amount_spec.rb +47 -0
  198. data/spec/projects/models/charge_type_spec.rb +35 -0
  199. data/spec/projects/models/currency_code_spec.rb +35 -0
  200. data/spec/projects/models/error_spec.rb +47 -0
  201. data/spec/projects/models/pagination_spec.rb +59 -0
  202. data/spec/projects/models/project_create_or_update_spec.rb +59 -0
  203. data/spec/projects/models/project_patch_spec.rb +41 -0
  204. data/spec/projects/models/project_spec.rb +167 -0
  205. data/spec/projects/models/project_status_spec.rb +35 -0
  206. data/spec/projects/models/project_user_spec.rb +53 -0
  207. data/spec/projects/models/project_users_spec.rb +47 -0
  208. data/spec/projects/models/projects_spec.rb +47 -0
  209. data/spec/projects/models/task_create_or_update_spec.rb +59 -0
  210. data/spec/projects/models/task_spec.rb +129 -0
  211. data/spec/projects/models/tasks_spec.rb +47 -0
  212. data/spec/projects/models/time_entries_spec.rb +47 -0
  213. data/spec/projects/models/time_entry_create_or_update_spec.rb +65 -0
  214. data/spec/projects/models/time_entry_spec.rb +93 -0
  215. data/xero-ruby.gemspec +3 -4
  216. metadata +85 -10
  217. data/xero-ruby-1.0.gem +0 -0
  218. data/xero-ruby.gem +0 -0
@@ -0,0 +1,23 @@
1
+ # XeroRuby::Projects::ProjectCreateOrUpdate
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **contact_id** | **String** | Identifier of the contact this project was created for. | [optional]
8
+ **name** | **String** | Name of the project. |
9
+ **estimate_amount** | **Float** | | [optional]
10
+ **deadline_utc** | **DateTime** | Deadline for the project. UTC Date Time in ISO-8601 format. | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'XeroRuby::Projects'
16
+
17
+ instance = XeroRuby::Projects::ProjectCreateOrUpdate.new(contact_id: 01234567-89ab-cdef-0123-456789abcdef,
18
+ name: New Kitchen,
19
+ estimate_amount: 1.0,
20
+ deadline_utc: 2019-12-10T12:59:59Z)
21
+ ```
22
+
23
+
@@ -0,0 +1,17 @@
1
+ # XeroRuby::Projects::ProjectPatch
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **status** | [**ProjectStatus**](ProjectStatus.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'XeroRuby::Projects'
13
+
14
+ instance = XeroRuby::Projects::ProjectPatch.new(status: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,16 @@
1
+ # XeroRuby::Projects::ProjectStatus
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'XeroRuby::Projects'
12
+
13
+ instance = XeroRuby::Projects::ProjectStatus.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,21 @@
1
+ # XeroRuby::Projects::ProjectUser
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **user_id** | **String** | Identifier of the user of the project. | [optional]
8
+ **name** | **String** | Full name of the user. | [optional]
9
+ **email** | **String** | Email address of the user. | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'XeroRuby::Projects'
15
+
16
+ instance = XeroRuby::Projects::ProjectUser.new(user_id: 254553fa-2be8-4991-bd5e-70a97ea12ef8,
17
+ name: Sidney Allen,
18
+ email: sidneyallen@xero.com)
19
+ ```
20
+
21
+
@@ -0,0 +1,19 @@
1
+ # XeroRuby::Projects::ProjectUsers
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **items** | [**Array<ProjectUser>**](ProjectUser.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'XeroRuby::Projects'
14
+
15
+ instance = XeroRuby::Projects::ProjectUsers.new(pagination: null,
16
+ items: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # XeroRuby::Projects::Projects
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **items** | [**Array<Project>**](Project.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'XeroRuby::Projects'
14
+
15
+ instance = XeroRuby::Projects::Projects.new(pagination: null,
16
+ items: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,45 @@
1
+ # XeroRuby::Projects::Task
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **task_id** | **String** | Identifier of the task. | [optional]
8
+ **name** | **String** | Name of the task. | [optional]
9
+ **rate** | [**Amount**](Amount.md) | | [optional]
10
+ **charge_type** | [**ChargeType**](ChargeType.md) | | [optional]
11
+ **estimate_minutes** | **Float** | An estimated time to perform the task | [optional]
12
+ **project_id** | **String** | Identifier of the project task belongs to. | [optional]
13
+ **total_minutes** | **Float** | Total minutes which have been logged against the task. Logged by assigning a time entry to a task | [optional]
14
+ **total_amount** | [**Amount**](Amount.md) | | [optional]
15
+ **minutes_invoiced** | **Float** | Minutes on this task which have been invoiced. | [optional]
16
+ **minutes_to_be_invoiced** | **Float** | Minutes on this task which have not been invoiced. | [optional]
17
+ **fixed_minutes** | **Float** | Minutes logged against this task if its charge type is `FIXED`. | [optional]
18
+ **non_chargeable_minutes** | **Float** | Minutes logged against this task if its charge type is `NON_CHARGEABLE`. | [optional]
19
+ **amount_to_be_invoiced** | [**Amount**](Amount.md) | | [optional]
20
+ **amount_invoiced** | [**Amount**](Amount.md) | | [optional]
21
+ **status** | **String** | Status of the task. When a task of ChargeType is `FIXED` and the rate amount is invoiced the status will be set to `INVOICED` and can't be modified. A task with ChargeType of `TIME` or `NON_CHARGEABLE` cannot have a status of `INVOICED`. A `LOCKED` state indicates that the task is currently changing state (for example being invoiced) and can't be modified. | [optional]
22
+
23
+ ## Code Sample
24
+
25
+ ```ruby
26
+ require 'XeroRuby::Projects'
27
+
28
+ instance = XeroRuby::Projects::Task.new(task_id: 00000000-0000-0000-0000-000000000000,
29
+ name: null,
30
+ rate: null,
31
+ charge_type: null,
32
+ estimate_minutes: null,
33
+ project_id: 00000000-0000-0000-0000-000000000000,
34
+ total_minutes: null,
35
+ total_amount: null,
36
+ minutes_invoiced: null,
37
+ minutes_to_be_invoiced: null,
38
+ fixed_minutes: null,
39
+ non_chargeable_minutes: null,
40
+ amount_to_be_invoiced: null,
41
+ amount_invoiced: null,
42
+ status: null)
43
+ ```
44
+
45
+
@@ -0,0 +1,23 @@
1
+ # XeroRuby::Projects::TaskCreateOrUpdate
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | Name of the task. Max length 100 characters. |
8
+ **rate** | [**Amount**](Amount.md) | |
9
+ **charge_type** | [**ChargeType**](ChargeType.md) | |
10
+ **estimate_minutes** | **Integer** | Estimated time to perform the task. EstimateMinutes has to be greater than 0 if provided. | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'XeroRuby::Projects'
16
+
17
+ instance = XeroRuby::Projects::TaskCreateOrUpdate.new(name: null,
18
+ rate: null,
19
+ charge_type: null,
20
+ estimate_minutes: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,19 @@
1
+ # XeroRuby::Projects::Tasks
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **items** | [**Array<Task>**](Task.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'XeroRuby::Projects'
14
+
15
+ instance = XeroRuby::Projects::Tasks.new(pagination: null,
16
+ items: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # XeroRuby::Projects::TimeEntries
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **items** | [**Array<TimeEntry>**](TimeEntry.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'XeroRuby::Projects'
14
+
15
+ instance = XeroRuby::Projects::TimeEntries.new(pagination: null,
16
+ items: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,33 @@
1
+ # XeroRuby::Projects::TimeEntry
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **time_entry_id** | **String** | Identifier of the time entry. | [optional]
8
+ **user_id** | **String** | The xero user identifier of the person who logged time. | [optional]
9
+ **project_id** | **String** | Identifier of the project, that the task (which the time entry is logged against) belongs to. | [optional]
10
+ **task_id** | **String** | Identifier of the task that time entry is logged against. | [optional]
11
+ **date_utc** | **DateTime** | The date time that time entry is logged on. UTC Date Time in ISO-8601 format. | [optional]
12
+ **date_entered_utc** | **DateTime** | The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time. | [optional]
13
+ **duration** | **Integer** | The duration of logged minutes. | [optional]
14
+ **description** | **String** | A description of the time entry. | [optional]
15
+ **status** | **String** | Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced. | [optional]
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'XeroRuby::Projects'
21
+
22
+ instance = XeroRuby::Projects::TimeEntry.new(time_entry_id: 00000000-0000-0000-0000-000000000000,
23
+ user_id: 00000000-0000-0000-0000-000000000000,
24
+ project_id: 00000000-0000-0000-0000-000000000000,
25
+ task_id: 00000000-0000-0000-0000-000000000000,
26
+ date_utc: null,
27
+ date_entered_utc: null,
28
+ duration: null,
29
+ description: null,
30
+ status: null)
31
+ ```
32
+
33
+
@@ -0,0 +1,25 @@
1
+ # XeroRuby::Projects::TimeEntryCreateOrUpdate
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **user_id** | **String** | The xero user identifier of the person logging the time. |
8
+ **task_id** | **String** | Identifier of the task that time entry is logged against. |
9
+ **date_utc** | **DateTime** | Date time entry is logged on. UTC Date Time in ISO-8601 format. |
10
+ **duration** | **Integer** | Number of minutes to be logged. Duration is between 1 and 59940 inclusively. |
11
+ **description** | **String** | An optional description of the time entry, will be set to null if not provided during update. | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'XeroRuby::Projects'
17
+
18
+ instance = XeroRuby::Projects::TimeEntryCreateOrUpdate.new(user_id: 00000000-0000-0000-0000-000000000000,
19
+ task_id: 00000000-0000-0000-0000-000000000000,
20
+ date_utc: null,
21
+ duration: null,
22
+ description: null)
23
+ ```
24
+
25
+
@@ -3,10 +3,10 @@
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.1.3
6
+ The version of the OpenAPI document: 2.2.12
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,6 +17,24 @@ require 'xero-ruby/version'
17
17
  require 'xero-ruby/configuration'
18
18
 
19
19
  # Models
20
+ require 'xero-ruby/models/projects/amount'
21
+ require 'xero-ruby/models/projects/charge_type'
22
+ require 'xero-ruby/models/projects/currency_code'
23
+ require 'xero-ruby/models/projects/error'
24
+ require 'xero-ruby/models/projects/pagination'
25
+ require 'xero-ruby/models/projects/project'
26
+ require 'xero-ruby/models/projects/project_create_or_update'
27
+ require 'xero-ruby/models/projects/project_patch'
28
+ require 'xero-ruby/models/projects/project_status'
29
+ require 'xero-ruby/models/projects/project_user'
30
+ require 'xero-ruby/models/projects/project_users'
31
+ require 'xero-ruby/models/projects/projects'
32
+ require 'xero-ruby/models/projects/task'
33
+ require 'xero-ruby/models/projects/task_create_or_update'
34
+ require 'xero-ruby/models/projects/tasks'
35
+ require 'xero-ruby/models/projects/time_entries'
36
+ require 'xero-ruby/models/projects/time_entry'
37
+ require 'xero-ruby/models/projects/time_entry_create_or_update'
20
38
  require 'xero-ruby/models/assets/asset'
21
39
  require 'xero-ruby/models/assets/asset_status'
22
40
  require 'xero-ruby/models/assets/asset_status_query_param'
@@ -134,7 +152,7 @@ require 'xero-ruby/models/accounting/tax_component'
134
152
  require 'xero-ruby/models/accounting/tax_rate'
135
153
  require 'xero-ruby/models/accounting/tax_rates'
136
154
  require 'xero-ruby/models/accounting/tax_type'
137
- require 'xero-ruby/models/accounting/ten_nintey_nine_contact'
155
+ require 'xero-ruby/models/accounting/ten_ninety_nine_contact'
138
156
  require 'xero-ruby/models/accounting/time_zone'
139
157
  require 'xero-ruby/models/accounting/tracking_categories'
140
158
  require 'xero-ruby/models/accounting/tracking_category'
@@ -145,6 +163,7 @@ require 'xero-ruby/models/accounting/users'
145
163
  require 'xero-ruby/models/accounting/validation_error'
146
164
 
147
165
  # APIs
166
+ require 'xero-ruby/api/project_api'
148
167
  require 'xero-ruby/api/asset_api'
149
168
  require 'xero-ruby/api/accounting_api'
150
169
 
@@ -3,10 +3,10 @@
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.1.3
6
+ The version of the OpenAPI document: 2.2.12
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -16,7 +16,7 @@ module XeroRuby
16
16
  class AccountingApi
17
17
  attr_accessor :api_client
18
18
 
19
- def initialize(api_client = ApiClient.default)
19
+ def initialize(api_client = ApiClient.new)
20
20
  @api_client = api_client
21
21
  end
22
22
  # Allows you to create a new chart of accounts
@@ -49,8 +49,14 @@ module XeroRuby
49
49
  # resource path
50
50
  local_var_path = '/Accounts'
51
51
 
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?
52
54
  # query parameters
53
55
  query_params = opts[:query_params] || {}
56
+
57
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
58
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
59
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
54
60
 
55
61
  # header parameters
56
62
  header_params = opts[:header_params] || {}
@@ -130,8 +136,14 @@ module XeroRuby
130
136
  # resource path
131
137
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
132
138
 
139
+ # 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?
133
141
  # query parameters
134
142
  query_params = opts[:query_params] || {}
143
+
144
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
145
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
146
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
135
147
 
136
148
  # header parameters
137
149
  header_params = opts[:header_params] || {}
@@ -169,7 +181,7 @@ module XeroRuby
169
181
  return data, status_code, headers
170
182
  end
171
183
 
172
- # Allows you to createa an Attachment on BankTransaction by Filename
184
+ # Allows you to create an Attachment on BankTransaction by Filename
173
185
  # @param xero_tenant_id [String] Xero identifier for Tenant
174
186
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
175
187
  # @param file_name [String] The name of the file being attached
@@ -181,7 +193,7 @@ module XeroRuby
181
193
  data
182
194
  end
183
195
 
184
- # Allows you to createa an Attachment on BankTransaction by Filename
196
+ # Allows you to create an Attachment on BankTransaction by Filename
185
197
  # @param xero_tenant_id [String] Xero identifier for Tenant
186
198
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
187
199
  # @param file_name [String] The name of the file being attached
@@ -211,8 +223,14 @@ module XeroRuby
211
223
  # resource path
212
224
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
213
225
 
226
+ # 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?
214
228
  # query parameters
215
229
  query_params = opts[:query_params] || {}
230
+
231
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
232
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
233
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
216
234
 
217
235
  # header parameters
218
236
  header_params = opts[:header_params] || {}
@@ -286,8 +304,14 @@ module XeroRuby
286
304
  # resource path
287
305
  local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
288
306
 
307
+ # 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?
289
309
  # query parameters
290
310
  query_params = opts[:query_params] || {}
311
+
312
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
313
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
314
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
291
315
 
292
316
  # header parameters
293
317
  header_params = opts[:header_params] || {}
@@ -359,10 +383,16 @@ module XeroRuby
359
383
  # resource path
360
384
  local_var_path = '/BankTransactions'
361
385
 
386
+ # 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?
362
388
  # query parameters
363
389
  query_params = opts[:query_params] || {}
364
390
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
365
391
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
392
+
393
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
394
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
395
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
366
396
 
367
397
  # header parameters
368
398
  header_params = opts[:header_params] || {}
@@ -430,8 +460,14 @@ module XeroRuby
430
460
  # resource path
431
461
  local_var_path = '/BankTransfers'
432
462
 
463
+ # 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?
433
465
  # query parameters
434
466
  query_params = opts[:query_params] || {}
467
+
468
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
469
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
470
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
435
471
 
436
472
  # header parameters
437
473
  header_params = opts[:header_params] || {}
@@ -509,8 +545,14 @@ module XeroRuby
509
545
  # resource path
510
546
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
511
547
 
548
+ # 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?
512
550
  # query parameters
513
551
  query_params = opts[:query_params] || {}
552
+
553
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
554
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
555
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
514
556
 
515
557
  # header parameters
516
558
  header_params = opts[:header_params] || {}
@@ -582,8 +624,14 @@ module XeroRuby
582
624
  # resource path
583
625
  local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
584
626
 
627
+ # 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?
585
629
  # query parameters
586
630
  query_params = opts[:query_params] || {}
631
+
632
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
633
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
634
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
587
635
 
588
636
  # header parameters
589
637
  header_params = opts[:header_params] || {}
@@ -653,9 +701,15 @@ module XeroRuby
653
701
  # resource path
654
702
  local_var_path = '/BatchPayments'
655
703
 
704
+ # 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?
656
706
  # query parameters
657
707
  query_params = opts[:query_params] || {}
658
708
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
709
+
710
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
711
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
712
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
659
713
 
660
714
  # header parameters
661
715
  header_params = opts[:header_params] || {}
@@ -729,8 +783,14 @@ module XeroRuby
729
783
  # resource path
730
784
  local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s)
731
785
 
786
+ # 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?
732
788
  # query parameters
733
789
  query_params = opts[:query_params] || {}
790
+
791
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
792
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
793
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
734
794
 
735
795
  # header parameters
736
796
  header_params = opts[:header_params] || {}
@@ -804,8 +864,14 @@ module XeroRuby
804
864
  # resource path
805
865
  local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
806
866
 
867
+ # 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?
807
869
  # query parameters
808
870
  query_params = opts[:query_params] || {}
871
+
872
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
873
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
874
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
809
875
 
810
876
  # header parameters
811
877
  header_params = opts[:header_params] || {}
@@ -883,8 +949,14 @@ module XeroRuby
883
949
  # resource path
884
950
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
885
951
 
952
+ # 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?
886
954
  # query parameters
887
955
  query_params = opts[:query_params] || {}
956
+
957
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
958
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
959
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
888
960
 
889
961
  # header parameters
890
962
  header_params = opts[:header_params] || {}
@@ -952,8 +1024,14 @@ module XeroRuby
952
1024
  # resource path
953
1025
  local_var_path = '/ContactGroups'
954
1026
 
1027
+ # 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?
955
1029
  # query parameters
956
1030
  query_params = opts[:query_params] || {}
1031
+
1032
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1033
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1034
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
957
1035
 
958
1036
  # header parameters
959
1037
  header_params = opts[:header_params] || {}
@@ -1027,8 +1105,14 @@ module XeroRuby
1027
1105
  # resource path
1028
1106
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
1029
1107
 
1108
+ # 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?
1030
1110
  # query parameters
1031
1111
  query_params = opts[:query_params] || {}
1112
+
1113
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1114
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1115
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1032
1116
 
1033
1117
  # header parameters
1034
1118
  header_params = opts[:header_params] || {}
@@ -1102,8 +1186,14 @@ module XeroRuby
1102
1186
  # resource path
1103
1187
  local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s)
1104
1188
 
1189
+ # 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?
1105
1191
  # query parameters
1106
1192
  query_params = opts[:query_params] || {}
1193
+
1194
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1195
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1196
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1107
1197
 
1108
1198
  # header parameters
1109
1199
  header_params = opts[:header_params] || {}
@@ -1173,9 +1263,15 @@ module XeroRuby
1173
1263
  # resource path
1174
1264
  local_var_path = '/Contacts'
1175
1265
 
1266
+ # 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?
1176
1268
  # query parameters
1177
1269
  query_params = opts[:query_params] || {}
1178
1270
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
1271
+
1272
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1273
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1274
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1179
1275
 
1180
1276
  # header parameters
1181
1277
  header_params = opts[:header_params] || {}
@@ -1218,6 +1314,7 @@ module XeroRuby
1218
1314
  # @param credit_note_id [String] Unique identifier for a Credit Note
1219
1315
  # @param allocations [Allocations] Allocations with array of Allocation object in body of request.
1220
1316
  # @param [Hash] opts the optional parameters
1317
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
1221
1318
  # @return [Allocations]
1222
1319
  def create_credit_note_allocation(xero_tenant_id, credit_note_id, allocations, opts = {})
1223
1320
  data, _status_code, _headers = create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, opts)
@@ -1229,6 +1326,7 @@ module XeroRuby
1229
1326
  # @param credit_note_id [String] Unique identifier for a Credit Note
1230
1327
  # @param allocations [Allocations] Allocations with array of Allocation object in body of request.
1231
1328
  # @param [Hash] opts the optional parameters
1329
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
1232
1330
  # @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
1233
1331
  def create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, opts = {})
1234
1332
  if @api_client.config.debugging
@@ -1249,8 +1347,15 @@ module XeroRuby
1249
1347
  # resource path
1250
1348
  local_var_path = '/CreditNotes/{CreditNoteID}/Allocations'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
1251
1349
 
1350
+ # 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?
1252
1352
  # query parameters
1253
1353
  query_params = opts[:query_params] || {}
1354
+ query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
1355
+
1356
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1357
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1358
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1254
1359
 
1255
1360
  # header parameters
1256
1361
  header_params = opts[:header_params] || {}
@@ -1332,9 +1437,15 @@ module XeroRuby
1332
1437
  # resource path
1333
1438
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
1334
1439
 
1440
+ # 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?
1335
1442
  # query parameters
1336
1443
  query_params = opts[:query_params] || {}
1337
1444
  query_params[:'IncludeOnline'] = opts[:'include_online'] if !opts[:'include_online'].nil?
1445
+
1446
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1447
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1448
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1338
1449
 
1339
1450
  # header parameters
1340
1451
  header_params = opts[:header_params] || {}
@@ -1408,8 +1519,14 @@ module XeroRuby
1408
1519
  # resource path
1409
1520
  local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
1410
1521
 
1522
+ # 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?
1411
1524
  # query parameters
1412
1525
  query_params = opts[:query_params] || {}
1526
+
1527
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1528
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1529
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1413
1530
 
1414
1531
  # header parameters
1415
1532
  header_params = opts[:header_params] || {}
@@ -1481,10 +1598,16 @@ module XeroRuby
1481
1598
  # resource path
1482
1599
  local_var_path = '/CreditNotes'
1483
1600
 
1601
+ # 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?
1484
1603
  # query parameters
1485
1604
  query_params = opts[:query_params] || {}
1486
1605
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
1487
1606
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
1607
+
1608
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1609
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1610
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1488
1611
 
1489
1612
  # header parameters
1490
1613
  header_params = opts[:header_params] || {}
@@ -1550,8 +1673,14 @@ module XeroRuby
1550
1673
  # resource path
1551
1674
  local_var_path = '/Currencies'
1552
1675
 
1676
+ # 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?
1553
1678
  # query parameters
1554
1679
  query_params = opts[:query_params] || {}
1680
+
1681
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1682
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1683
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1555
1684
 
1556
1685
  # header parameters
1557
1686
  header_params = opts[:header_params] || {}
@@ -1621,9 +1750,15 @@ module XeroRuby
1621
1750
  # resource path
1622
1751
  local_var_path = '/Employees'
1623
1752
 
1753
+ # 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?
1624
1755
  # query parameters
1625
1756
  query_params = opts[:query_params] || {}
1626
1757
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
1758
+
1759
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1760
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1761
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1627
1762
 
1628
1763
  # header parameters
1629
1764
  header_params = opts[:header_params] || {}
@@ -1697,8 +1832,14 @@ module XeroRuby
1697
1832
  # resource path
1698
1833
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
1699
1834
 
1835
+ # 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?
1700
1837
  # query parameters
1701
1838
  query_params = opts[:query_params] || {}
1839
+
1840
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1841
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1842
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1702
1843
 
1703
1844
  # header parameters
1704
1845
  header_params = opts[:header_params] || {}
@@ -1766,8 +1907,14 @@ module XeroRuby
1766
1907
  # resource path
1767
1908
  local_var_path = '/ExpenseClaims'
1768
1909
 
1910
+ # 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?
1769
1912
  # query parameters
1770
1913
  query_params = opts[:query_params] || {}
1914
+
1915
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1916
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1917
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1771
1918
 
1772
1919
  # header parameters
1773
1920
  header_params = opts[:header_params] || {}
@@ -1849,9 +1996,15 @@ module XeroRuby
1849
1996
  # resource path
1850
1997
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
1851
1998
 
1999
+ # 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?
1852
2001
  # query parameters
1853
2002
  query_params = opts[:query_params] || {}
1854
2003
  query_params[:'IncludeOnline'] = opts[:'include_online'] if !opts[:'include_online'].nil?
2004
+
2005
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2006
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2007
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1855
2008
 
1856
2009
  # header parameters
1857
2010
  header_params = opts[:header_params] || {}
@@ -1925,8 +2078,14 @@ module XeroRuby
1925
2078
  # resource path
1926
2079
  local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
1927
2080
 
2081
+ # 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?
1928
2083
  # query parameters
1929
2084
  query_params = opts[:query_params] || {}
2085
+
2086
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2087
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2088
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1930
2089
 
1931
2090
  # header parameters
1932
2091
  header_params = opts[:header_params] || {}
@@ -1998,10 +2157,16 @@ module XeroRuby
1998
2157
  # resource path
1999
2158
  local_var_path = '/Invoices'
2000
2159
 
2160
+ # 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?
2001
2162
  # query parameters
2002
2163
  query_params = opts[:query_params] || {}
2003
2164
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
2004
2165
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
2166
+
2167
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2168
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2169
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2005
2170
 
2006
2171
  # header parameters
2007
2172
  header_params = opts[:header_params] || {}
@@ -2075,8 +2240,14 @@ module XeroRuby
2075
2240
  # resource path
2076
2241
  local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s)
2077
2242
 
2243
+ # 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?
2078
2245
  # query parameters
2079
2246
  query_params = opts[:query_params] || {}
2247
+
2248
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2249
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2250
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2080
2251
 
2081
2252
  # header parameters
2082
2253
  header_params = opts[:header_params] || {}
@@ -2148,10 +2319,16 @@ module XeroRuby
2148
2319
  # resource path
2149
2320
  local_var_path = '/Items'
2150
2321
 
2322
+ # 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?
2151
2324
  # query parameters
2152
2325
  query_params = opts[:query_params] || {}
2153
2326
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
2154
2327
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
2328
+
2329
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2330
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2331
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2155
2332
 
2156
2333
  # header parameters
2157
2334
  header_params = opts[:header_params] || {}
@@ -2219,8 +2396,14 @@ module XeroRuby
2219
2396
  # resource path
2220
2397
  local_var_path = '/LinkedTransactions'
2221
2398
 
2399
+ # 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?
2222
2401
  # query parameters
2223
2402
  query_params = opts[:query_params] || {}
2403
+
2404
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2405
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2406
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2224
2407
 
2225
2408
  # header parameters
2226
2409
  header_params = opts[:header_params] || {}
@@ -2300,8 +2483,14 @@ module XeroRuby
2300
2483
  # resource path
2301
2484
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
2302
2485
 
2486
+ # 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?
2303
2488
  # query parameters
2304
2489
  query_params = opts[:query_params] || {}
2490
+
2491
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2492
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2493
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2305
2494
 
2306
2495
  # header parameters
2307
2496
  header_params = opts[:header_params] || {}
@@ -2371,9 +2560,15 @@ module XeroRuby
2371
2560
  # resource path
2372
2561
  local_var_path = '/ManualJournals'
2373
2562
 
2563
+ # 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?
2374
2565
  # query parameters
2375
2566
  query_params = opts[:query_params] || {}
2376
2567
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
2568
+
2569
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2570
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2571
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2377
2572
 
2378
2573
  # header parameters
2379
2574
  header_params = opts[:header_params] || {}
@@ -2449,9 +2644,15 @@ module XeroRuby
2449
2644
  # resource path
2450
2645
  local_var_path = '/Overpayments/{OverpaymentID}/Allocations'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
2451
2646
 
2647
+ # 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?
2452
2649
  # query parameters
2453
2650
  query_params = opts[:query_params] || {}
2454
2651
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
2652
+
2653
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2654
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2655
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2455
2656
 
2456
2657
  # header parameters
2457
2658
  header_params = opts[:header_params] || {}
@@ -2525,8 +2726,14 @@ module XeroRuby
2525
2726
  # resource path
2526
2727
  local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
2527
2728
 
2729
+ # 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?
2528
2731
  # query parameters
2529
2732
  query_params = opts[:query_params] || {}
2733
+
2734
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2735
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2736
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2530
2737
 
2531
2738
  # header parameters
2532
2739
  header_params = opts[:header_params] || {}
@@ -2594,8 +2801,14 @@ module XeroRuby
2594
2801
  # resource path
2595
2802
  local_var_path = '/Payments'
2596
2803
 
2804
+ # 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?
2597
2806
  # query parameters
2598
2807
  query_params = opts[:query_params] || {}
2808
+
2809
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2810
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2811
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2599
2812
 
2600
2813
  # header parameters
2601
2814
  header_params = opts[:header_params] || {}
@@ -2669,8 +2882,14 @@ module XeroRuby
2669
2882
  # resource path
2670
2883
  local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
2671
2884
 
2885
+ # 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?
2672
2887
  # query parameters
2673
2888
  query_params = opts[:query_params] || {}
2889
+
2890
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2891
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2892
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2674
2893
 
2675
2894
  # header parameters
2676
2895
  header_params = opts[:header_params] || {}
@@ -2738,8 +2957,14 @@ module XeroRuby
2738
2957
  # resource path
2739
2958
  local_var_path = '/PaymentServices'
2740
2959
 
2960
+ # 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?
2741
2962
  # query parameters
2742
2963
  query_params = opts[:query_params] || {}
2964
+
2965
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2966
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2967
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2743
2968
 
2744
2969
  # header parameters
2745
2970
  header_params = opts[:header_params] || {}
@@ -2809,9 +3034,15 @@ module XeroRuby
2809
3034
  # resource path
2810
3035
  local_var_path = '/Payments'
2811
3036
 
3037
+ # 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?
2812
3039
  # query parameters
2813
3040
  query_params = opts[:query_params] || {}
2814
3041
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
3042
+
3043
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3044
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3045
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2815
3046
 
2816
3047
  # header parameters
2817
3048
  header_params = opts[:header_params] || {}
@@ -2887,9 +3118,15 @@ module XeroRuby
2887
3118
  # resource path
2888
3119
  local_var_path = '/Prepayments/{PrepaymentID}/Allocations'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
2889
3120
 
3121
+ # 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?
2890
3123
  # query parameters
2891
3124
  query_params = opts[:query_params] || {}
2892
3125
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
3126
+
3127
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3128
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3129
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2893
3130
 
2894
3131
  # header parameters
2895
3132
  header_params = opts[:header_params] || {}
@@ -2963,8 +3200,14 @@ module XeroRuby
2963
3200
  # resource path
2964
3201
  local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
2965
3202
 
3203
+ # 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?
2966
3205
  # query parameters
2967
3206
  query_params = opts[:query_params] || {}
3207
+
3208
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3209
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3210
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2968
3211
 
2969
3212
  # header parameters
2970
3213
  header_params = opts[:header_params] || {}
@@ -3038,8 +3281,14 @@ module XeroRuby
3038
3281
  # resource path
3039
3282
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
3040
3283
 
3284
+ # 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?
3041
3286
  # query parameters
3042
3287
  query_params = opts[:query_params] || {}
3288
+
3289
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3290
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3291
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3043
3292
 
3044
3293
  # header parameters
3045
3294
  header_params = opts[:header_params] || {}
@@ -3109,9 +3358,15 @@ module XeroRuby
3109
3358
  # resource path
3110
3359
  local_var_path = '/PurchaseOrders'
3111
3360
 
3361
+ # 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?
3112
3363
  # query parameters
3113
3364
  query_params = opts[:query_params] || {}
3114
3365
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
3366
+
3367
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3368
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3369
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3115
3370
 
3116
3371
  # header parameters
3117
3372
  header_params = opts[:header_params] || {}
@@ -3191,8 +3446,14 @@ module XeroRuby
3191
3446
  # resource path
3192
3447
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3193
3448
 
3449
+ # 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?
3194
3451
  # query parameters
3195
3452
  query_params = opts[:query_params] || {}
3453
+
3454
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3455
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3456
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3196
3457
 
3197
3458
  # header parameters
3198
3459
  header_params = opts[:header_params] || {}
@@ -3266,8 +3527,14 @@ module XeroRuby
3266
3527
  # resource path
3267
3528
  local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
3268
3529
 
3530
+ # 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?
3269
3532
  # query parameters
3270
3533
  query_params = opts[:query_params] || {}
3534
+
3535
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3536
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3537
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3271
3538
 
3272
3539
  # header parameters
3273
3540
  header_params = opts[:header_params] || {}
@@ -3337,9 +3604,15 @@ module XeroRuby
3337
3604
  # resource path
3338
3605
  local_var_path = '/Quotes'
3339
3606
 
3607
+ # 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?
3340
3609
  # query parameters
3341
3610
  query_params = opts[:query_params] || {}
3342
3611
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
3612
+
3613
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3614
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3615
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3343
3616
 
3344
3617
  # header parameters
3345
3618
  header_params = opts[:header_params] || {}
@@ -3409,9 +3682,15 @@ module XeroRuby
3409
3682
  # resource path
3410
3683
  local_var_path = '/Receipts'
3411
3684
 
3685
+ # 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?
3412
3687
  # query parameters
3413
3688
  query_params = opts[:query_params] || {}
3414
3689
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
3690
+
3691
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3692
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3693
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3415
3694
 
3416
3695
  # header parameters
3417
3696
  header_params = opts[:header_params] || {}
@@ -3491,8 +3770,14 @@ module XeroRuby
3491
3770
  # resource path
3492
3771
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3493
3772
 
3773
+ # 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?
3494
3775
  # query parameters
3495
3776
  query_params = opts[:query_params] || {}
3777
+
3778
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3779
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3780
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3496
3781
 
3497
3782
  # header parameters
3498
3783
  header_params = opts[:header_params] || {}
@@ -3566,8 +3851,14 @@ module XeroRuby
3566
3851
  # resource path
3567
3852
  local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
3568
3853
 
3854
+ # 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?
3569
3856
  # query parameters
3570
3857
  query_params = opts[:query_params] || {}
3858
+
3859
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3860
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3861
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3571
3862
 
3572
3863
  # header parameters
3573
3864
  header_params = opts[:header_params] || {}
@@ -3647,8 +3938,14 @@ module XeroRuby
3647
3938
  # resource path
3648
3939
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3649
3940
 
3941
+ # 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?
3650
3943
  # query parameters
3651
3944
  query_params = opts[:query_params] || {}
3945
+
3946
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3947
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3948
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3652
3949
 
3653
3950
  # header parameters
3654
3951
  header_params = opts[:header_params] || {}
@@ -3722,8 +4019,14 @@ module XeroRuby
3722
4019
  # resource path
3723
4020
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
3724
4021
 
4022
+ # 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?
3725
4024
  # query parameters
3726
4025
  query_params = opts[:query_params] || {}
4026
+
4027
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4028
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4029
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3727
4030
 
3728
4031
  # header parameters
3729
4032
  header_params = opts[:header_params] || {}
@@ -3791,8 +4094,14 @@ module XeroRuby
3791
4094
  # resource path
3792
4095
  local_var_path = '/TaxRates'
3793
4096
 
4097
+ # 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?
3794
4099
  # query parameters
3795
4100
  query_params = opts[:query_params] || {}
4101
+
4102
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4103
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4104
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3796
4105
 
3797
4106
  # header parameters
3798
4107
  header_params = opts[:header_params] || {}
@@ -3860,8 +4169,14 @@ module XeroRuby
3860
4169
  # resource path
3861
4170
  local_var_path = '/TrackingCategories'
3862
4171
 
4172
+ # 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?
3863
4174
  # query parameters
3864
4175
  query_params = opts[:query_params] || {}
4176
+
4177
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4178
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4179
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3865
4180
 
3866
4181
  # header parameters
3867
4182
  header_params = opts[:header_params] || {}
@@ -3935,8 +4250,14 @@ module XeroRuby
3935
4250
  # resource path
3936
4251
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
3937
4252
 
4253
+ # 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?
3938
4255
  # query parameters
3939
4256
  query_params = opts[:query_params] || {}
4257
+
4258
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4259
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4260
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3940
4261
 
3941
4262
  # header parameters
3942
4263
  header_params = opts[:header_params] || {}
@@ -4004,8 +4325,14 @@ module XeroRuby
4004
4325
  # resource path
4005
4326
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
4006
4327
 
4328
+ # 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?
4007
4330
  # query parameters
4008
4331
  query_params = opts[:query_params] || {}
4332
+
4333
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4334
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4335
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4009
4336
 
4010
4337
  # header parameters
4011
4338
  header_params = opts[:header_params] || {}
@@ -4077,8 +4404,14 @@ module XeroRuby
4077
4404
  # resource path
4078
4405
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts/{ContactID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s).sub('{' + 'ContactID' + '}', contact_id.to_s)
4079
4406
 
4407
+ # 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?
4080
4409
  # query parameters
4081
4410
  query_params = opts[:query_params] || {}
4411
+
4412
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4413
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4414
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4082
4415
 
4083
4416
  # header parameters
4084
4417
  header_params = opts[:header_params] || {}
@@ -4144,8 +4477,14 @@ module XeroRuby
4144
4477
  # resource path
4145
4478
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
4146
4479
 
4480
+ # 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?
4147
4482
  # query parameters
4148
4483
  query_params = opts[:query_params] || {}
4484
+
4485
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4486
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4487
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4149
4488
 
4150
4489
  # header parameters
4151
4490
  header_params = opts[:header_params] || {}
@@ -4209,8 +4548,14 @@ module XeroRuby
4209
4548
  # resource path
4210
4549
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
4211
4550
 
4551
+ # 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?
4212
4553
  # query parameters
4213
4554
  query_params = opts[:query_params] || {}
4555
+
4556
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4557
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4558
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4214
4559
 
4215
4560
  # header parameters
4216
4561
  header_params = opts[:header_params] || {}
@@ -4276,8 +4621,14 @@ module XeroRuby
4276
4621
  # resource path
4277
4622
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
4278
4623
 
4624
+ # 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?
4279
4626
  # query parameters
4280
4627
  query_params = opts[:query_params] || {}
4628
+
4629
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4630
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4631
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4281
4632
 
4282
4633
  # header parameters
4283
4634
  header_params = opts[:header_params] || {}
@@ -4349,8 +4700,14 @@ module XeroRuby
4349
4700
  # resource path
4350
4701
  local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
4351
4702
 
4703
+ # 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?
4352
4705
  # query parameters
4353
4706
  query_params = opts[:query_params] || {}
4707
+
4708
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4709
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4710
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4354
4711
 
4355
4712
  # header parameters
4356
4713
  header_params = opts[:header_params] || {}
@@ -4418,8 +4775,14 @@ module XeroRuby
4418
4775
  # resource path
4419
4776
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
4420
4777
 
4778
+ # 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?
4421
4780
  # query parameters
4422
4781
  query_params = opts[:query_params] || {}
4782
+
4783
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4784
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4785
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4423
4786
 
4424
4787
  # header parameters
4425
4788
  header_params = opts[:header_params] || {}
@@ -4491,8 +4854,14 @@ module XeroRuby
4491
4854
  # resource path
4492
4855
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s)
4493
4856
 
4857
+ # 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?
4494
4859
  # query parameters
4495
4860
  query_params = opts[:query_params] || {}
4861
+
4862
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4863
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4864
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4496
4865
 
4497
4866
  # header parameters
4498
4867
  header_params = opts[:header_params] || {}
@@ -4564,8 +4933,14 @@ module XeroRuby
4564
4933
  # resource path
4565
4934
  local_var_path = '/Invoices/{InvoiceID}/Email'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
4566
4935
 
4936
+ # 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?
4567
4938
  # query parameters
4568
4939
  query_params = opts[:query_params] || {}
4940
+
4941
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4942
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4943
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4569
4944
 
4570
4945
  # header parameters
4571
4946
  header_params = opts[:header_params] || {}
@@ -4633,8 +5008,14 @@ module XeroRuby
4633
5008
  # resource path
4634
5009
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
4635
5010
 
5011
+ # 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?
4636
5013
  # query parameters
4637
5014
  query_params = opts[:query_params] || {}
5015
+
5016
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5017
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5018
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4638
5019
 
4639
5020
  # header parameters
4640
5021
  header_params = opts[:header_params] || {}
@@ -4712,8 +5093,14 @@ module XeroRuby
4712
5093
  # resource path
4713
5094
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
4714
5095
 
5096
+ # 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?
4715
5098
  # query parameters
4716
5099
  query_params = opts[:query_params] || {}
5100
+
5101
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5102
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5103
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4717
5104
 
4718
5105
  # header parameters
4719
5106
  header_params = opts[:header_params] || {}
@@ -4792,8 +5179,14 @@ module XeroRuby
4792
5179
  # resource path
4793
5180
  local_var_path = '/Accounts/{AccountID}/Attachments/{AttachmentID}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
4794
5181
 
5182
+ # 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?
4795
5184
  # query parameters
4796
5185
  query_params = opts[:query_params] || {}
5186
+
5187
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5188
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5189
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4797
5190
 
4798
5191
  # header parameters
4799
5192
  header_params = opts[:header_params] || {}
@@ -4860,8 +5253,14 @@ module XeroRuby
4860
5253
  # resource path
4861
5254
  local_var_path = '/Accounts/{AccountID}/Attachments'.sub('{' + 'AccountID' + '}', account_id.to_s)
4862
5255
 
5256
+ # 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?
4863
5258
  # query parameters
4864
5259
  query_params = opts[:query_params] || {}
5260
+
5261
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5262
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5263
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4865
5264
 
4866
5265
  # header parameters
4867
5266
  header_params = opts[:header_params] || {}
@@ -4927,10 +5326,16 @@ module XeroRuby
4927
5326
  # resource path
4928
5327
  local_var_path = '/Accounts'
4929
5328
 
5329
+ # 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?
4930
5331
  # query parameters
4931
5332
  query_params = opts[:query_params] || {}
4932
5333
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
4933
5334
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
5335
+
5336
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5337
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5338
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4934
5339
 
4935
5340
  # header parameters
4936
5341
  header_params = opts[:header_params] || {}
@@ -4999,9 +5404,15 @@ module XeroRuby
4999
5404
  # resource path
5000
5405
  local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5001
5406
 
5407
+ # 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?
5002
5409
  # query parameters
5003
5410
  query_params = opts[:query_params] || {}
5004
5411
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
5412
+
5413
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5414
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5415
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5005
5416
 
5006
5417
  # header parameters
5007
5418
  header_params = opts[:header_params] || {}
@@ -5079,8 +5490,14 @@ module XeroRuby
5079
5490
  # resource path
5080
5491
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
5081
5492
 
5493
+ # 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?
5082
5495
  # query parameters
5083
5496
  query_params = opts[:query_params] || {}
5497
+
5498
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5499
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5500
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5084
5501
 
5085
5502
  # header parameters
5086
5503
  header_params = opts[:header_params] || {}
@@ -5159,8 +5576,14 @@ module XeroRuby
5159
5576
  # resource path
5160
5577
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
5161
5578
 
5579
+ # 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?
5162
5581
  # query parameters
5163
5582
  query_params = opts[:query_params] || {}
5583
+
5584
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5585
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5586
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5164
5587
 
5165
5588
  # header parameters
5166
5589
  header_params = opts[:header_params] || {}
@@ -5227,8 +5650,14 @@ module XeroRuby
5227
5650
  # resource path
5228
5651
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5229
5652
 
5653
+ # 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?
5230
5655
  # query parameters
5231
5656
  query_params = opts[:query_params] || {}
5657
+
5658
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5659
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5660
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5232
5661
 
5233
5662
  # header parameters
5234
5663
  header_params = opts[:header_params] || {}
@@ -5298,12 +5727,18 @@ module XeroRuby
5298
5727
  # resource path
5299
5728
  local_var_path = '/BankTransactions'
5300
5729
 
5730
+ # 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?
5301
5732
  # query parameters
5302
5733
  query_params = opts[:query_params] || {}
5303
5734
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
5304
5735
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
5305
5736
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
5306
5737
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
5738
+
5739
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5740
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5741
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5307
5742
 
5308
5743
  # header parameters
5309
5744
  header_params = opts[:header_params] || {}
@@ -5370,8 +5805,14 @@ module XeroRuby
5370
5805
  # resource path
5371
5806
  local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5372
5807
 
5808
+ # 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?
5373
5810
  # query parameters
5374
5811
  query_params = opts[:query_params] || {}
5812
+
5813
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5814
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5815
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5375
5816
 
5376
5817
  # header parameters
5377
5818
  header_params = opts[:header_params] || {}
@@ -5437,8 +5878,14 @@ module XeroRuby
5437
5878
  # resource path
5438
5879
  local_var_path = '/BankTransfers/{BankTransferID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
5439
5880
 
5881
+ # 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?
5440
5883
  # query parameters
5441
5884
  query_params = opts[:query_params] || {}
5885
+
5886
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5887
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5888
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5442
5889
 
5443
5890
  # header parameters
5444
5891
  header_params = opts[:header_params] || {}
@@ -5516,8 +5963,14 @@ module XeroRuby
5516
5963
  # resource path
5517
5964
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
5518
5965
 
5966
+ # 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?
5519
5968
  # query parameters
5520
5969
  query_params = opts[:query_params] || {}
5970
+
5971
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
5972
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
5973
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5521
5974
 
5522
5975
  # header parameters
5523
5976
  header_params = opts[:header_params] || {}
@@ -5596,8 +6049,14 @@ module XeroRuby
5596
6049
  # resource path
5597
6050
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
5598
6051
 
6052
+ # 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?
5599
6054
  # query parameters
5600
6055
  query_params = opts[:query_params] || {}
6056
+
6057
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6058
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6059
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5601
6060
 
5602
6061
  # header parameters
5603
6062
  header_params = opts[:header_params] || {}
@@ -5664,8 +6123,14 @@ module XeroRuby
5664
6123
  # resource path
5665
6124
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
5666
6125
 
6126
+ # 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?
5667
6128
  # query parameters
5668
6129
  query_params = opts[:query_params] || {}
6130
+
6131
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6132
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6133
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5669
6134
 
5670
6135
  # header parameters
5671
6136
  header_params = opts[:header_params] || {}
@@ -5731,8 +6196,14 @@ module XeroRuby
5731
6196
  # resource path
5732
6197
  local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
5733
6198
 
6199
+ # 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?
5734
6201
  # query parameters
5735
6202
  query_params = opts[:query_params] || {}
6203
+
6204
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6205
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6206
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5736
6207
 
5737
6208
  # header parameters
5738
6209
  header_params = opts[:header_params] || {}
@@ -5798,10 +6269,16 @@ module XeroRuby
5798
6269
  # resource path
5799
6270
  local_var_path = '/BankTransfers'
5800
6271
 
6272
+ # 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?
5801
6274
  # query parameters
5802
6275
  query_params = opts[:query_params] || {}
5803
6276
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
5804
6277
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
6278
+
6279
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6280
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6281
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5805
6282
 
5806
6283
  # header parameters
5807
6284
  header_params = opts[:header_params] || {}
@@ -5868,8 +6345,14 @@ module XeroRuby
5868
6345
  # resource path
5869
6346
  local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s)
5870
6347
 
6348
+ # 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?
5871
6350
  # query parameters
5872
6351
  query_params = opts[:query_params] || {}
6352
+
6353
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6354
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6355
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5873
6356
 
5874
6357
  # header parameters
5875
6358
  header_params = opts[:header_params] || {}
@@ -5935,10 +6418,16 @@ module XeroRuby
5935
6418
  # resource path
5936
6419
  local_var_path = '/BatchPayments'
5937
6420
 
6421
+ # 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?
5938
6423
  # query parameters
5939
6424
  query_params = opts[:query_params] || {}
5940
6425
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
5941
6426
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
6427
+
6428
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6429
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6430
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
5942
6431
 
5943
6432
  # header parameters
5944
6433
  header_params = opts[:header_params] || {}
@@ -6005,8 +6494,14 @@ module XeroRuby
6005
6494
  # resource path
6006
6495
  local_var_path = '/BrandingThemes/{BrandingThemeID}'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
6007
6496
 
6497
+ # 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?
6008
6499
  # query parameters
6009
6500
  query_params = opts[:query_params] || {}
6501
+
6502
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6503
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6504
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6010
6505
 
6011
6506
  # header parameters
6012
6507
  header_params = opts[:header_params] || {}
@@ -6072,8 +6567,14 @@ module XeroRuby
6072
6567
  # resource path
6073
6568
  local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
6074
6569
 
6570
+ # 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?
6075
6572
  # query parameters
6076
6573
  query_params = opts[:query_params] || {}
6574
+
6575
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6576
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6577
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6077
6578
 
6078
6579
  # header parameters
6079
6580
  header_params = opts[:header_params] || {}
@@ -6133,8 +6634,14 @@ module XeroRuby
6133
6634
  # resource path
6134
6635
  local_var_path = '/BrandingThemes'
6135
6636
 
6637
+ # 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?
6136
6639
  # query parameters
6137
6640
  query_params = opts[:query_params] || {}
6641
+
6642
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6643
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6644
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6138
6645
 
6139
6646
  # header parameters
6140
6647
  header_params = opts[:header_params] || {}
@@ -6200,8 +6707,14 @@ module XeroRuby
6200
6707
  # resource path
6201
6708
  local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s)
6202
6709
 
6710
+ # 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?
6203
6712
  # query parameters
6204
6713
  query_params = opts[:query_params] || {}
6714
+
6715
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6716
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6717
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6205
6718
 
6206
6719
  # header parameters
6207
6720
  header_params = opts[:header_params] || {}
@@ -6279,8 +6792,14 @@ module XeroRuby
6279
6792
  # resource path
6280
6793
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
6281
6794
 
6795
+ # 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?
6282
6797
  # query parameters
6283
6798
  query_params = opts[:query_params] || {}
6799
+
6800
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6801
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6802
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6284
6803
 
6285
6804
  # header parameters
6286
6805
  header_params = opts[:header_params] || {}
@@ -6359,8 +6878,14 @@ module XeroRuby
6359
6878
  # resource path
6360
6879
  local_var_path = '/Contacts/{ContactID}/Attachments/{AttachmentID}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
6361
6880
 
6881
+ # 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?
6362
6883
  # query parameters
6363
6884
  query_params = opts[:query_params] || {}
6885
+
6886
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6887
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6888
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6364
6889
 
6365
6890
  # header parameters
6366
6891
  header_params = opts[:header_params] || {}
@@ -6427,8 +6952,14 @@ module XeroRuby
6427
6952
  # resource path
6428
6953
  local_var_path = '/Contacts/{ContactID}/Attachments'.sub('{' + 'ContactID' + '}', contact_id.to_s)
6429
6954
 
6955
+ # 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?
6430
6957
  # query parameters
6431
6958
  query_params = opts[:query_params] || {}
6959
+
6960
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6961
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
6962
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6432
6963
 
6433
6964
  # header parameters
6434
6965
  header_params = opts[:header_params] || {}
@@ -6464,6 +6995,79 @@ module XeroRuby
6464
6995
  return data, status_code, headers
6465
6996
  end
6466
6997
 
6998
+ # Allows you to retrieve a single contact by Contact Number in a Xero organisation
6999
+ # @param xero_tenant_id [String] Xero identifier for Tenant
7000
+ # @param contact_number [String] This field is read only on the Xero contact screen, used to identify contacts in external systems (max length &#x3D; 50).
7001
+ # @param [Hash] opts the optional parameters
7002
+ # @return [Contacts]
7003
+ def get_contact_by_contact_number(xero_tenant_id, contact_number, opts = {})
7004
+ data, _status_code, _headers = get_contact_by_contact_number_with_http_info(xero_tenant_id, contact_number, opts)
7005
+ data
7006
+ end
7007
+
7008
+ # Allows you to retrieve a single contact by Contact Number in a Xero organisation
7009
+ # @param xero_tenant_id [String] Xero identifier for Tenant
7010
+ # @param contact_number [String] This field is read only on the Xero contact screen, used to identify contacts in external systems (max length &#x3D; 50).
7011
+ # @param [Hash] opts the optional parameters
7012
+ # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
7013
+ def get_contact_by_contact_number_with_http_info(xero_tenant_id, contact_number, opts = {})
7014
+ if @api_client.config.debugging
7015
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_by_contact_number ...'
7016
+ end
7017
+ # verify the required parameter 'xero_tenant_id' is set
7018
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
7019
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_contact_by_contact_number"
7020
+ end
7021
+ # verify the required parameter 'contact_number' is set
7022
+ if @api_client.config.client_side_validation && contact_number.nil?
7023
+ fail ArgumentError, "Missing the required parameter 'contact_number' when calling AccountingApi.get_contact_by_contact_number"
7024
+ end
7025
+ # resource path
7026
+ local_var_path = '/Contacts/{ContactNumber}'.sub('{' + 'ContactNumber' + '}', contact_number.to_s)
7027
+
7028
+ # 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?
7030
+ # query parameters
7031
+ query_params = opts[:query_params] || {}
7032
+
7033
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7034
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7035
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7036
+
7037
+ # header parameters
7038
+ header_params = opts[:header_params] || {}
7039
+ # HTTP header 'Accept' (if needed)
7040
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
7041
+ header_params[:'xero-tenant-id'] = xero_tenant_id
7042
+
7043
+ # form parameters
7044
+ form_params = opts[:form_params] || {}
7045
+
7046
+ # http body (model)
7047
+ post_body = opts[:body]
7048
+
7049
+ # return_type
7050
+ return_type = opts[:return_type] || 'Contacts'
7051
+
7052
+ # auth_names
7053
+ auth_names = opts[:auth_names] || ['OAuth2']
7054
+
7055
+ new_options = opts.merge(
7056
+ :header_params => header_params,
7057
+ :query_params => query_params,
7058
+ :form_params => form_params,
7059
+ :body => post_body,
7060
+ :auth_names => auth_names,
7061
+ :return_type => return_type
7062
+ )
7063
+
7064
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7065
+ if @api_client.config.debugging
7066
+ @api_client.config.logger.debug "API called: AccountingApi#get_contact_by_contact_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7067
+ end
7068
+ return data, status_code, headers
7069
+ end
7070
+
6467
7071
  # Allows you to retrieve CISSettings for a contact in a Xero organisation
6468
7072
  # @param xero_tenant_id [String] Xero identifier for Tenant
6469
7073
  # @param contact_id [String] Unique identifier for a Contact
@@ -6494,8 +7098,14 @@ module XeroRuby
6494
7098
  # resource path
6495
7099
  local_var_path = '/Contacts/{ContactID}/CISSettings'.sub('{' + 'ContactID' + '}', contact_id.to_s)
6496
7100
 
7101
+ # 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?
6497
7103
  # query parameters
6498
7104
  query_params = opts[:query_params] || {}
7105
+
7106
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7107
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7108
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6499
7109
 
6500
7110
  # header parameters
6501
7111
  header_params = opts[:header_params] || {}
@@ -6561,8 +7171,14 @@ module XeroRuby
6561
7171
  # resource path
6562
7172
  local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
6563
7173
 
7174
+ # 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?
6564
7176
  # query parameters
6565
7177
  query_params = opts[:query_params] || {}
7178
+
7179
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7180
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7181
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6566
7182
 
6567
7183
  # header parameters
6568
7184
  header_params = opts[:header_params] || {}
@@ -6626,10 +7242,16 @@ module XeroRuby
6626
7242
  # resource path
6627
7243
  local_var_path = '/ContactGroups'
6628
7244
 
7245
+ # 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?
6629
7247
  # query parameters
6630
7248
  query_params = opts[:query_params] || {}
6631
7249
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
6632
7250
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
7251
+
7252
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7253
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7254
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6633
7255
 
6634
7256
  # header parameters
6635
7257
  header_params = opts[:header_params] || {}
@@ -6695,8 +7317,14 @@ module XeroRuby
6695
7317
  # resource path
6696
7318
  local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s)
6697
7319
 
7320
+ # 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?
6698
7322
  # query parameters
6699
7323
  query_params = opts[:query_params] || {}
7324
+
7325
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7326
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7327
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6700
7328
 
6701
7329
  # header parameters
6702
7330
  header_params = opts[:header_params] || {}
@@ -6768,6 +7396,8 @@ module XeroRuby
6768
7396
  # resource path
6769
7397
  local_var_path = '/Contacts'
6770
7398
 
7399
+ # 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?
6771
7401
  # query parameters
6772
7402
  query_params = opts[:query_params] || {}
6773
7403
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -6775,6 +7405,10 @@ module XeroRuby
6775
7405
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'i_ds'], :csv) if !opts[:'i_ds'].nil?
6776
7406
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
6777
7407
  query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
7408
+
7409
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7410
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7411
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6778
7412
 
6779
7413
  # header parameters
6780
7414
  header_params = opts[:header_params] || {}
@@ -6843,9 +7477,15 @@ module XeroRuby
6843
7477
  # resource path
6844
7478
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
6845
7479
 
7480
+ # 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?
6846
7482
  # query parameters
6847
7483
  query_params = opts[:query_params] || {}
6848
7484
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
7485
+
7486
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7487
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7488
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6849
7489
 
6850
7490
  # header parameters
6851
7491
  header_params = opts[:header_params] || {}
@@ -6911,8 +7551,14 @@ module XeroRuby
6911
7551
  # resource path
6912
7552
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
6913
7553
 
7554
+ # 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?
6914
7556
  # query parameters
6915
7557
  query_params = opts[:query_params] || {}
7558
+
7559
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7560
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7561
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6916
7562
 
6917
7563
  # header parameters
6918
7564
  header_params = opts[:header_params] || {}
@@ -6990,8 +7636,14 @@ module XeroRuby
6990
7636
  # resource path
6991
7637
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
6992
7638
 
7639
+ # 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?
6993
7641
  # query parameters
6994
7642
  query_params = opts[:query_params] || {}
7643
+
7644
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7645
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7646
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
6995
7647
 
6996
7648
  # header parameters
6997
7649
  header_params = opts[:header_params] || {}
@@ -7070,8 +7722,14 @@ module XeroRuby
7070
7722
  # resource path
7071
7723
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
7072
7724
 
7725
+ # 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?
7073
7727
  # query parameters
7074
7728
  query_params = opts[:query_params] || {}
7729
+
7730
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7731
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7732
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7075
7733
 
7076
7734
  # header parameters
7077
7735
  header_params = opts[:header_params] || {}
@@ -7138,8 +7796,14 @@ module XeroRuby
7138
7796
  # resource path
7139
7797
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7140
7798
 
7799
+ # 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?
7141
7801
  # query parameters
7142
7802
  query_params = opts[:query_params] || {}
7803
+
7804
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7805
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7806
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7143
7807
 
7144
7808
  # header parameters
7145
7809
  header_params = opts[:header_params] || {}
@@ -7205,8 +7869,14 @@ module XeroRuby
7205
7869
  # resource path
7206
7870
  local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7207
7871
 
7872
+ # 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?
7208
7874
  # query parameters
7209
7875
  query_params = opts[:query_params] || {}
7876
+
7877
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7878
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7879
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7210
7880
 
7211
7881
  # header parameters
7212
7882
  header_params = opts[:header_params] || {}
@@ -7276,12 +7946,18 @@ module XeroRuby
7276
7946
  # resource path
7277
7947
  local_var_path = '/CreditNotes'
7278
7948
 
7949
+ # 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?
7279
7951
  # query parameters
7280
7952
  query_params = opts[:query_params] || {}
7281
7953
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
7282
7954
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
7283
7955
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
7284
7956
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
7957
+
7958
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7959
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7960
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7285
7961
 
7286
7962
  # header parameters
7287
7963
  header_params = opts[:header_params] || {}
@@ -7346,10 +8022,16 @@ module XeroRuby
7346
8022
  # resource path
7347
8023
  local_var_path = '/Currencies'
7348
8024
 
8025
+ # 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?
7349
8027
  # query parameters
7350
8028
  query_params = opts[:query_params] || {}
7351
8029
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
7352
8030
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
8031
+
8032
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8033
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8034
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7353
8035
 
7354
8036
  # header parameters
7355
8037
  header_params = opts[:header_params] || {}
@@ -7415,8 +8097,14 @@ module XeroRuby
7415
8097
  # resource path
7416
8098
  local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
7417
8099
 
8100
+ # 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?
7418
8102
  # query parameters
7419
8103
  query_params = opts[:query_params] || {}
8104
+
8105
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8106
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8107
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7420
8108
 
7421
8109
  # header parameters
7422
8110
  header_params = opts[:header_params] || {}
@@ -7482,10 +8170,16 @@ module XeroRuby
7482
8170
  # resource path
7483
8171
  local_var_path = '/Employees'
7484
8172
 
8173
+ # 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?
7485
8175
  # query parameters
7486
8176
  query_params = opts[:query_params] || {}
7487
8177
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
7488
8178
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
8179
+
8180
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8181
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8182
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7489
8183
 
7490
8184
  # header parameters
7491
8185
  header_params = opts[:header_params] || {}
@@ -7552,8 +8246,14 @@ module XeroRuby
7552
8246
  # resource path
7553
8247
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
7554
8248
 
8249
+ # 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?
7555
8251
  # query parameters
7556
8252
  query_params = opts[:query_params] || {}
8253
+
8254
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8255
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8256
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7557
8257
 
7558
8258
  # header parameters
7559
8259
  header_params = opts[:header_params] || {}
@@ -7619,8 +8319,14 @@ module XeroRuby
7619
8319
  # resource path
7620
8320
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
7621
8321
 
8322
+ # 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?
7622
8324
  # query parameters
7623
8325
  query_params = opts[:query_params] || {}
8326
+
8327
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8328
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8329
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7624
8330
 
7625
8331
  # header parameters
7626
8332
  header_params = opts[:header_params] || {}
@@ -7686,10 +8392,16 @@ module XeroRuby
7686
8392
  # resource path
7687
8393
  local_var_path = '/ExpenseClaims'
7688
8394
 
8395
+ # 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?
7689
8397
  # query parameters
7690
8398
  query_params = opts[:query_params] || {}
7691
8399
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
7692
8400
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
8401
+
8402
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8403
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8404
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7693
8405
 
7694
8406
  # header parameters
7695
8407
  header_params = opts[:header_params] || {}
@@ -7758,9 +8470,15 @@ module XeroRuby
7758
8470
  # resource path
7759
8471
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
7760
8472
 
8473
+ # 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?
7761
8475
  # query parameters
7762
8476
  query_params = opts[:query_params] || {}
7763
8477
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
8478
+
8479
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8480
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8481
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7764
8482
 
7765
8483
  # header parameters
7766
8484
  header_params = opts[:header_params] || {}
@@ -7826,8 +8544,14 @@ module XeroRuby
7826
8544
  # resource path
7827
8545
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
7828
8546
 
8547
+ # 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?
7829
8549
  # query parameters
7830
8550
  query_params = opts[:query_params] || {}
8551
+
8552
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8553
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8554
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7831
8555
 
7832
8556
  # header parameters
7833
8557
  header_params = opts[:header_params] || {}
@@ -7905,8 +8629,14 @@ module XeroRuby
7905
8629
  # resource path
7906
8630
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
7907
8631
 
8632
+ # 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?
7908
8634
  # query parameters
7909
8635
  query_params = opts[:query_params] || {}
8636
+
8637
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8638
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8639
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7910
8640
 
7911
8641
  # header parameters
7912
8642
  header_params = opts[:header_params] || {}
@@ -7985,8 +8715,14 @@ module XeroRuby
7985
8715
  # resource path
7986
8716
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
7987
8717
 
8718
+ # 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?
7988
8720
  # query parameters
7989
8721
  query_params = opts[:query_params] || {}
8722
+
8723
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8724
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8725
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7990
8726
 
7991
8727
  # header parameters
7992
8728
  header_params = opts[:header_params] || {}
@@ -8053,8 +8789,14 @@ module XeroRuby
8053
8789
  # resource path
8054
8790
  local_var_path = '/Invoices/{InvoiceID}/Attachments'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8055
8791
 
8792
+ # 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?
8056
8794
  # query parameters
8057
8795
  query_params = opts[:query_params] || {}
8796
+
8797
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8798
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8799
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8058
8800
 
8059
8801
  # header parameters
8060
8802
  header_params = opts[:header_params] || {}
@@ -8120,8 +8862,14 @@ module XeroRuby
8120
8862
  # resource path
8121
8863
  local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8122
8864
 
8865
+ # 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?
8123
8867
  # query parameters
8124
8868
  query_params = opts[:query_params] || {}
8869
+
8870
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8871
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8872
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8125
8873
 
8126
8874
  # header parameters
8127
8875
  header_params = opts[:header_params] || {}
@@ -8181,8 +8929,14 @@ module XeroRuby
8181
8929
  # resource path
8182
8930
  local_var_path = '/InvoiceReminders/Settings'
8183
8931
 
8932
+ # 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?
8184
8934
  # query parameters
8185
8935
  query_params = opts[:query_params] || {}
8936
+
8937
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8938
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
8939
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8186
8940
 
8187
8941
  # header parameters
8188
8942
  header_params = opts[:header_params] || {}
@@ -8264,6 +9018,8 @@ module XeroRuby
8264
9018
  # resource path
8265
9019
  local_var_path = '/Invoices'
8266
9020
 
9021
+ # 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?
8267
9023
  # query parameters
8268
9024
  query_params = opts[:query_params] || {}
8269
9025
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8276,6 +9032,10 @@ module XeroRuby
8276
9032
  query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
8277
9033
  query_params[:'createdByMyApp'] = opts[:'created_by_my_app'] if !opts[:'created_by_my_app'].nil?
8278
9034
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
9035
+
9036
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9037
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9038
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8279
9039
 
8280
9040
  # header parameters
8281
9041
  header_params = opts[:header_params] || {}
@@ -8344,9 +9104,15 @@ module XeroRuby
8344
9104
  # resource path
8345
9105
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
8346
9106
 
9107
+ # 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?
8347
9109
  # query parameters
8348
9110
  query_params = opts[:query_params] || {}
8349
9111
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
9112
+
9113
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9114
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9115
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8350
9116
 
8351
9117
  # header parameters
8352
9118
  header_params = opts[:header_params] || {}
@@ -8412,8 +9178,14 @@ module XeroRuby
8412
9178
  # resource path
8413
9179
  local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s)
8414
9180
 
9181
+ # 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?
8415
9183
  # query parameters
8416
9184
  query_params = opts[:query_params] || {}
9185
+
9186
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9187
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9188
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8417
9189
 
8418
9190
  # header parameters
8419
9191
  header_params = opts[:header_params] || {}
@@ -8481,11 +9253,17 @@ module XeroRuby
8481
9253
  # resource path
8482
9254
  local_var_path = '/Items'
8483
9255
 
9256
+ # 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?
8484
9258
  # query parameters
8485
9259
  query_params = opts[:query_params] || {}
8486
9260
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
8487
9261
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
8488
9262
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
9263
+
9264
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9265
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9266
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8489
9267
 
8490
9268
  # header parameters
8491
9269
  header_params = opts[:header_params] || {}
@@ -8552,8 +9330,14 @@ module XeroRuby
8552
9330
  # resource path
8553
9331
  local_var_path = '/Journals/{JournalID}'.sub('{' + 'JournalID' + '}', journal_id.to_s)
8554
9332
 
9333
+ # 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?
8555
9335
  # query parameters
8556
9336
  query_params = opts[:query_params] || {}
9337
+
9338
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9339
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9340
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8557
9341
 
8558
9342
  # header parameters
8559
9343
  header_params = opts[:header_params] || {}
@@ -8619,10 +9403,16 @@ module XeroRuby
8619
9403
  # resource path
8620
9404
  local_var_path = '/Journals'
8621
9405
 
9406
+ # 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?
8622
9408
  # query parameters
8623
9409
  query_params = opts[:query_params] || {}
8624
9410
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
8625
9411
  query_params[:'paymentsOnly'] = opts[:'payments_only'] if !opts[:'payments_only'].nil?
9412
+
9413
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9414
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9415
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8626
9416
 
8627
9417
  # header parameters
8628
9418
  header_params = opts[:header_params] || {}
@@ -8689,8 +9479,14 @@ module XeroRuby
8689
9479
  # resource path
8690
9480
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
8691
9481
 
9482
+ # 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?
8692
9484
  # query parameters
8693
9485
  query_params = opts[:query_params] || {}
9486
+
9487
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9488
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9489
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8694
9490
 
8695
9491
  # header parameters
8696
9492
  header_params = opts[:header_params] || {}
@@ -8762,6 +9558,8 @@ module XeroRuby
8762
9558
  # resource path
8763
9559
  local_var_path = '/LinkedTransactions'
8764
9560
 
9561
+ # 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?
8765
9563
  # query parameters
8766
9564
  query_params = opts[:query_params] || {}
8767
9565
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
@@ -8770,6 +9568,10 @@ module XeroRuby
8770
9568
  query_params[:'ContactID'] = opts[:'contact_id'] if !opts[:'contact_id'].nil?
8771
9569
  query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
8772
9570
  query_params[:'TargetTransactionID'] = opts[:'target_transaction_id'] if !opts[:'target_transaction_id'].nil?
9571
+
9572
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9573
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9574
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8773
9575
 
8774
9576
  # header parameters
8775
9577
  header_params = opts[:header_params] || {}
@@ -8835,8 +9637,14 @@ module XeroRuby
8835
9637
  # resource path
8836
9638
  local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
8837
9639
 
9640
+ # 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?
8838
9642
  # query parameters
8839
9643
  query_params = opts[:query_params] || {}
9644
+
9645
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9646
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9647
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8840
9648
 
8841
9649
  # header parameters
8842
9650
  header_params = opts[:header_params] || {}
@@ -8914,8 +9722,14 @@ module XeroRuby
8914
9722
  # resource path
8915
9723
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
8916
9724
 
9725
+ # 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?
8917
9727
  # query parameters
8918
9728
  query_params = opts[:query_params] || {}
9729
+
9730
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9731
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9732
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8919
9733
 
8920
9734
  # header parameters
8921
9735
  header_params = opts[:header_params] || {}
@@ -8994,8 +9808,14 @@ module XeroRuby
8994
9808
  # resource path
8995
9809
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{AttachmentID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
8996
9810
 
9811
+ # 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?
8997
9813
  # query parameters
8998
9814
  query_params = opts[:query_params] || {}
9815
+
9816
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9817
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9818
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
8999
9819
 
9000
9820
  # header parameters
9001
9821
  header_params = opts[:header_params] || {}
@@ -9062,8 +9882,14 @@ module XeroRuby
9062
9882
  # resource path
9063
9883
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
9064
9884
 
9885
+ # 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?
9065
9887
  # query parameters
9066
9888
  query_params = opts[:query_params] || {}
9889
+
9890
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9891
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9892
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9067
9893
 
9068
9894
  # header parameters
9069
9895
  header_params = opts[:header_params] || {}
@@ -9131,11 +9957,17 @@ module XeroRuby
9131
9957
  # resource path
9132
9958
  local_var_path = '/ManualJournals'
9133
9959
 
9960
+ # 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?
9134
9962
  # query parameters
9135
9963
  query_params = opts[:query_params] || {}
9136
9964
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
9137
9965
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
9138
9966
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
9967
+
9968
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9969
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
9970
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9139
9971
 
9140
9972
  # header parameters
9141
9973
  header_params = opts[:header_params] || {}
@@ -9202,8 +10034,14 @@ module XeroRuby
9202
10034
  # resource path
9203
10035
  local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
9204
10036
 
10037
+ # 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?
9205
10039
  # query parameters
9206
10040
  query_params = opts[:query_params] || {}
10041
+
10042
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10043
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10044
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9207
10045
 
9208
10046
  # header parameters
9209
10047
  header_params = opts[:header_params] || {}
@@ -9269,8 +10107,14 @@ module XeroRuby
9269
10107
  # resource path
9270
10108
  local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', organisation_id.to_s)
9271
10109
 
10110
+ # 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?
9272
10112
  # query parameters
9273
10113
  query_params = opts[:query_params] || {}
10114
+
10115
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10116
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10117
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9274
10118
 
9275
10119
  # header parameters
9276
10120
  header_params = opts[:header_params] || {}
@@ -9330,8 +10174,14 @@ module XeroRuby
9330
10174
  # resource path
9331
10175
  local_var_path = '/Organisation'
9332
10176
 
10177
+ # 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?
9333
10179
  # query parameters
9334
10180
  query_params = opts[:query_params] || {}
10181
+
10182
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10183
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10184
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9335
10185
 
9336
10186
  # header parameters
9337
10187
  header_params = opts[:header_params] || {}
@@ -9397,8 +10247,14 @@ module XeroRuby
9397
10247
  # resource path
9398
10248
  local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
9399
10249
 
10250
+ # 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?
9400
10252
  # query parameters
9401
10253
  query_params = opts[:query_params] || {}
10254
+
10255
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10256
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10257
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9402
10258
 
9403
10259
  # header parameters
9404
10260
  header_params = opts[:header_params] || {}
@@ -9464,8 +10320,14 @@ module XeroRuby
9464
10320
  # resource path
9465
10321
  local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
9466
10322
 
10323
+ # 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?
9467
10325
  # query parameters
9468
10326
  query_params = opts[:query_params] || {}
10327
+
10328
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10329
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10330
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9469
10331
 
9470
10332
  # header parameters
9471
10333
  header_params = opts[:header_params] || {}
@@ -9535,12 +10397,18 @@ module XeroRuby
9535
10397
  # resource path
9536
10398
  local_var_path = '/Overpayments'
9537
10399
 
10400
+ # 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?
9538
10402
  # query parameters
9539
10403
  query_params = opts[:query_params] || {}
9540
10404
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
9541
10405
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
9542
10406
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
9543
10407
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
10408
+
10409
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10410
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10411
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9544
10412
 
9545
10413
  # header parameters
9546
10414
  header_params = opts[:header_params] || {}
@@ -9607,8 +10475,14 @@ module XeroRuby
9607
10475
  # resource path
9608
10476
  local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
9609
10477
 
10478
+ # 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?
9610
10480
  # query parameters
9611
10481
  query_params = opts[:query_params] || {}
10482
+
10483
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10484
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10485
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9612
10486
 
9613
10487
  # header parameters
9614
10488
  header_params = opts[:header_params] || {}
@@ -9674,8 +10548,14 @@ module XeroRuby
9674
10548
  # resource path
9675
10549
  local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
9676
10550
 
10551
+ # 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?
9677
10553
  # query parameters
9678
10554
  query_params = opts[:query_params] || {}
10555
+
10556
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10557
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10558
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9679
10559
 
9680
10560
  # header parameters
9681
10561
  header_params = opts[:header_params] || {}
@@ -9735,8 +10615,14 @@ module XeroRuby
9735
10615
  # resource path
9736
10616
  local_var_path = '/PaymentServices'
9737
10617
 
10618
+ # 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?
9738
10620
  # query parameters
9739
10621
  query_params = opts[:query_params] || {}
10622
+
10623
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10624
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10625
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9740
10626
 
9741
10627
  # header parameters
9742
10628
  header_params = opts[:header_params] || {}
@@ -9778,6 +10664,7 @@ module XeroRuby
9778
10664
  # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
9779
10665
  # @option opts [String] :where Filter by an any element
9780
10666
  # @option opts [String] :order Order by an any element
10667
+ # @option opts [Integer] :page Up to 100 payments will be returned in a single API call
9781
10668
  # @return [Payments]
9782
10669
  def get_payments(xero_tenant_id, opts = {})
9783
10670
  data, _status_code, _headers = get_payments_with_http_info(xero_tenant_id, opts)
@@ -9790,6 +10677,7 @@ module XeroRuby
9790
10677
  # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
9791
10678
  # @option opts [String] :where Filter by an any element
9792
10679
  # @option opts [String] :order Order by an any element
10680
+ # @option opts [Integer] :page Up to 100 payments will be returned in a single API call
9793
10681
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
9794
10682
  def get_payments_with_http_info(xero_tenant_id, opts = {})
9795
10683
  if @api_client.config.debugging
@@ -9802,10 +10690,17 @@ module XeroRuby
9802
10690
  # resource path
9803
10691
  local_var_path = '/Payments'
9804
10692
 
10693
+ # 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?
9805
10695
  # query parameters
9806
10696
  query_params = opts[:query_params] || {}
9807
10697
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
9808
10698
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
10699
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
10700
+
10701
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10702
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10703
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9809
10704
 
9810
10705
  # header parameters
9811
10706
  header_params = opts[:header_params] || {}
@@ -9872,8 +10767,14 @@ module XeroRuby
9872
10767
  # resource path
9873
10768
  local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
9874
10769
 
10770
+ # 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?
9875
10772
  # query parameters
9876
10773
  query_params = opts[:query_params] || {}
10774
+
10775
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10776
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10777
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
9877
10778
 
9878
10779
  # header parameters
9879
10780
  header_params = opts[:header_params] || {}
@@ -9909,73 +10810,6 @@ module XeroRuby
9909
10810
  return data, status_code, headers
9910
10811
  end
9911
10812
 
9912
- # Allows you to retrieve prepayments as PDF files
9913
- # @param xero_tenant_id [String] Xero identifier for Tenant
9914
- # @param prepayment_id [String] Unique identifier for a PrePayment
9915
- # @param [Hash] opts the optional parameters
9916
- # @return [File]
9917
- def get_prepayment_as_pdf(xero_tenant_id, prepayment_id, opts = {})
9918
- data, _status_code, _headers = get_prepayment_as_pdf_with_http_info(xero_tenant_id, prepayment_id, opts)
9919
- data
9920
- end
9921
-
9922
- # Allows you to retrieve prepayments as PDF files
9923
- # @param xero_tenant_id [String] Xero identifier for Tenant
9924
- # @param prepayment_id [String] Unique identifier for a PrePayment
9925
- # @param [Hash] opts the optional parameters
9926
- # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
9927
- def get_prepayment_as_pdf_with_http_info(xero_tenant_id, prepayment_id, opts = {})
9928
- if @api_client.config.debugging
9929
- @api_client.config.logger.debug 'Calling API: AccountingApi.get_prepayment_as_pdf ...'
9930
- end
9931
- # verify the required parameter 'xero_tenant_id' is set
9932
- if @api_client.config.client_side_validation && xero_tenant_id.nil?
9933
- fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_prepayment_as_pdf"
9934
- end
9935
- # verify the required parameter 'prepayment_id' is set
9936
- if @api_client.config.client_side_validation && prepayment_id.nil?
9937
- fail ArgumentError, "Missing the required parameter 'prepayment_id' when calling AccountingApi.get_prepayment_as_pdf"
9938
- end
9939
- # resource path
9940
- local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
9941
-
9942
- # query parameters
9943
- query_params = opts[:query_params] || {}
9944
-
9945
- # header parameters
9946
- header_params = opts[:header_params] || {}
9947
- # HTTP header 'Accept' (if needed)
9948
- header_params['Accept'] = @api_client.select_header_accept(['application/pdf'])
9949
- header_params[:'xero-tenant-id'] = xero_tenant_id
9950
-
9951
- # form parameters
9952
- form_params = opts[:form_params] || {}
9953
-
9954
- # http body (model)
9955
- post_body = opts[:body]
9956
-
9957
- # return_type
9958
- return_type = opts[:return_type] || 'File'
9959
-
9960
- # auth_names
9961
- auth_names = opts[:auth_names] || ['OAuth2']
9962
-
9963
- new_options = opts.merge(
9964
- :header_params => header_params,
9965
- :query_params => query_params,
9966
- :form_params => form_params,
9967
- :body => post_body,
9968
- :auth_names => auth_names,
9969
- :return_type => return_type
9970
- )
9971
-
9972
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9973
- if @api_client.config.debugging
9974
- @api_client.config.logger.debug "API called: AccountingApi#get_prepayment_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9975
- end
9976
- return data, status_code, headers
9977
- end
9978
-
9979
10813
  # Allows you to retrieve a history records of an Prepayment
9980
10814
  # @param xero_tenant_id [String] Xero identifier for Tenant
9981
10815
  # @param prepayment_id [String] Unique identifier for a PrePayment
@@ -10006,8 +10840,14 @@ module XeroRuby
10006
10840
  # resource path
10007
10841
  local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
10008
10842
 
10843
+ # 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?
10009
10845
  # query parameters
10010
10846
  query_params = opts[:query_params] || {}
10847
+
10848
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10849
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10850
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10011
10851
 
10012
10852
  # header parameters
10013
10853
  header_params = opts[:header_params] || {}
@@ -10077,12 +10917,18 @@ module XeroRuby
10077
10917
  # resource path
10078
10918
  local_var_path = '/Prepayments'
10079
10919
 
10920
+ # 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?
10080
10922
  # query parameters
10081
10923
  query_params = opts[:query_params] || {}
10082
10924
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
10083
10925
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
10084
10926
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
10085
10927
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
10928
+
10929
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10930
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10931
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10086
10932
 
10087
10933
  # header parameters
10088
10934
  header_params = opts[:header_params] || {}
@@ -10149,8 +10995,14 @@ module XeroRuby
10149
10995
  # resource path
10150
10996
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
10151
10997
 
10998
+ # 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?
10152
11000
  # query parameters
10153
11001
  query_params = opts[:query_params] || {}
11002
+
11003
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11004
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11005
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10154
11006
 
10155
11007
  # header parameters
10156
11008
  header_params = opts[:header_params] || {}
@@ -10216,8 +11068,14 @@ module XeroRuby
10216
11068
  # resource path
10217
11069
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
10218
11070
 
11071
+ # 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?
10219
11073
  # query parameters
10220
11074
  query_params = opts[:query_params] || {}
11075
+
11076
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11077
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11078
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10221
11079
 
10222
11080
  # header parameters
10223
11081
  header_params = opts[:header_params] || {}
@@ -10283,8 +11141,14 @@ module XeroRuby
10283
11141
  # resource path
10284
11142
  local_var_path = '/PurchaseOrders/{PurchaseOrderNumber}'.sub('{' + 'PurchaseOrderNumber' + '}', purchase_order_number.to_s)
10285
11143
 
11144
+ # 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?
10286
11146
  # query parameters
10287
11147
  query_params = opts[:query_params] || {}
11148
+
11149
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11150
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11151
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10288
11152
 
10289
11153
  # header parameters
10290
11154
  header_params = opts[:header_params] || {}
@@ -10350,8 +11214,14 @@ module XeroRuby
10350
11214
  # resource path
10351
11215
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
10352
11216
 
11217
+ # 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?
10353
11219
  # query parameters
10354
11220
  query_params = opts[:query_params] || {}
11221
+
11222
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11223
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11224
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10355
11225
 
10356
11226
  # header parameters
10357
11227
  header_params = opts[:header_params] || {}
@@ -10427,6 +11297,8 @@ module XeroRuby
10427
11297
  # resource path
10428
11298
  local_var_path = '/PurchaseOrders'
10429
11299
 
11300
+ # 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?
10430
11302
  # query parameters
10431
11303
  query_params = opts[:query_params] || {}
10432
11304
  query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
@@ -10434,6 +11306,10 @@ module XeroRuby
10434
11306
  query_params[:'DateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil?
10435
11307
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
10436
11308
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
11309
+
11310
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11311
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11312
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10437
11313
 
10438
11314
  # header parameters
10439
11315
  header_params = opts[:header_params] || {}
@@ -10500,8 +11376,14 @@ module XeroRuby
10500
11376
  # resource path
10501
11377
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
10502
11378
 
11379
+ # 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?
10503
11381
  # query parameters
10504
11382
  query_params = opts[:query_params] || {}
11383
+
11384
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11385
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11386
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10505
11387
 
10506
11388
  # header parameters
10507
11389
  header_params = opts[:header_params] || {}
@@ -10567,8 +11449,14 @@ module XeroRuby
10567
11449
  # resource path
10568
11450
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
10569
11451
 
11452
+ # 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?
10570
11454
  # query parameters
10571
11455
  query_params = opts[:query_params] || {}
11456
+
11457
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11458
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11459
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10572
11460
 
10573
11461
  # header parameters
10574
11462
  header_params = opts[:header_params] || {}
@@ -10646,8 +11534,14 @@ module XeroRuby
10646
11534
  # resource path
10647
11535
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
10648
11536
 
11537
+ # 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?
10649
11539
  # query parameters
10650
11540
  query_params = opts[:query_params] || {}
11541
+
11542
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11543
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11544
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10651
11545
 
10652
11546
  # header parameters
10653
11547
  header_params = opts[:header_params] || {}
@@ -10726,8 +11620,14 @@ module XeroRuby
10726
11620
  # resource path
10727
11621
  local_var_path = '/Quotes/{QuoteID}/Attachments/{AttachmentID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
10728
11622
 
11623
+ # 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?
10729
11625
  # query parameters
10730
11626
  query_params = opts[:query_params] || {}
11627
+
11628
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11629
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11630
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10731
11631
 
10732
11632
  # header parameters
10733
11633
  header_params = opts[:header_params] || {}
@@ -10794,8 +11694,14 @@ module XeroRuby
10794
11694
  # resource path
10795
11695
  local_var_path = '/Quotes/{QuoteID}/Attachments'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
10796
11696
 
11697
+ # 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?
10797
11699
  # query parameters
10798
11700
  query_params = opts[:query_params] || {}
11701
+
11702
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11703
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11704
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10799
11705
 
10800
11706
  # header parameters
10801
11707
  header_params = opts[:header_params] || {}
@@ -10861,8 +11767,14 @@ module XeroRuby
10861
11767
  # resource path
10862
11768
  local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
10863
11769
 
11770
+ # 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?
10864
11772
  # query parameters
10865
11773
  query_params = opts[:query_params] || {}
11774
+
11775
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11776
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11777
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10866
11778
 
10867
11779
  # header parameters
10868
11780
  header_params = opts[:header_params] || {}
@@ -10940,6 +11852,8 @@ module XeroRuby
10940
11852
  # resource path
10941
11853
  local_var_path = '/Quotes'
10942
11854
 
11855
+ # 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?
10943
11857
  # query parameters
10944
11858
  query_params = opts[:query_params] || {}
10945
11859
  query_params[:'DateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil?
@@ -10950,6 +11864,10 @@ module XeroRuby
10950
11864
  query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
10951
11865
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
10952
11866
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
11867
+
11868
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11869
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11870
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10953
11871
 
10954
11872
  # header parameters
10955
11873
  header_params = opts[:header_params] || {}
@@ -11018,9 +11936,15 @@ module XeroRuby
11018
11936
  # resource path
11019
11937
  local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
11020
11938
 
11939
+ # 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?
11021
11941
  # query parameters
11022
11942
  query_params = opts[:query_params] || {}
11023
11943
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
11944
+
11945
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11946
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11947
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11024
11948
 
11025
11949
  # header parameters
11026
11950
  header_params = opts[:header_params] || {}
@@ -11098,8 +12022,14 @@ module XeroRuby
11098
12022
  # resource path
11099
12023
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
11100
12024
 
12025
+ # 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?
11101
12027
  # query parameters
11102
12028
  query_params = opts[:query_params] || {}
12029
+
12030
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12031
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12032
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11103
12033
 
11104
12034
  # header parameters
11105
12035
  header_params = opts[:header_params] || {}
@@ -11178,8 +12108,14 @@ module XeroRuby
11178
12108
  # resource path
11179
12109
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{AttachmentID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
11180
12110
 
12111
+ # 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?
11181
12113
  # query parameters
11182
12114
  query_params = opts[:query_params] || {}
12115
+
12116
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12117
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12118
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11183
12119
 
11184
12120
  # header parameters
11185
12121
  header_params = opts[:header_params] || {}
@@ -11246,8 +12182,14 @@ module XeroRuby
11246
12182
  # resource path
11247
12183
  local_var_path = '/Receipts/{ReceiptID}/Attachments'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
11248
12184
 
12185
+ # 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?
11249
12187
  # query parameters
11250
12188
  query_params = opts[:query_params] || {}
12189
+
12190
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12191
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12192
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11251
12193
 
11252
12194
  # header parameters
11253
12195
  header_params = opts[:header_params] || {}
@@ -11313,8 +12255,14 @@ module XeroRuby
11313
12255
  # resource path
11314
12256
  local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
11315
12257
 
12258
+ # 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?
11316
12260
  # query parameters
11317
12261
  query_params = opts[:query_params] || {}
12262
+
12263
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12264
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12265
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11318
12266
 
11319
12267
  # header parameters
11320
12268
  header_params = opts[:header_params] || {}
@@ -11382,11 +12330,17 @@ module XeroRuby
11382
12330
  # resource path
11383
12331
  local_var_path = '/Receipts'
11384
12332
 
12333
+ # 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?
11385
12335
  # query parameters
11386
12336
  query_params = opts[:query_params] || {}
11387
12337
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
11388
12338
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
11389
12339
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
12340
+
12341
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12342
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12343
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11390
12344
 
11391
12345
  # header parameters
11392
12346
  header_params = opts[:header_params] || {}
@@ -11453,8 +12407,14 @@ module XeroRuby
11453
12407
  # resource path
11454
12408
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
11455
12409
 
12410
+ # 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?
11456
12412
  # query parameters
11457
12413
  query_params = opts[:query_params] || {}
12414
+
12415
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12416
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12417
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11458
12418
 
11459
12419
  # header parameters
11460
12420
  header_params = opts[:header_params] || {}
@@ -11532,8 +12492,14 @@ module XeroRuby
11532
12492
  # resource path
11533
12493
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
11534
12494
 
12495
+ # 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?
11535
12497
  # query parameters
11536
12498
  query_params = opts[:query_params] || {}
12499
+
12500
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12501
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12502
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11537
12503
 
11538
12504
  # header parameters
11539
12505
  header_params = opts[:header_params] || {}
@@ -11612,8 +12578,14 @@ module XeroRuby
11612
12578
  # resource path
11613
12579
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
11614
12580
 
12581
+ # 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?
11615
12583
  # query parameters
11616
12584
  query_params = opts[:query_params] || {}
12585
+
12586
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12587
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12588
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11617
12589
 
11618
12590
  # header parameters
11619
12591
  header_params = opts[:header_params] || {}
@@ -11680,8 +12652,14 @@ module XeroRuby
11680
12652
  # resource path
11681
12653
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
11682
12654
 
12655
+ # 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?
11683
12657
  # query parameters
11684
12658
  query_params = opts[:query_params] || {}
12659
+
12660
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12661
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12662
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11685
12663
 
11686
12664
  # header parameters
11687
12665
  header_params = opts[:header_params] || {}
@@ -11747,8 +12725,14 @@ module XeroRuby
11747
12725
  # resource path
11748
12726
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
11749
12727
 
12728
+ # 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?
11750
12730
  # query parameters
11751
12731
  query_params = opts[:query_params] || {}
12732
+
12733
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12734
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12735
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11752
12736
 
11753
12737
  # header parameters
11754
12738
  header_params = opts[:header_params] || {}
@@ -11812,10 +12796,16 @@ module XeroRuby
11812
12796
  # resource path
11813
12797
  local_var_path = '/RepeatingInvoices'
11814
12798
 
12799
+ # 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?
11815
12801
  # query parameters
11816
12802
  query_params = opts[:query_params] || {}
11817
12803
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
11818
12804
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
12805
+
12806
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12807
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12808
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11819
12809
 
11820
12810
  # header parameters
11821
12811
  header_params = opts[:header_params] || {}
@@ -11887,12 +12877,18 @@ module XeroRuby
11887
12877
  # resource path
11888
12878
  local_var_path = '/Reports/AgedPayablesByContact'
11889
12879
 
12880
+ # 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?
11890
12882
  # query parameters
11891
12883
  query_params = opts[:query_params] || {}
11892
12884
  query_params[:'contactId'] = contact_id
11893
12885
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
11894
12886
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
11895
12887
  query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
12888
+
12889
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12890
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12891
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11896
12892
 
11897
12893
  # header parameters
11898
12894
  header_params = opts[:header_params] || {}
@@ -11964,12 +12960,18 @@ module XeroRuby
11964
12960
  # resource path
11965
12961
  local_var_path = '/Reports/AgedReceivablesByContact'
11966
12962
 
12963
+ # 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?
11967
12965
  # query parameters
11968
12966
  query_params = opts[:query_params] || {}
11969
12967
  query_params[:'contactId'] = contact_id
11970
12968
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
11971
12969
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
11972
12970
  query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
12971
+
12972
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12973
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
12974
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11973
12975
 
11974
12976
  # header parameters
11975
12977
  header_params = opts[:header_params] || {}
@@ -12035,8 +13037,14 @@ module XeroRuby
12035
13037
  # resource path
12036
13038
  local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', report_id.to_s)
12037
13039
 
13040
+ # 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?
12038
13042
  # query parameters
12039
13043
  query_params = opts[:query_params] || {}
13044
+
13045
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13046
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13047
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12040
13048
 
12041
13049
  # header parameters
12042
13050
  header_params = opts[:header_params] || {}
@@ -12096,8 +13104,14 @@ module XeroRuby
12096
13104
  # resource path
12097
13105
  local_var_path = '/Reports'
12098
13106
 
13107
+ # 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?
12099
13109
  # query parameters
12100
13110
  query_params = opts[:query_params] || {}
13111
+
13112
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13113
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13114
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12101
13115
 
12102
13116
  # header parameters
12103
13117
  header_params = opts[:header_params] || {}
@@ -12175,6 +13189,8 @@ module XeroRuby
12175
13189
  # resource path
12176
13190
  local_var_path = '/Reports/BalanceSheet'
12177
13191
 
13192
+ # 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?
12178
13194
  # query parameters
12179
13195
  query_params = opts[:query_params] || {}
12180
13196
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -12184,6 +13200,10 @@ module XeroRuby
12184
13200
  query_params[:'trackingOptionID2'] = opts[:'tracking_option_id2'] if !opts[:'tracking_option_id2'].nil?
12185
13201
  query_params[:'standardLayout'] = opts[:'standard_layout'] if !opts[:'standard_layout'].nil?
12186
13202
  query_params[:'paymentsOnly'] = opts[:'payments_only'] if !opts[:'payments_only'].nil?
13203
+
13204
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13205
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13206
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12187
13207
 
12188
13208
  # header parameters
12189
13209
  header_params = opts[:header_params] || {}
@@ -12247,10 +13267,16 @@ module XeroRuby
12247
13267
  # resource path
12248
13268
  local_var_path = '/Reports/BankSummary'
12249
13269
 
13270
+ # 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?
12250
13272
  # query parameters
12251
13273
  query_params = opts[:query_params] || {}
12252
13274
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
12253
13275
  query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
13276
+
13277
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13278
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13279
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12254
13280
 
12255
13281
  # header parameters
12256
13282
  header_params = opts[:header_params] || {}
@@ -12316,11 +13342,17 @@ module XeroRuby
12316
13342
  # resource path
12317
13343
  local_var_path = '/Reports/BudgetSummary'
12318
13344
 
13345
+ # 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?
12319
13347
  # query parameters
12320
13348
  query_params = opts[:query_params] || {}
12321
13349
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
12322
13350
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
12323
13351
  query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
13352
+
13353
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13354
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13355
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12324
13356
 
12325
13357
  # header parameters
12326
13358
  header_params = opts[:header_params] || {}
@@ -12382,9 +13414,15 @@ module XeroRuby
12382
13414
  # resource path
12383
13415
  local_var_path = '/Reports/ExecutiveSummary'
12384
13416
 
13417
+ # 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?
12385
13419
  # query parameters
12386
13420
  query_params = opts[:query_params] || {}
12387
13421
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
13422
+
13423
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13424
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13425
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12388
13426
 
12389
13427
  # header parameters
12390
13428
  header_params = opts[:header_params] || {}
@@ -12468,6 +13506,8 @@ module XeroRuby
12468
13506
  # resource path
12469
13507
  local_var_path = '/Reports/ProfitAndLoss'
12470
13508
 
13509
+ # 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?
12471
13511
  # query parameters
12472
13512
  query_params = opts[:query_params] || {}
12473
13513
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
@@ -12480,6 +13520,10 @@ module XeroRuby
12480
13520
  query_params[:'trackingOptionID2'] = opts[:'tracking_option_id2'] if !opts[:'tracking_option_id2'].nil?
12481
13521
  query_params[:'standardLayout'] = opts[:'standard_layout'] if !opts[:'standard_layout'].nil?
12482
13522
  query_params[:'paymentsOnly'] = opts[:'payments_only'] if !opts[:'payments_only'].nil?
13523
+
13524
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13525
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13526
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12483
13527
 
12484
13528
  # header parameters
12485
13529
  header_params = opts[:header_params] || {}
@@ -12541,9 +13585,15 @@ module XeroRuby
12541
13585
  # resource path
12542
13586
  local_var_path = '/Reports/TenNinetyNine'
12543
13587
 
13588
+ # 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?
12544
13590
  # query parameters
12545
13591
  query_params = opts[:query_params] || {}
12546
13592
  query_params[:'reportYear'] = opts[:'report_year'] if !opts[:'report_year'].nil?
13593
+
13594
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13595
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13596
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12547
13597
 
12548
13598
  # header parameters
12549
13599
  header_params = opts[:header_params] || {}
@@ -12607,10 +13657,16 @@ module XeroRuby
12607
13657
  # resource path
12608
13658
  local_var_path = '/Reports/TrialBalance'
12609
13659
 
13660
+ # 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?
12610
13662
  # query parameters
12611
13663
  query_params = opts[:query_params] || {}
12612
13664
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
12613
13665
  query_params[:'paymentsOnly'] = opts[:'payments_only'] if !opts[:'payments_only'].nil?
13666
+
13667
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13668
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13669
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12614
13670
 
12615
13671
  # header parameters
12616
13672
  header_params = opts[:header_params] || {}
@@ -12676,11 +13732,17 @@ module XeroRuby
12676
13732
  # resource path
12677
13733
  local_var_path = '/TaxRates'
12678
13734
 
13735
+ # 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?
12679
13737
  # query parameters
12680
13738
  query_params = opts[:query_params] || {}
12681
13739
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
12682
13740
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
12683
13741
  query_params[:'TaxType'] = opts[:'tax_type'] if !opts[:'tax_type'].nil?
13742
+
13743
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13744
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13745
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12684
13746
 
12685
13747
  # header parameters
12686
13748
  header_params = opts[:header_params] || {}
@@ -12746,11 +13808,17 @@ module XeroRuby
12746
13808
  # resource path
12747
13809
  local_var_path = '/TrackingCategories'
12748
13810
 
13811
+ # 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?
12749
13813
  # query parameters
12750
13814
  query_params = opts[:query_params] || {}
12751
13815
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
12752
13816
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
12753
13817
  query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
13818
+
13819
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13820
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13821
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12754
13822
 
12755
13823
  # header parameters
12756
13824
  header_params = opts[:header_params] || {}
@@ -12816,8 +13884,14 @@ module XeroRuby
12816
13884
  # resource path
12817
13885
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
12818
13886
 
13887
+ # 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?
12819
13889
  # query parameters
12820
13890
  query_params = opts[:query_params] || {}
13891
+
13892
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13893
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13894
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12821
13895
 
12822
13896
  # header parameters
12823
13897
  header_params = opts[:header_params] || {}
@@ -12883,8 +13957,14 @@ module XeroRuby
12883
13957
  # resource path
12884
13958
  local_var_path = '/Users/{UserID}'.sub('{' + 'UserID' + '}', user_id.to_s)
12885
13959
 
13960
+ # 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?
12886
13962
  # query parameters
12887
13963
  query_params = opts[:query_params] || {}
13964
+
13965
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13966
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13967
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12888
13968
 
12889
13969
  # header parameters
12890
13970
  header_params = opts[:header_params] || {}
@@ -12950,10 +14030,16 @@ module XeroRuby
12950
14030
  # resource path
12951
14031
  local_var_path = '/Users'
12952
14032
 
14033
+ # 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?
12953
14035
  # query parameters
12954
14036
  query_params = opts[:query_params] || {}
12955
14037
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
12956
14038
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
14039
+
14040
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14041
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14042
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
12957
14043
 
12958
14044
  # header parameters
12959
14045
  header_params = opts[:header_params] || {}
@@ -13026,8 +14112,14 @@ module XeroRuby
13026
14112
  # resource path
13027
14113
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
13028
14114
 
14115
+ # 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?
13029
14117
  # query parameters
13030
14118
  query_params = opts[:query_params] || {}
14119
+
14120
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14121
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14122
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13031
14123
 
13032
14124
  # header parameters
13033
14125
  header_params = opts[:header_params] || {}
@@ -13107,8 +14199,14 @@ module XeroRuby
13107
14199
  # resource path
13108
14200
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
13109
14201
 
14202
+ # 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?
13110
14204
  # query parameters
13111
14205
  query_params = opts[:query_params] || {}
14206
+
14207
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14208
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14209
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13112
14210
 
13113
14211
  # header parameters
13114
14212
  header_params = opts[:header_params] || {}
@@ -13184,9 +14282,15 @@ module XeroRuby
13184
14282
  # resource path
13185
14283
  local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
13186
14284
 
14285
+ # 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?
13187
14287
  # query parameters
13188
14288
  query_params = opts[:query_params] || {}
13189
14289
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
14290
+
14291
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14292
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14293
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13190
14294
 
13191
14295
  # header parameters
13192
14296
  header_params = opts[:header_params] || {}
@@ -13266,8 +14370,14 @@ module XeroRuby
13266
14370
  # resource path
13267
14371
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
13268
14372
 
14373
+ # 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?
13269
14375
  # query parameters
13270
14376
  query_params = opts[:query_params] || {}
14377
+
14378
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14379
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14380
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13271
14381
 
13272
14382
  # header parameters
13273
14383
  header_params = opts[:header_params] || {}
@@ -13345,8 +14455,14 @@ module XeroRuby
13345
14455
  # resource path
13346
14456
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
13347
14457
 
14458
+ # 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?
13348
14460
  # query parameters
13349
14461
  query_params = opts[:query_params] || {}
14462
+
14463
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14464
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14465
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13350
14466
 
13351
14467
  # header parameters
13352
14468
  header_params = opts[:header_params] || {}
@@ -13418,8 +14534,14 @@ module XeroRuby
13418
14534
  # resource path
13419
14535
  local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s)
13420
14536
 
14537
+ # 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?
13421
14539
  # query parameters
13422
14540
  query_params = opts[:query_params] || {}
14541
+
14542
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14543
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14544
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13423
14545
 
13424
14546
  # header parameters
13425
14547
  header_params = opts[:header_params] || {}
@@ -13497,8 +14619,14 @@ module XeroRuby
13497
14619
  # resource path
13498
14620
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
13499
14621
 
14622
+ # 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?
13500
14624
  # query parameters
13501
14625
  query_params = opts[:query_params] || {}
14626
+
14627
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14628
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14629
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13502
14630
 
13503
14631
  # header parameters
13504
14632
  header_params = opts[:header_params] || {}
@@ -13572,8 +14700,14 @@ module XeroRuby
13572
14700
  # resource path
13573
14701
  local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
13574
14702
 
14703
+ # 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?
13575
14705
  # query parameters
13576
14706
  query_params = opts[:query_params] || {}
14707
+
14708
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14709
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14710
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13577
14711
 
13578
14712
  # header parameters
13579
14713
  header_params = opts[:header_params] || {}
@@ -13649,9 +14783,15 @@ module XeroRuby
13649
14783
  # resource path
13650
14784
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
13651
14785
 
14786
+ # 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?
13652
14788
  # query parameters
13653
14789
  query_params = opts[:query_params] || {}
13654
14790
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
14791
+
14792
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14793
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14794
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13655
14795
 
13656
14796
  # header parameters
13657
14797
  header_params = opts[:header_params] || {}
@@ -13731,8 +14871,14 @@ module XeroRuby
13731
14871
  # resource path
13732
14872
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
13733
14873
 
14874
+ # 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?
13734
14876
  # query parameters
13735
14877
  query_params = opts[:query_params] || {}
14878
+
14879
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14880
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14881
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13736
14882
 
13737
14883
  # header parameters
13738
14884
  header_params = opts[:header_params] || {}
@@ -13806,8 +14952,14 @@ module XeroRuby
13806
14952
  # resource path
13807
14953
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
13808
14954
 
14955
+ # 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?
13809
14957
  # query parameters
13810
14958
  query_params = opts[:query_params] || {}
14959
+
14960
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14961
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14962
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13811
14963
 
13812
14964
  # header parameters
13813
14965
  header_params = opts[:header_params] || {}
@@ -13883,9 +15035,15 @@ module XeroRuby
13883
15035
  # resource path
13884
15036
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
13885
15037
 
15038
+ # 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?
13886
15040
  # query parameters
13887
15041
  query_params = opts[:query_params] || {}
13888
15042
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
15043
+
15044
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15045
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15046
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13889
15047
 
13890
15048
  # header parameters
13891
15049
  header_params = opts[:header_params] || {}
@@ -13965,8 +15123,14 @@ module XeroRuby
13965
15123
  # resource path
13966
15124
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
13967
15125
 
15126
+ # 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?
13968
15128
  # query parameters
13969
15129
  query_params = opts[:query_params] || {}
15130
+
15131
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15132
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15133
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13970
15134
 
13971
15135
  # header parameters
13972
15136
  header_params = opts[:header_params] || {}
@@ -14042,9 +15206,15 @@ module XeroRuby
14042
15206
  # resource path
14043
15207
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
14044
15208
 
15209
+ # 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?
14045
15211
  # query parameters
14046
15212
  query_params = opts[:query_params] || {}
14047
15213
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
15214
+
15215
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15216
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15217
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14048
15218
 
14049
15219
  # header parameters
14050
15220
  header_params = opts[:header_params] || {}
@@ -14118,8 +15288,14 @@ module XeroRuby
14118
15288
  # resource path
14119
15289
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
14120
15290
 
15291
+ # 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?
14121
15293
  # query parameters
14122
15294
  query_params = opts[:query_params] || {}
15295
+
15296
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15297
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15298
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14123
15299
 
14124
15300
  # header parameters
14125
15301
  header_params = opts[:header_params] || {}
@@ -14193,8 +15369,14 @@ module XeroRuby
14193
15369
  # resource path
14194
15370
  local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
14195
15371
 
15372
+ # 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?
14196
15374
  # query parameters
14197
15375
  query_params = opts[:query_params] || {}
15376
+
15377
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15378
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15379
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14198
15380
 
14199
15381
  # header parameters
14200
15382
  header_params = opts[:header_params] || {}
@@ -14274,8 +15456,14 @@ module XeroRuby
14274
15456
  # resource path
14275
15457
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14276
15458
 
15459
+ # 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?
14277
15461
  # query parameters
14278
15462
  query_params = opts[:query_params] || {}
15463
+
15464
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15465
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15466
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14279
15467
 
14280
15468
  # header parameters
14281
15469
  header_params = opts[:header_params] || {}
@@ -14347,10 +15535,16 @@ module XeroRuby
14347
15535
  # resource path
14348
15536
  local_var_path = '/BankTransactions'
14349
15537
 
15538
+ # 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?
14350
15540
  # query parameters
14351
15541
  query_params = opts[:query_params] || {}
14352
15542
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
14353
15543
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
15544
+
15545
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15546
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15547
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14354
15548
 
14355
15549
  # header parameters
14356
15550
  header_params = opts[:header_params] || {}
@@ -14420,9 +15614,15 @@ module XeroRuby
14420
15614
  # resource path
14421
15615
  local_var_path = '/Contacts'
14422
15616
 
15617
+ # 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?
14423
15619
  # query parameters
14424
15620
  query_params = opts[:query_params] || {}
14425
15621
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
15622
+
15623
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15624
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15625
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14426
15626
 
14427
15627
  # header parameters
14428
15628
  header_params = opts[:header_params] || {}
@@ -14494,10 +15694,16 @@ module XeroRuby
14494
15694
  # resource path
14495
15695
  local_var_path = '/CreditNotes'
14496
15696
 
15697
+ # 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?
14497
15699
  # query parameters
14498
15700
  query_params = opts[:query_params] || {}
14499
15701
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
14500
15702
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
15703
+
15704
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15705
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15706
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14501
15707
 
14502
15708
  # header parameters
14503
15709
  header_params = opts[:header_params] || {}
@@ -14567,9 +15773,15 @@ module XeroRuby
14567
15773
  # resource path
14568
15774
  local_var_path = '/Employees'
14569
15775
 
15776
+ # 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?
14570
15778
  # query parameters
14571
15779
  query_params = opts[:query_params] || {}
14572
15780
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
15781
+
15782
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15783
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15784
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14573
15785
 
14574
15786
  # header parameters
14575
15787
  header_params = opts[:header_params] || {}
@@ -14641,10 +15853,16 @@ module XeroRuby
14641
15853
  # resource path
14642
15854
  local_var_path = '/Invoices'
14643
15855
 
15856
+ # 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?
14644
15858
  # query parameters
14645
15859
  query_params = opts[:query_params] || {}
14646
15860
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
14647
15861
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
15862
+
15863
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15864
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15865
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14648
15866
 
14649
15867
  # header parameters
14650
15868
  header_params = opts[:header_params] || {}
@@ -14716,10 +15934,16 @@ module XeroRuby
14716
15934
  # resource path
14717
15935
  local_var_path = '/Items'
14718
15936
 
15937
+ # 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?
14719
15939
  # query parameters
14720
15940
  query_params = opts[:query_params] || {}
14721
15941
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
14722
15942
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
15943
+
15944
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15945
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15946
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14723
15947
 
14724
15948
  # header parameters
14725
15949
  header_params = opts[:header_params] || {}
@@ -14789,9 +16013,15 @@ module XeroRuby
14789
16013
  # resource path
14790
16014
  local_var_path = '/ManualJournals'
14791
16015
 
16016
+ # 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?
14792
16018
  # query parameters
14793
16019
  query_params = opts[:query_params] || {}
14794
16020
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
16021
+
16022
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16023
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16024
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14795
16025
 
14796
16026
  # header parameters
14797
16027
  header_params = opts[:header_params] || {}
@@ -14861,9 +16091,15 @@ module XeroRuby
14861
16091
  # resource path
14862
16092
  local_var_path = '/PurchaseOrders'
14863
16093
 
16094
+ # 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?
14864
16096
  # query parameters
14865
16097
  query_params = opts[:query_params] || {}
14866
16098
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
16099
+
16100
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16101
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16102
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14867
16103
 
14868
16104
  # header parameters
14869
16105
  header_params = opts[:header_params] || {}
@@ -14933,9 +16169,15 @@ module XeroRuby
14933
16169
  # resource path
14934
16170
  local_var_path = '/Quotes'
14935
16171
 
16172
+ # 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?
14936
16174
  # query parameters
14937
16175
  query_params = opts[:query_params] || {}
14938
16176
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
16177
+
16178
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16179
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16180
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14939
16181
 
14940
16182
  # header parameters
14941
16183
  header_params = opts[:header_params] || {}
@@ -15009,8 +16251,14 @@ module XeroRuby
15009
16251
  # resource path
15010
16252
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
15011
16253
 
16254
+ # 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?
15012
16256
  # query parameters
15013
16257
  query_params = opts[:query_params] || {}
16258
+
16259
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16260
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16261
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15014
16262
 
15015
16263
  # header parameters
15016
16264
  header_params = opts[:header_params] || {}
@@ -15084,8 +16332,14 @@ module XeroRuby
15084
16332
  # resource path
15085
16333
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
15086
16334
 
16335
+ # 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?
15087
16337
  # query parameters
15088
16338
  query_params = opts[:query_params] || {}
16339
+
16340
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16341
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16342
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15089
16343
 
15090
16344
  # header parameters
15091
16345
  header_params = opts[:header_params] || {}
@@ -15165,8 +16419,14 @@ module XeroRuby
15165
16419
  # resource path
15166
16420
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
15167
16421
 
16422
+ # 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?
15168
16424
  # query parameters
15169
16425
  query_params = opts[:query_params] || {}
16426
+
16427
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16428
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16429
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15170
16430
 
15171
16431
  # header parameters
15172
16432
  header_params = opts[:header_params] || {}
@@ -15242,9 +16502,15 @@ module XeroRuby
15242
16502
  # resource path
15243
16503
  local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
15244
16504
 
16505
+ # 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?
15245
16507
  # query parameters
15246
16508
  query_params = opts[:query_params] || {}
15247
16509
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
16510
+
16511
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16512
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16513
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15248
16514
 
15249
16515
  # header parameters
15250
16516
  header_params = opts[:header_params] || {}
@@ -15324,8 +16590,14 @@ module XeroRuby
15324
16590
  # resource path
15325
16591
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
15326
16592
 
16593
+ # 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?
15327
16595
  # query parameters
15328
16596
  query_params = opts[:query_params] || {}
16597
+
16598
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16599
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16600
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15329
16601
 
15330
16602
  # header parameters
15331
16603
  header_params = opts[:header_params] || {}
@@ -15405,8 +16677,14 @@ module XeroRuby
15405
16677
  # resource path
15406
16678
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
15407
16679
 
16680
+ # 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?
15408
16682
  # query parameters
15409
16683
  query_params = opts[:query_params] || {}
16684
+
16685
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16686
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16687
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15410
16688
 
15411
16689
  # header parameters
15412
16690
  header_params = opts[:header_params] || {}
@@ -15474,8 +16752,14 @@ module XeroRuby
15474
16752
  # resource path
15475
16753
  local_var_path = '/TaxRates'
15476
16754
 
16755
+ # 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?
15477
16757
  # query parameters
15478
16758
  query_params = opts[:query_params] || {}
16759
+
16760
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16761
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16762
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15479
16763
 
15480
16764
  # header parameters
15481
16765
  header_params = opts[:header_params] || {}
@@ -15549,8 +16833,14 @@ module XeroRuby
15549
16833
  # resource path
15550
16834
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
15551
16835
 
16836
+ # 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?
15552
16838
  # query parameters
15553
16839
  query_params = opts[:query_params] || {}
16840
+
16841
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16842
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16843
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15554
16844
 
15555
16845
  # header parameters
15556
16846
  header_params = opts[:header_params] || {}
@@ -15630,8 +16920,14 @@ module XeroRuby
15630
16920
  # resource path
15631
16921
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s)
15632
16922
 
16923
+ # 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?
15633
16925
  # query parameters
15634
16926
  query_params = opts[:query_params] || {}
16927
+
16928
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
16929
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
16930
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15635
16931
 
15636
16932
  # header parameters
15637
16933
  header_params = opts[:header_params] || {}