xero-ruby 14.0.1 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 153488f4930b998d4c1a08730ef200c0ad4505e1008339721c0db6e610730cd9
|
|
4
|
+
data.tar.gz: 7b12383c909f2a2a65951d260a7cd5c9c69d7d7acf6947a00a9d55c6f9dabe5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1876df2bacfc261170d43650adf180b90e92ffa590afaf7eabe75c796bbbef0d62171d49e61c8180b39773e26f5306117e288c4a8f133957d927e0ebfee7d6c4
|
|
7
|
+
data.tar.gz: d1e5579813f05c8830620f0ee46f64111a4e8c1bc36efb076866b78762dff7ad722aa05f019d80409d847cc37fc31f5947148a3df72e79e9b67fbcc194674814
|
|
@@ -1824,91 +1824,6 @@ module XeroRuby
|
|
|
1824
1824
|
return data, status_code, headers
|
|
1825
1825
|
end
|
|
1826
1826
|
|
|
1827
|
-
# Creates new employees used in Xero payrun
|
|
1828
|
-
# This endpoint is deprecated and will be removed April 28, 2026
|
|
1829
|
-
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1830
|
-
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
1831
|
-
# @param [Hash] opts the optional parameters
|
|
1832
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1833
|
-
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1834
|
-
# @return [Employees]
|
|
1835
|
-
def create_employees(xero_tenant_id, employees, opts = {})
|
|
1836
|
-
data, _status_code, _headers = create_employees_with_http_info(xero_tenant_id, employees, opts)
|
|
1837
|
-
data
|
|
1838
|
-
end
|
|
1839
|
-
|
|
1840
|
-
# Creates new employees used in Xero payrun
|
|
1841
|
-
# This endpoint is deprecated and will be removed April 28, 2026
|
|
1842
|
-
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1843
|
-
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
1844
|
-
# @param [Hash] opts the optional parameters
|
|
1845
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1846
|
-
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1847
|
-
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
|
1848
|
-
def create_employees_with_http_info(xero_tenant_id, employees, options = {})
|
|
1849
|
-
opts = options.dup
|
|
1850
|
-
if @api_client.config.debugging
|
|
1851
|
-
@api_client.config.logger.debug 'Calling API: AccountingApi.create_employees ...'
|
|
1852
|
-
end
|
|
1853
|
-
# verify the required parameter 'xero_tenant_id' is set
|
|
1854
|
-
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
1855
|
-
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_employees"
|
|
1856
|
-
end
|
|
1857
|
-
# verify the required parameter 'employees' is set
|
|
1858
|
-
if @api_client.config.client_side_validation && employees.nil?
|
|
1859
|
-
fail ArgumentError, "Missing the required parameter 'employees' when calling AccountingApi.create_employees"
|
|
1860
|
-
end
|
|
1861
|
-
# resource path
|
|
1862
|
-
local_var_path = '/Employees'
|
|
1863
|
-
|
|
1864
|
-
# camelize keys of incoming `where` opts
|
|
1865
|
-
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
1866
|
-
|
|
1867
|
-
# query parameters
|
|
1868
|
-
query_params = opts[:query_params] || {}
|
|
1869
|
-
query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
|
|
1870
|
-
|
|
1871
|
-
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
1872
|
-
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
1873
|
-
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
1874
|
-
|
|
1875
|
-
# header parameters
|
|
1876
|
-
header_params = opts[:header_params] || {}
|
|
1877
|
-
# HTTP header 'Accept' (if needed)
|
|
1878
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1879
|
-
# HTTP header 'Content-Type'
|
|
1880
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1881
|
-
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1882
|
-
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1883
|
-
|
|
1884
|
-
# form parameters
|
|
1885
|
-
form_params = opts[:form_params] || {}
|
|
1886
|
-
|
|
1887
|
-
# http body (model)
|
|
1888
|
-
post_body = opts[:body] || @api_client.object_to_http_body(employees)
|
|
1889
|
-
|
|
1890
|
-
# return_type
|
|
1891
|
-
return_type = opts[:return_type] || 'Employees'
|
|
1892
|
-
|
|
1893
|
-
# auth_names
|
|
1894
|
-
auth_names = opts[:auth_names] || ['OAuth2']
|
|
1895
|
-
|
|
1896
|
-
new_options = opts.merge(
|
|
1897
|
-
:header_params => header_params,
|
|
1898
|
-
:query_params => query_params,
|
|
1899
|
-
:form_params => form_params,
|
|
1900
|
-
:body => post_body,
|
|
1901
|
-
:auth_names => auth_names,
|
|
1902
|
-
:return_type => return_type
|
|
1903
|
-
)
|
|
1904
|
-
|
|
1905
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1906
|
-
if @api_client.config.debugging
|
|
1907
|
-
@api_client.config.logger.debug "API called: AccountingApi#create_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1908
|
-
end
|
|
1909
|
-
return data, status_code, headers
|
|
1910
|
-
end
|
|
1911
|
-
|
|
1912
1827
|
# Creates a history record for a specific expense claim
|
|
1913
1828
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1914
1829
|
# @param expense_claim_id [String] Unique identifier for a ExpenseClaim
|
|
@@ -9358,163 +9273,6 @@ module XeroRuby
|
|
|
9358
9273
|
return data, status_code, headers
|
|
9359
9274
|
end
|
|
9360
9275
|
|
|
9361
|
-
# Retrieves a specific employee used in Xero payrun using a unique employee Id
|
|
9362
|
-
# This endpoint is deprecated and will be removed April 28, 2026
|
|
9363
|
-
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
9364
|
-
# @param employee_id [String] Unique identifier for a Employee
|
|
9365
|
-
# @param [Hash] opts the optional parameters
|
|
9366
|
-
# @return [Employees]
|
|
9367
|
-
def get_employee(xero_tenant_id, employee_id, opts = {})
|
|
9368
|
-
data, _status_code, _headers = get_employee_with_http_info(xero_tenant_id, employee_id, opts)
|
|
9369
|
-
data
|
|
9370
|
-
end
|
|
9371
|
-
|
|
9372
|
-
# Retrieves a specific employee used in Xero payrun using a unique employee Id
|
|
9373
|
-
# This endpoint is deprecated and will be removed April 28, 2026
|
|
9374
|
-
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
9375
|
-
# @param employee_id [String] Unique identifier for a Employee
|
|
9376
|
-
# @param [Hash] opts the optional parameters
|
|
9377
|
-
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
|
9378
|
-
def get_employee_with_http_info(xero_tenant_id, employee_id, options = {})
|
|
9379
|
-
opts = options.dup
|
|
9380
|
-
if @api_client.config.debugging
|
|
9381
|
-
@api_client.config.logger.debug 'Calling API: AccountingApi.get_employee ...'
|
|
9382
|
-
end
|
|
9383
|
-
# verify the required parameter 'xero_tenant_id' is set
|
|
9384
|
-
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
9385
|
-
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_employee"
|
|
9386
|
-
end
|
|
9387
|
-
# verify the required parameter 'employee_id' is set
|
|
9388
|
-
if @api_client.config.client_side_validation && employee_id.nil?
|
|
9389
|
-
fail ArgumentError, "Missing the required parameter 'employee_id' when calling AccountingApi.get_employee"
|
|
9390
|
-
end
|
|
9391
|
-
# resource path
|
|
9392
|
-
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
9393
|
-
|
|
9394
|
-
# camelize keys of incoming `where` opts
|
|
9395
|
-
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
9396
|
-
|
|
9397
|
-
# query parameters
|
|
9398
|
-
query_params = opts[:query_params] || {}
|
|
9399
|
-
|
|
9400
|
-
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
9401
|
-
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
9402
|
-
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
9403
|
-
|
|
9404
|
-
# header parameters
|
|
9405
|
-
header_params = opts[:header_params] || {}
|
|
9406
|
-
# HTTP header 'Accept' (if needed)
|
|
9407
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9408
|
-
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
9409
|
-
|
|
9410
|
-
# form parameters
|
|
9411
|
-
form_params = opts[:form_params] || {}
|
|
9412
|
-
|
|
9413
|
-
# http body (model)
|
|
9414
|
-
post_body = opts[:body]
|
|
9415
|
-
|
|
9416
|
-
# return_type
|
|
9417
|
-
return_type = opts[:return_type] || 'Employees'
|
|
9418
|
-
|
|
9419
|
-
# auth_names
|
|
9420
|
-
auth_names = opts[:auth_names] || ['OAuth2']
|
|
9421
|
-
|
|
9422
|
-
new_options = opts.merge(
|
|
9423
|
-
:header_params => header_params,
|
|
9424
|
-
:query_params => query_params,
|
|
9425
|
-
:form_params => form_params,
|
|
9426
|
-
:body => post_body,
|
|
9427
|
-
:auth_names => auth_names,
|
|
9428
|
-
:return_type => return_type
|
|
9429
|
-
)
|
|
9430
|
-
|
|
9431
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9432
|
-
if @api_client.config.debugging
|
|
9433
|
-
@api_client.config.logger.debug "API called: AccountingApi#get_employee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9434
|
-
end
|
|
9435
|
-
return data, status_code, headers
|
|
9436
|
-
end
|
|
9437
|
-
|
|
9438
|
-
# Retrieves employees used in Xero payrun
|
|
9439
|
-
# This endpoint is deprecated and will be removed April 28, 2026
|
|
9440
|
-
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
9441
|
-
# @param [Hash] opts the optional parameters
|
|
9442
|
-
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
|
9443
|
-
# @option opts [String] :where Filter by an any element
|
|
9444
|
-
# @option opts [String] :order Order by an any element
|
|
9445
|
-
# @return [Employees]
|
|
9446
|
-
def get_employees(xero_tenant_id, opts = {})
|
|
9447
|
-
data, _status_code, _headers = get_employees_with_http_info(xero_tenant_id, opts)
|
|
9448
|
-
data
|
|
9449
|
-
end
|
|
9450
|
-
|
|
9451
|
-
# Retrieves employees used in Xero payrun
|
|
9452
|
-
# This endpoint is deprecated and will be removed April 28, 2026
|
|
9453
|
-
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
9454
|
-
# @param [Hash] opts the optional parameters
|
|
9455
|
-
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
|
9456
|
-
# @option opts [String] :where Filter by an any element
|
|
9457
|
-
# @option opts [String] :order Order by an any element
|
|
9458
|
-
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
|
9459
|
-
def get_employees_with_http_info(xero_tenant_id, options = {})
|
|
9460
|
-
opts = options.dup
|
|
9461
|
-
if @api_client.config.debugging
|
|
9462
|
-
@api_client.config.logger.debug 'Calling API: AccountingApi.get_employees ...'
|
|
9463
|
-
end
|
|
9464
|
-
# verify the required parameter 'xero_tenant_id' is set
|
|
9465
|
-
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
9466
|
-
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_employees"
|
|
9467
|
-
end
|
|
9468
|
-
# resource path
|
|
9469
|
-
local_var_path = '/Employees'
|
|
9470
|
-
|
|
9471
|
-
# camelize keys of incoming `where` opts
|
|
9472
|
-
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
9473
|
-
|
|
9474
|
-
# query parameters
|
|
9475
|
-
query_params = opts[:query_params] || {}
|
|
9476
|
-
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
|
9477
|
-
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
9478
|
-
|
|
9479
|
-
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
9480
|
-
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
9481
|
-
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
9482
|
-
|
|
9483
|
-
# header parameters
|
|
9484
|
-
header_params = opts[:header_params] || {}
|
|
9485
|
-
# HTTP header 'Accept' (if needed)
|
|
9486
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9487
|
-
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
9488
|
-
header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil?
|
|
9489
|
-
|
|
9490
|
-
# form parameters
|
|
9491
|
-
form_params = opts[:form_params] || {}
|
|
9492
|
-
|
|
9493
|
-
# http body (model)
|
|
9494
|
-
post_body = opts[:body]
|
|
9495
|
-
|
|
9496
|
-
# return_type
|
|
9497
|
-
return_type = opts[:return_type] || 'Employees'
|
|
9498
|
-
|
|
9499
|
-
# auth_names
|
|
9500
|
-
auth_names = opts[:auth_names] || ['OAuth2']
|
|
9501
|
-
|
|
9502
|
-
new_options = opts.merge(
|
|
9503
|
-
:header_params => header_params,
|
|
9504
|
-
:query_params => query_params,
|
|
9505
|
-
:form_params => form_params,
|
|
9506
|
-
:body => post_body,
|
|
9507
|
-
:auth_names => auth_names,
|
|
9508
|
-
:return_type => return_type
|
|
9509
|
-
)
|
|
9510
|
-
|
|
9511
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9512
|
-
if @api_client.config.debugging
|
|
9513
|
-
@api_client.config.logger.debug "API called: AccountingApi#get_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9514
|
-
end
|
|
9515
|
-
return data, status_code, headers
|
|
9516
|
-
end
|
|
9517
|
-
|
|
9518
9276
|
# Retrieves a specific expense claim using a unique expense claim Id
|
|
9519
9277
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
9520
9278
|
# @param expense_claim_id [String] Unique identifier for a ExpenseClaim
|
|
@@ -17949,91 +17707,6 @@ module XeroRuby
|
|
|
17949
17707
|
return data, status_code, headers
|
|
17950
17708
|
end
|
|
17951
17709
|
|
|
17952
|
-
# Creates a single new employees used in Xero payrun
|
|
17953
|
-
# This endpoint is deprecated and will be removed April 28, 2026
|
|
17954
|
-
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
17955
|
-
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
17956
|
-
# @param [Hash] opts the optional parameters
|
|
17957
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
17958
|
-
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17959
|
-
# @return [Employees]
|
|
17960
|
-
def update_or_create_employees(xero_tenant_id, employees, opts = {})
|
|
17961
|
-
data, _status_code, _headers = update_or_create_employees_with_http_info(xero_tenant_id, employees, opts)
|
|
17962
|
-
data
|
|
17963
|
-
end
|
|
17964
|
-
|
|
17965
|
-
# Creates a single new employees used in Xero payrun
|
|
17966
|
-
# This endpoint is deprecated and will be removed April 28, 2026
|
|
17967
|
-
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
17968
|
-
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
17969
|
-
# @param [Hash] opts the optional parameters
|
|
17970
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17971
|
-
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17972
|
-
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
|
17973
|
-
def update_or_create_employees_with_http_info(xero_tenant_id, employees, options = {})
|
|
17974
|
-
opts = options.dup
|
|
17975
|
-
if @api_client.config.debugging
|
|
17976
|
-
@api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_employees ...'
|
|
17977
|
-
end
|
|
17978
|
-
# verify the required parameter 'xero_tenant_id' is set
|
|
17979
|
-
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
17980
|
-
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.update_or_create_employees"
|
|
17981
|
-
end
|
|
17982
|
-
# verify the required parameter 'employees' is set
|
|
17983
|
-
if @api_client.config.client_side_validation && employees.nil?
|
|
17984
|
-
fail ArgumentError, "Missing the required parameter 'employees' when calling AccountingApi.update_or_create_employees"
|
|
17985
|
-
end
|
|
17986
|
-
# resource path
|
|
17987
|
-
local_var_path = '/Employees'
|
|
17988
|
-
|
|
17989
|
-
# camelize keys of incoming `where` opts
|
|
17990
|
-
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
17991
|
-
|
|
17992
|
-
# query parameters
|
|
17993
|
-
query_params = opts[:query_params] || {}
|
|
17994
|
-
query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
|
|
17995
|
-
|
|
17996
|
-
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
17997
|
-
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
17998
|
-
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
17999
|
-
|
|
18000
|
-
# header parameters
|
|
18001
|
-
header_params = opts[:header_params] || {}
|
|
18002
|
-
# HTTP header 'Accept' (if needed)
|
|
18003
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
18004
|
-
# HTTP header 'Content-Type'
|
|
18005
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
18006
|
-
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18007
|
-
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18008
|
-
|
|
18009
|
-
# form parameters
|
|
18010
|
-
form_params = opts[:form_params] || {}
|
|
18011
|
-
|
|
18012
|
-
# http body (model)
|
|
18013
|
-
post_body = opts[:body] || @api_client.object_to_http_body(employees)
|
|
18014
|
-
|
|
18015
|
-
# return_type
|
|
18016
|
-
return_type = opts[:return_type] || 'Employees'
|
|
18017
|
-
|
|
18018
|
-
# auth_names
|
|
18019
|
-
auth_names = opts[:auth_names] || ['OAuth2']
|
|
18020
|
-
|
|
18021
|
-
new_options = opts.merge(
|
|
18022
|
-
:header_params => header_params,
|
|
18023
|
-
:query_params => query_params,
|
|
18024
|
-
:form_params => form_params,
|
|
18025
|
-
:body => post_body,
|
|
18026
|
-
:auth_names => auth_names,
|
|
18027
|
-
:return_type => return_type
|
|
18028
|
-
)
|
|
18029
|
-
|
|
18030
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
18031
|
-
if @api_client.config.debugging
|
|
18032
|
-
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
18033
|
-
end
|
|
18034
|
-
return data, status_code, headers
|
|
18035
|
-
end
|
|
18036
|
-
|
|
18037
17710
|
# Updates or creates one or more sales invoices or purchase bills
|
|
18038
17711
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
18039
17712
|
# @param invoices [Invoices]
|
|
@@ -424,7 +424,7 @@ module XeroRuby
|
|
|
424
424
|
# @param [Hash] opts the optional parameters
|
|
425
425
|
# @option opts [Integer] :pagesize pass an optional page size value
|
|
426
426
|
# @option opts [Integer] :page number of records to skip for pagination
|
|
427
|
-
# @option opts [String] :sort values to sort by
|
|
427
|
+
# @option opts [String] :sort values to sort by (default to 'CreatedDateUtc')
|
|
428
428
|
# @option opts [String] :direction direction to sort by
|
|
429
429
|
# @return [Array<Association>]
|
|
430
430
|
def get_associations_by_object(xero_tenant_id, object_id, opts = {})
|
|
@@ -463,7 +463,7 @@ module XeroRuby
|
|
|
463
463
|
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling FilesApi.get_associations_by_object, must be greater than or equal to 1.'
|
|
464
464
|
end
|
|
465
465
|
|
|
466
|
-
allowable_values = ["Name", "
|
|
466
|
+
allowable_values = ["Name", "Size", "CreatedDateUtc", "AssociationDateUtc"]
|
|
467
467
|
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
468
468
|
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
469
469
|
end
|
|
@@ -65,6 +65,9 @@ module XeroRuby::Accounting
|
|
|
65
65
|
# Xero generated unique identifier
|
|
66
66
|
attr_accessor :prepayment_id
|
|
67
67
|
|
|
68
|
+
# The unique identifier of the branding template applied to a receive prepayment
|
|
69
|
+
attr_accessor :branding_theme_id
|
|
70
|
+
|
|
68
71
|
# The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used
|
|
69
72
|
attr_accessor :currency_rate
|
|
70
73
|
|
|
@@ -125,6 +128,7 @@ module XeroRuby::Accounting
|
|
|
125
128
|
:'updated_date_utc' => :'UpdatedDateUTC',
|
|
126
129
|
:'currency_code' => :'CurrencyCode',
|
|
127
130
|
:'prepayment_id' => :'PrepaymentID',
|
|
131
|
+
:'branding_theme_id' => :'BrandingThemeID',
|
|
128
132
|
:'currency_rate' => :'CurrencyRate',
|
|
129
133
|
:'remaining_credit' => :'RemainingCredit',
|
|
130
134
|
:'allocations' => :'Allocations',
|
|
@@ -152,6 +156,7 @@ module XeroRuby::Accounting
|
|
|
152
156
|
:'updated_date_utc' => :'DateTime',
|
|
153
157
|
:'currency_code' => :'CurrencyCode',
|
|
154
158
|
:'prepayment_id' => :'String',
|
|
159
|
+
:'branding_theme_id' => :'String',
|
|
155
160
|
:'currency_rate' => :'BigDecimal',
|
|
156
161
|
:'remaining_credit' => :'BigDecimal',
|
|
157
162
|
:'allocations' => :'Array<Allocation>',
|
|
@@ -235,6 +240,10 @@ module XeroRuby::Accounting
|
|
|
235
240
|
self.prepayment_id = attributes[:'prepayment_id']
|
|
236
241
|
end
|
|
237
242
|
|
|
243
|
+
if attributes.key?(:'branding_theme_id')
|
|
244
|
+
self.branding_theme_id = attributes[:'branding_theme_id']
|
|
245
|
+
end
|
|
246
|
+
|
|
238
247
|
if attributes.key?(:'currency_rate')
|
|
239
248
|
self.currency_rate = attributes[:'currency_rate']
|
|
240
249
|
end
|
|
@@ -328,6 +337,7 @@ module XeroRuby::Accounting
|
|
|
328
337
|
updated_date_utc == o.updated_date_utc &&
|
|
329
338
|
currency_code == o.currency_code &&
|
|
330
339
|
prepayment_id == o.prepayment_id &&
|
|
340
|
+
branding_theme_id == o.branding_theme_id &&
|
|
331
341
|
currency_rate == o.currency_rate &&
|
|
332
342
|
remaining_credit == o.remaining_credit &&
|
|
333
343
|
allocations == o.allocations &&
|
|
@@ -346,7 +356,7 @@ module XeroRuby::Accounting
|
|
|
346
356
|
# Calculates hash code according to all attributes.
|
|
347
357
|
# @return [Integer] Hash code
|
|
348
358
|
def hash
|
|
349
|
-
[type, contact, date, status, line_amount_types, line_items, sub_total, total_tax, total, reference, invoice_number, updated_date_utc, currency_code, prepayment_id, currency_rate, remaining_credit, allocations, payments, applied_amount, has_attachments, attachments].hash
|
|
359
|
+
[type, contact, date, status, line_amount_types, line_items, sub_total, total_tax, total, reference, invoice_number, updated_date_utc, currency_code, prepayment_id, branding_theme_id, currency_rate, remaining_credit, allocations, payments, applied_amount, has_attachments, attachments].hash
|
|
350
360
|
end
|
|
351
361
|
|
|
352
362
|
# Builds the object from hash
|
|
@@ -25,6 +25,12 @@ module XeroRuby::Files
|
|
|
25
25
|
# The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
|
|
26
26
|
attr_accessor :size
|
|
27
27
|
|
|
28
|
+
# The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
|
|
29
|
+
attr_accessor :created_date_utc
|
|
30
|
+
|
|
31
|
+
# The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
|
|
32
|
+
attr_accessor :association_date_utc
|
|
33
|
+
|
|
28
34
|
# The unique identifier of the file
|
|
29
35
|
attr_accessor :file_id
|
|
30
36
|
|
|
@@ -43,6 +49,8 @@ module XeroRuby::Files
|
|
|
43
49
|
:'send_with_object' => :'SendWithObject',
|
|
44
50
|
:'name' => :'Name',
|
|
45
51
|
:'size' => :'Size',
|
|
52
|
+
:'created_date_utc' => :'CreatedDateUtc',
|
|
53
|
+
:'association_date_utc' => :'AssociationDateUtc',
|
|
46
54
|
:'file_id' => :'FileId',
|
|
47
55
|
:'object_id' => :'ObjectId',
|
|
48
56
|
:'object_group' => :'ObjectGroup',
|
|
@@ -56,6 +64,8 @@ module XeroRuby::Files
|
|
|
56
64
|
:'send_with_object' => :'Boolean',
|
|
57
65
|
:'name' => :'String',
|
|
58
66
|
:'size' => :'Integer',
|
|
67
|
+
:'created_date_utc' => :'DateTime',
|
|
68
|
+
:'association_date_utc' => :'DateTime',
|
|
59
69
|
:'file_id' => :'String',
|
|
60
70
|
:'object_id' => :'String',
|
|
61
71
|
:'object_group' => :'ObjectGroup',
|
|
@@ -90,6 +100,14 @@ module XeroRuby::Files
|
|
|
90
100
|
self.size = attributes[:'size']
|
|
91
101
|
end
|
|
92
102
|
|
|
103
|
+
if attributes.key?(:'created_date_utc')
|
|
104
|
+
self.created_date_utc = attributes[:'created_date_utc']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'association_date_utc')
|
|
108
|
+
self.association_date_utc = attributes[:'association_date_utc']
|
|
109
|
+
end
|
|
110
|
+
|
|
93
111
|
if attributes.key?(:'file_id')
|
|
94
112
|
self.file_id = attributes[:'file_id']
|
|
95
113
|
end
|
|
@@ -128,6 +146,8 @@ module XeroRuby::Files
|
|
|
128
146
|
send_with_object == o.send_with_object &&
|
|
129
147
|
name == o.name &&
|
|
130
148
|
size == o.size &&
|
|
149
|
+
created_date_utc == o.created_date_utc &&
|
|
150
|
+
association_date_utc == o.association_date_utc &&
|
|
131
151
|
file_id == o.file_id &&
|
|
132
152
|
object_id == o.object_id &&
|
|
133
153
|
object_group == o.object_group &&
|
|
@@ -143,7 +163,7 @@ module XeroRuby::Files
|
|
|
143
163
|
# Calculates hash code according to all attributes.
|
|
144
164
|
# @return [Integer] Hash code
|
|
145
165
|
def hash
|
|
146
|
-
[send_with_object, name, size, file_id, object_id, object_group, object_type].hash
|
|
166
|
+
[send_with_object, name, size, created_date_utc, association_date_utc, file_id, object_id, object_group, object_type].hash
|
|
147
167
|
end
|
|
148
168
|
|
|
149
169
|
# Builds the object from hash
|
data/lib/xero-ruby/version.rb
CHANGED
|
@@ -7,9 +7,9 @@ Contact: api@xero.com
|
|
|
7
7
|
Generated by: https://openapi-generator.tech
|
|
8
8
|
OpenAPI Generator version: 4.3.1
|
|
9
9
|
|
|
10
|
-
The version of the XeroOpenAPI document:
|
|
10
|
+
The version of the XeroOpenAPI document: 13.0.0
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module XeroRuby
|
|
14
|
-
VERSION = '
|
|
14
|
+
VERSION = '15.0.0'
|
|
15
15
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xero-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 15.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Xero API Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|