xero-ruby 4.1.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: ed0a9e18f21afd2a6efcb613ed308ac42c45894cd63589e250292975f967c648
4
- data.tar.gz: 5e1b5fe861cd84754016b968b37164e437dd3e182ac95d8aec096629023ab81c
3
+ metadata.gz: 71d4f9b98b072b0d8eee23dacb8b6b0b87d4b5e8985278b8ba32d861d3e857dc
4
+ data.tar.gz: e147476be4d81955a7203a78dc6ff999fac681dff01963a8a8562b73a409332e
5
5
  SHA512:
6
- metadata.gz: 9210328dbff87fd961f36d96ceb39bbfd6fca07545d49d8e0bb1a54b92cde075cd602d8a5fc64dba0f6fa369278a6dff76e9e65feabc7119cf183f063129bf35
7
- data.tar.gz: 8e81d3694e0608819c54a31129bcf786b611e04171f1908172e3053572e16857b9c06c2f759a4e085adf049183d6b70d611e4c5a673c8a8c3973c649976a040e
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&#x3D;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&#x3D;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
@@ -257,7 +257,7 @@ module XeroRuby
257
257
  end
258
258
 
259
259
  def last_connection
260
- connections.sort { |a,b| DateTime.parse(a['updatedDateUtc']) <=> DateTime.parse(b['updatedDateUtc'])}.first
260
+ connections.sort { |a,b| DateTime.parse(a['updatedDateUtc']) <=> DateTime.parse(b['updatedDateUtc'])}.last
261
261
  end
262
262
 
263
263
  def disconnect(connection_id)
@@ -43,6 +43,7 @@ module XeroRuby::Accounting
43
43
  CAD ||= "CAD".freeze
44
44
  CDF ||= "CDF".freeze
45
45
  CHF ||= "CHF".freeze
46
+ CLF ||= "CLF".freeze
46
47
  CLP ||= "CLP".freeze
47
48
  CNY ||= "CNY".freeze
48
49
  COP ||= "COP".freeze
@@ -55,6 +56,7 @@ module XeroRuby::Accounting
55
56
  DKK ||= "DKK".freeze
56
57
  DOP ||= "DOP".freeze
57
58
  DZD ||= "DZD".freeze
59
+ EEK ||= "EEK".freeze
58
60
  EGP ||= "EGP".freeze
59
61
  ERN ||= "ERN".freeze
60
62
  ETB ||= "ETB".freeze
@@ -63,7 +65,6 @@ module XeroRuby::Accounting
63
65
  FKP ||= "FKP".freeze
64
66
  GBP ||= "GBP".freeze
65
67
  GEL ||= "GEL".freeze
66
- GGP ||= "GGP".freeze
67
68
  GHS ||= "GHS".freeze
68
69
  GIP ||= "GIP".freeze
69
70
  GMD ||= "GMD".freeze
@@ -77,12 +78,10 @@ module XeroRuby::Accounting
77
78
  HUF ||= "HUF".freeze
78
79
  IDR ||= "IDR".freeze
79
80
  ILS ||= "ILS".freeze
80
- IMP ||= "IMP".freeze
81
81
  INR ||= "INR".freeze
82
82
  IQD ||= "IQD".freeze
83
83
  IRR ||= "IRR".freeze
84
84
  ISK ||= "ISK".freeze
85
- JEP ||= "JEP".freeze
86
85
  JMD ||= "JMD".freeze
87
86
  JOD ||= "JOD".freeze
88
87
  JPY ||= "JPY".freeze
@@ -101,6 +100,7 @@ module XeroRuby::Accounting
101
100
  LRD ||= "LRD".freeze
102
101
  LSL ||= "LSL".freeze
103
102
  LTL ||= "LTL".freeze
103
+ LVL ||= "LVL".freeze
104
104
  LYD ||= "LYD".freeze
105
105
  MAD ||= "MAD".freeze
106
106
  MDL ||= "MDL".freeze
@@ -109,11 +109,13 @@ module XeroRuby::Accounting
109
109
  MMK ||= "MMK".freeze
110
110
  MNT ||= "MNT".freeze
111
111
  MOP ||= "MOP".freeze
112
+ MRO ||= "MRO".freeze
112
113
  MRU ||= "MRU".freeze
113
114
  MUR ||= "MUR".freeze
114
115
  MVR ||= "MVR".freeze
115
116
  MWK ||= "MWK".freeze
116
117
  MXN ||= "MXN".freeze
118
+ MXV ||= "MXV".freeze
117
119
  MYR ||= "MYR".freeze
118
120
  MZN ||= "MZN".freeze
119
121
  NAD ||= "NAD".freeze
@@ -142,11 +144,13 @@ module XeroRuby::Accounting
142
144
  SEK ||= "SEK".freeze
143
145
  SGD ||= "SGD".freeze
144
146
  SHP ||= "SHP".freeze
147
+ SKK ||= "SKK".freeze
148
+ SLE ||= "SLE".freeze
145
149
  SLL ||= "SLL".freeze
146
150
  SOS ||= "SOS".freeze
147
- SPL ||= "SPL".freeze
148
151
  SRD ||= "SRD".freeze
149
- STN ||= "STN".freeze
152
+ STN ||= "STD".freeze
153
+ STD ||= "STN".freeze
150
154
  SVC ||= "SVC".freeze
151
155
  SYP ||= "SYP".freeze
152
156
  SZL ||= "SZL".freeze
@@ -157,7 +161,6 @@ module XeroRuby::Accounting
157
161
  TOP ||= "TOP".freeze
158
162
  TRY_LIRA ||= "TRY".freeze
159
163
  TTD ||= "TTD".freeze
160
- TVD ||= "TVD".freeze
161
164
  TWD ||= "TWD".freeze
162
165
  TZS ||= "TZS".freeze
163
166
  UAH ||= "UAH".freeze
@@ -166,12 +169,12 @@ module XeroRuby::Accounting
166
169
  UYU ||= "UYU".freeze
167
170
  UZS ||= "UZS".freeze
168
171
  VEF ||= "VEF".freeze
172
+ VES ||= "VES".freeze
169
173
  VND ||= "VND".freeze
170
174
  VUV ||= "VUV".freeze
171
175
  WST ||= "WST".freeze
172
176
  XAF ||= "XAF".freeze
173
177
  XCD ||= "XCD".freeze
174
- XDR ||= "XDR".freeze
175
178
  XOF ||= "XOF".freeze
176
179
  XPF ||= "XPF".freeze
177
180
  YER ||= "YER".freeze
@@ -112,10 +112,10 @@ module XeroRuby::Accounting
112
112
  IGDSINPUT3 ||= "IGDSINPUT3".freeze
113
113
  SROVR ||= "SROVR".freeze
114
114
  TOURISTREFUND ||= "TOURISTREFUND".freeze
115
- TXRCN33_INPUT ||= "TXRCN33INPUT".freeze
116
- TXRCREINPUT ||= "TXRCREINPUT".freeze
117
- TXRCESSINPUT ||= "TXRCESSINPUT".freeze
118
- TXRCTSINPUT ||= "TXRCTSINPUT".freeze
115
+ TXRCN33 ||= "TXRCN33".freeze
116
+ TXRCRE ||= "TXRCRE".freeze
117
+ TXRCESS ||= "TXRCESS".freeze
118
+ TXRCTS ||= "TXRCTS".freeze
119
119
  CAPEXINPUT ||= "CAPEXINPUT".freeze
120
120
  UNDEFINED ||= "UNDEFINED".freeze
121
121
  CAPEXOUTPUT ||= "CAPEXOUTPUT".freeze
@@ -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", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT", "TXRCTSINPUT", "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", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT", "TXRCTSINPUT", "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
@@ -77,10 +77,10 @@ module XeroRuby::Accounting
77
77
  IGDSINPUT3 ||= "IGDSINPUT3".freeze
78
78
  SROVR ||= "SROVR".freeze
79
79
  TOURISTREFUND ||= "TOURISTREFUND".freeze
80
- TXRCN33_INPUT ||= "TXRCN33INPUT".freeze
81
- TXRCREINPUT ||= "TXRCREINPUT".freeze
82
- TXRCESSINPUT ||= "TXRCESSINPUT".freeze
83
- TXRCTSINPUT ||= "TXRCTSINPUT".freeze
80
+ TXRCN33 ||= "TXRCN33".freeze
81
+ TXRCRE ||= "TXRCRE".freeze
82
+ TXRCESS ||= "TXRCESS".freeze
83
+ TXRCTS ||= "TXRCTS".freeze
84
84
  OUTPUTY23 ||= "OUTPUTY23".freeze
85
85
  DSOUTPUTY23 ||= "DSOUTPUTY23".freeze
86
86
  INPUTY23 ||= "INPUTY23".freeze
@@ -96,6 +96,20 @@ module XeroRuby::Accounting
96
96
  SROVRRSY23 ||= "SROVRRSY23".freeze
97
97
  SROVRLVGY23 ||= "SROVRLVGY23".freeze
98
98
  SRLVGY23 ||= "SRLVGY23".freeze
99
+ TXRCN33_Y23 ||= "TXRCN33Y23".freeze
100
+ TXRCREY23 ||= "TXRCREY23".freeze
101
+ TXRCESSY23 ||= "TXRCESSY23".freeze
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
99
113
 
100
114
  # Builds the enum from string
101
115
  # @param [String] The enum value in the form of the string
@@ -28,7 +28,7 @@ module XeroRuby::Finance
28
28
  # Utc date time of when the statement was imported in Xero
29
29
  attr_accessor :imported_date_time_utc
30
30
 
31
- # Indicates the source of the statement data. Either imported from 1) direct bank feed OR 2) manual customer entry or upload. Manual import sources are STMTIMPORTSRC/MANUAL, STMTIMPORTSRC/CSV, STMTIMPORTSRC/OFX, Ofx or STMTIMPORTSRC/QIF. All other import sources are direct and, depending on the direct solution, may contain the name of the financial institution.
31
+ # Identifies where the statement data in Xero was sourced, 1) direct bank feed, automatically loaded from the bank (eg STMTIMPORTSRC/CBAFEED); 2) indirect bank feed, automatically loaded from a 3rd party provider (eg STMTIMPORTSRC/YODLEE); 3) manually uploaded bank feed (eg STMTIMPORTSRC/CSV) or 4) manually entered statement data (STMTIMPORTSRC/MANUAL).
32
32
  attr_accessor :import_source
33
33
 
34
34
  # Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0.
@@ -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.36.0
10
+ The version of the XeroOpenAPI document: 2.38.0
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '4.1.0'
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.1.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xero API Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-17 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -1107,7 +1107,7 @@ homepage: https://developer.xero.com
1107
1107
  licenses:
1108
1108
  - Unlicense
1109
1109
  metadata: {}
1110
- post_install_message:
1110
+ post_install_message:
1111
1111
  rdoc_options: []
1112
1112
  require_paths:
1113
1113
  - lib
@@ -1122,8 +1122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1122
1122
  - !ruby/object:Gem::Version
1123
1123
  version: '0'
1124
1124
  requirements: []
1125
- rubygems_version: 3.2.3
1126
- signing_key:
1125
+ rubygems_version: 3.1.6
1126
+ signing_key:
1127
1127
  specification_version: 4
1128
1128
  summary: Xero Accounting API Ruby Gem
1129
1129
  test_files: