xero-ruby 4.2.0 → 4.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71d4f9b98b072b0d8eee23dacb8b6b0b87d4b5e8985278b8ba32d861d3e857dc
|
4
|
+
data.tar.gz: e147476be4d81955a7203a78dc6ff999fac681dff01963a8a8562b73a409332e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e6842a7e4c6d0b4098fcd955b7fe21a4fe830cd6b156b3e573bc4fb3d1f3711420f9af5402fe82444585572bc233736357ba269e3ddd28c46f6d7f8a7fcd57
|
7
|
+
data.tar.gz: 9a7c9afd2f0836d24b86f2357301232c7bf826f9b3d2841ed106f511b1f75ce9f7044f0f7ceb78f7e2f9c600ba1a14de924caf74553e8af1a0d0bb0ed1f79aa0
|
@@ -16,6 +16,81 @@ module XeroRuby
|
|
16
16
|
def initialize(api_client = ApiClient.new)
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
|
+
# Approve a requested leave application by a unique leave application id
|
20
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
21
|
+
# @param leave_application_id [String] Leave Application id for single object
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @return [LeaveApplications]
|
24
|
+
def approve_leave_application(xero_tenant_id, leave_application_id, opts = {})
|
25
|
+
data, _status_code, _headers = approve_leave_application_with_http_info(xero_tenant_id, leave_application_id, opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Approve a requested leave application by a unique leave application id
|
30
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
31
|
+
# @param leave_application_id [String] Leave Application id for single object
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
|
34
|
+
def approve_leave_application_with_http_info(xero_tenant_id, leave_application_id, options = {})
|
35
|
+
opts = options.dup
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: PayrollAuApi.approve_leave_application ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'xero_tenant_id' is set
|
40
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.approve_leave_application"
|
42
|
+
end
|
43
|
+
# verify the required parameter 'leave_application_id' is set
|
44
|
+
if @api_client.config.client_side_validation && leave_application_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'leave_application_id' when calling PayrollAuApi.approve_leave_application"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/LeaveApplications/{LeaveApplicationID}/approve'.sub('{' + 'LeaveApplicationID' + '}', leave_application_id.to_s)
|
49
|
+
|
50
|
+
# camelize keys of incoming `where` opts
|
51
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = opts[:query_params] || {}
|
55
|
+
|
56
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
57
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
58
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = opts[:header_params] || {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
|
+
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = opts[:form_params] || {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = opts[:body]
|
71
|
+
|
72
|
+
# return_type
|
73
|
+
return_type = opts[:return_type] || 'LeaveApplications'
|
74
|
+
|
75
|
+
# auth_names
|
76
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
77
|
+
|
78
|
+
new_options = opts.merge(
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => return_type
|
85
|
+
)
|
86
|
+
|
87
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", new_options)
|
88
|
+
if @api_client.config.debugging
|
89
|
+
@api_client.config.logger.debug "API called: PayrollAuApi#approve_leave_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
end
|
91
|
+
return data, status_code, headers
|
92
|
+
end
|
93
|
+
|
19
94
|
# Creates a payroll employee
|
20
95
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
21
96
|
# @param employee [Array<Employee>]
|
@@ -867,6 +942,87 @@ module XeroRuby
|
|
867
942
|
return data, status_code, headers
|
868
943
|
end
|
869
944
|
|
945
|
+
# Retrieves leave applications including leave requests
|
946
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
947
|
+
# @param [Hash] opts the optional parameters
|
948
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
949
|
+
# @option opts [String] :where Filter by an any element
|
950
|
+
# @option opts [String] :order Order by an any element
|
951
|
+
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
952
|
+
# @return [LeaveApplications]
|
953
|
+
def get_leave_applications_v2(xero_tenant_id, opts = {})
|
954
|
+
data, _status_code, _headers = get_leave_applications_v2_with_http_info(xero_tenant_id, opts)
|
955
|
+
data
|
956
|
+
end
|
957
|
+
|
958
|
+
# Retrieves leave applications including leave requests
|
959
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
960
|
+
# @param [Hash] opts the optional parameters
|
961
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
962
|
+
# @option opts [String] :where Filter by an any element
|
963
|
+
# @option opts [String] :order Order by an any element
|
964
|
+
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
965
|
+
# @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
|
966
|
+
def get_leave_applications_v2_with_http_info(xero_tenant_id, options = {})
|
967
|
+
opts = options.dup
|
968
|
+
if @api_client.config.debugging
|
969
|
+
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_leave_applications_v2 ...'
|
970
|
+
end
|
971
|
+
# verify the required parameter 'xero_tenant_id' is set
|
972
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
973
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_leave_applications_v2"
|
974
|
+
end
|
975
|
+
# resource path
|
976
|
+
local_var_path = '/LeaveApplications/v2'
|
977
|
+
|
978
|
+
# camelize keys of incoming `where` opts
|
979
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
980
|
+
|
981
|
+
# query parameters
|
982
|
+
query_params = opts[:query_params] || {}
|
983
|
+
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
984
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
985
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
986
|
+
|
987
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
988
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
989
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
990
|
+
|
991
|
+
# header parameters
|
992
|
+
header_params = opts[:header_params] || {}
|
993
|
+
# HTTP header 'Accept' (if needed)
|
994
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
995
|
+
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
996
|
+
header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil?
|
997
|
+
|
998
|
+
# form parameters
|
999
|
+
form_params = opts[:form_params] || {}
|
1000
|
+
|
1001
|
+
# http body (model)
|
1002
|
+
post_body = opts[:body]
|
1003
|
+
|
1004
|
+
# return_type
|
1005
|
+
return_type = opts[:return_type] || 'LeaveApplications'
|
1006
|
+
|
1007
|
+
# auth_names
|
1008
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
1009
|
+
|
1010
|
+
new_options = opts.merge(
|
1011
|
+
:header_params => header_params,
|
1012
|
+
:query_params => query_params,
|
1013
|
+
:form_params => form_params,
|
1014
|
+
:body => post_body,
|
1015
|
+
:auth_names => auth_names,
|
1016
|
+
:return_type => return_type
|
1017
|
+
)
|
1018
|
+
|
1019
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", new_options)
|
1020
|
+
if @api_client.config.debugging
|
1021
|
+
@api_client.config.logger.debug "API called: PayrollAuApi#get_leave_applications_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1022
|
+
end
|
1023
|
+
return data, status_code, headers
|
1024
|
+
end
|
1025
|
+
|
870
1026
|
# Retrieves pay items
|
871
1027
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
872
1028
|
# @param [Hash] opts the optional parameters
|
@@ -1791,6 +1947,81 @@ module XeroRuby
|
|
1791
1947
|
return data, status_code, headers
|
1792
1948
|
end
|
1793
1949
|
|
1950
|
+
# Reject a leave application by a unique leave application id
|
1951
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1952
|
+
# @param leave_application_id [String] Leave Application id for single object
|
1953
|
+
# @param [Hash] opts the optional parameters
|
1954
|
+
# @return [LeaveApplications]
|
1955
|
+
def reject_leave_application(xero_tenant_id, leave_application_id, opts = {})
|
1956
|
+
data, _status_code, _headers = reject_leave_application_with_http_info(xero_tenant_id, leave_application_id, opts)
|
1957
|
+
data
|
1958
|
+
end
|
1959
|
+
|
1960
|
+
# Reject a leave application by a unique leave application id
|
1961
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1962
|
+
# @param leave_application_id [String] Leave Application id for single object
|
1963
|
+
# @param [Hash] opts the optional parameters
|
1964
|
+
# @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
|
1965
|
+
def reject_leave_application_with_http_info(xero_tenant_id, leave_application_id, options = {})
|
1966
|
+
opts = options.dup
|
1967
|
+
if @api_client.config.debugging
|
1968
|
+
@api_client.config.logger.debug 'Calling API: PayrollAuApi.reject_leave_application ...'
|
1969
|
+
end
|
1970
|
+
# verify the required parameter 'xero_tenant_id' is set
|
1971
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
1972
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.reject_leave_application"
|
1973
|
+
end
|
1974
|
+
# verify the required parameter 'leave_application_id' is set
|
1975
|
+
if @api_client.config.client_side_validation && leave_application_id.nil?
|
1976
|
+
fail ArgumentError, "Missing the required parameter 'leave_application_id' when calling PayrollAuApi.reject_leave_application"
|
1977
|
+
end
|
1978
|
+
# resource path
|
1979
|
+
local_var_path = '/LeaveApplications/{LeaveApplicationID}/reject'.sub('{' + 'LeaveApplicationID' + '}', leave_application_id.to_s)
|
1980
|
+
|
1981
|
+
# camelize keys of incoming `where` opts
|
1982
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
1983
|
+
|
1984
|
+
# query parameters
|
1985
|
+
query_params = opts[:query_params] || {}
|
1986
|
+
|
1987
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
1988
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
1989
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
1990
|
+
|
1991
|
+
# header parameters
|
1992
|
+
header_params = opts[:header_params] || {}
|
1993
|
+
# HTTP header 'Accept' (if needed)
|
1994
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1995
|
+
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1996
|
+
|
1997
|
+
# form parameters
|
1998
|
+
form_params = opts[:form_params] || {}
|
1999
|
+
|
2000
|
+
# http body (model)
|
2001
|
+
post_body = opts[:body]
|
2002
|
+
|
2003
|
+
# return_type
|
2004
|
+
return_type = opts[:return_type] || 'LeaveApplications'
|
2005
|
+
|
2006
|
+
# auth_names
|
2007
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
2008
|
+
|
2009
|
+
new_options = opts.merge(
|
2010
|
+
:header_params => header_params,
|
2011
|
+
:query_params => query_params,
|
2012
|
+
:form_params => form_params,
|
2013
|
+
:body => post_body,
|
2014
|
+
:auth_names => auth_names,
|
2015
|
+
:return_type => return_type
|
2016
|
+
)
|
2017
|
+
|
2018
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", new_options)
|
2019
|
+
if @api_client.config.debugging
|
2020
|
+
@api_client.config.logger.debug "API called: PayrollAuApi#reject_leave_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2021
|
+
end
|
2022
|
+
return data, status_code, headers
|
2023
|
+
end
|
2024
|
+
|
1794
2025
|
# Updates an employee's detail
|
1795
2026
|
# Update properties on a single employee
|
1796
2027
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
@@ -126,6 +126,11 @@ module XeroRuby::Accounting
|
|
126
126
|
SROVRRS ||= "SROVRRS".freeze
|
127
127
|
SROVRLVG ||= "SROVRLVG".freeze
|
128
128
|
SRLVG ||= "SRLVG".freeze
|
129
|
+
IM ||= "IM".freeze
|
130
|
+
IMESS ||= "IMESS".freeze
|
131
|
+
IMN33 ||= "IMN33".freeze
|
132
|
+
IMRE ||= "IMRE".freeze
|
133
|
+
BADDEBTRECOVERY ||= "BADDEBTRECOVERY".freeze
|
129
134
|
|
130
135
|
# Boolean to describe if tax rate can be used for asset accounts i.e. true,false
|
131
136
|
attr_accessor :can_apply_to_assets
|
@@ -284,7 +289,7 @@ module XeroRuby::Accounting
|
|
284
289
|
def valid?
|
285
290
|
status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DELETED", "ARCHIVED", "PENDING"])
|
286
291
|
return false unless status_validator.valid?(@status)
|
287
|
-
report_tax_type_validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG"])
|
292
|
+
report_tax_type_validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG", "IM", "IMESS", "IMN33", "IMRE", "BADDEBTRECOVERY"])
|
288
293
|
return false unless report_tax_type_validator.valid?(@report_tax_type)
|
289
294
|
true
|
290
295
|
end
|
@@ -302,7 +307,7 @@ module XeroRuby::Accounting
|
|
302
307
|
# Custom attribute writer method checking allowed values (enum).
|
303
308
|
# @param [Object] report_tax_type Object to be assigned
|
304
309
|
def report_tax_type=(report_tax_type)
|
305
|
-
validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG"])
|
310
|
+
validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG", "IM", "IMESS", "IMN33", "IMRE", "BADDEBTRECOVERY"])
|
306
311
|
unless validator.valid?(report_tax_type)
|
307
312
|
fail ArgumentError, "invalid value for \"report_tax_type\", must be one of #{validator.allowable_values}."
|
308
313
|
end
|
@@ -100,6 +100,16 @@ module XeroRuby::Accounting
|
|
100
100
|
TXRCREY23 ||= "TXRCREY23".freeze
|
101
101
|
TXRCESSY23 ||= "TXRCESSY23".freeze
|
102
102
|
TXRCTSY23 ||= "TXRCTSY23".freeze
|
103
|
+
IM ||= "IM".freeze
|
104
|
+
IMY23 ||= "IMY23".freeze
|
105
|
+
IMESS ||= "IMESS".freeze
|
106
|
+
IMESSY23 ||= "IMESSY23".freeze
|
107
|
+
IMN33 ||= "IMN33".freeze
|
108
|
+
IMN33_Y23 ||= "IMN33Y23".freeze
|
109
|
+
IMRE ||= "IMRE".freeze
|
110
|
+
IMREY23 ||= "IMREY23".freeze
|
111
|
+
BADDEBTRECOVERY ||= "BADDEBTRECOVERY".freeze
|
112
|
+
BADDEBTRECOVERYY23 ||= "BADDEBTRECOVERYY23".freeze
|
103
113
|
|
104
114
|
# Builds the enum from string
|
105
115
|
# @param [String] The enum value in the form of the string
|
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: 2.
|
10
|
+
The version of the XeroOpenAPI document: 2.38.0
|
11
11
|
=end
|
12
12
|
|
13
13
|
module XeroRuby
|
14
|
-
VERSION = '4.
|
14
|
+
VERSION = '4.3.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.
|
4
|
+
version: 4.3.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: 2023-
|
11
|
+
date: 2023-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|