xero-ruby 3.9.0 → 3.10.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: 9da0e17f450205612e5090cdb258485529efa412eadc1ead5c564050d68b51d9
4
- data.tar.gz: f06c54f4fd72e7dd1281a6960beb82969899d9015f2e14cf737018596199cb73
3
+ metadata.gz: 75af1820f1d3b35e5ac8a976f22d8d6c896c3dd45a4ea6bcf562b24504142720
4
+ data.tar.gz: 855c2f664f7bc9338841039b6d69a801b2174afd746f930bcd4eeab5484ad233
5
5
  SHA512:
6
- metadata.gz: 602762907bb324d2a7f308418f3789602e077d32621b5329e3d4a83154524b0981b1876f99a655cb978b40514cfcc63fd63509e5117af567c097c4affd38655e
7
- data.tar.gz: fbaddb461ba6b3db40c906e6195012b591e076ee2dc7248d4501621e4fa5dbb3c9cefa134317a4f76d3218d909ce7a302bdcaa9449fd970cc7d43d98356c08a8
6
+ metadata.gz: 4490ca0e3eba0d2742efea088d156fd2767ec6deab4415b52ad0a331ff8e3bae2c454a4029ae89161bb1ce9ed716acd84b765b96526fe3da60dbe4704193c534
7
+ data.tar.gz: 0c7b16fda59acf6a952990adcba9c62aba66201884d19a595107d934252c2d0f6a2910c107d16b2e6a142d31eb8fffe9161db380654525d94d68967bbd87f800
@@ -93,6 +93,91 @@ module XeroRuby
93
93
  return data, status_code, headers
94
94
  end
95
95
 
96
+ # Allows you to create a task
97
+ # Allows you to create a specific task
98
+ # @param xero_tenant_id [String] Xero identifier for Tenant
99
+ # @param project_id [String] You can create a task on a specified projectId
100
+ # @param task_create_or_update [TaskCreateOrUpdate] The task object you are creating
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [nil]
103
+ def create_task(xero_tenant_id, project_id, task_create_or_update, opts = {})
104
+ create_task_with_http_info(xero_tenant_id, project_id, task_create_or_update, opts)
105
+ nil
106
+ end
107
+
108
+ # Allows you to create a task
109
+ # Allows you to create a specific task
110
+ # @param xero_tenant_id [String] Xero identifier for Tenant
111
+ # @param project_id [String] You can create a task on a specified projectId
112
+ # @param task_create_or_update [TaskCreateOrUpdate] The task object you are creating
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
115
+ def create_task_with_http_info(xero_tenant_id, project_id, task_create_or_update, options = {})
116
+ opts = options.dup
117
+ if @api_client.config.debugging
118
+ @api_client.config.logger.debug 'Calling API: ProjectApi.create_task ...'
119
+ end
120
+ # verify the required parameter 'xero_tenant_id' is set
121
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
122
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling ProjectApi.create_task"
123
+ end
124
+ # verify the required parameter 'project_id' is set
125
+ if @api_client.config.client_side_validation && project_id.nil?
126
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.create_task"
127
+ end
128
+ # verify the required parameter 'task_create_or_update' is set
129
+ if @api_client.config.client_side_validation && task_create_or_update.nil?
130
+ fail ArgumentError, "Missing the required parameter 'task_create_or_update' when calling ProjectApi.create_task"
131
+ end
132
+ # resource path
133
+ local_var_path = '/Projects/{projectId}/Tasks'.sub('{' + 'projectId' + '}', project_id.to_s)
134
+
135
+ # camelize keys of incoming `where` opts
136
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
137
+
138
+ # query parameters
139
+ query_params = opts[:query_params] || {}
140
+
141
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
142
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
143
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
144
+
145
+ # header parameters
146
+ header_params = opts[:header_params] || {}
147
+ # HTTP header 'Accept' (if needed)
148
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
149
+ # HTTP header 'Content-Type'
150
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
151
+ header_params[:'Xero-Tenant-Id'] = xero_tenant_id
152
+
153
+ # form parameters
154
+ form_params = opts[:form_params] || {}
155
+
156
+ # http body (model)
157
+ post_body = opts[:body] || @api_client.object_to_http_body(task_create_or_update)
158
+
159
+ # return_type
160
+ return_type = opts[:return_type]
161
+
162
+ # auth_names
163
+ auth_names = opts[:auth_names] || ['OAuth2']
164
+
165
+ new_options = opts.merge(
166
+ :header_params => header_params,
167
+ :query_params => query_params,
168
+ :form_params => form_params,
169
+ :body => post_body,
170
+ :auth_names => auth_names,
171
+ :return_type => return_type
172
+ )
173
+
174
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "ProjectApi", new_options)
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug "API called: ProjectApi#create_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
+ end
178
+ return data, status_code, headers
179
+ end
180
+
96
181
  # Creates a time entry for a specific project
97
182
  # Allows you to create a specific task
98
183
  # @param xero_tenant_id [String] Xero identifier for Tenant
@@ -178,6 +263,89 @@ module XeroRuby
178
263
  return data, status_code, headers
179
264
  end
180
265
 
266
+ # Allows you to delete a task
267
+ # Allows you to delete a specific task
268
+ # @param xero_tenant_id [String] Xero identifier for Tenant
269
+ # @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
270
+ # @param task_id [String] You can specify an individual task by appending the id to the endpoint
271
+ # @param [Hash] opts the optional parameters
272
+ # @return [nil]
273
+ def delete_task(xero_tenant_id, project_id, task_id, opts = {})
274
+ delete_task_with_http_info(xero_tenant_id, project_id, task_id, opts)
275
+ nil
276
+ end
277
+
278
+ # Allows you to delete a task
279
+ # Allows you to delete a specific task
280
+ # @param xero_tenant_id [String] Xero identifier for Tenant
281
+ # @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
282
+ # @param task_id [String] You can specify an individual task by appending the id to the endpoint
283
+ # @param [Hash] opts the optional parameters
284
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
285
+ def delete_task_with_http_info(xero_tenant_id, project_id, task_id, options = {})
286
+ opts = options.dup
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug 'Calling API: ProjectApi.delete_task ...'
289
+ end
290
+ # verify the required parameter 'xero_tenant_id' is set
291
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
292
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling ProjectApi.delete_task"
293
+ end
294
+ # verify the required parameter 'project_id' is set
295
+ if @api_client.config.client_side_validation && project_id.nil?
296
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.delete_task"
297
+ end
298
+ # verify the required parameter 'task_id' is set
299
+ if @api_client.config.client_side_validation && task_id.nil?
300
+ fail ArgumentError, "Missing the required parameter 'task_id' when calling ProjectApi.delete_task"
301
+ end
302
+ # resource path
303
+ local_var_path = '/Projects/{projectId}/Tasks/{taskId}'.sub('{' + 'projectId' + '}', project_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
304
+
305
+ # camelize keys of incoming `where` opts
306
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
307
+
308
+ # query parameters
309
+ query_params = opts[:query_params] || {}
310
+
311
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
312
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
313
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
314
+
315
+ # header parameters
316
+ header_params = opts[:header_params] || {}
317
+ # HTTP header 'Accept' (if needed)
318
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
319
+ header_params[:'Xero-Tenant-Id'] = xero_tenant_id
320
+
321
+ # form parameters
322
+ form_params = opts[:form_params] || {}
323
+
324
+ # http body (model)
325
+ post_body = opts[:body]
326
+
327
+ # return_type
328
+ return_type = opts[:return_type]
329
+
330
+ # auth_names
331
+ auth_names = opts[:auth_names] || ['OAuth2']
332
+
333
+ new_options = opts.merge(
334
+ :header_params => header_params,
335
+ :query_params => query_params,
336
+ :form_params => form_params,
337
+ :body => post_body,
338
+ :auth_names => auth_names,
339
+ :return_type => return_type
340
+ )
341
+
342
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "ProjectApi", new_options)
343
+ if @api_client.config.debugging
344
+ @api_client.config.logger.debug "API called: ProjectApi#delete_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
345
+ end
346
+ return data, status_code, headers
347
+ end
348
+
181
349
  # Deletes a time entry for a specific project
182
350
  # Allows you to delete a specific time entry
183
351
  # @param xero_tenant_id [String] Xero identifier for Tenant
@@ -229,6 +397,8 @@ module XeroRuby
229
397
 
230
398
  # header parameters
231
399
  header_params = opts[:header_params] || {}
400
+ # HTTP header 'Accept' (if needed)
401
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
232
402
  header_params[:'Xero-Tenant-Id'] = xero_tenant_id
233
403
 
234
404
  # form parameters
@@ -1047,6 +1217,97 @@ module XeroRuby
1047
1217
  return data, status_code, headers
1048
1218
  end
1049
1219
 
1220
+ # Allows you to update a task
1221
+ # Allows you to update a specific task
1222
+ # @param xero_tenant_id [String] Xero identifier for Tenant
1223
+ # @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
1224
+ # @param task_id [String] You can specify an individual task by appending the id to the endpoint
1225
+ # @param task_create_or_update [TaskCreateOrUpdate] The task object you are updating
1226
+ # @param [Hash] opts the optional parameters
1227
+ # @return [nil]
1228
+ def update_task(xero_tenant_id, project_id, task_id, task_create_or_update, opts = {})
1229
+ update_task_with_http_info(xero_tenant_id, project_id, task_id, task_create_or_update, opts)
1230
+ nil
1231
+ end
1232
+
1233
+ # Allows you to update a task
1234
+ # Allows you to update a specific task
1235
+ # @param xero_tenant_id [String] Xero identifier for Tenant
1236
+ # @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
1237
+ # @param task_id [String] You can specify an individual task by appending the id to the endpoint
1238
+ # @param task_create_or_update [TaskCreateOrUpdate] The task object you are updating
1239
+ # @param [Hash] opts the optional parameters
1240
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1241
+ def update_task_with_http_info(xero_tenant_id, project_id, task_id, task_create_or_update, options = {})
1242
+ opts = options.dup
1243
+ if @api_client.config.debugging
1244
+ @api_client.config.logger.debug 'Calling API: ProjectApi.update_task ...'
1245
+ end
1246
+ # verify the required parameter 'xero_tenant_id' is set
1247
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
1248
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling ProjectApi.update_task"
1249
+ end
1250
+ # verify the required parameter 'project_id' is set
1251
+ if @api_client.config.client_side_validation && project_id.nil?
1252
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.update_task"
1253
+ end
1254
+ # verify the required parameter 'task_id' is set
1255
+ if @api_client.config.client_side_validation && task_id.nil?
1256
+ fail ArgumentError, "Missing the required parameter 'task_id' when calling ProjectApi.update_task"
1257
+ end
1258
+ # verify the required parameter 'task_create_or_update' is set
1259
+ if @api_client.config.client_side_validation && task_create_or_update.nil?
1260
+ fail ArgumentError, "Missing the required parameter 'task_create_or_update' when calling ProjectApi.update_task"
1261
+ end
1262
+ # resource path
1263
+ local_var_path = '/Projects/{projectId}/Tasks/{taskId}'.sub('{' + 'projectId' + '}', project_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
1264
+
1265
+ # camelize keys of incoming `where` opts
1266
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
1267
+
1268
+ # query parameters
1269
+ query_params = opts[:query_params] || {}
1270
+
1271
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
1272
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
1273
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
1274
+
1275
+ # header parameters
1276
+ header_params = opts[:header_params] || {}
1277
+ # HTTP header 'Accept' (if needed)
1278
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1279
+ # HTTP header 'Content-Type'
1280
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1281
+ header_params[:'Xero-Tenant-Id'] = xero_tenant_id
1282
+
1283
+ # form parameters
1284
+ form_params = opts[:form_params] || {}
1285
+
1286
+ # http body (model)
1287
+ post_body = opts[:body] || @api_client.object_to_http_body(task_create_or_update)
1288
+
1289
+ # return_type
1290
+ return_type = opts[:return_type]
1291
+
1292
+ # auth_names
1293
+ auth_names = opts[:auth_names] || ['OAuth2']
1294
+
1295
+ new_options = opts.merge(
1296
+ :header_params => header_params,
1297
+ :query_params => query_params,
1298
+ :form_params => form_params,
1299
+ :body => post_body,
1300
+ :auth_names => auth_names,
1301
+ :return_type => return_type
1302
+ )
1303
+
1304
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "ProjectApi", new_options)
1305
+ if @api_client.config.debugging
1306
+ @api_client.config.logger.debug "API called: ProjectApi#update_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1307
+ end
1308
+ return data, status_code, headers
1309
+ end
1310
+
1050
1311
  # Updates a time entry for a specific project
1051
1312
  # Allows you to update time entry in a project
1052
1313
  # @param xero_tenant_id [String] Xero identifier for Tenant
@@ -1104,6 +1365,8 @@ module XeroRuby
1104
1365
 
1105
1366
  # header parameters
1106
1367
  header_params = opts[:header_params] || {}
1368
+ # HTTP header 'Accept' (if needed)
1369
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1107
1370
  # HTTP header 'Content-Type'
1108
1371
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1109
1372
  header_params[:'Xero-Tenant-Id'] = xero_tenant_id
@@ -115,6 +115,7 @@ module XeroRuby::Accounting
115
115
  TXRCN33_INPUT ||= "TXRCN33INPUT".freeze
116
116
  TXRCREINPUT ||= "TXRCREINPUT".freeze
117
117
  TXRCESSINPUT ||= "TXRCESSINPUT".freeze
118
+ TXRCTSINPUT ||= "TXRCTSINPUT".freeze
118
119
 
119
120
  # Boolean to describe if tax rate can be used for asset accounts i.e. true,false
120
121
  attr_accessor :can_apply_to_assets
@@ -273,7 +274,7 @@ module XeroRuby::Accounting
273
274
  def valid?
274
275
  status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DELETED", "ARCHIVED", "PENDING"])
275
276
  return false unless status_validator.valid?(@status)
276
- 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"])
277
+ 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"])
277
278
  return false unless report_tax_type_validator.valid?(@report_tax_type)
278
279
  true
279
280
  end
@@ -291,7 +292,7 @@ module XeroRuby::Accounting
291
292
  # Custom attribute writer method checking allowed values (enum).
292
293
  # @param [Object] report_tax_type Object to be assigned
293
294
  def report_tax_type=(report_tax_type)
294
- 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"])
295
+ 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"])
295
296
  unless validator.valid?(report_tax_type)
296
297
  fail ArgumentError, "invalid value for \"report_tax_type\", must be one of #{validator.allowable_values}."
297
298
  end
@@ -80,6 +80,7 @@ module XeroRuby::Accounting
80
80
  TXRCN33_INPUT ||= "TXRCN33INPUT".freeze
81
81
  TXRCREINPUT ||= "TXRCREINPUT".freeze
82
82
  TXRCESSINPUT ||= "TXRCESSINPUT".freeze
83
+ TXRCTSINPUT ||= "TXRCTSINPUT".freeze
83
84
 
84
85
  # Builds the enum from string
85
86
  # @param [String] The enum value in the form of the string
@@ -114,14 +114,14 @@ module XeroRuby::Projects
114
114
  :'name' => :'String',
115
115
  :'rate' => :'Amount',
116
116
  :'charge_type' => :'ChargeType',
117
- :'estimate_minutes' => :'Float',
117
+ :'estimate_minutes' => :'Integer',
118
118
  :'project_id' => :'String',
119
- :'total_minutes' => :'Float',
119
+ :'total_minutes' => :'Integer',
120
120
  :'total_amount' => :'Amount',
121
- :'minutes_invoiced' => :'Float',
122
- :'minutes_to_be_invoiced' => :'Float',
123
- :'fixed_minutes' => :'Float',
124
- :'non_chargeable_minutes' => :'Float',
121
+ :'minutes_invoiced' => :'Integer',
122
+ :'minutes_to_be_invoiced' => :'Integer',
123
+ :'fixed_minutes' => :'Integer',
124
+ :'non_chargeable_minutes' => :'Integer',
125
125
  :'amount_to_be_invoiced' => :'Amount',
126
126
  :'amount_invoiced' => :'Amount',
127
127
  :'status' => :'String'
@@ -25,7 +25,7 @@ module XeroRuby::Projects
25
25
 
26
26
  attr_accessor :charge_type
27
27
 
28
- # Estimated time to perform the task. EstimateMinutes has to be greater than 0 if provided.
28
+ # An estimated time to perform the task
29
29
  attr_accessor :estimate_minutes
30
30
 
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -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.22.4
10
+ The version of the XeroOpenAPI document: 2.23.0
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '3.9.0'
14
+ VERSION = '3.10.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: 3.9.0
4
+ version: 3.10.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: 2022-05-10 00:00:00.000000000 Z
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -1107,7 +1107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1107
1107
  - !ruby/object:Gem::Version
1108
1108
  version: '0'
1109
1109
  requirements: []
1110
- rubygems_version: 3.2.3
1110
+ rubygems_version: 3.1.6
1111
1111
  signing_key:
1112
1112
  specification_version: 4
1113
1113
  summary: Xero Accounting API Ruby Gem