xero-ruby 3.9.0 → 3.12.0

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: 9da0e17f450205612e5090cdb258485529efa412eadc1ead5c564050d68b51d9
4
- data.tar.gz: f06c54f4fd72e7dd1281a6960beb82969899d9015f2e14cf737018596199cb73
3
+ metadata.gz: eca22a65d6cd11bc3848d37259562279cb05874c8eb659acea215a5e72f3fb88
4
+ data.tar.gz: 13e577c274b99dd0ef74b33e648e821f8b5d9bdfe6c7550ffe4585ba282de3fa
5
5
  SHA512:
6
- metadata.gz: 602762907bb324d2a7f308418f3789602e077d32621b5329e3d4a83154524b0981b1876f99a655cb978b40514cfcc63fd63509e5117af567c097c4affd38655e
7
- data.tar.gz: fbaddb461ba6b3db40c906e6195012b591e076ee2dc7248d4501621e4fa5dbb3c9cefa134317a4f76d3218d909ce7a302bdcaa9449fd970cc7d43d98356c08a8
6
+ metadata.gz: 19a28bc6110af2ea9a80a5099b932bcd08109832d05e4938636c63c5bb6d45e5d63a7e8d4ec54a335b4283d43a887c87a5d9cf4acc63807c5558abee14a5bf87
7
+ data.tar.gz: 92d5d4b03239e8ca5739057d353ee7fb5f9b46d1f81d5a28ffb0824ebd34909c604ffb71fdb6387739ecd5af1b44fc54304a87a3d171c864cab1f3f0fcf1451a
@@ -4337,6 +4337,86 @@ module XeroRuby
4337
4337
  return data, status_code, headers
4338
4338
  end
4339
4339
 
4340
+ # Creates one or more repeating invoice templates
4341
+ # @param xero_tenant_id [String] Xero identifier for Tenant
4342
+ # @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
4343
+ # @param [Hash] opts the optional parameters
4344
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
4345
+ # @return [RepeatingInvoices]
4346
+ def create_repeating_invoices(xero_tenant_id, repeating_invoices, opts = {})
4347
+ data, _status_code, _headers = create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, opts)
4348
+ data
4349
+ end
4350
+
4351
+ # Creates one or more repeating invoice templates
4352
+ # @param xero_tenant_id [String] Xero identifier for Tenant
4353
+ # @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
4354
+ # @param [Hash] opts the optional parameters
4355
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
4356
+ # @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
4357
+ def create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, options = {})
4358
+ opts = options.dup
4359
+ if @api_client.config.debugging
4360
+ @api_client.config.logger.debug 'Calling API: AccountingApi.create_repeating_invoices ...'
4361
+ end
4362
+ # verify the required parameter 'xero_tenant_id' is set
4363
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
4364
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_repeating_invoices"
4365
+ end
4366
+ # verify the required parameter 'repeating_invoices' is set
4367
+ if @api_client.config.client_side_validation && repeating_invoices.nil?
4368
+ fail ArgumentError, "Missing the required parameter 'repeating_invoices' when calling AccountingApi.create_repeating_invoices"
4369
+ end
4370
+ # resource path
4371
+ local_var_path = '/RepeatingInvoices'
4372
+
4373
+ # camelize keys of incoming `where` opts
4374
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4375
+
4376
+ # query parameters
4377
+ query_params = opts[:query_params] || {}
4378
+ query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
4379
+
4380
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4381
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4382
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4383
+
4384
+ # header parameters
4385
+ header_params = opts[:header_params] || {}
4386
+ # HTTP header 'Accept' (if needed)
4387
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4388
+ # HTTP header 'Content-Type'
4389
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4390
+ header_params[:'xero-tenant-id'] = xero_tenant_id
4391
+
4392
+ # form parameters
4393
+ form_params = opts[:form_params] || {}
4394
+
4395
+ # http body (model)
4396
+ post_body = opts[:body] || @api_client.object_to_http_body(repeating_invoices)
4397
+
4398
+ # return_type
4399
+ return_type = opts[:return_type] || 'RepeatingInvoices'
4400
+
4401
+ # auth_names
4402
+ auth_names = opts[:auth_names] || ['OAuth2']
4403
+
4404
+ new_options = opts.merge(
4405
+ :header_params => header_params,
4406
+ :query_params => query_params,
4407
+ :form_params => form_params,
4408
+ :body => post_body,
4409
+ :auth_names => auth_names,
4410
+ :return_type => return_type
4411
+ )
4412
+
4413
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
4414
+ if @api_client.config.debugging
4415
+ @api_client.config.logger.debug "API called: AccountingApi#create_repeating_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4416
+ end
4417
+ return data, status_code, headers
4418
+ end
4419
+
4340
4420
  # Creates one or more tax rates
