xero-ruby 3.16.0 → 4.0.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: fd27a05f0bb738c8238e1972b8f72085f6589bec2e56259b25900b472a7ebae6
4
- data.tar.gz: ca2c2f2ad209d4c5c3dfd40e9c4961d13490d8776d74a0b64b42edb2559bd475
3
+ metadata.gz: 637327508f94afea38733de2cb73d8fd37fbf9380e8f544945bbe41eb1455571
4
+ data.tar.gz: 7cfcc4fde4bc19db2461ef8f1194b6aa469f04e370e90bc2f6651405fde49656
5
5
  SHA512:
6
- metadata.gz: c4b281f34599bbea6407a0d4bd1af0a49f4dc67087489a1d75e36531dc53532cedca1587380004fb7747461c3c1fb549f8e16cf6c7b25da0662f57447ea785c6
7
- data.tar.gz: 1512846c0cef01d14b24f68df2f5061ab3eed4263d570c6604436b67f16b0c1e291732a03b0b106545e03156079688873662bb623ca07fdd55d5f2da5d6f4d4e
6
+ metadata.gz: 35920e034e12c4befafedf6c2db74e3a72514575d2676f890fec3cfdb4b994bb2059b3c3f9560a1e70d149383bbd8089c2ff1bac1744ab7b2ed25833fd31cabd
7
+ data.tar.gz: ee9713d3286f98fde0820ab6452936999ac58062dab3c4dd89db0e7a3543bb62ebcd3336fd8c3856cc7b50680af764a1d254ab8a7eca370e2f3cc48a46c28abc
@@ -304,7 +304,7 @@ module XeroRuby
304
304
  end
305
305
 
306
306
  connection = Faraday.new(:url => method_base_url, :ssl => ssl_options) do |conn|
307
- conn.request(:basic_auth, config.username, config.password)
307
+ conn.request(:authorization, :basic, config.username, config.password)
308
308
  if opts[:header_params]["Content-Type"] == "multipart/form-data"
309
309
  conn.request :multipart
310
310
  conn.request :url_encoded
@@ -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
@@ -31,12 +31,18 @@ module XeroRuby::Finance
31
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.
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
@@ -34,6 +34,12 @@ module XeroRuby::PayrollAu
34
34
  # Boolean to determine if the earnings rate is reportable or exempt from W1
35
35
  attr_accessor :is_reportable_as_w1
36
36
 
37
+ # Boolean to determine if the allowance earnings rate contributes towards annual leave rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT
38
+ attr_accessor :allowance_contributes_to_annual_leave_rate
39
+
40
+ # Boolean to determine if the allowance earnings rate contributes towards overtime allowance rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT
41
+ attr_accessor :allowance_contributes_to_overtime_rate
42
+
37
43
 
38
44
  attr_accessor :earnings_type
39
45
 
@@ -79,6 +85,8 @@ module XeroRuby::PayrollAu
79
85
  :'is_exempt_from_tax' => :'IsExemptFromTax',
80
86
  :'is_exempt_from_super' => :'IsExemptFromSuper',
81
87
  :'is_reportable_as_w1' => :'IsReportableAsW1',
88
+ :'allowance_contributes_to_annual_leave_rate' => :'AllowanceContributesToAnnualLeaveRate',
89
+ :'allowance_contributes_to_overtime_rate' => :'AllowanceContributesToOvertimeRate',
82
90
  :'earnings_type' => :'EarningsType',
83
91
  :'earnings_rate_id' => :'EarningsRateID',
84
92
  :'rate_type' => :'RateType',
@@ -103,6 +111,8 @@ module XeroRuby::PayrollAu
103
111
  :'is_exempt_from_tax' => :'Boolean',
104
112
  :'is_exempt_from_super' => :'Boolean',
105
113
  :'is_reportable_as_w1' => :'Boolean',
114
+ :'allowance_contributes_to_annual_leave_rate' => :'Boolean',
115
+ :'allowance_contributes_to_overtime_rate' => :'Boolean',
106
116
  :'earnings_type' => :'EarningsType',
107
117
  :'earnings_rate_id' => :'String',
108
118
  :'rate_type' => :'RateType',
@@ -157,6 +167,14 @@ module XeroRuby::PayrollAu
157
167
  self.is_reportable_as_w1 = attributes[:'is_reportable_as_w1']
158
168
  end
159
169
 
170
+ if attributes.key?(:'allowance_contributes_to_annual_leave_rate')
171
+ self.allowance_contributes_to_annual_leave_rate = attributes[:'allowance_contributes_to_annual_leave_rate']
172
+ end
173
+
174
+ if attributes.key?(:'allowance_contributes_to_overtime_rate')
175
+ self.allowance_contributes_to_overtime_rate = attributes[:'allowance_contributes_to_overtime_rate']
176
+ end
177
+
160
178
  if attributes.key?(:'earnings_type')
161
179
  self.earnings_type = attributes[:'earnings_type']
162
180
  end
@@ -260,6 +278,8 @@ module XeroRuby::PayrollAu
260
278
  is_exempt_from_tax == o.is_exempt_from_tax &&
261
279
  is_exempt_from_super == o.is_exempt_from_super &&
262
280
  is_reportable_as_w1 == o.is_reportable_as_w1 &&
281
+ allowance_contributes_to_annual_leave_rate == o.allowance_contributes_to_annual_leave_rate &&
282
+ allowance_contributes_to_overtime_rate == o.allowance_contributes_to_overtime_rate &&
263
283
  earnings_type == o.earnings_type &&
264
284
  earnings_rate_id == o.earnings_rate_id &&
265
285
  rate_type == o.rate_type &&
@@ -283,7 +303,7 @@ module XeroRuby::PayrollAu
283
303
  # Calculates hash code according to all attributes.
284
304
  # @return [Integer] Hash code
285
305
  def hash
286
- [name, account_code, type_of_units, is_exempt_from_tax, is_exempt_from_super, is_reportable_as_w1, earnings_type, earnings_rate_id, rate_type, rate_per_unit, multiplier, accrue_leave, amount, employment_termination_payment_type, updated_date_utc, current_record, allowance_type, allowance_category].hash
306
+ [name, account_code, type_of_units, is_exempt_from_tax, is_exempt_from_super, is_reportable_as_w1, allowance_contributes_to_annual_leave_rate, allowance_contributes_to_overtime_rate, earnings_type, earnings_rate_id, rate_type, rate_per_unit, multiplier, accrue_leave, amount, employment_termination_payment_type, updated_date_utc, current_record, allowance_type, allowance_category].hash
287
307
  end
288
308
 
289
309
  # Builds the object from hash
@@ -25,7 +25,7 @@ module XeroRuby::PayrollUk
25
25
  # Indicates how an employee will be paid when taking this type of earning
26
26
  attr_accessor :earnings_type
27
27
  ALLOWANCE ||= "Allowance".freeze
28
- BACKPAY ||= "Backpay".freeze
28
+ BACK_PAY ||= "BackPay".freeze
29
29
  BONUS ||= "Bonus".freeze
30
30
  COMMISSION ||= "Commission".freeze
31
31
  LUMP_SUM ||= "LumpSum".freeze
@@ -214,7 +214,7 @@ module XeroRuby::PayrollUk
214
214
  def valid?
215
215
  return false if @name.nil?
216
216
  return false if @earnings_type.nil?
217
- earnings_type_validator = EnumAttributeValidator.new('String', ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
217
+ earnings_type_validator = EnumAttributeValidator.new('String', ["Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
218
218
  return false unless earnings_type_validator.valid?(@earnings_type)
219
219
  return false if @rate_type.nil?
220
220
  rate_type_validator = EnumAttributeValidator.new('String', ["RatePerUnit", "MultipleOfOrdinaryEarningsRate", "FixedAmount"])
@@ -227,7 +227,7 @@ module XeroRuby::PayrollUk
227
227
  # Custom attribute writer method checking allowed values (enum).
228
228
  # @param [Object] earnings_type Object to be assigned
229
229
  def earnings_type=(earnings_type)
230
- validator = EnumAttributeValidator.new('String', ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
230
+ validator = EnumAttributeValidator.new('String', ["Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
231
231
  unless validator.valid?(earnings_type)
232
232
  fail ArgumentError, "invalid value for \"earnings_type\", must be one of #{validator.allowable_values}."
233
233
  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: 2.33.1
10
+ The version of the XeroOpenAPI document: 2.35.0
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '3.16.0'
14
+ VERSION = '4.0.0'
15
15
  end
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xero-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.16.0
4
+ version: 4.0.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-12-01 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 1.0.1
19
+ version: '2.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.0'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
- version: 1.0.1
29
+ version: '2.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement