xero-ruby 3.8.0 → 3.11.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: 64ea98826b9c024df40c0e3db6390722313e610c19b74a32f9200aa032fa8de9
4
- data.tar.gz: 2b8d8f8fe9bd8909d3ea64f814763787752313ef3b224218f4e373af5bf13a7d
3
+ metadata.gz: c835eed40b43d98cc3e443b861d03ec03f67c659611c36beb8ae66f3115454fb
4
+ data.tar.gz: b06d56f98ee5cbc136c3971d3db74e5c1c6347a83fb89825479d62befbb190c2
5
5
  SHA512:
6
- metadata.gz: acf352b5dc0ab2bc6fe5de48b1ad0fdac7e90ecf1828f9a1184d93b4663f4a5c67b32085430471c4264fbbea98e2015ef30414da5324b5b522df84dde10ed5bc
7
- data.tar.gz: b41a5a3cfd6cd0086991173efc0430c8b5d53e9776f0636400b1d53411f006e722b8f0c2bf903b3a4f0f487a3583fbdfe0d9d79cbeb18f387d18cefac64ddc69
6
+ metadata.gz: 19758f8f9a2afff93de80d10afda49fca73c5c1af5914f66aa561878b4504c9bb5805db7cfc45331eaa2441e1b054bc957bd448cf033638c9ae258295a6564ea
7
+ data.tar.gz: a4dc1ff1dfe44f34035e3a506acdd22b20e9d22dc919b0379b7e07a10449c3c44c80f3b8f91d56a3a5827e45032125b368c144874999f59d2cc630edf9f2daa4
@@ -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
@@ -9952,6 +10192,81 @@ module XeroRuby
9952
10192
  return data, status_code, headers
9953
10193
  end
9954
10194
 
10195
+ # Retrieves a specific journal using a unique journal number.
10196
+ # @param xero_tenant_id [String] Xero identifier for Tenant
10197
+ # @param journal_number [Integer] Number of a Journal
10198
+ # @param [Hash] opts the optional parameters
10199
+ # @return [Journals]
10200
+ def get_journal_by_number(xero_tenant_id, journal_number, opts = {})
10201
+ data, _status_code, _headers = get_journal_by_number_with_http_info(xero_tenant_id, journal_number, opts)
10202
+ data
10203
+ end
10204
+
10205
+ # Retrieves a specific journal using a unique journal number.
10206
+ # @param xero_tenant_id [String] Xero identifier for Tenant
10207
+ # @param journal_number [Integer] Number of a Journal
10208
+ # @param [Hash] opts the optional parameters
10209
+ # @return [Array<(Journals, Integer, Hash)>] Journals data, response status code and response headers
10210
+ def get_journal_by_number_with_http_info(xero_tenant_id, journal_number, options = {})
10211
+ opts = options.dup
10212
+ if @api_client.config.debugging
10213
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_journal_by_number ...'
10214
+ end
10215
+ # verify the required parameter 'xero_tenant_id' is set
10216
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
10217
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_journal_by_number"
10218
+ end
10219
+ # verify the required parameter 'journal_number' is set
10220
+ if @api_client.config.client_side_validation && journal_number.nil?
10221
+ fail ArgumentError, "Missing the required parameter 'journal_number' when calling AccountingApi.get_journal_by_number"
10222
+ end
10223
+ # resource path
10224
+ local_var_path = '/Journals/{JournalNumber}'.sub('{' + 'JournalNumber' + '}', journal_number.to_s)
10225
+
10226
+ # camelize keys of incoming `where` opts
10227
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10228
+
10229
+ # query parameters
10230
+ query_params = opts[:query_params] || {}
10231
+
10232
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10233
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10234
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10235
+
10236
+ # header parameters
10237
+ header_params = opts[:header_params] || {}
10238
+ # HTTP header 'Accept' (if needed)
10239
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10240
+ header_params[:'xero-tenant-id'] = xero_tenant_id
10241
+
10242
+ # form parameters
10243
+ form_params = opts[:form_params] || {}
10244
+
10245
+ # http body (model)
10246
+ post_body = opts[:body]
10247
+
10248
+ # return_type
10249
+ return_type = opts[:return_type] || 'Journals'
10250
+
10251
+ # auth_names
10252
+ auth_names = opts[:auth_names] || ['OAuth2']
10253
+
10254
+ new_options = opts.merge(
10255
+ :header_params => header_params,
10256
+ :query_params => query_params,
10257
+ :form_params => form_params,
10258
+ :body => post_body,
10259
+ :auth_names => auth_names,
10260
+ :return_type => return_type
10261
+ )
10262
+
10263
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10264
+ if @api_client.config.debugging
10265
+ @api_client.config.logger.debug "API called: AccountingApi#get_journal_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10266
+ end
10267
+ return data, status_code, headers
10268
+ end
10269
+
9955
10270
  # Retrieves journals
9956
10271
  # @param xero_tenant_id [String] Xero identifier for Tenant
9957
10272
  # @param [Hash] opts the optional parameters
@@ -17445,6 +17760,86 @@ module XeroRuby
17445
17760
  return data, status_code, headers
17446
17761
  end
17447
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
+
17448
17843
  # Updates a specific purchase order
17449
17844
  # @param xero_tenant_id [String] Xero identifier for Tenant
17450
17845
  # @param purchase_order_id [String] Unique identifier for an Purchase Order
@@ -17964,6 +18359,89 @@ module XeroRuby
17964
18359
  return data, status_code, headers
17965
18360
  end
17966
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
+
17967
18445
  # Updates a specific attachment from a specific repeating invoices by file name
17968
18446
  # @param xero_tenant_id [String] Xero identifier for Tenant
17969
18447
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice