xero-ruby 2.1.2 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b109231681fa5a25b5e26d02d4146c5979a5129aff1c95ee0e19c4fd458ea22
4
- data.tar.gz: 270e82a505686f53eb9992b90a2bade56c69252fcedabe565342b528ed0fef8b
3
+ metadata.gz: c8250dd8ab9c60af3fa465ae94075ab3f9a6ca740ba550ca1c89ce06e7d2d293
4
+ data.tar.gz: 34d4b08070f17257e204ba7072c0f294fa9424b0a8cb230326d6b678264320a4
5
5
  SHA512:
6
- metadata.gz: da10f455c433426046bd3365beb1a1916a0336e1371a3ff81bfc44ccdeca88b9a85c2b4f5e04667e37bb50f5deda48b70e8244159409e18e0912555aa5a94096
7
- data.tar.gz: 63a5909520a9bf086e4ea23b657dc0ed1af541522f0f2571cf76932d6d12b4693b727ac91442db09168f6977021d8139b2bee8004aefb5734db5faf4d84131ad
6
+ metadata.gz: b28ca284de2cdcaca6cbfda133b47d7582ebc7b0781ab49ea8cd589a2c1ebb93638341ac5d633f853118fdd385722f1baf5328893a24ddef033c764229d9f663
7
+ data.tar.gz: a89d029c7572c597f8da49d1a2bde41bdb50ad6413559113fdb5ddaf1ea488a2fdac03b979154b923d4262144491c9a826e8f4791c4bc9bcfc3afebed6f41cb1
data/README.md CHANGED
@@ -219,23 +219,35 @@ All monetary and fields and a couple quantity fields utilize BigDecimal
219
219
  ```
220
220
 
221
221
  ## Querying & Filtering
222
- Examples for the `opts` (_options_) parameters most endpoints support.
222
+ Examples for the `opts` (_options_) parameters most endpoints support. This is an area of focus and improvement. If you have a complex filering/sorting/where usage that is not supported please [open an issue](https://github.com/XeroAPI/xero-ruby/issues).
223
223
  ```ruby
224
224
  # Invoices
225
- opts = {
226
- statuses: [XeroRuby::Accounting::Invoice::PAID],
227
- where: { amount_due: '=0' },
228
- if_modified_since: (DateTime.now - 1.hour).to_s
225
+ opts = {
226
+ page: 1,
227
+ where: {
228
+ type: ['=', XeroRuby::Accounting::Invoice::ACCREC],
229
+ fully_paid_on_date: (DateTime.now - 6.month)..DateTime.now,
230
+ amount_due: ['>=', 0],
231
+ reference: ['=', "Website Design"],
232
+ invoice_number: ['=', "INV-0001"],
233
+ contact_id: ['=', 'contact-uuid-xxxx-xxx-xxxxxxx'],
234
+ contact_number: ['=', "the-contact-number"],
235
+ # date: (DateTime.now - 2.year)..DateTime.now
236
+ # ▲ you can pass a range ▼ or a date & operator
237
+ date: ['>=', DateTime.now - 2.year],
238
+ status: ['=', XeroRuby::Accounting::Invoice::PAID]
239
+ }
229
240
  }
230
241
  xero_client.accounting_api.get_invoices(tenant_id, opts).invoices
231
242
 
232
243
  # Contacts
233
244
  opts = {
234
245
  if_modified_since: (DateTime.now - 1.weeks).to_s,
246
+ # ▼ ordering by strings needs PascalCase convention
235
247
  order: 'UpdatedDateUtc DESC',
236
248
  where: {
237
- is_customer: '==true',
238
- is_supplier: '==true',
249
+ is_customer: ['==', true],
250
+ is_supplier: ['==', true]
239
251
  }
240
252
  }
241
253
  xero_client.accounting_api.get_contacts(tenant_id, opts).contacts
@@ -243,7 +255,7 @@ xero_client.accounting_api.get_contacts(tenant_id, opts).contacts
243
255
  # Bank Transactions
244
256
  opts = {
245
257
  if_modified_since: (DateTime.now - 1.year).to_s,
246
- where: { type: %{=="#{XeroRuby::Accounting::BankTransaction::SPEND}"}},
258
+ where: { type: ['==', XeroRuby::Accounting::BankTransaction::SPEND] },
247
259
  order: 'UpdatedDateUtc DESC',
248
260
  page: 2,
249
261
  unitdp: 4 # (Unit Decimal Places)
@@ -252,8 +264,9 @@ xero_client.accounting_api.get_bank_transactions(tenant_id, opts).bank_transacti
252
264
 
253
265
  # Bank Transfers
254
266
  opts = {
267
+ if_modified_since: (DateTime.now - 1.month).to_s,
255
268
  where: {
256
- amount: "> 999.99"
269
+ amount: [">=" , 999.99]
257
270
  },
258
271
  order: 'Amount ASC'
259
272
  }
@@ -17,7 +17,7 @@ bundle install
17
17
 
18
18
  ```bash
19
19
  gem build
20
- gem push xero-ruby-<vsn>.gem
20
+ gem push xero-ruby-<vsn>.gem
21
21
  ```
22
22
 
23
23
  # manual updates
@@ -48,7 +48,7 @@ api_instance = xero_client.asset_api
48
48
  api_instance = xero_client.projects_api
49
49
 
50
50
 
51
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
51
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
52
52
  asset = { "assetName":"Computer74863", "assetNumber":"123477544", "purchaseDate":"2020-01-01", "purchasePrice":100.0, "disposalPrice":23.23, "assetStatus":"Draft", "bookDepreciationSetting":{ "depreciationMethod":"StraightLine", "averagingMethod":"ActualDays", "depreciationRate":0.5, "depreciationCalculationMethod":"None" }, "bookDepreciationDetail":{ "currentCapitalGain":5.32, "currentGainLoss":3.88, "depreciationStartDate":"2020-01-02", "costLimit":100.0, "currentAccumDepreciationAmount":2.25 }, "AccountingBookValue":99.5 } # Asset | Fixed asset you are creating
53
53
  begin
54
54
  #adds a fixed asset
@@ -116,7 +116,7 @@ api_instance = xero_client.asset_api
116
116
  api_instance = xero_client.projects_api
117
117
 
118
118
 
119
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
119
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
120
120
  opts = {
121
121
  asset_type: { "assetTypeName":"Machinery11004", "fixedAssetAccountId":"3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82", "depreciationExpenseAccountId":"d1602f69-f900-4616-8d34-90af393fa368", "accumulatedDepreciationAccountId":"9195cadd-8645-41e6-9f67-7bcd421defe8", "bookDepreciationSetting":{ "depreciationMethod":"DiminishingValue100", "averagingMethod":"ActualDays", "depreciationRate":0.05, "depreciationCalculationMethod":"None" } } # AssetType | Asset type to add
122
122
  }
@@ -187,7 +187,7 @@ api_instance = xero_client.asset_api
187
187
  api_instance = xero_client.projects_api
188
188
 
189
189
 
190
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
190
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
191
191
  id = '4f7bcdcb-5ec1-4258-9558-19f662fccdfe' # String | fixed asset id for single object
192
192
  begin
193
193
  #retrieves fixed asset by id
@@ -255,7 +255,7 @@ api_instance = xero_client.asset_api
255
255
  api_instance = xero_client.projects_api
256
256
 
257
257
 
258
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
258
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
259
259
  begin
260
260
  #searches fixed asset settings
261
261
  result = api_instance.get_asset_settings(xero_tenant_id)
@@ -321,7 +321,7 @@ api_instance = xero_client.asset_api
321
321
  api_instance = xero_client.projects_api
322
322
 
323
323
 
324
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
324
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
325
325
  begin
326
326
  #searches fixed asset types
327
327
  result = api_instance.get_asset_types(xero_tenant_id)
@@ -387,7 +387,7 @@ api_instance = xero_client.asset_api
387
387
  api_instance = xero_client.projects_api
388
388
 
389
389
 
390
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
390
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
391
391
  status = XeroRuby::Assets::AssetStatusQueryParam.new # AssetStatusQueryParam | Required when retrieving a collection of assets. See Asset Status Codes
392
392
  opts = {
393
393
  page: 1, # Integer | Results are paged. This specifies which page of the results to return. The default page is 1.
@@ -50,7 +50,8 @@ module XeroRuby
50
50
  local_var_path = '/Accounts'
51
51
 
52
52
  # camelize keys of incoming `where` opts
53
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
53
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
54
+
54
55
  # query parameters
55
56
  query_params = opts[:query_params] || {}
56
57
 
@@ -137,7 +138,8 @@ module XeroRuby
137
138
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
138
139
 
139
140
  # camelize keys of incoming `where` opts
140
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
141
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
142
+
141
143
  # query parameters
142
144
  query_params = opts[:query_params] || {}
143
145
 
@@ -224,7 +226,8 @@ module XeroRuby
224
226
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
225
227
 
226
228
  # camelize keys of incoming `where` opts
227
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
229
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
230
+
228
231
  # query parameters
229
232
  query_params = opts[:query_params] || {}
230
233
 
@@ -305,7 +308,8 @@ module XeroRuby
305
308
  local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
306
309
 
307
310
  # camelize keys of incoming `where` opts
308
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
311
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
312
+
309
313
  # query parameters
310
314
  query_params = opts[:query_params] || {}
311
315
 
@@ -384,7 +388,8 @@ module XeroRuby
384
388
  local_var_path = '/BankTransactions'
385
389
 
386
390
  # camelize keys of incoming `where` opts
387
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
391
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
392
+
388
393
  # query parameters
389
394
  query_params = opts[:query_params] || {}
390
395
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -461,7 +466,8 @@ module XeroRuby
461
466
  local_var_path = '/BankTransfers'
462
467
 
463
468
  # camelize keys of incoming `where` opts
464
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
469
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
470
+
465
471
  # query parameters
466
472
  query_params = opts[:query_params] || {}
467
473
 
@@ -546,7 +552,8 @@ module XeroRuby
546
552
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
547
553
 
548
554
  # camelize keys of incoming `where` opts
549
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
555
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
556
+
550
557
  # query parameters
551
558
  query_params = opts[:query_params] || {}
552
559
 
@@ -625,7 +632,8 @@ module XeroRuby
625
632
  local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
626
633
 
627
634
  # camelize keys of incoming `where` opts
628
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
635
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
636
+
629
637
  # query parameters
630
638
  query_params = opts[:query_params] || {}
631
639
 
@@ -702,7 +710,8 @@ module XeroRuby
702
710
  local_var_path = '/BatchPayments'
703
711
 
704
712
  # camelize keys of incoming `where` opts
705
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
713
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
714
+
706
715
  # query parameters
707
716
  query_params = opts[:query_params] || {}
708
717
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -784,7 +793,8 @@ module XeroRuby
784
793
  local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s)
785
794
 
786
795
  # camelize keys of incoming `where` opts
787
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
796
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
797
+
788
798
  # query parameters
789
799
  query_params = opts[:query_params] || {}
790
800
 
@@ -865,7 +875,8 @@ module XeroRuby
865
875
  local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
866
876
 
867
877
  # camelize keys of incoming `where` opts
868
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
878
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
879
+
869
880
  # query parameters
870
881
  query_params = opts[:query_params] || {}
871
882
 
@@ -950,7 +961,8 @@ module XeroRuby
950
961
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
951
962
 
952
963
  # camelize keys of incoming `where` opts
953
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
964
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
965
+
954
966
  # query parameters
955
967
  query_params = opts[:query_params] || {}
956
968
 
@@ -1025,7 +1037,8 @@ module XeroRuby
1025
1037
  local_var_path = '/ContactGroups'
1026
1038
 
1027
1039
  # camelize keys of incoming `where` opts
1028
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1040
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1041
+
1029
1042
  # query parameters
1030
1043
  query_params = opts[:query_params] || {}
1031
1044
 
@@ -1106,7 +1119,8 @@ module XeroRuby
1106
1119
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
1107
1120
 
1108
1121
  # camelize keys of incoming `where` opts
1109
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1122
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1123
+
1110
1124
  # query parameters
1111
1125
  query_params = opts[:query_params] || {}
1112
1126
 
@@ -1187,7 +1201,8 @@ module XeroRuby
1187
1201
  local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s)
1188
1202
 
1189
1203
  # camelize keys of incoming `where` opts
1190
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1204
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1205
+
1191
1206
  # query parameters
1192
1207
  query_params = opts[:query_params] || {}
1193
1208
 
@@ -1264,7 +1279,8 @@ module XeroRuby
1264
1279
  local_var_path = '/Contacts'
1265
1280
 
1266
1281
  # camelize keys of incoming `where` opts
1267
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1282
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1283
+
1268
1284
  # query parameters
1269
1285
  query_params = opts[:query_params] || {}
1270
1286
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -1348,7 +1364,8 @@ module XeroRuby
1348
1364
  local_var_path = '/CreditNotes/{CreditNoteID}/Allocations'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
1349
1365
 
1350
1366
  # camelize keys of incoming `where` opts
1351
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1367
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1368
+
1352
1369
  # query parameters
1353
1370
  query_params = opts[:query_params] || {}
1354
1371
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -1438,7 +1455,8 @@ module XeroRuby
1438
1455
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
1439
1456
 
1440
1457
  # camelize keys of incoming `where` opts
1441
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1458
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1459
+
1442
1460
  # query parameters
1443
1461
  query_params = opts[:query_params] || {}
1444
1462
  query_params[:'IncludeOnline'] = opts[:'include_online'] if !opts[:'include_online'].nil?
@@ -1520,7 +1538,8 @@ module XeroRuby
1520
1538
  local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
1521
1539
 
1522
1540
  # camelize keys of incoming `where` opts
1523
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1541
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1542
+
1524
1543
  # query parameters
1525
1544
  query_params = opts[:query_params] || {}
1526
1545
 
@@ -1599,7 +1618,8 @@ module XeroRuby
1599
1618
  local_var_path = '/CreditNotes'
1600
1619
 
1601
1620
  # camelize keys of incoming `where` opts
1602
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1621
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1622
+
1603
1623
  # query parameters
1604
1624
  query_params = opts[:query_params] || {}
1605
1625
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -1674,7 +1694,8 @@ module XeroRuby
1674
1694
  local_var_path = '/Currencies'
1675
1695
 
1676
1696
  # camelize keys of incoming `where` opts
1677
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1697
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1698
+
1678
1699
  # query parameters
1679
1700
  query_params = opts[:query_params] || {}
1680
1701
 
@@ -1751,7 +1772,8 @@ module XeroRuby
1751
1772
  local_var_path = '/Employees'
1752
1773
 
1753
1774
  # camelize keys of incoming `where` opts
1754
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1775
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1776
+
1755
1777
  # query parameters
1756
1778
  query_params = opts[:query_params] || {}
1757
1779
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -1833,7 +1855,8 @@ module XeroRuby
1833
1855
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
1834
1856
 
1835
1857
  # camelize keys of incoming `where` opts
1836
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1858
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1859
+
1837
1860
  # query parameters
1838
1861
  query_params = opts[:query_params] || {}
1839
1862
 
@@ -1908,7 +1931,8 @@ module XeroRuby
1908
1931
  local_var_path = '/ExpenseClaims'
1909
1932
 
1910
1933
  # camelize keys of incoming `where` opts
1911
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
1934
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1935
+
1912
1936
  # query parameters
1913
1937
  query_params = opts[:query_params] || {}
1914
1938
 
@@ -1997,7 +2021,8 @@ module XeroRuby
1997
2021
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
1998
2022
 
1999
2023
  # camelize keys of incoming `where` opts
2000
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2024
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2025
+
2001
2026
  # query parameters
2002
2027
  query_params = opts[:query_params] || {}
2003
2028
  query_params[:'IncludeOnline'] = opts[:'include_online'] if !opts[:'include_online'].nil?
@@ -2079,7 +2104,8 @@ module XeroRuby
2079
2104
  local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
2080
2105
 
2081
2106
  # camelize keys of incoming `where` opts
2082
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2107
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2108
+
2083
2109
  # query parameters
2084
2110
  query_params = opts[:query_params] || {}
2085
2111
 
@@ -2158,7 +2184,8 @@ module XeroRuby
2158
2184
  local_var_path = '/Invoices'
2159
2185
 
2160
2186
  # camelize keys of incoming `where` opts
2161
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2187
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2188
+
2162
2189
  # query parameters
2163
2190
  query_params = opts[:query_params] || {}
2164
2191
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -2241,7 +2268,8 @@ module XeroRuby
2241
2268
  local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s)
2242
2269
 
2243
2270
  # camelize keys of incoming `where` opts
2244
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2271
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2272
+
2245
2273
  # query parameters
2246
2274
  query_params = opts[:query_params] || {}
2247
2275
 
@@ -2320,7 +2348,8 @@ module XeroRuby
2320
2348
  local_var_path = '/Items'
2321
2349
 
2322
2350
  # camelize keys of incoming `where` opts
2323
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2351
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2352
+
2324
2353
  # query parameters
2325
2354
  query_params = opts[:query_params] || {}
2326
2355
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -2397,7 +2426,8 @@ module XeroRuby
2397
2426
  local_var_path = '/LinkedTransactions'
2398
2427
 
2399
2428
  # camelize keys of incoming `where` opts
2400
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2429
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2430
+
2401
2431
  # query parameters
2402
2432
  query_params = opts[:query_params] || {}
2403
2433
 
@@ -2484,7 +2514,8 @@ module XeroRuby
2484
2514
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
2485
2515
 
2486
2516
  # camelize keys of incoming `where` opts
2487
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2517
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2518
+
2488
2519
  # query parameters
2489
2520
  query_params = opts[:query_params] || {}
2490
2521
 
@@ -2561,7 +2592,8 @@ module XeroRuby
2561
2592
  local_var_path = '/ManualJournals'
2562
2593
 
2563
2594
  # camelize keys of incoming `where` opts
2564
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2595
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2596
+
2565
2597
  # query parameters
2566
2598
  query_params = opts[:query_params] || {}
2567
2599
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -2645,7 +2677,8 @@ module XeroRuby
2645
2677
  local_var_path = '/Overpayments/{OverpaymentID}/Allocations'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
2646
2678
 
2647
2679
  # camelize keys of incoming `where` opts
2648
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2680
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2681
+
2649
2682
  # query parameters
2650
2683
  query_params = opts[:query_params] || {}
2651
2684
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -2727,7 +2760,8 @@ module XeroRuby
2727
2760
  local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
2728
2761
 
2729
2762
  # camelize keys of incoming `where` opts
2730
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2763
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2764
+
2731
2765
  # query parameters
2732
2766
  query_params = opts[:query_params] || {}
2733
2767
 
@@ -2802,7 +2836,8 @@ module XeroRuby
2802
2836
  local_var_path = '/Payments'
2803
2837
 
2804
2838
  # camelize keys of incoming `where` opts
2805
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2839
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2840
+
2806
2841
  # query parameters
2807
2842
  query_params = opts[:query_params] || {}
2808
2843
 
@@ -2883,7 +2918,8 @@ module XeroRuby
2883
2918
  local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
2884
2919
 
2885
2920
  # camelize keys of incoming `where` opts
2886
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2921
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2922
+
2887
2923
  # query parameters
2888
2924
  query_params = opts[:query_params] || {}
2889
2925
 
@@ -2958,7 +2994,8 @@ module XeroRuby
2958
2994
  local_var_path = '/PaymentServices'
2959
2995
 
2960
2996
  # camelize keys of incoming `where` opts
2961
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
2997
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2998
+
2962
2999
  # query parameters
2963
3000
  query_params = opts[:query_params] || {}
2964
3001
 
@@ -3035,7 +3072,8 @@ module XeroRuby
3035
3072
  local_var_path = '/Payments'
3036
3073
 
3037
3074
  # camelize keys of incoming `where` opts
3038
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3075
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3076
+
3039
3077
  # query parameters
3040
3078
  query_params = opts[:query_params] || {}
3041
3079
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -3119,7 +3157,8 @@ module XeroRuby
3119
3157
  local_var_path = '/Prepayments/{PrepaymentID}/Allocations'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
3120
3158
 
3121
3159
  # camelize keys of incoming `where` opts
3122
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3160
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3161
+
3123
3162
  # query parameters
3124
3163
  query_params = opts[:query_params] || {}
3125
3164
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -3201,7 +3240,8 @@ module XeroRuby
3201
3240
  local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
3202
3241
 
3203
3242
  # camelize keys of incoming `where` opts
3204
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3243
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3244
+
3205
3245
  # query parameters
3206
3246
  query_params = opts[:query_params] || {}
3207
3247
 
@@ -3282,7 +3322,8 @@ module XeroRuby
3282
3322
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
3283
3323
 
3284
3324
  # camelize keys of incoming `where` opts
3285
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3325
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3326
+
3286
3327
  # query parameters
3287
3328
  query_params = opts[:query_params] || {}
3288
3329
 
@@ -3359,7 +3400,8 @@ module XeroRuby
3359
3400
  local_var_path = '/PurchaseOrders'
3360
3401
 
3361
3402
  # camelize keys of incoming `where` opts
3362
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3403
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3404
+
3363
3405
  # query parameters
3364
3406
  query_params = opts[:query_params] || {}
3365
3407
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -3447,7 +3489,8 @@ module XeroRuby
3447
3489
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3448
3490
 
3449
3491
  # camelize keys of incoming `where` opts
3450
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3492
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3493
+
3451
3494
  # query parameters
3452
3495
  query_params = opts[:query_params] || {}
3453
3496
 
@@ -3528,7 +3571,8 @@ module XeroRuby
3528
3571
  local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
3529
3572
 
3530
3573
  # camelize keys of incoming `where` opts
3531
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3574
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3575
+
3532
3576
  # query parameters
3533
3577
  query_params = opts[:query_params] || {}
3534
3578
 
@@ -3605,7 +3649,8 @@ module XeroRuby
3605
3649
  local_var_path = '/Quotes'
3606
3650
 
3607
3651
  # camelize keys of incoming `where` opts
3608
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3652
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3653
+
3609
3654
  # query parameters
3610
3655
  query_params = opts[:query_params] || {}
3611
3656
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -3683,7 +3728,8 @@ module XeroRuby
3683
3728
  local_var_path = '/Receipts'
3684
3729
 
3685
3730
  # camelize keys of incoming `where` opts
3686
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3731
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3732
+
3687
3733
  # query parameters
3688
3734
  query_params = opts[:query_params] || {}
3689
3735
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -3771,7 +3817,8 @@ module XeroRuby
3771
3817
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3772
3818
 
3773
3819
  # camelize keys of incoming `where` opts
3774
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3820
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3821
+
3775
3822
  # query parameters
3776
3823
  query_params = opts[:query_params] || {}
3777
3824
 
@@ -3852,7 +3899,8 @@ module XeroRuby
3852
3899
  local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
3853
3900
 
3854
3901
  # camelize keys of incoming `where` opts
3855
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3902
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3903
+
3856
3904
  # query parameters
3857
3905
  query_params = opts[:query_params] || {}
3858
3906
 
@@ -3939,7 +3987,8 @@ module XeroRuby
3939
3987
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3940
3988
 
3941
3989
  # camelize keys of incoming `where` opts
3942
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
3990
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3991
+
3943
3992
  # query parameters
3944
3993
  query_params = opts[:query_params] || {}
3945
3994
 
@@ -4020,7 +4069,8 @@ module XeroRuby
4020
4069
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
4021
4070
 
4022
4071
  # camelize keys of incoming `where` opts
4023
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4072
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4073
+
4024
4074
  # query parameters
4025
4075
  query_params = opts[:query_params] || {}
4026
4076
 
@@ -4095,7 +4145,8 @@ module XeroRuby
4095
4145
  local_var_path = '/TaxRates'
4096
4146
 
4097
4147
  # camelize keys of incoming `where` opts
4098
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4148
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4149
+
4099
4150
  # query parameters
4100
4151
  query_params = opts[:query_params] || {}
4101
4152
 
@@ -4170,7 +4221,8 @@ module XeroRuby
4170
4221
  local_var_path = '/TrackingCategories'
4171
4222
 
4172
4223
  # camelize keys of incoming `where` opts
4173
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4224
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4225
+
4174
4226
  # query parameters
4175
4227
  query_params = opts[:query_params] || {}
4176
4228
 
@@ -4251,7 +4303,8 @@ module XeroRuby
4251
4303
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
4252
4304
 
4253
4305
  # camelize keys of incoming `where` opts
4254
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4306
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4307
+
4255
4308
  # query parameters
4256
4309
  query_params = opts[:query_params] || {}
4257
4310
 
@@ -4326,7 +4379,8 @@ module XeroRuby
4326
4379
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
4327
4380
 
4328
4381
  # camelize keys of incoming `where` opts
4329
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4382
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4383
+
4330
4384
  # query parameters
4331
4385
  query_params = opts[:query_params] || {}
4332
4386
 
@@ -4405,7 +4459,8 @@ module XeroRuby
4405
4459
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts/{ContactID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s).sub('{' + 'ContactID' + '}', contact_id.to_s)
4406
4460
 
4407
4461
  # camelize keys of incoming `where` opts
4408
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4462
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4463
+
4409
4464
  # query parameters
4410
4465
  query_params = opts[:query_params] || {}
4411
4466
 
@@ -4478,7 +4533,8 @@ module XeroRuby
4478
4533
  local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
4479
4534
 
4480
4535
  # camelize keys of incoming `where` opts
4481
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4536
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4537
+
4482
4538
  # query parameters
4483
4539
  query_params = opts[:query_params] || {}
4484
4540
 
@@ -4549,7 +4605,8 @@ module XeroRuby
4549
4605
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
4550
4606
 
4551
4607
  # camelize keys of incoming `where` opts
4552
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4608
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4609
+
4553
4610
  # query parameters
4554
4611
  query_params = opts[:query_params] || {}
4555
4612
 
@@ -4622,7 +4679,8 @@ module XeroRuby
4622
4679
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
4623
4680
 
4624
4681
  # camelize keys of incoming `where` opts
4625
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4682
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4683
+
4626
4684
  # query parameters
4627
4685
  query_params = opts[:query_params] || {}
4628
4686
 
@@ -4701,7 +4759,8 @@ module XeroRuby
4701
4759
  local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
4702
4760
 
4703
4761
  # camelize keys of incoming `where` opts
4704
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4762
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4763
+
4705
4764
  # query parameters
4706
4765
  query_params = opts[:query_params] || {}
4707
4766
 
@@ -4776,7 +4835,8 @@ module XeroRuby
4776
4835
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
4777
4836
 
4778
4837
  # camelize keys of incoming `where` opts
4779
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4838
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4839
+
4780
4840
  # query parameters
4781
4841
  query_params = opts[:query_params] || {}
4782
4842
 
@@ -4855,7 +4915,8 @@ module XeroRuby
4855
4915
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s)
4856
4916
 
4857
4917
  # camelize keys of incoming `where` opts
4858
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4918
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4919
+
4859
4920
  # query parameters
4860
4921
  query_params = opts[:query_params] || {}
4861
4922
 
@@ -4934,7 +4995,8 @@ module XeroRuby
4934
4995
  local_var_path = '/Invoices/{InvoiceID}/Email'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
4935
4996
 
4936
4997
  # camelize keys of incoming `where` opts
4937
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
4998
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4999
+
4938
5000
  # query parameters
4939
5001
  query_params = opts[:query_params] || {}
4940
5002
 
@@ -5009,7 +5071,8 @@ module XeroRuby
5009
5071
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
5010
5072
 
5011
5073
  # camelize keys of incoming `where` opts
5012
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5074
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5075
+
5013
5076
  # query parameters
5014
5077
  query_params = opts[:query_params] || {}
5015
5078
 
@@ -5094,7 +5157,8 @@ module XeroRuby
5094
5157
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
5095
5158
 
5096
5159
  # camelize keys of incoming `where` opts
5097
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5160
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5161
+
5098
5162
  # query parameters
5099
5163
  query_params = opts[:query_params] || {}
5100
5164
 
@@ -5180,7 +5244,8 @@ module XeroRuby
5180
5244
  local_var_path = '/Accounts/{AccountID}/Attachments/{AttachmentID}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
5181
5245
 
5182
5246
  # camelize keys of incoming `where` opts
5183
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5247
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5248
+
5184
5249
  # query parameters
5185
5250
  query_params = opts[:query_params] || {}
5186
5251
 
@@ -5254,7 +5319,8 @@ module XeroRuby
5254
5319
  local_var_path = '/Accounts/{AccountID}/Attachments'.sub('{' + 'AccountID' + '}', account_id.to_s)
5255
5320
 
5256
5321
  # camelize keys of incoming `where` opts
5257
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5322
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5323
+
5258
5324
  # query parameters
5259
5325
  query_params = opts[:query_params] || {}
5260
5326
 
@@ -5327,7 +5393,8 @@ module XeroRuby
5327
5393
  local_var_path = '/Accounts'
5328
5394
 
5329
5395
  # camelize keys of incoming `where` opts
5330
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5396
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5397
+
5331
5398
  # query parameters
5332
5399
  query_params = opts[:query_params] || {}
5333
5400
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -5405,7 +5472,8 @@ module XeroRuby
5405
5472
  local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5406
5473
 
5407
5474
  # camelize keys of incoming `where` opts
5408
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5475
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5476
+
5409
5477
  # query parameters
5410
5478
  query_params = opts[:query_params] || {}
5411
5479
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -5491,7 +5559,8 @@ module XeroRuby
5491
5559
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
5492
5560
 
5493
5561
  # camelize keys of incoming `where` opts
5494
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5562
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5563
+
5495
5564
  # query parameters
5496
5565
  query_params = opts[:query_params] || {}
5497
5566
 
@@ -5577,7 +5646,8 @@ module XeroRuby
5577
5646
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
5578
5647
 
5579
5648
  # camelize keys of incoming `where` opts
5580
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5649
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5650
+
5581
5651
  # query parameters
5582
5652
  query_params = opts[:query_params] || {}
5583
5653
 
@@ -5651,7 +5721,8 @@ module XeroRuby
5651
5721
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5652
5722
 
5653
5723
  # camelize keys of incoming `where` opts
5654
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5724
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5725
+
5655
5726
  # query parameters
5656
5727
  query_params = opts[:query_params] || {}
5657
5728
 
@@ -5728,7 +5799,8 @@ module XeroRuby
5728
5799
  local_var_path = '/BankTransactions'
5729
5800
 
5730
5801
  # camelize keys of incoming `where` opts
5731
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5802
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5803
+
5732
5804
  # query parameters
5733
5805
  query_params = opts[:query_params] || {}
5734
5806
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -5806,7 +5878,8 @@ module XeroRuby
5806
5878
  local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
5807
5879
 
5808
5880
  # camelize keys of incoming `where` opts
5809
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5881
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5882
+
5810
5883
  # query parameters
5811
5884
  query_params = opts[:query_params] || {}
5812
5885
 
@@ -5879,7 +5952,8 @@ module XeroRuby
5879
5952
  local_var_path = '/BankTransfers/{BankTransferID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
5880
5953
 
5881
5954
  # camelize keys of incoming `where` opts
5882
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
5955
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
5956
+
5883
5957
  # query parameters
5884
5958
  query_params = opts[:query_params] || {}
5885
5959
 
@@ -5964,7 +6038,8 @@ module XeroRuby
5964
6038
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
5965
6039
 
5966
6040
  # camelize keys of incoming `where` opts
5967
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6041
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6042
+
5968
6043
  # query parameters
5969
6044
  query_params = opts[:query_params] || {}
5970
6045
 
@@ -6050,7 +6125,8 @@ module XeroRuby
6050
6125
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
6051
6126
 
6052
6127
  # camelize keys of incoming `where` opts
6053
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6128
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6129
+
6054
6130
  # query parameters
6055
6131
  query_params = opts[:query_params] || {}
6056
6132
 
@@ -6124,7 +6200,8 @@ module XeroRuby
6124
6200
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
6125
6201
 
6126
6202
  # camelize keys of incoming `where` opts
6127
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6203
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6204
+
6128
6205
  # query parameters
6129
6206
  query_params = opts[:query_params] || {}
6130
6207
 
@@ -6197,7 +6274,8 @@ module XeroRuby
6197
6274
  local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s)
6198
6275
 
6199
6276
  # camelize keys of incoming `where` opts
6200
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6277
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6278
+
6201
6279
  # query parameters
6202
6280
  query_params = opts[:query_params] || {}
6203
6281
 
@@ -6270,7 +6348,8 @@ module XeroRuby
6270
6348
  local_var_path = '/BankTransfers'
6271
6349
 
6272
6350
  # camelize keys of incoming `where` opts
6273
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6351
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6352
+
6274
6353
  # query parameters
6275
6354
  query_params = opts[:query_params] || {}
6276
6355
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -6346,7 +6425,8 @@ module XeroRuby
6346
6425
  local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s)
6347
6426
 
6348
6427
  # camelize keys of incoming `where` opts
6349
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6428
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6429
+
6350
6430
  # query parameters
6351
6431
  query_params = opts[:query_params] || {}
6352
6432
 
@@ -6419,7 +6499,8 @@ module XeroRuby
6419
6499
  local_var_path = '/BatchPayments'
6420
6500
 
6421
6501
  # camelize keys of incoming `where` opts
6422
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6502
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6503
+
6423
6504
  # query parameters
6424
6505
  query_params = opts[:query_params] || {}
6425
6506
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -6495,7 +6576,8 @@ module XeroRuby
6495
6576
  local_var_path = '/BrandingThemes/{BrandingThemeID}'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
6496
6577
 
6497
6578
  # camelize keys of incoming `where` opts
6498
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6579
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6580
+
6499
6581
  # query parameters
6500
6582
  query_params = opts[:query_params] || {}
6501
6583
 
@@ -6568,7 +6650,8 @@ module XeroRuby
6568
6650
  local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
6569
6651
 
6570
6652
  # camelize keys of incoming `where` opts
6571
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6653
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6654
+
6572
6655
  # query parameters
6573
6656
  query_params = opts[:query_params] || {}
6574
6657
 
@@ -6635,7 +6718,8 @@ module XeroRuby
6635
6718
  local_var_path = '/BrandingThemes'
6636
6719
 
6637
6720
  # camelize keys of incoming `where` opts
6638
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6721
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6722
+
6639
6723
  # query parameters
6640
6724
  query_params = opts[:query_params] || {}
6641
6725
 
@@ -6708,7 +6792,8 @@ module XeroRuby
6708
6792
  local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s)
6709
6793
 
6710
6794
  # camelize keys of incoming `where` opts
6711
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6795
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6796
+
6712
6797
  # query parameters
6713
6798
  query_params = opts[:query_params] || {}
6714
6799
 
@@ -6793,7 +6878,8 @@ module XeroRuby
6793
6878
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
6794
6879
 
6795
6880
  # camelize keys of incoming `where` opts
6796
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6881
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6882
+
6797
6883
  # query parameters
6798
6884
  query_params = opts[:query_params] || {}
6799
6885
 
@@ -6879,7 +6965,8 @@ module XeroRuby
6879
6965
  local_var_path = '/Contacts/{ContactID}/Attachments/{AttachmentID}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
6880
6966
 
6881
6967
  # camelize keys of incoming `where` opts
6882
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
6968
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
6969
+
6883
6970
  # query parameters
6884
6971
  query_params = opts[:query_params] || {}
6885
6972
 
@@ -6953,7 +7040,8 @@ module XeroRuby
6953
7040
  local_var_path = '/Contacts/{ContactID}/Attachments'.sub('{' + 'ContactID' + '}', contact_id.to_s)
6954
7041
 
6955
7042
  # camelize keys of incoming `where` opts
6956
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7043
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7044
+
6957
7045
  # query parameters
6958
7046
  query_params = opts[:query_params] || {}
6959
7047
 
@@ -7026,7 +7114,8 @@ module XeroRuby
7026
7114
  local_var_path = '/Contacts/{ContactNumber}'.sub('{' + 'ContactNumber' + '}', contact_number.to_s)
7027
7115
 
7028
7116
  # camelize keys of incoming `where` opts
7029
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7117
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7118
+
7030
7119
  # query parameters
7031
7120
  query_params = opts[:query_params] || {}
7032
7121
 
@@ -7099,7 +7188,8 @@ module XeroRuby
7099
7188
  local_var_path = '/Contacts/{ContactID}/CISSettings'.sub('{' + 'ContactID' + '}', contact_id.to_s)
7100
7189
 
7101
7190
  # camelize keys of incoming `where` opts
7102
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7191
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7192
+
7103
7193
  # query parameters
7104
7194
  query_params = opts[:query_params] || {}
7105
7195
 
@@ -7172,7 +7262,8 @@ module XeroRuby
7172
7262
  local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
7173
7263
 
7174
7264
  # camelize keys of incoming `where` opts
7175
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7265
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7266
+
7176
7267
  # query parameters
7177
7268
  query_params = opts[:query_params] || {}
7178
7269
 
@@ -7243,7 +7334,8 @@ module XeroRuby
7243
7334
  local_var_path = '/ContactGroups'
7244
7335
 
7245
7336
  # camelize keys of incoming `where` opts
7246
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7337
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7338
+
7247
7339
  # query parameters
7248
7340
  query_params = opts[:query_params] || {}
7249
7341
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -7318,7 +7410,8 @@ module XeroRuby
7318
7410
  local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s)
7319
7411
 
7320
7412
  # camelize keys of incoming `where` opts
7321
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7413
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7414
+
7322
7415
  # query parameters
7323
7416
  query_params = opts[:query_params] || {}
7324
7417
 
@@ -7397,7 +7490,8 @@ module XeroRuby
7397
7490
  local_var_path = '/Contacts'
7398
7491
 
7399
7492
  # camelize keys of incoming `where` opts
7400
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7493
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7494
+
7401
7495
  # query parameters
7402
7496
  query_params = opts[:query_params] || {}
7403
7497
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -7478,7 +7572,8 @@ module XeroRuby
7478
7572
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7479
7573
 
7480
7574
  # camelize keys of incoming `where` opts
7481
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7575
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7576
+
7482
7577
  # query parameters
7483
7578
  query_params = opts[:query_params] || {}
7484
7579
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -7552,7 +7647,8 @@ module XeroRuby
7552
7647
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7553
7648
 
7554
7649
  # camelize keys of incoming `where` opts
7555
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7650
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7651
+
7556
7652
  # query parameters
7557
7653
  query_params = opts[:query_params] || {}
7558
7654
 
@@ -7637,7 +7733,8 @@ module XeroRuby
7637
7733
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
7638
7734
 
7639
7735
  # camelize keys of incoming `where` opts
7640
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7736
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7737
+
7641
7738
  # query parameters
7642
7739
  query_params = opts[:query_params] || {}
7643
7740
 
@@ -7723,7 +7820,8 @@ module XeroRuby
7723
7820
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
7724
7821
 
7725
7822
  # camelize keys of incoming `where` opts
7726
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7823
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7824
+
7727
7825
  # query parameters
7728
7826
  query_params = opts[:query_params] || {}
7729
7827
 
@@ -7797,7 +7895,8 @@ module XeroRuby
7797
7895
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7798
7896
 
7799
7897
  # camelize keys of incoming `where` opts
7800
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7898
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7899
+
7801
7900
  # query parameters
7802
7901
  query_params = opts[:query_params] || {}
7803
7902
 
@@ -7870,7 +7969,8 @@ module XeroRuby
7870
7969
  local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
7871
7970
 
7872
7971
  # camelize keys of incoming `where` opts
7873
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
7972
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7973
+
7874
7974
  # query parameters
7875
7975
  query_params = opts[:query_params] || {}
7876
7976
 
@@ -7947,7 +8047,8 @@ module XeroRuby
7947
8047
  local_var_path = '/CreditNotes'
7948
8048
 
7949
8049
  # camelize keys of incoming `where` opts
7950
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8050
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8051
+
7951
8052
  # query parameters
7952
8053
  query_params = opts[:query_params] || {}
7953
8054
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8023,7 +8124,8 @@ module XeroRuby
8023
8124
  local_var_path = '/Currencies'
8024
8125
 
8025
8126
  # camelize keys of incoming `where` opts
8026
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8127
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8128
+
8027
8129
  # query parameters
8028
8130
  query_params = opts[:query_params] || {}
8029
8131
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8098,7 +8200,8 @@ module XeroRuby
8098
8200
  local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
8099
8201
 
8100
8202
  # camelize keys of incoming `where` opts
8101
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8203
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8204
+
8102
8205
  # query parameters
8103
8206
  query_params = opts[:query_params] || {}
8104
8207
 
@@ -8171,7 +8274,8 @@ module XeroRuby
8171
8274
  local_var_path = '/Employees'
8172
8275
 
8173
8276
  # camelize keys of incoming `where` opts
8174
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8277
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8278
+
8175
8279
  # query parameters
8176
8280
  query_params = opts[:query_params] || {}
8177
8281
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8247,7 +8351,8 @@ module XeroRuby
8247
8351
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
8248
8352
 
8249
8353
  # camelize keys of incoming `where` opts
8250
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8354
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8355
+
8251
8356
  # query parameters
8252
8357
  query_params = opts[:query_params] || {}
8253
8358
 
@@ -8320,7 +8425,8 @@ module XeroRuby
8320
8425
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
8321
8426
 
8322
8427
  # camelize keys of incoming `where` opts
8323
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8428
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8429
+
8324
8430
  # query parameters
8325
8431
  query_params = opts[:query_params] || {}
8326
8432
 
@@ -8393,7 +8499,8 @@ module XeroRuby
8393
8499
  local_var_path = '/ExpenseClaims'
8394
8500
 
8395
8501
  # camelize keys of incoming `where` opts
8396
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8502
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8503
+
8397
8504
  # query parameters
8398
8505
  query_params = opts[:query_params] || {}
8399
8506
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -8471,7 +8578,8 @@ module XeroRuby
8471
8578
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8472
8579
 
8473
8580
  # camelize keys of incoming `where` opts
8474
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8581
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8582
+
8475
8583
  # query parameters
8476
8584
  query_params = opts[:query_params] || {}
8477
8585
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -8545,7 +8653,8 @@ module XeroRuby
8545
8653
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8546
8654
 
8547
8655
  # camelize keys of incoming `where` opts
8548
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8656
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8657
+
8549
8658
  # query parameters
8550
8659
  query_params = opts[:query_params] || {}
8551
8660
 
@@ -8630,7 +8739,8 @@ module XeroRuby
8630
8739
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
8631
8740
 
8632
8741
  # camelize keys of incoming `where` opts
8633
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8742
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8743
+
8634
8744
  # query parameters
8635
8745
  query_params = opts[:query_params] || {}
8636
8746
 
@@ -8716,7 +8826,8 @@ module XeroRuby
8716
8826
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
8717
8827
 
8718
8828
  # camelize keys of incoming `where` opts
8719
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8829
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8830
+
8720
8831
  # query parameters
8721
8832
  query_params = opts[:query_params] || {}
8722
8833
 
@@ -8790,7 +8901,8 @@ module XeroRuby
8790
8901
  local_var_path = '/Invoices/{InvoiceID}/Attachments'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8791
8902
 
8792
8903
  # camelize keys of incoming `where` opts
8793
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8904
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8905
+
8794
8906
  # query parameters
8795
8907
  query_params = opts[:query_params] || {}
8796
8908
 
@@ -8863,7 +8975,8 @@ module XeroRuby
8863
8975
  local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
8864
8976
 
8865
8977
  # camelize keys of incoming `where` opts
8866
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
8978
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
8979
+
8867
8980
  # query parameters
8868
8981
  query_params = opts[:query_params] || {}
8869
8982
 
@@ -8930,7 +9043,8 @@ module XeroRuby
8930
9043
  local_var_path = '/InvoiceReminders/Settings'
8931
9044
 
8932
9045
  # camelize keys of incoming `where` opts
8933
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9046
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9047
+
8934
9048
  # query parameters
8935
9049
  query_params = opts[:query_params] || {}
8936
9050
 
@@ -9019,7 +9133,8 @@ module XeroRuby
9019
9133
  local_var_path = '/Invoices'
9020
9134
 
9021
9135
  # camelize keys of incoming `where` opts
9022
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9136
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9137
+
9023
9138
  # query parameters
9024
9139
  query_params = opts[:query_params] || {}
9025
9140
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -9105,7 +9220,8 @@ module XeroRuby
9105
9220
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
9106
9221
 
9107
9222
  # camelize keys of incoming `where` opts
9108
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9223
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9224
+
9109
9225
  # query parameters
9110
9226
  query_params = opts[:query_params] || {}
9111
9227
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -9179,7 +9295,8 @@ module XeroRuby
9179
9295
  local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s)
9180
9296
 
9181
9297
  # camelize keys of incoming `where` opts
9182
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9298
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9299
+
9183
9300
  # query parameters
9184
9301
  query_params = opts[:query_params] || {}
9185
9302
 
@@ -9254,7 +9371,8 @@ module XeroRuby
9254
9371
  local_var_path = '/Items'
9255
9372
 
9256
9373
  # camelize keys of incoming `where` opts
9257
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9374
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9375
+
9258
9376
  # query parameters
9259
9377
  query_params = opts[:query_params] || {}
9260
9378
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -9331,7 +9449,8 @@ module XeroRuby
9331
9449
  local_var_path = '/Journals/{JournalID}'.sub('{' + 'JournalID' + '}', journal_id.to_s)
9332
9450
 
9333
9451
  # camelize keys of incoming `where` opts
9334
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9452
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9453
+
9335
9454
  # query parameters
9336
9455
  query_params = opts[:query_params] || {}
9337
9456
 
@@ -9404,7 +9523,8 @@ module XeroRuby
9404
9523
  local_var_path = '/Journals'
9405
9524
 
9406
9525
  # camelize keys of incoming `where` opts
9407
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9526
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9527
+
9408
9528
  # query parameters
9409
9529
  query_params = opts[:query_params] || {}
9410
9530
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
@@ -9480,7 +9600,8 @@ module XeroRuby
9480
9600
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
9481
9601
 
9482
9602
  # camelize keys of incoming `where` opts
9483
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9603
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9604
+
9484
9605
  # query parameters
9485
9606
  query_params = opts[:query_params] || {}
9486
9607
 
@@ -9559,7 +9680,8 @@ module XeroRuby
9559
9680
  local_var_path = '/LinkedTransactions'
9560
9681
 
9561
9682
  # camelize keys of incoming `where` opts
9562
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9683
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9684
+
9563
9685
  # query parameters
9564
9686
  query_params = opts[:query_params] || {}
9565
9687
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
@@ -9638,7 +9760,8 @@ module XeroRuby
9638
9760
  local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
9639
9761
 
9640
9762
  # camelize keys of incoming `where` opts
9641
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9763
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9764
+
9642
9765
  # query parameters
9643
9766
  query_params = opts[:query_params] || {}
9644
9767
 
@@ -9723,7 +9846,8 @@ module XeroRuby
9723
9846
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
9724
9847
 
9725
9848
  # camelize keys of incoming `where` opts
9726
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9849
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9850
+
9727
9851
  # query parameters
9728
9852
  query_params = opts[:query_params] || {}
9729
9853
 
@@ -9809,7 +9933,8 @@ module XeroRuby
9809
9933
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{AttachmentID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
9810
9934
 
9811
9935
  # camelize keys of incoming `where` opts
9812
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
9936
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
9937
+
9813
9938
  # query parameters
9814
9939
  query_params = opts[:query_params] || {}
9815
9940
 
@@ -9883,7 +10008,8 @@ module XeroRuby
9883
10008
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
9884
10009
 
9885
10010
  # camelize keys of incoming `where` opts
9886
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10011
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10012
+
9887
10013
  # query parameters
9888
10014
  query_params = opts[:query_params] || {}
9889
10015
 
@@ -9958,7 +10084,8 @@ module XeroRuby
9958
10084
  local_var_path = '/ManualJournals'
9959
10085
 
9960
10086
  # camelize keys of incoming `where` opts
9961
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10087
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10088
+
9962
10089
  # query parameters
9963
10090
  query_params = opts[:query_params] || {}
9964
10091
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -10035,7 +10162,8 @@ module XeroRuby
10035
10162
  local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
10036
10163
 
10037
10164
  # camelize keys of incoming `where` opts
10038
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10165
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10166
+
10039
10167
  # query parameters
10040
10168
  query_params = opts[:query_params] || {}
10041
10169
 
@@ -10108,7 +10236,8 @@ module XeroRuby
10108
10236
  local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', organisation_id.to_s)
10109
10237
 
10110
10238
  # camelize keys of incoming `where` opts
10111
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10239
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10240
+
10112
10241
  # query parameters
10113
10242
  query_params = opts[:query_params] || {}
10114
10243
 
@@ -10175,7 +10304,8 @@ module XeroRuby
10175
10304
  local_var_path = '/Organisation'
10176
10305
 
10177
10306
  # camelize keys of incoming `where` opts
10178
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10307
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10308
+
10179
10309
  # query parameters
10180
10310
  query_params = opts[:query_params] || {}
10181
10311
 
@@ -10248,7 +10378,8 @@ module XeroRuby
10248
10378
  local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
10249
10379
 
10250
10380
  # camelize keys of incoming `where` opts
10251
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10381
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10382
+
10252
10383
  # query parameters
10253
10384
  query_params = opts[:query_params] || {}
10254
10385
 
@@ -10321,7 +10452,8 @@ module XeroRuby
10321
10452
  local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
10322
10453
 
10323
10454
  # camelize keys of incoming `where` opts
10324
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10455
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10456
+
10325
10457
  # query parameters
10326
10458
  query_params = opts[:query_params] || {}
10327
10459
 
@@ -10398,7 +10530,8 @@ module XeroRuby
10398
10530
  local_var_path = '/Overpayments'
10399
10531
 
10400
10532
  # camelize keys of incoming `where` opts
10401
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10533
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10534
+
10402
10535
  # query parameters
10403
10536
  query_params = opts[:query_params] || {}
10404
10537
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -10476,7 +10609,8 @@ module XeroRuby
10476
10609
  local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
10477
10610
 
10478
10611
  # camelize keys of incoming `where` opts
10479
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10612
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10613
+
10480
10614
  # query parameters
10481
10615
  query_params = opts[:query_params] || {}
10482
10616
 
@@ -10549,7 +10683,8 @@ module XeroRuby
10549
10683
  local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s)
10550
10684
 
10551
10685
  # camelize keys of incoming `where` opts
10552
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10686
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10687
+
10553
10688
  # query parameters
10554
10689
  query_params = opts[:query_params] || {}
10555
10690
 
@@ -10616,7 +10751,8 @@ module XeroRuby
10616
10751
  local_var_path = '/PaymentServices'
10617
10752
 
10618
10753
  # camelize keys of incoming `where` opts
10619
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10754
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10755
+
10620
10756
  # query parameters
10621
10757
  query_params = opts[:query_params] || {}
10622
10758
 
@@ -10691,7 +10827,8 @@ module XeroRuby
10691
10827
  local_var_path = '/Payments'
10692
10828
 
10693
10829
  # camelize keys of incoming `where` opts
10694
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10830
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10831
+
10695
10832
  # query parameters
10696
10833
  query_params = opts[:query_params] || {}
10697
10834
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -10768,7 +10905,8 @@ module XeroRuby
10768
10905
  local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
10769
10906
 
10770
10907
  # camelize keys of incoming `where` opts
10771
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10908
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10909
+
10772
10910
  # query parameters
10773
10911
  query_params = opts[:query_params] || {}
10774
10912
 
@@ -10841,7 +10979,8 @@ module XeroRuby
10841
10979
  local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
10842
10980
 
10843
10981
  # camelize keys of incoming `where` opts
10844
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
10982
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10983
+
10845
10984
  # query parameters
10846
10985
  query_params = opts[:query_params] || {}
10847
10986
 
@@ -10918,7 +11057,8 @@ module XeroRuby
10918
11057
  local_var_path = '/Prepayments'
10919
11058
 
10920
11059
  # camelize keys of incoming `where` opts
10921
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11060
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11061
+
10922
11062
  # query parameters
10923
11063
  query_params = opts[:query_params] || {}
10924
11064
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -10996,7 +11136,8 @@ module XeroRuby
10996
11136
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
10997
11137
 
10998
11138
  # camelize keys of incoming `where` opts
10999
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11139
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11140
+
11000
11141
  # query parameters
11001
11142
  query_params = opts[:query_params] || {}
11002
11143
 
@@ -11069,7 +11210,8 @@ module XeroRuby
11069
11210
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
11070
11211
 
11071
11212
  # camelize keys of incoming `where` opts
11072
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11213
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11214
+
11073
11215
  # query parameters
11074
11216
  query_params = opts[:query_params] || {}
11075
11217
 
@@ -11142,7 +11284,8 @@ module XeroRuby
11142
11284
  local_var_path = '/PurchaseOrders/{PurchaseOrderNumber}'.sub('{' + 'PurchaseOrderNumber' + '}', purchase_order_number.to_s)
11143
11285
 
11144
11286
  # camelize keys of incoming `where` opts
11145
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11287
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11288
+
11146
11289
  # query parameters
11147
11290
  query_params = opts[:query_params] || {}
11148
11291
 
@@ -11215,7 +11358,8 @@ module XeroRuby
11215
11358
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
11216
11359
 
11217
11360
  # camelize keys of incoming `where` opts
11218
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11361
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11362
+
11219
11363
  # query parameters
11220
11364
  query_params = opts[:query_params] || {}
11221
11365
 
@@ -11298,7 +11442,8 @@ module XeroRuby
11298
11442
  local_var_path = '/PurchaseOrders'
11299
11443
 
11300
11444
  # camelize keys of incoming `where` opts
11301
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11445
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11446
+
11302
11447
  # query parameters
11303
11448
  query_params = opts[:query_params] || {}
11304
11449
  query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
@@ -11377,7 +11522,8 @@ module XeroRuby
11377
11522
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
11378
11523
 
11379
11524
  # camelize keys of incoming `where` opts
11380
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11525
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11526
+
11381
11527
  # query parameters
11382
11528
  query_params = opts[:query_params] || {}
11383
11529
 
@@ -11450,7 +11596,8 @@ module XeroRuby
11450
11596
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
11451
11597
 
11452
11598
  # camelize keys of incoming `where` opts
11453
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11599
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11600
+
11454
11601
  # query parameters
11455
11602
  query_params = opts[:query_params] || {}
11456
11603
 
@@ -11535,7 +11682,8 @@ module XeroRuby
11535
11682
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
11536
11683
 
11537
11684
  # camelize keys of incoming `where` opts
11538
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11685
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11686
+
11539
11687
  # query parameters
11540
11688
  query_params = opts[:query_params] || {}
11541
11689
 
@@ -11621,7 +11769,8 @@ module XeroRuby
11621
11769
  local_var_path = '/Quotes/{QuoteID}/Attachments/{AttachmentID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
11622
11770
 
11623
11771
  # camelize keys of incoming `where` opts
11624
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11772
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11773
+
11625
11774
  # query parameters
11626
11775
  query_params = opts[:query_params] || {}
11627
11776
 
@@ -11695,7 +11844,8 @@ module XeroRuby
11695
11844
  local_var_path = '/Quotes/{QuoteID}/Attachments'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
11696
11845
 
11697
11846
  # camelize keys of incoming `where` opts
11698
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11847
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11848
+
11699
11849
  # query parameters
11700
11850
  query_params = opts[:query_params] || {}
11701
11851
 
@@ -11768,7 +11918,8 @@ module XeroRuby
11768
11918
  local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
11769
11919
 
11770
11920
  # camelize keys of incoming `where` opts
11771
- opts[:'where'] = opts[:'where'].map{|k,v| "#{@api_client.camelize_key(k)}#{v}"}.join(' AND ') if !opts[:'where'].nil?
11921
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11922
+
11772
11923
  # query parameters
11773
11924
  query_params = opts[:query_params] || {}
11774
11925
 
@@ -11853,7 +12004,8 @@ module XeroRuby
11853
12004
  local_var_path = '/Quotes'
11854
12005
 
11855
12006
  # 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?
12007
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12008
+
11857
12009
  # query parameters
11858
12010
  query_params = opts[:query_params] || {}
11859
12011
  query_params[:'DateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil?
@@ -11937,7 +12089,8 @@ module XeroRuby
11937
12089
  local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
11938
12090
 
11939
12091
  # 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?
12092
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12093
+
11941
12094
  # query parameters
11942
12095
  query_params = opts[:query_params] || {}
11943
12096
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -12023,7 +12176,8 @@ module XeroRuby
12023
12176
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
12024
12177
 
12025
12178
  # 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?
12179
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12180
+
12027
12181
  # query parameters
12028
12182
  query_params = opts[:query_params] || {}
12029
12183
 
@@ -12109,7 +12263,8 @@ module XeroRuby
12109
12263
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{AttachmentID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
12110
12264
 
12111
12265
  # 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?
12266
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12267
+
12113
12268
  # query parameters
12114
12269
  query_params = opts[:query_params] || {}
12115
12270
 
@@ -12183,7 +12338,8 @@ module XeroRuby
12183
12338
  local_var_path = '/Receipts/{ReceiptID}/Attachments'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
12184
12339
 
12185
12340
  # 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?
12341
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12342
+
12187
12343
  # query parameters
12188
12344
  query_params = opts[:query_params] || {}
12189
12345
 
@@ -12256,7 +12412,8 @@ module XeroRuby
12256
12412
  local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
12257
12413
 
12258
12414
  # 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?
12415
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12416
+
12260
12417
  # query parameters
12261
12418
  query_params = opts[:query_params] || {}
12262
12419
 
@@ -12331,7 +12488,8 @@ module XeroRuby
12331
12488
  local_var_path = '/Receipts'
12332
12489
 
12333
12490
  # 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?
12491
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12492
+
12335
12493
  # query parameters
12336
12494
  query_params = opts[:query_params] || {}
12337
12495
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -12408,7 +12566,8 @@ module XeroRuby
12408
12566
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
12409
12567
 
12410
12568
  # 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?
12569
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12570
+
12412
12571
  # query parameters
12413
12572
  query_params = opts[:query_params] || {}
12414
12573
 
@@ -12493,7 +12652,8 @@ module XeroRuby
12493
12652
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
12494
12653
 
12495
12654
  # 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?
12655
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12656
+
12497
12657
  # query parameters
12498
12658
  query_params = opts[:query_params] || {}
12499
12659
 
@@ -12579,7 +12739,8 @@ module XeroRuby
12579
12739
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
12580
12740
 
12581
12741
  # 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?
12742
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12743
+
12583
12744
  # query parameters
12584
12745
  query_params = opts[:query_params] || {}
12585
12746
 
@@ -12653,7 +12814,8 @@ module XeroRuby
12653
12814
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
12654
12815
 
12655
12816
  # 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?
12817
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12818
+
12657
12819
  # query parameters
12658
12820
  query_params = opts[:query_params] || {}
12659
12821
 
@@ -12726,7 +12888,8 @@ module XeroRuby
12726
12888
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
12727
12889
 
12728
12890
  # 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?
12891
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12892
+
12730
12893
  # query parameters
12731
12894
  query_params = opts[:query_params] || {}
12732
12895
 
@@ -12797,7 +12960,8 @@ module XeroRuby
12797
12960
  local_var_path = '/RepeatingInvoices'
12798
12961
 
12799
12962
  # 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?
12963
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
12964
+
12801
12965
  # query parameters
12802
12966
  query_params = opts[:query_params] || {}
12803
12967
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -12878,7 +13042,8 @@ module XeroRuby
12878
13042
  local_var_path = '/Reports/AgedPayablesByContact'
12879
13043
 
12880
13044
  # 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?
13045
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13046
+
12882
13047
  # query parameters
12883
13048
  query_params = opts[:query_params] || {}
12884
13049
  query_params[:'contactId'] = contact_id
@@ -12961,7 +13126,8 @@ module XeroRuby
12961
13126
  local_var_path = '/Reports/AgedReceivablesByContact'
12962
13127
 
12963
13128
  # 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?
13129
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13130
+
12965
13131
  # query parameters
12966
13132
  query_params = opts[:query_params] || {}
12967
13133
  query_params[:'contactId'] = contact_id
@@ -13038,7 +13204,8 @@ module XeroRuby
13038
13204
  local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', report_id.to_s)
13039
13205
 
13040
13206
  # 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?
13207
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13208
+
13042
13209
  # query parameters
13043
13210
  query_params = opts[:query_params] || {}
13044
13211
 
@@ -13105,7 +13272,8 @@ module XeroRuby
13105
13272
  local_var_path = '/Reports'
13106
13273
 
13107
13274
  # 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?
13275
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13276
+
13109
13277
  # query parameters
13110
13278
  query_params = opts[:query_params] || {}
13111
13279
 
@@ -13190,7 +13358,8 @@ module XeroRuby
13190
13358
  local_var_path = '/Reports/BalanceSheet'
13191
13359
 
13192
13360
  # 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?
13361
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13362
+
13194
13363
  # query parameters
13195
13364
  query_params = opts[:query_params] || {}
13196
13365
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -13268,7 +13437,8 @@ module XeroRuby
13268
13437
  local_var_path = '/Reports/BankSummary'
13269
13438
 
13270
13439
  # 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?
13440
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13441
+
13272
13442
  # query parameters
13273
13443
  query_params = opts[:query_params] || {}
13274
13444
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
@@ -13343,7 +13513,8 @@ module XeroRuby
13343
13513
  local_var_path = '/Reports/BudgetSummary'
13344
13514
 
13345
13515
  # 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?
13516
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13517
+
13347
13518
  # query parameters
13348
13519
  query_params = opts[:query_params] || {}
13349
13520
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -13415,7 +13586,8 @@ module XeroRuby
13415
13586
  local_var_path = '/Reports/ExecutiveSummary'
13416
13587
 
13417
13588
  # 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?
13589
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13590
+
13419
13591
  # query parameters
13420
13592
  query_params = opts[:query_params] || {}
13421
13593
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -13507,7 +13679,8 @@ module XeroRuby
13507
13679
  local_var_path = '/Reports/ProfitAndLoss'
13508
13680
 
13509
13681
  # 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?
13682
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13683
+
13511
13684
  # query parameters
13512
13685
  query_params = opts[:query_params] || {}
13513
13686
  query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
@@ -13586,7 +13759,8 @@ module XeroRuby
13586
13759
  local_var_path = '/Reports/TenNinetyNine'
13587
13760
 
13588
13761
  # 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?
13762
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13763
+
13590
13764
  # query parameters
13591
13765
  query_params = opts[:query_params] || {}
13592
13766
  query_params[:'reportYear'] = opts[:'report_year'] if !opts[:'report_year'].nil?
@@ -13658,7 +13832,8 @@ module XeroRuby
13658
13832
  local_var_path = '/Reports/TrialBalance'
13659
13833
 
13660
13834
  # 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?
13835
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13836
+
13662
13837
  # query parameters
13663
13838
  query_params = opts[:query_params] || {}
13664
13839
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
@@ -13733,7 +13908,8 @@ module XeroRuby
13733
13908
  local_var_path = '/TaxRates'
13734
13909
 
13735
13910
  # 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?
13911
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13912
+
13737
13913
  # query parameters
13738
13914
  query_params = opts[:query_params] || {}
13739
13915
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -13809,7 +13985,8 @@ module XeroRuby
13809
13985
  local_var_path = '/TrackingCategories'
13810
13986
 
13811
13987
  # 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?
13988
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13989
+
13813
13990
  # query parameters
13814
13991
  query_params = opts[:query_params] || {}
13815
13992
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -13885,7 +14062,8 @@ module XeroRuby
13885
14062
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
13886
14063
 
13887
14064
  # 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?
14065
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14066
+
13889
14067
  # query parameters
13890
14068
  query_params = opts[:query_params] || {}
13891
14069
 
@@ -13958,7 +14136,8 @@ module XeroRuby
13958
14136
  local_var_path = '/Users/{UserID}'.sub('{' + 'UserID' + '}', user_id.to_s)
13959
14137
 
13960
14138
  # 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?
14139
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14140
+
13962
14141
  # query parameters
13963
14142
  query_params = opts[:query_params] || {}
13964
14143
 
@@ -14031,7 +14210,8 @@ module XeroRuby
14031
14210
  local_var_path = '/Users'
14032
14211
 
14033
14212
  # 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?
14213
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14214
+
14035
14215
  # query parameters
14036
14216
  query_params = opts[:query_params] || {}
14037
14217
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
@@ -14113,7 +14293,8 @@ module XeroRuby
14113
14293
  local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s)
14114
14294
 
14115
14295
  # 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?
14296
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14297
+
14117
14298
  # query parameters
14118
14299
  query_params = opts[:query_params] || {}
14119
14300
 
@@ -14200,7 +14381,8 @@ module XeroRuby
14200
14381
  local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14201
14382
 
14202
14383
  # 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?
14384
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14385
+
14204
14386
  # query parameters
14205
14387
  query_params = opts[:query_params] || {}
14206
14388
 
@@ -14283,7 +14465,8 @@ module XeroRuby
14283
14465
  local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s)
14284
14466
 
14285
14467
  # 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?
14468
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14469
+
14287
14470
  # query parameters
14288
14471
  query_params = opts[:query_params] || {}
14289
14472
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -14371,7 +14554,8 @@ module XeroRuby
14371
14554
  local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14372
14555
 
14373
14556
  # 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?
14557
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14558
+
14375
14559
  # query parameters
14376
14560
  query_params = opts[:query_params] || {}
14377
14561
 
@@ -14456,7 +14640,8 @@ module XeroRuby
14456
14640
  local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14457
14641
 
14458
14642
  # 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?
14643
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14644
+
14460
14645
  # query parameters
14461
14646
  query_params = opts[:query_params] || {}
14462
14647
 
@@ -14535,7 +14720,8 @@ module XeroRuby
14535
14720
  local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s)
14536
14721
 
14537
14722
  # 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?
14723
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14724
+
14539
14725
  # query parameters
14540
14726
  query_params = opts[:query_params] || {}
14541
14727
 
@@ -14620,7 +14806,8 @@ module XeroRuby
14620
14806
  local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14621
14807
 
14622
14808
  # 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?
14809
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14810
+
14624
14811
  # query parameters
14625
14812
  query_params = opts[:query_params] || {}
14626
14813
 
@@ -14701,7 +14888,8 @@ module XeroRuby
14701
14888
  local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s)
14702
14889
 
14703
14890
  # 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?
14891
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14892
+
14705
14893
  # query parameters
14706
14894
  query_params = opts[:query_params] || {}
14707
14895
 
@@ -14784,7 +14972,8 @@ module XeroRuby
14784
14972
  local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s)
14785
14973
 
14786
14974
  # 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?
14975
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14976
+
14788
14977
  # query parameters
14789
14978
  query_params = opts[:query_params] || {}
14790
14979
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -14872,7 +15061,8 @@ module XeroRuby
14872
15061
  local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
14873
15062
 
14874
15063
  # 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?
15064
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15065
+
14876
15066
  # query parameters
14877
15067
  query_params = opts[:query_params] || {}
14878
15068
 
@@ -14953,7 +15143,8 @@ module XeroRuby
14953
15143
  local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s)
14954
15144
 
14955
15145
  # 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?
15146
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15147
+
14957
15148
  # query parameters
14958
15149
  query_params = opts[:query_params] || {}
14959
15150
 
@@ -15036,7 +15227,8 @@ module XeroRuby
15036
15227
  local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
15037
15228
 
15038
15229
  # 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?
15230
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15231
+
15040
15232
  # query parameters
15041
15233
  query_params = opts[:query_params] || {}
15042
15234
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -15124,7 +15316,8 @@ module XeroRuby
15124
15316
  local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
15125
15317
 
15126
15318
  # 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?
15319
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15320
+
15128
15321
  # query parameters
15129
15322
  query_params = opts[:query_params] || {}
15130
15323
 
@@ -15207,7 +15400,8 @@ module XeroRuby
15207
15400
  local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s)
15208
15401
 
15209
15402
  # 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?
15403
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15404
+
15211
15405
  # query parameters
15212
15406
  query_params = opts[:query_params] || {}
15213
15407
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -15289,7 +15483,8 @@ module XeroRuby
15289
15483
  local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s)
15290
15484
 
15291
15485
  # 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?
15486
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15487
+
15293
15488
  # query parameters
15294
15489
  query_params = opts[:query_params] || {}
15295
15490
 
@@ -15370,7 +15565,8 @@ module XeroRuby
15370
15565
  local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
15371
15566
 
15372
15567
  # 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?
15568
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15569
+
15374
15570
  # query parameters
15375
15571
  query_params = opts[:query_params] || {}
15376
15572
 
@@ -15457,7 +15653,8 @@ module XeroRuby
15457
15653
  local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
15458
15654
 
15459
15655
  # 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?
15656
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15657
+
15461
15658
  # query parameters
15462
15659
  query_params = opts[:query_params] || {}
15463
15660
 
@@ -15536,7 +15733,8 @@ module XeroRuby
15536
15733
  local_var_path = '/BankTransactions'
15537
15734
 
15538
15735
  # 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?
15736
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15737
+
15540
15738
  # query parameters
15541
15739
  query_params = opts[:query_params] || {}
15542
15740
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15615,7 +15813,8 @@ module XeroRuby
15615
15813
  local_var_path = '/Contacts'
15616
15814
 
15617
15815
  # 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?
15816
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15817
+
15619
15818
  # query parameters
15620
15819
  query_params = opts[:query_params] || {}
15621
15820
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15695,7 +15894,8 @@ module XeroRuby
15695
15894
  local_var_path = '/CreditNotes'
15696
15895
 
15697
15896
  # 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?
15897
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15898
+
15699
15899
  # query parameters
15700
15900
  query_params = opts[:query_params] || {}
15701
15901
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15774,7 +15974,8 @@ module XeroRuby
15774
15974
  local_var_path = '/Employees'
15775
15975
 
15776
15976
  # 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?
15977
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15978
+
15778
15979
  # query parameters
15779
15980
  query_params = opts[:query_params] || {}
15780
15981
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15854,7 +16055,8 @@ module XeroRuby
15854
16055
  local_var_path = '/Invoices'
15855
16056
 
15856
16057
  # 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?
16058
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16059
+
15858
16060
  # query parameters
15859
16061
  query_params = opts[:query_params] || {}
15860
16062
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -15935,7 +16137,8 @@ module XeroRuby
15935
16137
  local_var_path = '/Items'
15936
16138
 
15937
16139
  # 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?
16140
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16141
+
15939
16142
  # query parameters
15940
16143
  query_params = opts[:query_params] || {}
15941
16144
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -16014,7 +16217,8 @@ module XeroRuby
16014
16217
  local_var_path = '/ManualJournals'
16015
16218
 
16016
16219
  # 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?
16220
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16221
+
16018
16222
  # query parameters
16019
16223
  query_params = opts[:query_params] || {}
16020
16224
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -16092,7 +16296,8 @@ module XeroRuby
16092
16296
  local_var_path = '/PurchaseOrders'
16093
16297
 
16094
16298
  # 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?
16299
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16300
+
16096
16301
  # query parameters
16097
16302
  query_params = opts[:query_params] || {}
16098
16303
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -16170,7 +16375,8 @@ module XeroRuby
16170
16375
  local_var_path = '/Quotes'
16171
16376
 
16172
16377
  # 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?
16378
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16379
+
16174
16380
  # query parameters
16175
16381
  query_params = opts[:query_params] || {}
16176
16382
  query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
@@ -16252,7 +16458,8 @@ module XeroRuby
16252
16458
  local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
16253
16459
 
16254
16460
  # 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?
16461
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16462
+
16256
16463
  # query parameters
16257
16464
  query_params = opts[:query_params] || {}
16258
16465
 
@@ -16333,7 +16540,8 @@ module XeroRuby
16333
16540
  local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s)
16334
16541
 
16335
16542
  # 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?
16543
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16544
+
16337
16545
  # query parameters
16338
16546
  query_params = opts[:query_params] || {}
16339
16547
 
@@ -16420,7 +16628,8 @@ module XeroRuby
16420
16628
  local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
16421
16629
 
16422
16630
  # 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?
16631
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16632
+
16424
16633
  # query parameters
16425
16634
  query_params = opts[:query_params] || {}
16426
16635
 
@@ -16503,7 +16712,8 @@ module XeroRuby
16503
16712
  local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s)
16504
16713
 
16505
16714
  # 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?
16715
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16716
+
16507
16717
  # query parameters
16508
16718
  query_params = opts[:query_params] || {}
16509
16719
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
@@ -16591,7 +16801,8 @@ module XeroRuby
16591
16801
  local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
16592
16802
 
16593
16803
  # 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?
16804
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16805
+
16595
16806
  # query parameters
16596
16807
  query_params = opts[:query_params] || {}
16597
16808
 
@@ -16678,7 +16889,8 @@ module XeroRuby
16678
16889
  local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
16679
16890
 
16680
16891
  # 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?
16892
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16893
+
16682
16894
  # query parameters
16683
16895
  query_params = opts[:query_params] || {}
16684
16896
 
@@ -16753,7 +16965,8 @@ module XeroRuby
16753
16965
  local_var_path = '/TaxRates'
16754
16966
 
16755
16967
  # 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?
16968
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
16969
+
16757
16970
  # query parameters
16758
16971
  query_params = opts[:query_params] || {}
16759
16972
 
@@ -16834,7 +17047,8 @@ module XeroRuby
16834
17047
  local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s)
16835
17048
 
16836
17049
  # 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?
17050
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
17051
+
16838
17052
  # query parameters
16839
17053
  query_params = opts[:query_params] || {}
16840
17054
 
@@ -16921,7 +17135,8 @@ module XeroRuby
16921
17135
  local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s)
16922
17136
 
16923
17137
  # 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?
17138
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
17139
+
16925
17140
  # query parameters
16926
17141
  query_params = opts[:query_params] || {}
16927
17142