4341
4421
  # @param xero_tenant_id [String] Xero identifier for Tenant
4342
4422
  # @param tax_rates [TaxRates] TaxRates array with TaxRate object in body of request
@@ -4649,6 +4729,166 @@ module XeroRuby
4649
4729
  return data, status_code, headers
4650
4730
  end
4651
4731
 
4732
+ # Updates a specific batch payment for invoices and credit notes
4733
+ # @param xero_tenant_id [String] Xero identifier for Tenant
4734
+ # @param batch_payment_delete [BatchPaymentDelete]
4735
+ # @param [Hash] opts the optional parameters
4736
+ # @return [BatchPayments]
4737
+ def delete_batch_payment(xero_tenant_id, batch_payment_delete, opts = {})
4738
+ data, _status_code, _headers = delete_batch_payment_with_http_info(xero_tenant_id, batch_payment_delete, opts)
4739
+ data
4740
+ end
4741
+
4742
+ # Updates a specific batch payment for invoices and credit notes
4743
+ # @param xero_tenant_id [String] Xero identifier for Tenant
4744
+ # @param batch_payment_delete [BatchPaymentDelete]
4745
+ # @param [Hash] opts the optional parameters
4746
+ # @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
4747
+ def delete_batch_payment_with_http_info(xero_tenant_id, batch_payment_delete, options = {})
4748
+ opts = options.dup
4749
+ if @api_client.config.debugging
4750
+ @api_client.config.logger.debug 'Calling API: AccountingApi.delete_batch_payment ...'
4751
+ end
4752
+ # verify the required parameter 'xero_tenant_id' is set
4753
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
4754
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.delete_batch_payment"
4755
+ end
4756
+ # verify the required parameter 'batch_payment_delete' is set
4757
+ if @api_client.config.client_side_validation && batch_payment_delete.nil?
4758
+ fail ArgumentError, "Missing the required parameter 'batch_payment_delete' when calling AccountingApi.delete_batch_payment"
4759
+ end
4760
+ # resource path
4761
+ local_var_path = '/BatchPayments'
4762
+
4763
+ # camelize keys of incoming `where` opts
4764
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4765
+
4766
+ # query parameters
4767
+ query_params = opts[:query_params] || {}
4768
+
4769
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4770
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4771
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4772
+
4773
+ # header parameters
4774
+ header_params = opts[:header_params] || {}
4775
+ # HTTP header 'Accept' (if needed)
4776
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4777
+ # HTTP header 'Content-Type'
4778
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4779
+ header_params[:'xero-tenant-id'] = xero_tenant_id
4780
+
4781
+ # form parameters
4782
+ form_params = opts[:form_params] || {}
4783
+
4784
+ # http body (model)
4785
+ post_body = opts[:body] || @api_client.object_to_http_body(batch_payment_delete)
4786
+
4787
+ # return_type
4788
+ return_type = opts[:return_type] || 'BatchPayments'
4789
+
4790
+ # auth_names
4791
+ auth_names = opts[:auth_names] || ['OAuth2']
4792
+
4793
+ new_options = opts.merge(
4794
+ :header_params => header_params,
4795
+ :query_params => query_params,
4796
+ :form_params => form_params,
4797
+ :body => post_body,
4798
+ :auth_names => auth_names,
4799
+ :return_type => return_type
4800
+ )
4801
+
4802
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
4803
+ if @api_client.config.debugging
4804
+ @api_client.config.logger.debug "API called: AccountingApi#delete_batch_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4805
+ end
4806
+ return data, status_code, headers
4807
+ end
4808
+
4809
+ # Updates a specific batch payment for invoices and credit notes
4810
+ # @param xero_tenant_id [String] Xero identifier for Tenant
4811
+ # @param batch_payment_id [String] Unique identifier for BatchPayment
4812
+ # @param batch_payment_delete_by_url_param [BatchPaymentDeleteByUrlParam]
4813
+ # @param [Hash] opts the optional parameters
4814
+ # @return [BatchPayments]
4815
+ def delete_batch_payment_by_url_param(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, opts = {})
4816
+ data, _status_code, _headers = delete_batch_payment_by_url_param_with_http_info(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, opts)
4817
+ data
4818
+ end
4819
+
4820
+ # Updates a specific batch payment for invoices and credit notes
4821
+ # @param xero_tenant_id [String] Xero identifier for Tenant
4822
+ # @param batch_payment_id [String] Unique identifier for BatchPayment
4823
+ # @param batch_payment_delete_by_url_param [BatchPaymentDeleteByUrlParam]
4824
+ # @param [Hash] opts the optional parameters
4825
+ # @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
4826
+ def delete_batch_payment_by_url_param_with_http_info(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, options = {})
4827
+ opts = options.dup
4828
+ if @api_client.config.debugging
4829
+ @api_client.config.logger.debug 'Calling API: AccountingApi.delete_batch_payment_by_url_param ...'
4830
+ end
4831
+ # verify the required parameter 'xero_tenant_id' is set
4832
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
4833
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.delete_batch_payment_by_url_param"
4834
+ end
4835
+ # verify the required parameter 'batch_payment_id' is set
4836
+ if @api_client.config.client_side_validation && batch_payment_id.nil?
4837
+ fail ArgumentError, "Missing the required parameter 'batch_payment_id' when calling AccountingApi.delete_batch_payment_by_url_param"
4838
+ end
4839
+ # verify the required parameter 'batch_payment_delete_by_url_param' is set
4840
+ if @api_client.config.client_side_validation && batch_payment_delete_by_url_param.nil?
4841
+ fail ArgumentError, "Missing the required parameter 'batch_payment_delete_by_url_param' when calling AccountingApi.delete_batch_payment_by_url_param"
4842
+ end
4843
+ # resource path
4844
+ local_var_path = '/BatchPayments/{BatchPaymentID}'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s)
4845
+
4846
+ # camelize keys of incoming `where` opts
4847
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
4848
+
4849
+ # query parameters
4850
+ query_params = opts[:query_params] || {}
4851
+
4852
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
4853
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
4854
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
4855
+
4856
+ # header parameters
4857
+ header_params = opts[:header_params] || {}
4858
+ # HTTP header 'Accept' (if needed)
4859
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4860
+ # HTTP header 'Content-Type'
4861
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4862
+ header_params[:'xero-tenant-id'] = xero_tenant_id
4863
+
4864
+ # form parameters
4865
+ form_params = opts[:form_params] || {}
4866
+
4867
+ # http body (model)
4868
+ post_body = opts[:body] || @api_client.object_to_http_body(batch_payment_delete_by_url_param)
4869
+
4870
+ # return_type
4871
+ return_type = opts[:return_type] || 'BatchPayments'
4872
+
4873
+ # auth_names
4874
+ auth_names = opts[:auth_names] || ['OAuth2']
4875
+
4876
+ new_options = opts.merge(
4877
+ :header_params => header_params,
4878
+ :query_params => query_params,
4879
+ :form_params => form_params,
4880
+ :body => post_body,
4881
+ :auth_names => auth_names,
4882
+ :return_type => return_type
4883
+ )
4884
+
4885
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
4886
+ if @api_client.config.debugging
4887
+ @api_client.config.logger.debug "API called: AccountingApi#delete_batch_payment_by_url_param\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4888
+ end
4889
+ return data, status_code, headers
4890
+ end
4891
+
4652
4892
  # Deletes a specific contact from a contact group using a unique contact Id
