xero-ruby 9.3.0 → 18.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.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xero-ruby/api/accounting_api.rb +178 -319
  3. data/lib/xero-ruby/api/files_api.rb +9 -2
  4. data/lib/xero-ruby/api/finance_api.rb +0 -299
  5. data/lib/xero-ruby/api/payroll_au_v2_api.rb +751 -0
  6. data/lib/xero-ruby/api/payroll_nz_api.rb +0 -86
  7. data/lib/xero-ruby/api/payroll_uk_api.rb +0 -86
  8. data/lib/xero-ruby/models/accounting/bank_transfer.rb +71 -1
  9. data/lib/xero-ruby/models/accounting/bank_transfer_delete.rb +244 -0
  10. data/lib/xero-ruby/models/accounting/bank_transfer_delete_by_url_param.rb +229 -0
  11. data/lib/xero-ruby/models/accounting/bank_transfers_delete.rb +224 -0
  12. data/lib/xero-ruby/models/accounting/contact.rb +27 -1
  13. data/lib/xero-ruby/models/accounting/credit_note.rb +11 -1
  14. data/lib/xero-ruby/models/accounting/invoice.rb +12 -2
  15. data/lib/xero-ruby/models/accounting/organisation.rb +25 -6
  16. data/lib/xero-ruby/models/accounting/overpayment.rb +21 -1
  17. data/lib/xero-ruby/models/accounting/payment.rb +11 -1
  18. data/lib/xero-ruby/models/accounting/prepayment.rb +31 -1
  19. data/lib/xero-ruby/models/accounting/tracking_reference.rb +277 -0
  20. data/lib/xero-ruby/models/accounting/user.rb +3 -2
  21. data/lib/xero-ruby/models/app_store/product.rb +4 -3
  22. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +54 -4
  23. data/lib/xero-ruby/models/files/association.rb +21 -1
  24. data/lib/xero-ruby/models/finance/current_statement_response.rb +1 -1
  25. data/lib/xero-ruby/models/finance/data_source_response.rb +1 -31
  26. data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +16 -1
  27. data/lib/xero-ruby/models/payroll_au/employee.rb +1 -13
  28. data/lib/xero-ruby/models/payroll_au/leave_line.rb +16 -1
  29. data/lib/xero-ruby/models/payroll_au/leave_type.rb +19 -4
  30. data/lib/xero-ruby/models/payroll_au/opening_balance_leave_line.rb +232 -0
  31. data/lib/xero-ruby/models/payroll_au/opening_balances.rb +1 -1
  32. data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +14 -4
  33. data/lib/xero-ruby/models/payroll_au_v2/invalid_field.rb +232 -0
  34. data/lib/xero-ruby/models/payroll_au_v2/pagination.rb +252 -0
  35. data/lib/xero-ruby/models/payroll_au_v2/problem.rb +275 -0
  36. data/lib/xero-ruby/models/payroll_au_v2/timesheet.rb +361 -0
  37. data/lib/xero-ruby/models/payroll_au_v2/timesheet_line.rb +277 -0
  38. data/lib/xero-ruby/models/payroll_au_v2/timesheet_line_object.rb +242 -0
  39. data/lib/xero-ruby/models/payroll_au_v2/timesheet_object.rb +242 -0
  40. data/lib/xero-ruby/models/payroll_au_v2/timesheets.rb +244 -0
  41. data/lib/xero-ruby/models/payroll_nz/employee.rb +20 -0
  42. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +29 -19
  43. data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +31 -11
  44. data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +5 -0
  45. data/lib/xero-ruby/models/payroll_nz/employment.rb +15 -0
  46. data/lib/xero-ruby/models/payroll_nz/leave_period.rb +35 -4
  47. data/lib/xero-ruby/models/payroll_nz/leave_type.rb +24 -4
  48. data/lib/xero-ruby/models/payroll_uk/contract_type.rb +38 -0
  49. data/lib/xero-ruby/models/payroll_uk/contracts.rb +297 -0
  50. data/lib/xero-ruby/models/payroll_uk/developmental_role_details.rb +267 -0
  51. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +5 -2
  52. data/lib/xero-ruby/models/payroll_uk/employee.rb +68 -4
  53. data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +5 -0
  54. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +4 -2
  55. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +5 -2
  56. data/lib/xero-ruby/models/payroll_uk/employment.rb +49 -52
  57. data/lib/xero-ruby/models/payroll_uk/employment_status.rb +37 -0
  58. data/lib/xero-ruby/models/payroll_uk/ni_category.rb +318 -0
  59. data/lib/xero-ruby/models/payroll_uk/ni_category_letter.rb +51 -0
  60. data/lib/xero-ruby/models/payroll_uk/ni_category_one_of.rb +264 -0
  61. data/lib/xero-ruby/models/payroll_uk/ni_category_one_of1.rb +257 -0
  62. data/lib/xero-ruby/version.rb +2 -2
  63. data/lib/xero-ruby.rb +22 -10
  64. data/spec/finance/api/finance_api_spec.rb +0 -53
  65. metadata +393 -391
  66. data/spec/finance/models/account_usage_response_spec.rb +0 -58
  67. data/spec/finance/models/account_usage_spec.rb +0 -112
  68. data/spec/finance/models/history_record_response_spec.rb +0 -64
  69. data/spec/finance/models/lock_history_model_spec.rb +0 -52
  70. data/spec/finance/models/lock_history_response_spec.rb +0 -52
  71. data/spec/finance/models/practice_response_spec.rb +0 -64
  72. data/spec/finance/models/report_history_model_spec.rb +0 -52
  73. data/spec/finance/models/report_history_response_spec.rb +0 -52
  74. data/spec/finance/models/user_activities_response_spec.rb +0 -52
  75. data/spec/finance/models/user_response_spec.rb +0 -106
@@ -0,0 +1,257 @@
1
+ =begin
2
+ #Xero Payroll UK
3
+
4
+ #This is the Xero Payroll API for orgs in the UK region.
5
+
6
+ Contact: api@xero.com
7
+ Generated by: https://openapi-generator.tech
8
+ OpenAPI Generator version: 4.3.1
9
+
10
+ =end
11
+
12
+ require 'time'
13
+ require 'date'
14
+
15
+ module XeroRuby::PayrollUk
16
+ require 'bigdecimal'
17
+
18
+ class NICategoryOneOf1
19
+
20
+ attr_accessor :ni_category
21
+ V ||= "V".freeze
22
+
23
+ class EnumAttributeValidator
24
+ attr_reader :datatype
25
+ attr_reader :allowable_values
26
+
27
+ def initialize(datatype, allowable_values)
28
+ @allowable_values = allowable_values.map do |value|
29
+ case datatype.to_s
30
+ when /Integer/i
31
+ value.to_i
32
+ when /Float/i
33
+ value.to_f
34
+ else
35
+ value
36
+ end
37
+ end
38
+ end
39
+
40
+ def valid?(value)
41
+ !value || allowable_values.include?(value)
42
+ end
43
+ end
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'ni_category' => :'niCategory'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'ni_category' => :'String'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::PayrollUk::NICategoryOneOf1` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!self.class.attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::PayrollUk::NICategoryOneOf1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'ni_category')
75
+ self.ni_category = attributes[:'ni_category']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ ni_category_validator = EnumAttributeValidator.new('String', ["V"])
90
+ return false unless ni_category_validator.valid?(@ni_category)
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method checking allowed values (enum).
95
+ # @param [Object] ni_category Object to be assigned
96
+ def ni_category=(ni_category)
97
+ validator = EnumAttributeValidator.new('String', ["V"])
98
+ unless validator.valid?(ni_category)
99
+ fail ArgumentError, "invalid value for \"ni_category\", must be one of #{validator.allowable_values}."
100
+ end
101
+ @ni_category = ni_category
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ ni_category == o.ni_category
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [ni_category].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def self.build_from_hash(attributes)
128
+ new.build_from_hash(attributes)
129
+ end
130
+
131
+ # Builds the object from hash
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ # @return [Object] Returns the model itself
134
+ def build_from_hash(attributes)
135
+ return nil unless attributes.is_a?(Hash)
136
+ self.class.openapi_types.each_pair do |key, type|
137
+ if type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the attribute
139
+ # is documented as an array but the input is not
140
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
141
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
142
+ end
143
+ elsif !attributes[self.class.attribute_map[key]].nil?
144
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
146
+ end
147
+
148
+ self
149
+ end
150
+
151
+ # Deserializes the data based on type
152
+ # @param string type Data type
153
+ # @param string value Value to be deserialized
154
+ # @return [Object] Deserialized data
155
+ def _deserialize(type, value)
156
+ case type.to_sym
157
+ when :DateTime
158
+ DateTime.parse(parse_date(value))
159
+ when :Date
160
+ Date.parse(parse_date(value))
161
+ when :String
162
+ value.to_s
163
+ when :Integer
164
+ value.to_i
165
+ when :Float
166
+ value.to_f
167
+ when :BigDecimal
168
+ BigDecimal(value.to_s)
169
+ when :Boolean
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
171
+ true
172
+ else
173
+ false
174
+ end
175
+ when :Object
176
+ # generic object (usually a Hash), return directly
177
+ value
178
+ when /\AArray<(?<inner_type>.+)>\z/
179
+ inner_type = Regexp.last_match[:inner_type]
180
+ value.map { |v| _deserialize(inner_type, v) }
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
182
+ k_type = Regexp.last_match[:k_type]
183
+ v_type = Regexp.last_match[:v_type]
184
+ {}.tap do |hash|
185
+ value.each do |k, v|
186
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
187
+ end
188
+ end
189
+ else # model
190
+ XeroRuby::PayrollUk.const_get(type).build_from_hash(value)
191
+ end
192
+ end
193
+
194
+ # Returns the string representation of the object
195
+ # @return [String] String presentation of the object
196
+ def to_s
197
+ to_hash.to_s
198
+ end
199
+
200
+ # to_body is an alias to to_hash (backward compatibility)
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_body
203
+ to_hash
204
+ end
205
+
206
+ # Returns the object in the form of hash
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_hash(downcase: false)
209
+ hash = {}
210
+ self.class.attribute_map.each_pair do |attr, param|
211
+ value = self.send(attr)
212
+ next if value.nil?
213
+ key = downcase ? attr : param
214
+ hash[key] = _to_hash(value, downcase: downcase)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Returns the object in the form of hash with snake_case
220
+ def to_attributes
221
+ to_hash(downcase: true)
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value, downcase: false)
229
+ if value.is_a?(Array)
230
+ value.map do |v|
231
+ v.to_hash(downcase: downcase)
232
+ end
233
+ elsif value.is_a?(Hash)
234
+ {}.tap do |hash|
235
+ value.map { |k, v| hash[k] = _to_hash(v, downcase: downcase) }
236
+ end
237
+ elsif value.respond_to? :to_hash
238
+ value.to_hash(downcase: downcase)
239
+ else
240
+ value
241
+ end
242
+ end
243
+
244
+ def parse_date(datestring)
245
+ if datestring.include?('Date')
246
+ date_pattern = /\/Date\((-?\d+)(\+\d+)?\)\//
247
+ original, date, timezone = *date_pattern.match(datestring)
248
+ date = (date.to_i / 1000)
249
+ Time.at(date).utc.strftime('%Y-%m-%dT%H:%M:%S%z').to_s
250
+ elsif /(\d\d\d\d)-(\d\d)/.match(datestring) # handles dates w/out Days: YYYY-MM*-DD
251
+ Time.parse(datestring + '-01').strftime('%Y-%m-%dT%H:%M:%S').to_s
252
+ else # handle date 'types' for small subset of payroll API's
253
+ Time.parse(datestring).strftime('%Y-%m-%dT%H:%M:%S').to_s
254
+ end
255
+ end
256
+ end
257
+ end
@@ -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: 6.3.0
10
+ The version of the XeroOpenAPI document: 16.1.0
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '9.3.0'
14
+ VERSION = '18.0.0'
15
15
  end
data/lib/xero-ruby.rb CHANGED
@@ -18,8 +18,6 @@ require 'xero-ruby/version'
18
18
  require 'xero-ruby/configuration'
19
19
 
20
20
  # Models
21
- require 'xero-ruby/models/finance/account_usage'
22
- require 'xero-ruby/models/finance/account_usage_response'
23
21
  require 'xero-ruby/models/finance/balance_sheet_account_detail'
24
22
  require 'xero-ruby/models/finance/balance_sheet_account_group'
25
23
  require 'xero-ruby/models/finance/balance_sheet_account_type'
@@ -41,25 +39,19 @@ require 'xero-ruby/models/finance/contact_total_other'
41
39
  require 'xero-ruby/models/finance/credit_note_response'
42
40
  require 'xero-ruby/models/finance/current_statement_response'
43
41
  require 'xero-ruby/models/finance/data_source_response'
44
- require 'xero-ruby/models/finance/history_record_response'
45
42
  require 'xero-ruby/models/finance/income_by_contact_response'
46
43
  require 'xero-ruby/models/finance/invoice_response'
47
44
  require 'xero-ruby/models/finance/line_item_response'
48
- require 'xero-ruby/models/finance/lock_history_model'
49
- require 'xero-ruby/models/finance/lock_history_response'
50
45
  require 'xero-ruby/models/finance/manual_journal_total'
51
46
  require 'xero-ruby/models/finance/overpayment_response'
52
47
  require 'xero-ruby/models/finance/payment_response'
53
48
  require 'xero-ruby/models/finance/pnl_account'
54
49
  require 'xero-ruby/models/finance/pnl_account_class'
55
50
  require 'xero-ruby/models/finance/pnl_account_type'
56
- require 'xero-ruby/models/finance/practice_response'
57
51
  require 'xero-ruby/models/finance/prepayment_response'
58
52
  require 'xero-ruby/models/finance/problem'
59
53
  require 'xero-ruby/models/finance/problem_type'
60
54
  require 'xero-ruby/models/finance/profit_and_loss_response'
61
- require 'xero-ruby/models/finance/report_history_model'
62
- require 'xero-ruby/models/finance/report_history_response'
63
55
  require 'xero-ruby/models/finance/statement_balance_response'
64
56
  require 'xero-ruby/models/finance/statement_line_response'
65
57
  require 'xero-ruby/models/finance/statement_lines_response'
@@ -70,8 +62,6 @@ require 'xero-ruby/models/finance/trial_balance_account'
70
62
  require 'xero-ruby/models/finance/trial_balance_entry'
71
63
  require 'xero-ruby/models/finance/trial_balance_movement'
72
64
  require 'xero-ruby/models/finance/trial_balance_response'
73
- require 'xero-ruby/models/finance/user_activities_response'
74
- require 'xero-ruby/models/finance/user_response'
75
65
  require 'xero-ruby/models/app_store/create_usage_record'
76
66
  require 'xero-ruby/models/app_store/plan'
77
67
  require 'xero-ruby/models/app_store/price'
@@ -90,11 +80,14 @@ require 'xero-ruby/models/payroll_uk/benefit'
90
80
  require 'xero-ruby/models/payroll_uk/benefit_line'
91
81
  require 'xero-ruby/models/payroll_uk/benefit_object'
92
82
  require 'xero-ruby/models/payroll_uk/benefits'
83
+ require 'xero-ruby/models/payroll_uk/contract_type'
84
+ require 'xero-ruby/models/payroll_uk/contracts'
93
85
  require 'xero-ruby/models/payroll_uk/court_order_line'
94
86
  require 'xero-ruby/models/payroll_uk/deduction'
95
87
  require 'xero-ruby/models/payroll_uk/deduction_line'
96
88
  require 'xero-ruby/models/payroll_uk/deduction_object'
97
89
  require 'xero-ruby/models/payroll_uk/deductions'
90
+ require 'xero-ruby/models/payroll_uk/developmental_role_details'
98
91
  require 'xero-ruby/models/payroll_uk/earnings_line'
99
92
  require 'xero-ruby/models/payroll_uk/earnings_order'
100
93
  require 'xero-ruby/models/payroll_uk/earnings_order_object'
@@ -131,6 +124,7 @@ require 'xero-ruby/models/payroll_uk/employee_tax_object'
131
124
  require 'xero-ruby/models/payroll_uk/employees'
132
125
  require 'xero-ruby/models/payroll_uk/employment'
133
126
  require 'xero-ruby/models/payroll_uk/employment_object'
127
+ require 'xero-ruby/models/payroll_uk/employment_status'
134
128
  require 'xero-ruby/models/payroll_uk/invalid_field'
135
129
  require 'xero-ruby/models/payroll_uk/leave_accrual_line'
136
130
  require 'xero-ruby/models/payroll_uk/leave_earnings_line'
@@ -139,6 +133,10 @@ require 'xero-ruby/models/payroll_uk/leave_periods'
139
133
  require 'xero-ruby/models/payroll_uk/leave_type'
140
134
  require 'xero-ruby/models/payroll_uk/leave_type_object'
141
135
  require 'xero-ruby/models/payroll_uk/leave_types'
136
+ require 'xero-ruby/models/payroll_uk/ni_category'
137
+ require 'xero-ruby/models/payroll_uk/ni_category_letter'
138
+ require 'xero-ruby/models/payroll_uk/ni_category_one_of'
139
+ require 'xero-ruby/models/payroll_uk/ni_category_one_of1'
142
140
  require 'xero-ruby/models/payroll_uk/pagination'
143
141
  require 'xero-ruby/models/payroll_uk/pay_run'
144
142
  require 'xero-ruby/models/payroll_uk/pay_run_calendar'
@@ -277,6 +275,14 @@ require 'xero-ruby/models/payroll_nz/timesheets'
277
275
  require 'xero-ruby/models/payroll_nz/tracking_categories'
278
276
  require 'xero-ruby/models/payroll_nz/tracking_category'
279
277
  require 'xero-ruby/models/payroll_nz/working_week'
278
+ require 'xero-ruby/models/payroll_au_v2/invalid_field'
279
+ require 'xero-ruby/models/payroll_au_v2/pagination'
280
+ require 'xero-ruby/models/payroll_au_v2/problem'
281
+ require 'xero-ruby/models/payroll_au_v2/timesheet'
282
+ require 'xero-ruby/models/payroll_au_v2/timesheet_line'
283
+ require 'xero-ruby/models/payroll_au_v2/timesheet_line_object'
284
+ require 'xero-ruby/models/payroll_au_v2/timesheet_object'
285
+ require 'xero-ruby/models/payroll_au_v2/timesheets'
280
286
  require 'xero-ruby/models/payroll_au/api_exception'
281
287
  require 'xero-ruby/models/payroll_au/account'
282
288
  require 'xero-ruby/models/payroll_au/account_type'
@@ -315,6 +321,7 @@ require 'xero-ruby/models/payroll_au/leave_period_status'
315
321
  require 'xero-ruby/models/payroll_au/leave_type'
316
322
  require 'xero-ruby/models/payroll_au/leave_type_contribution_type'
317
323
  require 'xero-ruby/models/payroll_au/manual_tax_type'
324
+ require 'xero-ruby/models/payroll_au/opening_balance_leave_line'
318
325
  require 'xero-ruby/models/payroll_au/opening_balances'
319
326
  require 'xero-ruby/models/payroll_au/paid_leave_earnings_line'
320
327
  require 'xero-ruby/models/payroll_au/pay_item'
@@ -422,7 +429,10 @@ require 'xero-ruby/models/accounting/balances'
422
429
  require 'xero-ruby/models/accounting/bank_transaction'
423
430
  require 'xero-ruby/models/accounting/bank_transactions'
424
431
  require 'xero-ruby/models/accounting/bank_transfer'
432
+ require 'xero-ruby/models/accounting/bank_transfer_delete'
433
+ require 'xero-ruby/models/accounting/bank_transfer_delete_by_url_param'
425
434
  require 'xero-ruby/models/accounting/bank_transfers'
435
+ require 'xero-ruby/models/accounting/bank_transfers_delete'
426
436
  require 'xero-ruby/models/accounting/batch_payment'
427
437
  require 'xero-ruby/models/accounting/batch_payment_delete'
428
438
  require 'xero-ruby/models/accounting/batch_payment_delete_by_url_param'
@@ -537,6 +547,7 @@ require 'xero-ruby/models/accounting/tracking_categories'
537
547
  require 'xero-ruby/models/accounting/tracking_category'
538
548
  require 'xero-ruby/models/accounting/tracking_option'
539
549
  require 'xero-ruby/models/accounting/tracking_options'
550
+ require 'xero-ruby/models/accounting/tracking_reference'
540
551
  require 'xero-ruby/models/accounting/user'
541
552
  require 'xero-ruby/models/accounting/users'
542
553
  require 'xero-ruby/models/accounting/validation_error'
@@ -546,6 +557,7 @@ require 'xero-ruby/api/finance_api'
546
557
  require 'xero-ruby/api/app_store_api'
547
558
  require 'xero-ruby/api/payroll_uk_api'
548
559
  require 'xero-ruby/api/payroll_nz_api'
560
+ require 'xero-ruby/api/payroll_au_v2_api'
549
561
  require 'xero-ruby/api/payroll_au_api'
550
562
  require 'xero-ruby/api/files_api'
551
563
  require 'xero-ruby/api/project_api'
@@ -31,59 +31,6 @@ describe 'FinanceApi' do
31
31
  end
32
32
  end
33
33
 
34
- # unit tests for get_accounting_activity_account_usage
35
- # Get account usage
36
- # A summary of how each account is being transacted on exposing the level of detail and amounts attributable to manual adjustments.
37
- # @param xero_tenant_id Xero identifier for Tenant
38
- # @param [Hash] opts the optional parameters
39
- # @option opts [String] :start_month date, yyyy-MM If no parameter is provided, the month 12 months prior to the end month will be used. Account usage for up to 12 months from this date will be returned.
40
- # @option opts [String] :end_month date, yyyy-MM If no parameter is provided, the current month will be used. Account usage for up to 12 months prior to this date will be returned.
41
- # @return [AccountUsageResponse]
42
- describe 'get_accounting_activity_account_usage test' do
43
- it 'should work' do
44
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
- end
46
- end
47
-
48
- # unit tests for get_accounting_activity_lock_history
49
- # Get lock history
50
- # Provides a history of locking of accounting books. Locking may be an indicator of good accounting practices that could reduce the risk of changes to accounting records in prior periods.
51
- # @param xero_tenant_id Xero identifier for Tenant
52
- # @param [Hash] opts the optional parameters
53
- # @option opts [String] :end_date date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any changes to hard or soft lock dates that were made within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a change is visible from this API.
54
- # @return [LockHistoryResponse]
55
- describe 'get_accounting_activity_lock_history test' do
56
- it 'should work' do
57
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
- end
59
- end
60
-
61
- # unit tests for get_accounting_activity_report_history
62
- # Get report history
63
- # For a specified organisation, provides a summary of all the reports published within a given period, which may be an indicator for good business management and oversight.
64
- # @param xero_tenant_id Xero identifier for Tenant
65
- # @param [Hash] opts the optional parameters
66
- # @option opts [String] :end_date date, yyyy-MM-dd If no parameter is provided, the current date will be used. Any reports that were published within the period up to 12 months before this date will be returned. Please be aware that there may be a delay of up to 3 days before a published report is visible from this API.
67
- # @return [ReportHistoryResponse]
68
- describe 'get_accounting_activity_report_history test' do
69
- it 'should work' do
70
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
- end
72
- end
73
-
74
- # unit tests for get_accounting_activity_user_activities
75
- # Get user activities
76
- # For a specified organisation, provides a list of all the users registered, and a history of their accounting transactions. Also identifies the existence of an external accounting advisor and the level of interaction.
77
- # @param xero_tenant_id Xero identifier for Tenant
78
- # @param [Hash] opts the optional parameters
79
- # @option opts [String] :data_month date, yyyy-MM The specified month must be complete (in the past); The current month cannot be specified since it is not complete. If no parameter is provided, the month immediately previous to the current month will be used. Any user activities occurring within the specified month will be returned. Please be aware that there may be a delay of up to 3 days before a user activity is visible from this API.
80
- # @return [UserActivitiesResponse]
81
- describe 'get_accounting_activity_user_activities test' do
82
- it 'should work' do
83
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
- end
85
- end
86
-
87
34
  # unit tests for get_cash_validation
88
35
  # Get cash validation
89
36
  # Summarizes the total cash position for each account for an org