xero-ruby 3.9.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/xero-ruby/api/accounting_api.rb +1136 -46
  4. data/lib/xero-ruby/api/app_store_api.rb +244 -0
  5. data/lib/xero-ruby/api/asset_api.rb +16 -6
  6. data/lib/xero-ruby/api/files_api.rb +156 -20
  7. data/lib/xero-ruby/api/payroll_au_api.rb +326 -30
  8. data/lib/xero-ruby/api/payroll_nz_api.rb +87 -0
  9. data/lib/xero-ruby/api/payroll_uk_api.rb +81 -0
  10. data/lib/xero-ruby/api/project_api.rb +286 -2
  11. data/lib/xero-ruby/api_client.rb +9 -3
  12. data/lib/xero-ruby/models/accounting/account.rb +1 -1
  13. data/lib/xero-ruby/models/accounting/account_type.rb +0 -4
  14. data/lib/xero-ruby/models/accounting/allocation.rb +21 -1
  15. data/lib/xero-ruby/models/accounting/batch_payment.rb +2 -2
  16. data/lib/xero-ruby/models/accounting/batch_payment_delete.rb +244 -0
  17. data/lib/xero-ruby/models/accounting/batch_payment_delete_by_url_param.rb +229 -0
  18. data/lib/xero-ruby/models/accounting/contact.rb +1 -11
  19. data/lib/xero-ruby/models/accounting/currency_code.rb +10 -8
  20. data/lib/xero-ruby/models/accounting/journal_line.rb +1 -1
  21. data/lib/xero-ruby/models/accounting/line_item.rb +2 -2
  22. data/lib/xero-ruby/models/accounting/organisation.rb +6 -2
  23. data/lib/xero-ruby/models/accounting/payment.rb +26 -4
  24. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +53 -5
  25. data/lib/xero-ruby/models/accounting/tax_rate.rb +23 -5
  26. data/lib/xero-ruby/models/accounting/tax_type.rb +60 -3
  27. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +75 -4
  28. data/lib/xero-ruby/models/accounting/time_zone.rb +123 -91
  29. data/lib/xero-ruby/models/app_store/create_usage_record.rb +243 -0
  30. data/lib/xero-ruby/models/app_store/update_usage_record.rb +228 -0
  31. data/lib/xero-ruby/models/app_store/usage_record.rb +332 -0
  32. data/lib/xero-ruby/models/app_store/usage_records_list.rb +230 -0
  33. data/lib/xero-ruby/models/files/association.rb +31 -1
  34. data/lib/xero-ruby/models/finance/problem_type.rb +1 -0
  35. data/lib/xero-ruby/models/finance/statement_line_response.rb +11 -1
  36. data/lib/xero-ruby/models/finance/statement_response.rb +24 -4
  37. data/lib/xero-ruby/models/payroll_au/allowance_type.rb +0 -1
  38. data/lib/xero-ruby/models/payroll_au/country_of_residence.rb +284 -0
  39. data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +21 -1
  40. data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -0
  41. data/lib/xero-ruby/models/payroll_au/employee.rb +42 -2
  42. data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -0
  43. data/lib/xero-ruby/models/payroll_au/employment_type.rb +36 -0
  44. data/lib/xero-ruby/models/payroll_au/income_type.rb +39 -0
  45. data/lib/xero-ruby/models/payroll_au/leave_application.rb +11 -1
  46. data/lib/xero-ruby/models/payroll_au/leave_category_code.rb +46 -0
  47. data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +14 -4
  48. data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +0 -1
  49. data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +2 -0
  50. data/lib/xero-ruby/models/payroll_au/leave_type.rb +24 -4
  51. data/lib/xero-ruby/models/payroll_au/opening_balances.rb +16 -4
  52. data/lib/xero-ruby/models/payroll_au/paid_leave_earnings_line.rb +272 -0
  53. data/lib/xero-ruby/models/payroll_au/pay_out_type.rb +36 -0
  54. data/lib/xero-ruby/models/payroll_au/senior_marital_status.rb +37 -0
  55. data/lib/xero-ruby/models/payroll_au/settings.rb +14 -4
  56. data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +51 -1
  57. data/lib/xero-ruby/models/payroll_au/tax_scale_type.rb +40 -0
  58. data/lib/xero-ruby/models/payroll_au/work_condition.rb +37 -0
  59. data/lib/xero-ruby/models/payroll_nz/employee.rb +14 -4
  60. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +3 -3
  61. data/lib/xero-ruby/models/projects/currency_code.rb +0 -1
  62. data/lib/xero-ruby/models/projects/task.rb +6 -6
  63. data/lib/xero-ruby/models/projects/task_create_or_update.rb +1 -1
  64. data/lib/xero-ruby/version.rb +2 -2
  65. data/lib/xero-ruby/where.rb +2 -0
  66. data/lib/xero-ruby.rb +15 -0
  67. metadata +30 -15