4653
4893
  # @param xero_tenant_id [String] Xero identifier for Tenant
4654
4894
  # @param contact_group_id [String] Unique identifier for a Contact Group
@@ -17520,6 +17760,86 @@ module XeroRuby
17520
17760
  return data, status_code, headers
17521
17761
  end
17522
17762
 
17763
+ # Creates or deletes one or more repeating invoice templates
17764
+ # @param xero_tenant_id [String] Xero identifier for Tenant
17765
+ # @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
17766
+ # @param [Hash] opts the optional parameters
17767
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
17768
+ # @return [RepeatingInvoices]
17769
+ def update_or_create_repeating_invoices(xero_tenant_id, repeating_invoices, opts = {})
17770
+ data, _status_code, _headers = update_or_create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, opts)
17771
+ data
17772
+ end
17773
+
17774
+ # Creates or deletes one or more repeating invoice templates
17775
+ # @param xero_tenant_id [String] Xero identifier for Tenant
17776
+ # @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
17777
+ # @param [Hash] opts the optional parameters
17778
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
17779
+ # @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
17780
+ def update_or_create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, options = {})
17781
+ opts = options.dup
17782
+ if @api_client.config.debugging
17783
+ @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_repeating_invoices ...'
17784
+ end
17785
+ # verify the required parameter 'xero_tenant_id' is set
17786
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
17787
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.update_or_create_repeating_invoices"
17788
+ end
17789
+ # verify the required parameter 'repeating_invoices' is set
17790
+ if @api_client.config.client_side_validation && repeating_invoices.nil?
17791
+ fail ArgumentError, "Missing the required parameter 'repeating_invoices' when calling AccountingApi.update_or_create_repeating_invoices"
17792
+ end
17793
+ # resource path
17794
+ local_var_path = '/RepeatingInvoices'
17795
+
17796
+ # camelize keys of incoming `where` opts
17797
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
17798
+
17799
+ # query parameters
17800
+ query_params = opts[:query_params] || {}
17801
+ query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
17802
+
17803
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
17804
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
17805
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
17806
+
17807
+ # header parameters
17808
+ header_params = opts[:header_params] || {}
17809
+ # HTTP header 'Accept' (if needed)
17810
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
17811
+ # HTTP header 'Content-Type'
17812
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
17813
+ header_params[:'xero-tenant-id'] = xero_tenant_id
17814
+
17815
+ # form parameters
17816
+ form_params = opts[:form_params] || {}
17817
+
17818
+ # http body (model)
17819
+ post_body = opts[:body] || @api_client.object_to_http_body(repeating_invoices)
17820
+
17821
+ # return_type
17822
+ return_type = opts[:return_type] || 'RepeatingInvoices'
17823
+
17824
+ # auth_names
17825
+ auth_names = opts[:auth_names] || ['OAuth2']
17826
+
17827
+ new_options = opts.merge(
17828
+ :header_params => header_params,
17829
+ :query_params => query_params,
17830
+ :form_params => form_params,
17831
+ :body => post_body,
17832
+ :auth_names => auth_names,
17833
+ :return_type => return_type
17834
+ )
17835
+
17836
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
17837
+ if @api_client.config.debugging
17838
+ @api_client.config.logger.debug "API called: AccountingApi#update_or_create_repeating_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
17839
+ end
17840
+ return data, status_code, headers
17841
+ end
17842
+
17523
17843
  # Updates a specific purchase order
17524
17844
  # @param xero_tenant_id [String] Xero identifier for Tenant
17525
17845
  # @param purchase_order_id [String] Unique identifier for an Purchase Order
@@ -18039,6 +18359,89 @@ module XeroRuby
18039
18359
  return data, status_code, headers
18040
18360
  end
18041
18361
 
18362
+ # Deletes a specific repeating invoice template
18363
+ # @param xero_tenant_id [String] Xero identifier for Tenant
18364
+ # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
18365
+ # @param repeating_invoices [RepeatingInvoices]
18366
+ # @param [Hash] opts the optional parameters
18367
+ # @return [RepeatingInvoices]
18368
+ def update_repeating_invoice(xero_tenant_id, repeating_invoice_id, repeating_invoices, opts = {})
18369
+ data, _status_code, _headers = update_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, repeating_invoices, opts)
18370
+ data
18371
+ end
18372
+
18373
+ # Deletes a specific repeating invoice template
18374
+ # @param xero_tenant_id [String] Xero identifier for Tenant
18375
+ # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
18376
+ # @param repeating_invoices [RepeatingInvoices]
18377
+ # @param [Hash] opts the optional parameters
18378
+ # @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
18379
+ def update_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, repeating_invoices, options = {})
18380
+ opts = options.dup
18381
+ if @api_client.config.debugging
18382
+ @api_client.config.logger.debug 'Calling API: AccountingApi.update_repeating_invoice ...'
18383
+ end
18384
+ # verify the required parameter 'xero_tenant_id' is set
18385
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
18386
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.update_repeating_invoice"
18387
+ end
18388
+ # verify the required parameter 'repeating_invoice_id' is set
18389
+ if @api_client.config.client_side_validation && repeating_invoice_id.nil?
18390
+ fail ArgumentError, "Missing the required parameter 'repeating_invoice_id' when calling AccountingApi.update_repeating_invoice"
18391
+ end
18392
+ # verify the required parameter 'repeating_invoices' is set
18393
+ if @api_client.config.client_side_validation && repeating_invoices.nil?
18394
+ fail ArgumentError, "Missing the required parameter 'repeating_invoices' when calling AccountingApi.update_repeating_invoice"
18395
+ end
18396
+ # resource path
18397
+ local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s)
18398
+
18399
+ # camelize keys of incoming `where` opts
18400
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
18401
+
18402
+ # query parameters
18403
+ query_params = opts[:query_params] || {}
18404
+
18405
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
18406
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
18407
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
18408
+
18409
+ # header parameters
18410
+ header_params = opts[:header_params] || {}
18411
+ # HTTP header 'Accept' (if needed)
18412
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
18413
+ # HTTP header 'Content-Type'
18414
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
18415
+ header_params[:'xero-tenant-id'] = xero_tenant_id
18416
+
18417
+ # form parameters
18418
+ form_params = opts[:form_params] || {}
18419
+
18420
+ # http body (model)
18421
+ post_body = opts[:body] || @api_client.object_to_http_body(repeating_invoices)
18422
+
18423
+ # return_type
18424
+ return_type = opts[:return_type] || 'RepeatingInvoices'
18425
+
18426
+ # auth_names
18427
+ auth_names = opts[:auth_names] || ['OAuth2']
18428
+
18429
+ new_options = opts.merge(
18430
+ :header_params => header_params,
18431
+ :query_params => query_params,
18432
+ :form_params => form_params,
18433
+ :body => post_body,
18434
+ :auth_names => auth_names,
18435
+ :return_type => return_type
18436
+ )
18437
+
18438
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
18439
+ if @api_client.config.debugging
18440
+ @api_client.config.logger.debug "API called: AccountingApi#update_repeating_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
18441
+ end
18442
+ return data, status_code, headers
18443
+ end
18444
+
18042
18445
  # Updates a specific attachment from a specific repeating invoices by file name
18043
18446
  # @param xero_tenant_id [String] Xero identifier for Tenant
18044
18447
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice