xero-ruby 9.3.0.pre.alpha.1 → 10.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.
- checksums.yaml +4 -4
- data/lib/xero-ruby/models/finance/current_statement_response.rb +1 -1
- data/lib/xero-ruby/models/finance/data_source_response.rb +1 -31
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +37 -7
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +34 -4
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +35 -4
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +24 -4
- data/lib/xero-ruby/version.rb +2 -2
- metadata +381 -381
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba1ef9ef3e84502d061f57228b050fa94fb1faeefb22249c35e606e872c98773
|
4
|
+
data.tar.gz: 0be1c0129f837209e15ba96e3884e9bccef55a4e080f7447afc32a205f3d1a3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b685fb816a7b16d0e5324c946db02a5beed2e130feb552a5773e706a29100b2beeacc7723b5e2df19cd2a9f16f7f391a6b08e116d1e4ed4f01e3004b8ce1a2b1
|
7
|
+
data.tar.gz: e29fdb9806ad212566465c4af26bbe8a9e46cc9a17d2540852f861c0a809855bd5ec2d36acd30b5d7ad6f0995b21f7c99fcee3d155ba63e632f1ec05a7853948
|
@@ -31,7 +31,7 @@ module XeroRuby::Finance
|
|
31
31
|
# Looking at the most recent bank statement, this field indicates when the document was imported into Xero. This date is represented in ISO 8601 format.
|
32
32
|
attr_accessor :imported_date_time_utc
|
33
33
|
|
34
|
-
# Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed,
|
34
|
+
# Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying).
|
35
35
|
attr_accessor :import_source_type
|
36
36
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -19,9 +19,6 @@ module XeroRuby::Finance
|
|
19
19
|
# Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data.
|
20
20
|
attr_accessor :direct_bank_feed
|
21
21
|
|
22
|
-
# No longer in use.
|
23
|
-
attr_accessor :indirect_bank_feed
|
24
|
-
|
25
22
|
# Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.
|
26
23
|
attr_accessor :file_upload
|
27
24
|
|
@@ -31,9 +28,6 @@ module XeroRuby::Finance
|
|
31
28
|
# Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
|
32
29
|
attr_accessor :direct_bank_feed_pos
|
33
30
|
|
34
|
-
# No longer in use.
|
35
|
-
attr_accessor :indirect_bank_feed_pos
|
36
|
-
|
37
31
|
# Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
|
38
32
|
attr_accessor :file_upload_pos
|
39
33
|
|
@@ -43,9 +37,6 @@ module XeroRuby::Finance
|
|
43
37
|
# Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
|
44
38
|
attr_accessor :direct_bank_feed_neg
|
45
39
|
|
46
|
-
# No longer in use.
|
47
|
-
attr_accessor :indirect_bank_feed_neg
|
48
|
-
|
49
40
|
# Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
|
50
41
|
attr_accessor :file_upload_neg
|
51
42
|
|
@@ -65,15 +56,12 @@ module XeroRuby::Finance
|
|
65
56
|
def self.attribute_map
|
66
57
|
{
|
67
58
|
:'direct_bank_feed' => :'directBankFeed',
|
68
|
-
:'indirect_bank_feed' => :'indirectBankFeed',
|
69
59
|
:'file_upload' => :'fileUpload',
|
70
60
|
:'manual' => :'manual',
|
71
61
|
:'direct_bank_feed_pos' => :'directBankFeedPos',
|
72
|
-
:'indirect_bank_feed_pos' => :'indirectBankFeedPos',
|
73
62
|
:'file_upload_pos' => :'fileUploadPos',
|
74
63
|
:'manual_pos' => :'manualPos',
|
75
64
|
:'direct_bank_feed_neg' => :'directBankFeedNeg',
|
76
|
-
:'indirect_bank_feed_neg' => :'indirectBankFeedNeg',
|
77
65
|
:'file_upload_neg' => :'fileUploadNeg',
|
78
66
|
:'manual_neg' => :'manualNeg',
|
79
67
|
:'other_pos' => :'otherPos',
|
@@ -86,15 +74,12 @@ module XeroRuby::Finance
|
|
86
74
|
def self.openapi_types
|
87
75
|
{
|
88
76
|
:'direct_bank_feed' => :'BigDecimal',
|
89
|
-
:'indirect_bank_feed' => :'BigDecimal',
|
90
77
|
:'file_upload' => :'BigDecimal',
|
91
78
|
:'manual' => :'BigDecimal',
|
92
79
|
:'direct_bank_feed_pos' => :'BigDecimal',
|
93
|
-
:'indirect_bank_feed_pos' => :'BigDecimal',
|
94
80
|
:'file_upload_pos' => :'BigDecimal',
|
95
81
|
:'manual_pos' => :'BigDecimal',
|
96
82
|
:'direct_bank_feed_neg' => :'BigDecimal',
|
97
|
-
:'indirect_bank_feed_neg' => :'BigDecimal',
|
98
83
|
:'file_upload_neg' => :'BigDecimal',
|
99
84
|
:'manual_neg' => :'BigDecimal',
|
100
85
|
:'other_pos' => :'BigDecimal',
|
@@ -122,10 +107,6 @@ module XeroRuby::Finance
|
|
122
107
|
self.direct_bank_feed = attributes[:'direct_bank_feed']
|
123
108
|
end
|
124
109
|
|
125
|
-
if attributes.key?(:'indirect_bank_feed')
|
126
|
-
self.indirect_bank_feed = attributes[:'indirect_bank_feed']
|
127
|
-
end
|
128
|
-
|
129
110
|
if attributes.key?(:'file_upload')
|
130
111
|
self.file_upload = attributes[:'file_upload']
|
131
112
|
end
|
@@ -138,10 +119,6 @@ module XeroRuby::Finance
|
|
138
119
|
self.direct_bank_feed_pos = attributes[:'direct_bank_feed_pos']
|
139
120
|
end
|
140
121
|
|
141
|
-
if attributes.key?(:'indirect_bank_feed_pos')
|
142
|
-
self.indirect_bank_feed_pos = attributes[:'indirect_bank_feed_pos']
|
143
|
-
end
|
144
|
-
|
145
122
|
if attributes.key?(:'file_upload_pos')
|
146
123
|
self.file_upload_pos = attributes[:'file_upload_pos']
|
147
124
|
end
|
@@ -154,10 +131,6 @@ module XeroRuby::Finance
|
|
154
131
|
self.direct_bank_feed_neg = attributes[:'direct_bank_feed_neg']
|
155
132
|
end
|
156
133
|
|
157
|
-
if attributes.key?(:'indirect_bank_feed_neg')
|
158
|
-
self.indirect_bank_feed_neg = attributes[:'indirect_bank_feed_neg']
|
159
|
-
end
|
160
|
-
|
161
134
|
if attributes.key?(:'file_upload_neg')
|
162
135
|
self.file_upload_neg = attributes[:'file_upload_neg']
|
163
136
|
end
|
@@ -198,15 +171,12 @@ module XeroRuby::Finance
|
|
198
171
|
return true if self.equal?(o)
|
199
172
|
self.class == o.class &&
|
200
173
|
direct_bank_feed == o.direct_bank_feed &&
|
201
|
-
indirect_bank_feed == o.indirect_bank_feed &&
|
202
174
|
file_upload == o.file_upload &&
|
203
175
|
manual == o.manual &&
|
204
176
|
direct_bank_feed_pos == o.direct_bank_feed_pos &&
|
205
|
-
indirect_bank_feed_pos == o.indirect_bank_feed_pos &&
|
206
177
|
file_upload_pos == o.file_upload_pos &&
|
207
178
|
manual_pos == o.manual_pos &&
|
208
179
|
direct_bank_feed_neg == o.direct_bank_feed_neg &&
|
209
|
-
indirect_bank_feed_neg == o.indirect_bank_feed_neg &&
|
210
180
|
file_upload_neg == o.file_upload_neg &&
|
211
181
|
manual_neg == o.manual_neg &&
|
212
182
|
other_pos == o.other_pos &&
|
@@ -223,7 +193,7 @@ module XeroRuby::Finance
|
|
223
193
|
# Calculates hash code according to all attributes.
|
224
194
|
# @return [Integer] Hash code
|
225
195
|
def hash
|
226
|
-
[direct_bank_feed,
|
196
|
+
[direct_bank_feed, file_upload, manual, direct_bank_feed_pos, file_upload_pos, manual_pos, direct_bank_feed_neg, file_upload_neg, manual_neg, other_pos, other_neg, other].hash
|
227
197
|
end
|
228
198
|
|
229
199
|
# Builds the object from hash
|
@@ -28,21 +28,30 @@ 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
|
-
#
|
31
|
+
# Deprecated use SickLeaveToAccrueAnnually
|
32
32
|
attr_accessor :sick_leave_hours_to_accrue_annually
|
33
33
|
|
34
|
-
#
|
34
|
+
# Deprecated use SickLeaveMaximumToAccrue
|
35
35
|
attr_accessor :sick_leave_maximum_hours_to_accrue
|
36
36
|
|
37
|
+
# 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
|
+
attr_accessor :sick_leave_to_accrue_annually
|
39
|
+
|
40
|
+
# Maximum number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type
|
41
|
+
attr_accessor :sick_leave_maximum_to_accrue
|
42
|
+
|
37
43
|
# Initial sick leave balance. This will be positive unless they've taken sick leave in advance
|
38
44
|
attr_accessor :sick_leave_opening_balance
|
39
45
|
|
40
46
|
# Set Schedule of Accrual Type for Sick Leave
|
41
47
|
attr_accessor :sick_leave_schedule_of_accrual
|
42
48
|
|
43
|
-
# If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave
|
49
|
+
# If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date
|
44
50
|
attr_accessor :sick_leave_anniversary_date
|
45
51
|
|
52
|
+
# The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date
|
53
|
+
attr_accessor :annual_leave_anniversary_date
|
54
|
+
|
46
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
56
|
def self.attribute_map
|
48
57
|
{
|
@@ -52,9 +61,12 @@ module XeroRuby::PayrollNz
|
|
52
61
|
:'negative_annual_leave_balance_paid_amount' => :'negativeAnnualLeaveBalancePaidAmount',
|
53
62
|
:'sick_leave_hours_to_accrue_annually' => :'sickLeaveHoursToAccrueAnnually',
|
54
63
|
:'sick_leave_maximum_hours_to_accrue' => :'sickLeaveMaximumHoursToAccrue',
|
64
|
+
:'sick_leave_to_accrue_annually' => :'SickLeaveToAccrueAnnually',
|
65
|
+
:'sick_leave_maximum_to_accrue' => :'SickLeaveMaximumToAccrue',
|
55
66
|
:'sick_leave_opening_balance' => :'sickLeaveOpeningBalance',
|
56
67
|
:'sick_leave_schedule_of_accrual' => :'SickLeaveScheduleOfAccrual',
|
57
|
-
:'sick_leave_anniversary_date' => :'SickLeaveAnniversaryDate'
|
68
|
+
:'sick_leave_anniversary_date' => :'SickLeaveAnniversaryDate',
|
69
|
+
:'annual_leave_anniversary_date' => :'AnnualLeaveAnniversaryDate'
|
58
70
|
}
|
59
71
|
end
|
60
72
|
|
@@ -67,9 +79,12 @@ module XeroRuby::PayrollNz
|
|
67
79
|
:'negative_annual_leave_balance_paid_amount' => :'BigDecimal',
|
68
80
|
:'sick_leave_hours_to_accrue_annually' => :'BigDecimal',
|
69
81
|
:'sick_leave_maximum_hours_to_accrue' => :'BigDecimal',
|
82
|
+
:'sick_leave_to_accrue_annually' => :'BigDecimal',
|
83
|
+
:'sick_leave_maximum_to_accrue' => :'BigDecimal',
|
70
84
|
:'sick_leave_opening_balance' => :'BigDecimal',
|
71
85
|
:'sick_leave_schedule_of_accrual' => :'String',
|
72
|
-
:'sick_leave_anniversary_date' => :'Date'
|
86
|
+
:'sick_leave_anniversary_date' => :'Date',
|
87
|
+
:'annual_leave_anniversary_date' => :'Date'
|
73
88
|
}
|
74
89
|
end
|
75
90
|
|
@@ -112,6 +127,14 @@ module XeroRuby::PayrollNz
|
|
112
127
|
self.sick_leave_maximum_hours_to_accrue = attributes[:'sick_leave_maximum_hours_to_accrue']
|
113
128
|
end
|
114
129
|
|
130
|
+
if attributes.key?(:'sick_leave_to_accrue_annually')
|
131
|
+
self.sick_leave_to_accrue_annually = attributes[:'sick_leave_to_accrue_annually']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'sick_leave_maximum_to_accrue')
|
135
|
+
self.sick_leave_maximum_to_accrue = attributes[:'sick_leave_maximum_to_accrue']
|
136
|
+
end
|
137
|
+
|
115
138
|
if attributes.key?(:'sick_leave_opening_balance')
|
116
139
|
self.sick_leave_opening_balance = attributes[:'sick_leave_opening_balance']
|
117
140
|
end
|
@@ -123,6 +146,10 @@ module XeroRuby::PayrollNz
|
|
123
146
|
if attributes.key?(:'sick_leave_anniversary_date')
|
124
147
|
self.sick_leave_anniversary_date = attributes[:'sick_leave_anniversary_date']
|
125
148
|
end
|
149
|
+
|
150
|
+
if attributes.key?(:'annual_leave_anniversary_date')
|
151
|
+
self.annual_leave_anniversary_date = attributes[:'annual_leave_anniversary_date']
|
152
|
+
end
|
126
153
|
end
|
127
154
|
|
128
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -149,9 +176,12 @@ module XeroRuby::PayrollNz
|
|
149
176
|
negative_annual_leave_balance_paid_amount == o.negative_annual_leave_balance_paid_amount &&
|
150
177
|
sick_leave_hours_to_accrue_annually == o.sick_leave_hours_to_accrue_annually &&
|
151
178
|
sick_leave_maximum_hours_to_accrue == o.sick_leave_maximum_hours_to_accrue &&
|
179
|
+
sick_leave_to_accrue_annually == o.sick_leave_to_accrue_annually &&
|
180
|
+
sick_leave_maximum_to_accrue == o.sick_leave_maximum_to_accrue &&
|
152
181
|
sick_leave_opening_balance == o.sick_leave_opening_balance &&
|
153
182
|
sick_leave_schedule_of_accrual == o.sick_leave_schedule_of_accrual &&
|
154
|
-
sick_leave_anniversary_date == o.sick_leave_anniversary_date
|
183
|
+
sick_leave_anniversary_date == o.sick_leave_anniversary_date &&
|
184
|
+
annual_leave_anniversary_date == o.annual_leave_anniversary_date
|
155
185
|
end
|
156
186
|
|
157
187
|
# @see the `==` method
|
@@ -163,7 +193,7 @@ module XeroRuby::PayrollNz
|
|
163
193
|
# Calculates hash code according to all attributes.
|
164
194
|
# @return [Integer] Hash code
|
165
195
|
def hash
|
166
|
-
[include_holiday_pay, holiday_pay_opening_balance, annual_leave_opening_balance, negative_annual_leave_balance_paid_amount, sick_leave_hours_to_accrue_annually, sick_leave_maximum_hours_to_accrue, sick_leave_opening_balance, sick_leave_schedule_of_accrual, sick_leave_anniversary_date].hash
|
196
|
+
[include_holiday_pay, holiday_pay_opening_balance, annual_leave_opening_balance, negative_annual_leave_balance_paid_amount, sick_leave_hours_to_accrue_annually, sick_leave_maximum_hours_to_accrue, 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
|
167
197
|
end
|
168
198
|
|
169
199
|
# Builds the object from hash
|
@@ -26,15 +26,24 @@ module XeroRuby::PayrollNz
|
|
26
26
|
PERCENTAGE_OF_GROSS_EARNINGS ||= "PercentageOfGrossEarnings".freeze
|
27
27
|
NO_ACCRUALS ||= "NoAccruals".freeze
|
28
28
|
|
29
|
-
#
|
29
|
+
# Deprecated use UnitsAccruedAnnually
|
30
30
|
attr_accessor :hours_accrued_annually
|
31
31
|
|
32
|
-
# The
|
32
|
+
# The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\"
|
33
|
+
attr_accessor :units_accrued_annually
|
34
|
+
|
35
|
+
# The type of units accrued for the leave annually
|
36
|
+
attr_accessor :type_of_units_to_accrue
|
37
|
+
|
38
|
+
# The maximum number of units that can be accrued for the leave
|
33
39
|
attr_accessor :maximum_to_accrue
|
34
40
|
|
35
|
-
# The initial number of
|
41
|
+
# The initial number of units assigned when the leave was added to the employee
|
36
42
|
attr_accessor :opening_balance
|
37
43
|
|
44
|
+
# The type of units for the opening balance
|
45
|
+
attr_accessor :opening_balance_type_of_units
|
46
|
+
|
38
47
|
# The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\"
|
39
48
|
attr_accessor :rate_accrued_hourly
|
40
49
|
|
@@ -81,8 +90,11 @@ module XeroRuby::PayrollNz
|
|
81
90
|
:'leave_type_id' => :'leaveTypeID',
|
82
91
|
:'schedule_of_accrual' => :'scheduleOfAccrual',
|
83
92
|
:'hours_accrued_annually' => :'hoursAccruedAnnually',
|
93
|
+
:'units_accrued_annually' => :'UnitsAccruedAnnually',
|
94
|
+
:'type_of_units_to_accrue' => :'typeOfUnitsToAccrue',
|
84
95
|
:'maximum_to_accrue' => :'maximumToAccrue',
|
85
96
|
:'opening_balance' => :'openingBalance',
|
97
|
+
:'opening_balance_type_of_units' => :'openingBalanceTypeOfUnits',
|
86
98
|
:'rate_accrued_hourly' => :'rateAccruedHourly',
|
87
99
|
:'percentage_of_gross_earnings' => :'percentageOfGrossEarnings',
|
88
100
|
:'include_holiday_pay_every_pay' => :'includeHolidayPayEveryPay',
|
@@ -98,8 +110,11 @@ module XeroRuby::PayrollNz
|
|
98
110
|
:'leave_type_id' => :'String',
|
99
111
|
:'schedule_of_accrual' => :'String',
|
100
112
|
:'hours_accrued_annually' => :'BigDecimal',
|
113
|
+
:'units_accrued_annually' => :'BigDecimal',
|
114
|
+
:'type_of_units_to_accrue' => :'String',
|
101
115
|
:'maximum_to_accrue' => :'BigDecimal',
|
102
116
|
:'opening_balance' => :'BigDecimal',
|
117
|
+
:'opening_balance_type_of_units' => :'String',
|
103
118
|
:'rate_accrued_hourly' => :'BigDecimal',
|
104
119
|
:'percentage_of_gross_earnings' => :'BigDecimal',
|
105
120
|
:'include_holiday_pay_every_pay' => :'Boolean',
|
@@ -136,6 +151,14 @@ module XeroRuby::PayrollNz
|
|
136
151
|
self.hours_accrued_annually = attributes[:'hours_accrued_annually']
|
137
152
|
end
|
138
153
|
|
154
|
+
if attributes.key?(:'units_accrued_annually')
|
155
|
+
self.units_accrued_annually = attributes[:'units_accrued_annually']
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.key?(:'type_of_units_to_accrue')
|
159
|
+
self.type_of_units_to_accrue = attributes[:'type_of_units_to_accrue']
|
160
|
+
end
|
161
|
+
|
139
162
|
if attributes.key?(:'maximum_to_accrue')
|
140
163
|
self.maximum_to_accrue = attributes[:'maximum_to_accrue']
|
141
164
|
end
|
@@ -144,6 +167,10 @@ module XeroRuby::PayrollNz
|
|
144
167
|
self.opening_balance = attributes[:'opening_balance']
|
145
168
|
end
|
146
169
|
|
170
|
+
if attributes.key?(:'opening_balance_type_of_units')
|
171
|
+
self.opening_balance_type_of_units = attributes[:'opening_balance_type_of_units']
|
172
|
+
end
|
173
|
+
|
147
174
|
if attributes.key?(:'rate_accrued_hourly')
|
148
175
|
self.rate_accrued_hourly = attributes[:'rate_accrued_hourly']
|
149
176
|
end
|
@@ -202,8 +229,11 @@ module XeroRuby::PayrollNz
|
|
202
229
|
leave_type_id == o.leave_type_id &&
|
203
230
|
schedule_of_accrual == o.schedule_of_accrual &&
|
204
231
|
hours_accrued_annually == o.hours_accrued_annually &&
|
232
|
+
units_accrued_annually == o.units_accrued_annually &&
|
233
|
+
type_of_units_to_accrue == o.type_of_units_to_accrue &&
|
205
234
|
maximum_to_accrue == o.maximum_to_accrue &&
|
206
235
|
opening_balance == o.opening_balance &&
|
236
|
+
opening_balance_type_of_units == o.opening_balance_type_of_units &&
|
207
237
|
rate_accrued_hourly == o.rate_accrued_hourly &&
|
208
238
|
percentage_of_gross_earnings == o.percentage_of_gross_earnings &&
|
209
239
|
include_holiday_pay_every_pay == o.include_holiday_pay_every_pay &&
|
@@ -221,7 +251,7 @@ module XeroRuby::PayrollNz
|
|
221
251
|
# Calculates hash code according to all attributes.
|
222
252
|
# @return [Integer] Hash code
|
223
253
|
def hash
|
224
|
-
[leave_type_id, schedule_of_accrual, hours_accrued_annually, maximum_to_accrue, opening_balance, 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
|
254
|
+
[leave_type_id, schedule_of_accrual, hours_accrued_annually, 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
|
225
255
|
end
|
226
256
|
|
227
257
|
# Builds the object from hash
|
@@ -25,10 +25,20 @@ module XeroRuby::PayrollNz
|
|
25
25
|
# The Number of Units for the leave
|
26
26
|
attr_accessor :number_of_units
|
27
27
|
|
28
|
-
#
|
28
|
+
# The number of units taken for the leave
|
29
|
+
attr_accessor :number_of_units_taken
|
30
|
+
|
31
|
+
# The type of units paid for the leave
|
32
|
+
attr_accessor :type_of_units
|
33
|
+
|
34
|
+
# The type of units taken for the leave
|
35
|
+
attr_accessor :type_of_units_taken
|
36
|
+
|
37
|
+
# Status of leave
|
29
38
|
attr_accessor :period_status
|
30
39
|
APPROVED ||= "Approved".freeze
|
31
40
|
COMPLETED ||= "Completed".freeze
|
41
|
+
ESTIMATED ||= "Estimated".freeze
|
32
42
|
|
33
43
|
class EnumAttributeValidator
|
34
44
|
attr_reader :datatype
|
@@ -58,6 +68,9 @@ module XeroRuby::PayrollNz
|
|
58
68
|
:'period_start_date' => :'periodStartDate',
|
59
69
|
:'period_end_date' => :'periodEndDate',
|
60
70
|
:'number_of_units' => :'numberOfUnits',
|
71
|
+
:'number_of_units_taken' => :'numberOfUnitsTaken',
|
72
|
+
:'type_of_units' => :'typeOfUnits',
|
73
|
+
:'type_of_units_taken' => :'typeOfUnitsTaken',
|
61
74
|
:'period_status' => :'periodStatus'
|
62
75
|
}
|
63
76
|
end
|
@@ -68,6 +81,9 @@ module XeroRuby::PayrollNz
|
|
68
81
|
:'period_start_date' => :'Date',
|
69
82
|
:'period_end_date' => :'Date',
|
70
83
|
:'number_of_units' => :'BigDecimal',
|
84
|
+
:'number_of_units_taken' => :'Float',
|
85
|
+
:'type_of_units' => :'String',
|
86
|
+
:'type_of_units_taken' => :'String',
|
71
87
|
:'period_status' => :'String'
|
72
88
|
}
|
73
89
|
end
|
@@ -99,6 +115,18 @@ module XeroRuby::PayrollNz
|
|
99
115
|
self.number_of_units = attributes[:'number_of_units']
|
100
116
|
end
|
101
117
|
|
118
|
+
if attributes.key?(:'number_of_units_taken')
|
119
|
+
self.number_of_units_taken = attributes[:'number_of_units_taken']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'type_of_units')
|
123
|
+
self.type_of_units = attributes[:'type_of_units']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'type_of_units_taken')
|
127
|
+
self.type_of_units_taken = attributes[:'type_of_units_taken']
|
128
|
+
end
|
129
|
+
|
102
130
|
if attributes.key?(:'period_status')
|
103
131
|
self.period_status = attributes[:'period_status']
|
104
132
|
end
|
@@ -114,7 +142,7 @@ module XeroRuby::PayrollNz
|
|
114
142
|
# Check to see if the all the properties in the model are valid
|
115
143
|
# @return true if the model is valid
|
116
144
|
def valid?
|
117
|
-
period_status_validator = EnumAttributeValidator.new('String', ["Approved", "Completed"])
|
145
|
+
period_status_validator = EnumAttributeValidator.new('String', ["Approved", "Completed", "Estimated"])
|
118
146
|
return false unless period_status_validator.valid?(@period_status)
|
119
147
|
true
|
120
148
|
end
|
@@ -122,7 +150,7 @@ module XeroRuby::PayrollNz
|
|
122
150
|
# Custom attribute writer method checking allowed values (enum).
|
123
151
|
# @param [Object] period_status Object to be assigned
|
124
152
|
def period_status=(period_status)
|
125
|
-
validator = EnumAttributeValidator.new('String', ["Approved", "Completed"])
|
153
|
+
validator = EnumAttributeValidator.new('String', ["Approved", "Completed", "Estimated"])
|
126
154
|
unless validator.valid?(period_status)
|
127
155
|
fail ArgumentError, "invalid value for \"period_status\", must be one of #{validator.allowable_values}."
|
128
156
|
end
|
@@ -137,6 +165,9 @@ module XeroRuby::PayrollNz
|
|
137
165
|
period_start_date == o.period_start_date &&
|
138
166
|
period_end_date == o.period_end_date &&
|
139
167
|
number_of_units == o.number_of_units &&
|
168
|
+
number_of_units_taken == o.number_of_units_taken &&
|
169
|
+
type_of_units == o.type_of_units &&
|
170
|
+
type_of_units_taken == o.type_of_units_taken &&
|
140
171
|
period_status == o.period_status
|
141
172
|
end
|
142
173
|
|
@@ -149,7 +180,7 @@ module XeroRuby::PayrollNz
|
|
149
180
|
# Calculates hash code according to all attributes.
|
150
181
|
# @return [Integer] Hash code
|
151
182
|
def hash
|
152
|
-
[period_start_date, period_end_date, number_of_units, period_status].hash
|
183
|
+
[period_start_date, period_end_date, number_of_units, number_of_units_taken, type_of_units, type_of_units_taken, period_status].hash
|
153
184
|
end
|
154
185
|
|
155
186
|
# Builds the object from hash
|
@@ -34,6 +34,12 @@ module XeroRuby::PayrollNz
|
|
34
34
|
# Shows whether the leave type is active or not
|
35
35
|
attr_accessor :is_active
|
36
36
|
|
37
|
+
# The type of units to be paid for the leave type
|
38
|
+
attr_accessor :type_of_units
|
39
|
+
|
40
|
+
# The type of units to be accrued for the leave type
|
41
|
+
attr_accessor :type_of_units_to_accrue
|
42
|
+
|
37
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
44
|
def self.attribute_map
|
39
45
|
{
|
@@ -42,7 +48,9 @@ module XeroRuby::PayrollNz
|
|
42
48
|
:'is_paid_leave' => :'isPaidLeave',
|
43
49
|
:'show_on_payslip' => :'showOnPayslip',
|
44
50
|
:'updated_date_utc' => :'updatedDateUTC',
|
45
|
-
:'is_active' => :'isActive'
|
51
|
+
:'is_active' => :'isActive',
|
52
|
+
:'type_of_units' => :'typeOfUnits',
|
53
|
+
:'type_of_units_to_accrue' => :'typeOfUnitsToAccrue'
|
46
54
|
}
|
47
55
|
end
|
48
56
|
|
@@ -54,7 +62,9 @@ module XeroRuby::PayrollNz
|
|
54
62
|
:'is_paid_leave' => :'Boolean',
|
55
63
|
:'show_on_payslip' => :'Boolean',
|
56
64
|
:'updated_date_utc' => :'DateTime',
|
57
|
-
:'is_active' => :'Boolean'
|
65
|
+
:'is_active' => :'Boolean',
|
66
|
+
:'type_of_units' => :'String',
|
67
|
+
:'type_of_units_to_accrue' => :'String'
|
58
68
|
}
|
59
69
|
end
|
60
70
|
|
@@ -96,6 +106,14 @@ module XeroRuby::PayrollNz
|
|
96
106
|
if attributes.key?(:'is_active')
|
97
107
|
self.is_active = attributes[:'is_active']
|
98
108
|
end
|
109
|
+
|
110
|
+
if attributes.key?(:'type_of_units')
|
111
|
+
self.type_of_units = attributes[:'type_of_units']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'type_of_units_to_accrue')
|
115
|
+
self.type_of_units_to_accrue = attributes[:'type_of_units_to_accrue']
|
116
|
+
end
|
99
117
|
end
|
100
118
|
|
101
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -136,7 +154,9 @@ module XeroRuby::PayrollNz
|
|
136
154
|
is_paid_leave == o.is_paid_leave &&
|
137
155
|
show_on_payslip == o.show_on_payslip &&
|
138
156
|
updated_date_utc == o.updated_date_utc &&
|
139
|
-
is_active == o.is_active
|
157
|
+
is_active == o.is_active &&
|
158
|
+
type_of_units == o.type_of_units &&
|
159
|
+
type_of_units_to_accrue == o.type_of_units_to_accrue
|
140
160
|
end
|
141
161
|
|
142
162
|
# @see the `==` method
|
@@ -148,7 +168,7 @@ module XeroRuby::PayrollNz
|
|
148
168
|
# Calculates hash code according to all attributes.
|
149
169
|
# @return [Integer] Hash code
|
150
170
|
def hash
|
151
|
-
[leave_type_id, name, is_paid_leave, show_on_payslip, updated_date_utc, is_active].hash
|
171
|
+
[leave_type_id, name, is_paid_leave, show_on_payslip, updated_date_utc, is_active, type_of_units, type_of_units_to_accrue].hash
|
152
172
|
end
|
153
173
|
|
154
174
|
# 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: 7.0.0
|
11
11
|
=end
|
12
12
|
|
13
13
|
module XeroRuby
|
14
|
-
VERSION = '
|
14
|
+
VERSION = '10.0.0'
|
15
15
|
end
|