@@ -0,0 +1,230 @@
1
+ =begin
2
+ #Xero AppStore API
3
+
4
+ #These endpoints are for Xero Partners to interact with the App Store Billing platform
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::AppStore
16
+ # Response to get usage record
17
+ require 'bigdecimal'
18
+
19
+ class UsageRecordsList
20
+ # A collection of usage records
21
+ attr_accessor :usage_records
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'usage_records' => :'usageRecords'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.openapi_types
32
+ {
33
+ :'usage_records' => :'Array<UsageRecord>'
34
+ }
35
+ end
36
+
37
+ # Initializes the object
38
+ # @param [Hash] attributes Model attributes in the form of hash
39
+ def initialize(attributes = {})
40
+ if (!attributes.is_a?(Hash))
41
+ fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::AppStore::UsageRecordsList` initialize method"
42
+ end
43
+
44
+ # check to see if the attribute exists and convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h|
46
+ if (!self.class.attribute_map.key?(k.to_sym))
47
+ fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::AppStore::UsageRecordsList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
48
+ end
49
+ h[k.to_sym] = v
50
+ }
51
+
52
+ if attributes.key?(:'usage_records')
53
+ if (value = attributes[:'usage_records']).is_a?(Array)
54
+ self.usage_records = value
55
+ end
56
+ end
57
+ end
58
+
59
+ # Show invalid properties with the reasons. Usually used together with valid?
60
+ # @return Array for valid properties with the reasons
61
+ def list_invalid_properties
62
+ invalid_properties = Array.new
63
+ if @usage_records.nil?
64
+ invalid_properties.push('invalid value for "usage_records", usage_records cannot be nil.')
65
+ end
66
+
67
+ invalid_properties
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+ return false if @usage_records.nil?
74
+ true
75
+ end
76
+
77
+ # Checks equality by comparing each attribute.
78
+ # @param [Object] Object to be compared
79
+ def ==(o)
80
+ return true if self.equal?(o)
81
+ self.class == o.class &&
82
+ usage_records == o.usage_records
83
+ end
84
+
85
+ # @see the `==` method
86
+ # @param [Object] Object to be compared
87
+ def eql?(o)
88
+ self == o
89
+ end
90
+
91
+ # Calculates hash code according to all attributes.
92
+ # @return [Integer] Hash code
93
+ def hash
94
+ [usage_records].hash
95
+ end
96
+
97
+ # Builds the object from hash
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ # @return [Object] Returns the model itself
100
+ def self.build_from_hash(attributes)
101
+ new.build_from_hash(attributes)
102
+ end
103
+
104
+ # Builds the object from hash
105
+ # @param [Hash] attributes Model attributes in the form of hash
106
+ # @return [Object] Returns the model itself
107
+ def build_from_hash(attributes)
108
+ return nil unless attributes.is_a?(Hash)
109
+ self.class.openapi_types.each_pair do |key, type|
110
+ if type =~ /\AArray<(.*)>/i
111
+ # check to ensure the input is an array given that the attribute
112
+ # is documented as an array but the input is not
113
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
114
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
115
+ end
116
+ elsif !attributes[self.class.attribute_map[key]].nil?
117
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
118
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
119
+ end
120
+
121
+ self
122
+ end
123
+
124
+ # Deserializes the data based on type
125
+ # @param string type Data type
126
+ # @param string value Value to be deserialized
127
+ # @return [Object] Deserialized data
128
+ def _deserialize(type, value)
129
+ case type.to_sym
130
+ when :DateTime
131
+ DateTime.parse(parse_date(value))
132
+ when :Date
133
+ Date.parse(parse_date(value))
134
+ when :String
135
+ value.to_s
136
+ when :Integer
137
+ value.to_i
138
+ when :Float
139
+ value.to_f
140
+ when :BigDecimal
141
+ BigDecimal(value.to_s)
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ XeroRuby::AppStore.const_get(type).build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash(downcase: false)
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ next if value.nil?
186
+ key = downcase ? attr : param
187
+ hash[key] = _to_hash(value, downcase: downcase)
188
+ end
189
+ hash
190
+ end
191
+
192
+ # Returns the object in the form of hash with snake_case
193
+ def to_attributes
194
+ to_hash(downcase: true)
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value, downcase: false)
202
+ if value.is_a?(Array)
203
+ value.map do |v|
204
+ v.to_hash(downcase: downcase)
205
+ end
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.map { |k, v| hash[k] = _to_hash(v, downcase: downcase) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash(downcase: downcase)
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ def parse_date(datestring)
218
+ if datestring.include?('Date')
219
+ date_pattern = /\/Date\((-?\d+)(\+\d+)?\)\//
220
+ original, date, timezone = *date_pattern.match(datestring)
221
+ date = (date.to_i / 1000)
222
+ Time.at(date).utc.strftime('%Y-%m-%dT%H:%M:%S%z').to_s
223
+ elsif /(\d\d\d\d)-(\d\d)/.match(datestring) # handles dates w/out Days: YYYY-MM*-DD
224
+ Time.parse(datestring + '-01').strftime('%Y-%m-%dT%H:%M:%S').to_s
225
+ else # handle date 'types' for small subset of payroll API's
226
+ Time.parse(datestring).strftime('%Y-%m-%dT%H:%M:%S').to_s
227
+ end
228
+ end
229
+ end
230
+ end
@@ -16,6 +16,15 @@ module XeroRuby::Files
16
16
  require 'bigdecimal'
17
17
 
18
18
  class Association
19
+ # Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.
20
+ attr_accessor :send_with_object
21
+
22
+ # The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.
23
+ attr_accessor :name
24
+
25
+ # The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
26
+ attr_accessor :size
27
+
19
28
  # The unique identifier of the file
20
29
  attr_accessor :file_id
21
30
 
@@ -31,6 +40,9 @@ module XeroRuby::Files
31
40
  # Attribute mapping from ruby-style variable name to JSON key.
32
41
  def self.attribute_map
33
42
  {
43
+ :'send_with_object' => :'SendWithObject',
44
+ :'name' => :'Name',
45
+ :'size' => :'Size',
34
46
  :'file_id' => :'FileId',
35
47
  :'object_id' => :'ObjectId',
36
48
  :'object_group' => :'ObjectGroup',
@@ -41,6 +53,9 @@ module XeroRuby::Files
41
53
  # Attribute type mapping.
42
54
  def self.openapi_types
43
55
  {
56
+ :'send_with_object' => :'Boolean',
57
+ :'name' => :'String',
58
+ :'size' => :'Integer',
44
59
  :'file_id' => :'String',
45
60
  :'object_id' => :'String',
46
61
  :'object_group' => :'ObjectGroup',
@@ -63,6 +78,18 @@ module XeroRuby::Files
63
78
  h[k.to_sym] = v
64
79
  }
65
80
 
81
+ if attributes.key?(:'send_with_object')
82
+ self.send_with_object = attributes[:'send_with_object']
83
+ end
84
+
85
+ if attributes.key?(:'name')
86
+ self.name = attributes[:'name']
87
+ end
88
+
89
+ if attributes.key?(:'size')
90
+ self.size = attributes[:'size']
91
+ end
92
+
66
93
  if attributes.key?(:'file_id')
67
94
  self.file_id = attributes[:'file_id']
68
95
  end
@@ -98,6 +125,9 @@ module XeroRuby::Files
98
125
  def ==(o)
99
126
  return true if self.equal?(o)
100
127
  self.class == o.class &&
128
+ send_with_object == o.send_with_object &&
129
+ name == o.name &&
130
+ size == o.size &&
101
131
  file_id == o.file_id &&
102
132
  object_id == o.object_id &&
103
133
  object_group == o.object_group &&
@@ -113,7 +143,7 @@ module XeroRuby::Files
113
143
  # Calculates hash code according to all attributes.
114
144
  # @return [Integer] Hash code
115
145
  def hash
116
- [file_id, object_id, object_group, object_type].hash
146
+ [send_with_object, name, size, file_id, object_id, object_group, object_type].hash
117
147
  end
118
148
 
119
149
  # Builds the object from hash
@@ -24,6 +24,7 @@ module XeroRuby::Finance
24
24
  REQUEST_TIMEOUT ||= "request-timeout".freeze
25
25
  SERVICE_UNAVAILABLE ||= "service-unavailable".freeze
26
26
  UNAUTHORIZED ||= "unauthorized".freeze
27
+ RATE_LIMIT_ERROR ||= "rate-limit-error".freeze
27
28
 
28
29
  # Builds the enum from string
29
30
  # @param [String] The enum value in the form of the string
@@ -22,6 +22,9 @@ module XeroRuby::Finance
22
22
  # Date of when statement line was posted
23
23
  attr_accessor :posted_date
24
24
 
25
+ # Payee description of statement line
26
+ attr_accessor :payee
27
+
25
28
  # Reference description of statement line
26
29
  attr_accessor :reference
27
30
 
@@ -60,6 +63,7 @@ module XeroRuby::Finance
60
63
  {
61
64
  :'statement_line_id' => :'statementLineId',
62
65
  :'posted_date' => :'postedDate',
66
+ :'payee' => :'payee',
63
67
  :'reference' => :'reference',
64
68
  :'notes' => :'notes',
65
69
  :'cheque_no' => :'chequeNo',
@@ -79,6 +83,7 @@ module XeroRuby::Finance
79
83
  {
80
84
  :'statement_line_id' => :'String',
81
85
  :'posted_date' => :'Date',
86
+ :'payee' => :'String',
82
87
  :'reference' => :'String',
83
88
  :'notes' => :'String',
84
89
  :'cheque_no' => :'String',
@@ -116,6 +121,10 @@ module XeroRuby::Finance
116
121
  self.posted_date = attributes[:'posted_date']
117
122
  end
118
123
 
124
+ if attributes.key?(:'payee')
125
+ self.payee = attributes[:'payee']
126
+ end
127
+
119
128
  if attributes.key?(:'reference')
120
129
  self.reference = attributes[:'reference']
121
130
  end
@@ -185,6 +194,7 @@ module XeroRuby::Finance
185
194
  self.class == o.class &&
186
195
  statement_line_id == o.statement_line_id &&
187
196
  posted_date == o.posted_date &&
197
+ payee == o.payee &&
188
198
  reference == o.reference &&
189
199
  notes == o.notes &&
190
200
  cheque_no == o.cheque_no &&
@@ -207,7 +217,7 @@ module XeroRuby::Finance
207
217
  # Calculates hash code according to all attributes.
208
218
  # @return [Integer] Hash code
209
219
  def hash
210
- [statement_line_id, posted_date, reference, notes, cheque_no, amount, transaction_date, type, is_reconciled, is_duplicate, is_deleted, payments, bank_transactions].hash
220
+ [statement_line_id, posted_date, payee, reference, notes, cheque_no, amount, transaction_date, type, is_reconciled, is_duplicate, is_deleted, payments, bank_transactions].hash
211
221
  end
212
222
 
213
223
  # Builds the object from hash
@@ -28,15 +28,21 @@ 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
- # Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied.
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.
35
35
  attr_accessor :start_balance
36
36
 
37
- # Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied.
37
+ # Closing 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.
38
38
  attr_accessor :end_balance
39
39
 
40
+ # Opening statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true
41
+ attr_accessor :indicative_start_balance
42
+
43
+ # Closing statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true
44
+ attr_accessor :indicative_end_balance
45
+
40
46
  # List of statement lines
41
47
  attr_accessor :statement_lines
42
48
 
@@ -50,6 +56,8 @@ module XeroRuby::Finance
50
56
  :'import_source' => :'importSource',
51
57
  :'start_balance' => :'startBalance',
52
58
  :'end_balance' => :'endBalance',
59
+ :'indicative_start_balance' => :'indicativeStartBalance',
60
+ :'indicative_end_balance' => :'indicativeEndBalance',
53
61
  :'statement_lines' => :'statementLines'
54
62
  }
55
63
  end
@@ -64,6 +72,8 @@ module XeroRuby::Finance
64
72
  :'import_source' => :'String',
65
73
  :'start_balance' => :'BigDecimal',
66
74
  :'end_balance' => :'BigDecimal',
75
+ :'indicative_start_balance' => :'BigDecimal',
76
+ :'indicative_end_balance' => :'BigDecimal',
67
77
  :'statement_lines' => :'Array<StatementLineResponse>'
68
78
  }
69
79
  end
@@ -111,6 +121,14 @@ module XeroRuby::Finance
111
121
  self.end_balance = attributes[:'end_balance']
112
122
  end
113
123
 
124
+ if attributes.key?(:'indicative_start_balance')
125
+ self.indicative_start_balance = attributes[:'indicative_start_balance']
126
+ end
127
+
128
+ if attributes.key?(:'indicative_end_balance')
129
+ self.indicative_end_balance = attributes[:'indicative_end_balance']
130
+ end
131
+
114
132
  if attributes.key?(:'statement_lines')
115
133
  if (value = attributes[:'statement_lines']).is_a?(Array)
116
134
  self.statement_lines = value
@@ -143,6 +161,8 @@ module XeroRuby::Finance
143
161
  import_source == o.import_source &&
144
162
  start_balance == o.start_balance &&
145
163
  end_balance == o.end_balance &&
164
+ indicative_start_balance == o.indicative_start_balance &&
165
+ indicative_end_balance == o.indicative_end_balance &&
146
166
  statement_lines == o.statement_lines
147
167
  end
148
168
 
@@ -155,7 +175,7 @@ module XeroRuby::Finance
155
175
  # Calculates hash code according to all attributes.
156
176
  # @return [Integer] Hash code
157
177
  def hash
158
- [statement_id, start_date, end_date, imported_date_time_utc, import_source, start_balance, end_balance, statement_lines].hash
178
+ [statement_id, start_date, end_date, imported_date_time_utc, import_source, start_balance, end_balance, indicative_start_balance, indicative_end_balance, statement_lines].hash
159
179
  end
160
180
 
161
181
  # Builds the object from hash
@@ -20,7 +20,6 @@ module XeroRuby::PayrollAu
20
20
  MEALS ||= "MEALS".freeze
21
21
  TRAVEL ||= "TRAVEL".freeze
22
22
  OTHER ||= "OTHER".freeze
23
- JOBKEEPER ||= "JOBKEEPER".freeze
24
23
  TOOLS ||= "TOOLS".freeze
25
24
  TASKS ||= "TASKS".freeze
26
25
  QUALIFICATIONS ||= "QUALIFICATIONS".freeze