xero-ruby 12.3.0 → 12.4.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 +4 -4
- data/lib/xero-ruby/api/accounting_api.rb +3 -0
- data/lib/xero-ruby/models/accounting/overpayment.rb +11 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +1 -21
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +3 -13
- data/lib/xero-ruby/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb934d84d2ae53b0239b45ec344af16f2c862369bae478f3fb15f9a7caf2d36a
|
|
4
|
+
data.tar.gz: f84af0bc72f79fa7396742ace8e2e2c2b41e0e66a0f60632da34876cb06ef773
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5505cde298fd14eb3b2212701d20c1b49575e7faaa27bd4e6908c8d21a19e02a23eda70bc8e39bf0fbe69ca8faa1e97be92d1af153c18352b872c4c118bea74
|
|
7
|
+
data.tar.gz: 5a350f8f23d3f18bdb6bd7b2d07111785a6030dc390773bd0938c2fa8d353667e94f1339e7491a8c5a012946571a040170906d529c93d51fa800e6f83c1bd67f
|
|
@@ -11958,6 +11958,7 @@ module XeroRuby
|
|
|
11958
11958
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
|
|
11959
11959
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
11960
11960
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
11961
|
+
# @option opts [Array<String>] :references Filter by a comma-separated list of References
|
|
11961
11962
|
# @return [Overpayments]
|
|
11962
11963
|
def get_overpayments(xero_tenant_id, opts = {})
|
|
11963
11964
|
data, _status_code, _headers = get_overpayments_with_http_info(xero_tenant_id, opts)
|
|
@@ -11973,6 +11974,7 @@ module XeroRuby
|
|
|
11973
11974
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
|
|
11974
11975
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
11975
11976
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
11977
|
+
# @option opts [Array<String>] :references Filter by a comma-separated list of References
|
|
11976
11978
|
# @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
|
|
11977
11979
|
def get_overpayments_with_http_info(xero_tenant_id, options = {})
|
|
11978
11980
|
opts = options.dup
|
|
@@ -11996,6 +11998,7 @@ module XeroRuby
|
|
|
11996
11998
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
11997
11999
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
|
11998
12000
|
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
12001
|
+
query_params[:'References'] = @api_client.build_collection_param(opts[:'references'], :csv) if !opts[:'references'].nil?
|
|
11999
12002
|
|
|
12000
12003
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
12001
12004
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -76,6 +76,9 @@ module XeroRuby::Accounting
|
|
|
76
76
|
# boolean to indicate if a overpayment has an attachment
|
|
77
77
|
attr_accessor :has_attachments
|
|
78
78
|
|
|
79
|
+
# An optional description for Overpayment
|
|
80
|
+
attr_accessor :reference
|
|
81
|
+
|
|
79
82
|
# See Attachments
|
|
80
83
|
attr_accessor :attachments
|
|
81
84
|
|
|
@@ -122,6 +125,7 @@ module XeroRuby::Accounting
|
|
|
122
125
|
:'applied_amount' => :'AppliedAmount',
|
|
123
126
|
:'payments' => :'Payments',
|
|
124
127
|
:'has_attachments' => :'HasAttachments',
|
|
128
|
+
:'reference' => :'Reference',
|
|
125
129
|
:'attachments' => :'Attachments'
|
|
126
130
|
}
|
|
127
131
|
end
|
|
@@ -147,6 +151,7 @@ module XeroRuby::Accounting
|
|
|
147
151
|
:'applied_amount' => :'Float',
|
|
148
152
|
:'payments' => :'Array<Payment>',
|
|
149
153
|
:'has_attachments' => :'Boolean',
|
|
154
|
+
:'reference' => :'String',
|
|
150
155
|
:'attachments' => :'Array<Attachment>'
|
|
151
156
|
}
|
|
152
157
|
end
|
|
@@ -246,6 +251,10 @@ module XeroRuby::Accounting
|
|
|
246
251
|
self.has_attachments = false
|
|
247
252
|
end
|
|
248
253
|
|
|
254
|
+
if attributes.key?(:'reference')
|
|
255
|
+
self.reference = attributes[:'reference']
|
|
256
|
+
end
|
|
257
|
+
|
|
249
258
|
if attributes.key?(:'attachments')
|
|
250
259
|
if (value = attributes[:'attachments']).is_a?(Array)
|
|
251
260
|
self.attachments = value
|
|
@@ -313,6 +322,7 @@ module XeroRuby::Accounting
|
|
|
313
322
|
applied_amount == o.applied_amount &&
|
|
314
323
|
payments == o.payments &&
|
|
315
324
|
has_attachments == o.has_attachments &&
|
|
325
|
+
reference == o.reference &&
|
|
316
326
|
attachments == o.attachments
|
|
317
327
|
end
|
|
318
328
|
|
|
@@ -325,7 +335,7 @@ module XeroRuby::Accounting
|
|
|
325
335
|
# Calculates hash code according to all attributes.
|
|
326
336
|
# @return [Integer] Hash code
|
|
327
337
|
def hash
|
|
328
|
-
[type, contact, date, status, line_amount_types, line_items, sub_total, total_tax, total, updated_date_utc, currency_code, overpayment_id, currency_rate, remaining_credit, allocations, applied_amount, payments, has_attachments, attachments].hash
|
|
338
|
+
[type, contact, date, status, line_amount_types, line_items, sub_total, total_tax, total, updated_date_utc, currency_code, overpayment_id, currency_rate, remaining_credit, allocations, applied_amount, payments, has_attachments, reference, attachments].hash
|
|
329
339
|
end
|
|
330
340
|
|
|
331
341
|
# Builds the object from hash
|
|
@@ -28,12 +28,6 @@ module XeroRuby::PayrollNz
|
|
|
28
28
|
# The dollar value of annual leave opening balance if negative.
|
|
29
29
|
attr_accessor :negative_annual_leave_balance_paid_amount
|
|
30
30
|
|
|
31
|
-
# Deprecated use SickLeaveToAccrueAnnually
|
|
32
|
-
attr_accessor :sick_leave_hours_to_accrue_annually
|
|
33
|
-
|
|
34
|
-
# Deprecated use SickLeaveMaximumToAccrue
|
|
35
|
-
attr_accessor :sick_leave_maximum_hours_to_accrue
|
|
36
|
-
|
|
37
31
|
# Number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type
|
|
38
32
|
attr_accessor :sick_leave_to_accrue_annually
|
|
39
33
|
|
|
@@ -59,8 +53,6 @@ module XeroRuby::PayrollNz
|
|
|
59
53
|
:'holiday_pay_opening_balance' => :'holidayPayOpeningBalance',
|
|
60
54
|
:'annual_leave_opening_balance' => :'annualLeaveOpeningBalance',
|
|
61
55
|
:'negative_annual_leave_balance_paid_amount' => :'negativeAnnualLeaveBalancePaidAmount',
|
|
62
|
-
:'sick_leave_hours_to_accrue_annually' => :'sickLeaveHoursToAccrueAnnually',
|
|
63
|
-
:'sick_leave_maximum_hours_to_accrue' => :'sickLeaveMaximumHoursToAccrue',
|
|
64
56
|
:'sick_leave_to_accrue_annually' => :'SickLeaveToAccrueAnnually',
|
|
65
57
|
:'sick_leave_maximum_to_accrue' => :'SickLeaveMaximumToAccrue',
|
|
66
58
|
:'sick_leave_opening_balance' => :'sickLeaveOpeningBalance',
|
|
@@ -77,8 +69,6 @@ module XeroRuby::PayrollNz
|
|
|
77
69
|
:'holiday_pay_opening_balance' => :'BigDecimal',
|
|
78
70
|
:'annual_leave_opening_balance' => :'BigDecimal',
|
|
79
71
|
:'negative_annual_leave_balance_paid_amount' => :'BigDecimal',
|
|
80
|
-
:'sick_leave_hours_to_accrue_annually' => :'BigDecimal',
|
|
81
|
-
:'sick_leave_maximum_hours_to_accrue' => :'BigDecimal',
|
|
82
72
|
:'sick_leave_to_accrue_annually' => :'BigDecimal',
|
|
83
73
|
:'sick_leave_maximum_to_accrue' => :'BigDecimal',
|
|
84
74
|
:'sick_leave_opening_balance' => :'BigDecimal',
|
|
@@ -119,14 +109,6 @@ module XeroRuby::PayrollNz
|
|
|
119
109
|
self.negative_annual_leave_balance_paid_amount = attributes[:'negative_annual_leave_balance_paid_amount']
|
|
120
110
|
end
|
|
121
111
|
|
|
122
|
-
if attributes.key?(:'sick_leave_hours_to_accrue_annually')
|
|
123
|
-
self.sick_leave_hours_to_accrue_annually = attributes[:'sick_leave_hours_to_accrue_annually']
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'sick_leave_maximum_hours_to_accrue')
|
|
127
|
-
self.sick_leave_maximum_hours_to_accrue = attributes[:'sick_leave_maximum_hours_to_accrue']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
112
|
if attributes.key?(:'sick_leave_to_accrue_annually')
|
|
131
113
|
self.sick_leave_to_accrue_annually = attributes[:'sick_leave_to_accrue_annually']
|
|
132
114
|
end
|
|
@@ -174,8 +156,6 @@ module XeroRuby::PayrollNz
|
|
|
174
156
|
holiday_pay_opening_balance == o.holiday_pay_opening_balance &&
|
|
175
157
|
annual_leave_opening_balance == o.annual_leave_opening_balance &&
|
|
176
158
|
negative_annual_leave_balance_paid_amount == o.negative_annual_leave_balance_paid_amount &&
|
|
177
|
-
sick_leave_hours_to_accrue_annually == o.sick_leave_hours_to_accrue_annually &&
|
|
178
|
-
sick_leave_maximum_hours_to_accrue == o.sick_leave_maximum_hours_to_accrue &&
|
|
179
159
|
sick_leave_to_accrue_annually == o.sick_leave_to_accrue_annually &&
|
|
180
160
|
sick_leave_maximum_to_accrue == o.sick_leave_maximum_to_accrue &&
|
|
181
161
|
sick_leave_opening_balance == o.sick_leave_opening_balance &&
|
|
@@ -193,7 +173,7 @@ module XeroRuby::PayrollNz
|
|
|
193
173
|
# Calculates hash code according to all attributes.
|
|
194
174
|
# @return [Integer] Hash code
|
|
195
175
|
def hash
|
|
196
|
-
[include_holiday_pay, holiday_pay_opening_balance, annual_leave_opening_balance, negative_annual_leave_balance_paid_amount,
|
|
176
|
+
[include_holiday_pay, holiday_pay_opening_balance, annual_leave_opening_balance, negative_annual_leave_balance_paid_amount, sick_leave_to_accrue_annually, sick_leave_maximum_to_accrue, sick_leave_opening_balance, sick_leave_schedule_of_accrual, sick_leave_anniversary_date, annual_leave_anniversary_date].hash
|
|
197
177
|
end
|
|
198
178
|
|
|
199
179
|
# Builds the object from hash
|
|
@@ -26,9 +26,6 @@ module XeroRuby::PayrollNz
|
|
|
26
26
|
PERCENTAGE_OF_GROSS_EARNINGS ||= "PercentageOfGrossEarnings".freeze
|
|
27
27
|
NO_ACCRUALS ||= "NoAccruals".freeze
|
|
28
28
|
|
|
29
|
-
# Deprecated use UnitsAccruedAnnually
|
|
30
|
-
attr_accessor :hours_accrued_annually
|
|
31
|
-
|
|
32
29
|
# The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\"
|
|
33
30
|
attr_accessor :units_accrued_annually
|
|
34
31
|
|
|
@@ -44,7 +41,7 @@ module XeroRuby::PayrollNz
|
|
|
44
41
|
# The type of units for the opening balance
|
|
45
42
|
attr_accessor :opening_balance_type_of_units
|
|
46
43
|
|
|
47
|
-
#
|
|
44
|
+
# not supported in Payroll NZ
|
|
48
45
|
attr_accessor :rate_accrued_hourly
|
|
49
46
|
|
|
50
47
|
# Specific for scheduleOfAccrual having percentage of gross earnings. Identifies how much percentage of gross earnings is accrued per pay period.
|
|
@@ -89,8 +86,7 @@ module XeroRuby::PayrollNz
|
|
|
89
86
|
{
|
|
90
87
|
:'leave_type_id' => :'leaveTypeID',
|
|
91
88
|
:'schedule_of_accrual' => :'scheduleOfAccrual',
|
|
92
|
-
:'
|
|
93
|
-
:'units_accrued_annually' => :'UnitsAccruedAnnually',
|
|
89
|
+
:'units_accrued_annually' => :'unitsAccruedAnnually',
|
|
94
90
|
:'type_of_units_to_accrue' => :'typeOfUnitsToAccrue',
|
|
95
91
|
:'maximum_to_accrue' => :'maximumToAccrue',
|
|
96
92
|
:'opening_balance' => :'openingBalance',
|
|
@@ -109,7 +105,6 @@ module XeroRuby::PayrollNz
|
|
|
109
105
|
{
|
|
110
106
|
:'leave_type_id' => :'String',
|
|
111
107
|
:'schedule_of_accrual' => :'String',
|
|
112
|
-
:'hours_accrued_annually' => :'BigDecimal',
|
|
113
108
|
:'units_accrued_annually' => :'BigDecimal',
|
|
114
109
|
:'type_of_units_to_accrue' => :'String',
|
|
115
110
|
:'maximum_to_accrue' => :'BigDecimal',
|
|
@@ -147,10 +142,6 @@ module XeroRuby::PayrollNz
|
|
|
147
142
|
self.schedule_of_accrual = attributes[:'schedule_of_accrual']
|
|
148
143
|
end
|
|
149
144
|
|
|
150
|
-
if attributes.key?(:'hours_accrued_annually')
|
|
151
|
-
self.hours_accrued_annually = attributes[:'hours_accrued_annually']
|
|
152
|
-
end
|
|
153
|
-
|
|
154
145
|
if attributes.key?(:'units_accrued_annually')
|
|
155
146
|
self.units_accrued_annually = attributes[:'units_accrued_annually']
|
|
156
147
|
end
|
|
@@ -228,7 +219,6 @@ module XeroRuby::PayrollNz
|
|
|
228
219
|
self.class == o.class &&
|
|
229
220
|
leave_type_id == o.leave_type_id &&
|
|
230
221
|
schedule_of_accrual == o.schedule_of_accrual &&
|
|
231
|
-
hours_accrued_annually == o.hours_accrued_annually &&
|
|
232
222
|
units_accrued_annually == o.units_accrued_annually &&
|
|
233
223
|
type_of_units_to_accrue == o.type_of_units_to_accrue &&
|
|
234
224
|
maximum_to_accrue == o.maximum_to_accrue &&
|
|
@@ -251,7 +241,7 @@ module XeroRuby::PayrollNz
|
|
|
251
241
|
# Calculates hash code according to all attributes.
|
|
252
242
|
# @return [Integer] Hash code
|
|
253
243
|
def hash
|
|
254
|
-
[leave_type_id, schedule_of_accrual,
|
|
244
|
+
[leave_type_id, schedule_of_accrual, units_accrued_annually, type_of_units_to_accrue, maximum_to_accrue, opening_balance, opening_balance_type_of_units, rate_accrued_hourly, percentage_of_gross_earnings, include_holiday_pay_every_pay, show_annual_leave_in_advance, annual_leave_total_amount_paid, schedule_of_accrual_date].hash
|
|
255
245
|
end
|
|
256
246
|
|
|
257
247
|
# Builds the object from hash
|
data/lib/xero-ruby/version.rb
CHANGED
|
@@ -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:
|
|
10
|
+
The version of the XeroOpenAPI document: 10.1.0
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module XeroRuby
|
|
14
|
-
VERSION = '12.
|
|
14
|
+
VERSION = '12.4.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: 12.
|
|
4
|
+
version: 12.4.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:
|
|
11
|
+
date: 2026-01-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|