xero-ruby 9.0.0 → 9.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xero-ruby/api/payroll_nz_api.rb +330 -7
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +13 -1
- data/lib/xero-ruby/models/accounting/contacts.rb +13 -1
- data/lib/xero-ruby/models/accounting/credit_notes.rb +13 -1
- data/lib/xero-ruby/models/accounting/invoices.rb +13 -1
- data/lib/xero-ruby/models/accounting/journals.rb +13 -1
- data/lib/xero-ruby/models/accounting/manual_journals.rb +13 -1
- data/lib/xero-ruby/models/accounting/overpayments.rb +13 -1
- data/lib/xero-ruby/models/accounting/payments.rb +13 -1
- data/lib/xero-ruby/models/accounting/prepayments.rb +13 -1
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +13 -1
- data/lib/xero-ruby/models/payroll_nz/employee.rb +24 -4
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +24 -4
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +14 -4
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern.rb +242 -0
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern_with_working_weeks.rb +254 -0
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern_with_working_weeks_object.rb +242 -0
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern_with_working_weeks_request.rb +244 -0
- data/lib/xero-ruby/models/payroll_nz/employee_working_patterns_object.rb +244 -0
- data/lib/xero-ruby/models/payroll_nz/employment.rb +24 -4
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +28 -4
- data/lib/xero-ruby/models/payroll_nz/working_week.rb +317 -0
- data/lib/xero-ruby/version.rb +2 -2
- data/lib/xero-ruby.rb +6 -0
- metadata +8 -2
@@ -16,12 +16,16 @@ module XeroRuby::Accounting
|
|
16
16
|
require 'bigdecimal'
|
17
17
|
|
18
18
|
class Journals
|
19
|
+
# Displays array of warning messages from the API
|
20
|
+
attr_accessor :warnings
|
21
|
+
|
19
22
|
|
20
23
|
attr_accessor :journals
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
28
|
+
:'warnings' => :'Warnings',
|
25
29
|
:'journals' => :'Journals'
|
26
30
|
}
|
27
31
|
end
|
@@ -29,6 +33,7 @@ module XeroRuby::Accounting
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.openapi_types
|
31
35
|
{
|
36
|
+
:'warnings' => :'Array<ValidationError>',
|
32
37
|
:'journals' => :'Array<Journal>'
|
33
38
|
}
|
34
39
|
end
|
@@ -48,6 +53,12 @@ module XeroRuby::Accounting
|
|
48
53
|
h[k.to_sym] = v
|
49
54
|
}
|
50
55
|
|
56
|
+
if attributes.key?(:'warnings')
|
57
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
58
|
+
self.warnings = value
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
51
62
|
if attributes.key?(:'journals')
|
52
63
|
if (value = attributes[:'journals']).is_a?(Array)
|
53
64
|
self.journals = value
|
@@ -73,6 +84,7 @@ module XeroRuby::Accounting
|
|
73
84
|
def ==(o)
|
74
85
|
return true if self.equal?(o)
|
75
86
|
self.class == o.class &&
|
87
|
+
warnings == o.warnings &&
|
76
88
|
journals == o.journals
|
77
89
|
end
|
78
90
|
|
@@ -85,7 +97,7 @@ module XeroRuby::Accounting
|
|
85
97
|
# Calculates hash code according to all attributes.
|
86
98
|
# @return [Integer] Hash code
|
87
99
|
def hash
|
88
|
-
[journals].hash
|
100
|
+
[warnings, journals].hash
|
89
101
|
end
|
90
102
|
|
91
103
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module XeroRuby::Accounting
|
|
19
19
|
|
20
20
|
attr_accessor :pagination
|
21
21
|
|
22
|
+
# Displays array of warning messages from the API
|
23
|
+
attr_accessor :warnings
|
24
|
+
|
22
25
|
|
23
26
|
attr_accessor :manual_journals
|
24
27
|
|
@@ -26,6 +29,7 @@ module XeroRuby::Accounting
|
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'pagination' => :'pagination',
|
32
|
+
:'warnings' => :'Warnings',
|
29
33
|
:'manual_journals' => :'ManualJournals'
|
30
34
|
}
|
31
35
|
end
|
@@ -34,6 +38,7 @@ module XeroRuby::Accounting
|
|
34
38
|
def self.openapi_types
|
35
39
|
{
|
36
40
|
:'pagination' => :'Pagination',
|
41
|
+
:'warnings' => :'Array<ValidationError>',
|
37
42
|
:'manual_journals' => :'Array<ManualJournal>'
|
38
43
|
}
|
39
44
|
end
|
@@ -57,6 +62,12 @@ module XeroRuby::Accounting
|
|
57
62
|
self.pagination = attributes[:'pagination']
|
58
63
|
end
|
59
64
|
|
65
|
+
if attributes.key?(:'warnings')
|
66
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
67
|
+
self.warnings = value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
60
71
|
if attributes.key?(:'manual_journals')
|
61
72
|
if (value = attributes[:'manual_journals']).is_a?(Array)
|
62
73
|
self.manual_journals = value
|
@@ -83,6 +94,7 @@ module XeroRuby::Accounting
|
|
83
94
|
return true if self.equal?(o)
|
84
95
|
self.class == o.class &&
|
85
96
|
pagination == o.pagination &&
|
97
|
+
warnings == o.warnings &&
|
86
98
|
manual_journals == o.manual_journals
|
87
99
|
end
|
88
100
|
|
@@ -95,7 +107,7 @@ module XeroRuby::Accounting
|
|
95
107
|
# Calculates hash code according to all attributes.
|
96
108
|
# @return [Integer] Hash code
|
97
109
|
def hash
|
98
|
-
[pagination, manual_journals].hash
|
110
|
+
[pagination, warnings, manual_journals].hash
|
99
111
|
end
|
100
112
|
|
101
113
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module XeroRuby::Accounting
|
|
19
19
|
|
20
20
|
attr_accessor :pagination
|
21
21
|
|
22
|
+
# Displays array of warning messages from the API
|
23
|
+
attr_accessor :warnings
|
24
|
+
|
22
25
|
|
23
26
|
attr_accessor :overpayments
|
24
27
|
|
@@ -26,6 +29,7 @@ module XeroRuby::Accounting
|
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'pagination' => :'pagination',
|
32
|
+
:'warnings' => :'Warnings',
|
29
33
|
:'overpayments' => :'Overpayments'
|
30
34
|
}
|
31
35
|
end
|
@@ -34,6 +38,7 @@ module XeroRuby::Accounting
|
|
34
38
|
def self.openapi_types
|
35
39
|
{
|
36
40
|
:'pagination' => :'Pagination',
|
41
|
+
:'warnings' => :'Array<ValidationError>',
|
37
42
|
:'overpayments' => :'Array<Overpayment>'
|
38
43
|
}
|
39
44
|
end
|
@@ -57,6 +62,12 @@ module XeroRuby::Accounting
|
|
57
62
|
self.pagination = attributes[:'pagination']
|
58
63
|
end
|
59
64
|
|
65
|
+
if attributes.key?(:'warnings')
|
66
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
67
|
+
self.warnings = value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
60
71
|
if attributes.key?(:'overpayments')
|
61
72
|
if (value = attributes[:'overpayments']).is_a?(Array)
|
62
73
|
self.overpayments = value
|
@@ -83,6 +94,7 @@ module XeroRuby::Accounting
|
|
83
94
|
return true if self.equal?(o)
|
84
95
|
self.class == o.class &&
|
85
96
|
pagination == o.pagination &&
|
97
|
+
warnings == o.warnings &&
|
86
98
|
overpayments == o.overpayments
|
87
99
|
end
|
88
100
|
|
@@ -95,7 +107,7 @@ module XeroRuby::Accounting
|
|
95
107
|
# Calculates hash code according to all attributes.
|
96
108
|
# @return [Integer] Hash code
|
97
109
|
def hash
|
98
|
-
[pagination, overpayments].hash
|
110
|
+
[pagination, warnings, overpayments].hash
|
99
111
|
end
|
100
112
|
|
101
113
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module XeroRuby::Accounting
|
|
19
19
|
|
20
20
|
attr_accessor :pagination
|
21
21
|
|
22
|
+
# Displays array of warning messages from the API
|
23
|
+
attr_accessor :warnings
|
24
|
+
|
22
25
|
|
23
26
|
attr_accessor :payments
|
24
27
|
|
@@ -26,6 +29,7 @@ module XeroRuby::Accounting
|
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'pagination' => :'pagination',
|
32
|
+
:'warnings' => :'Warnings',
|
29
33
|
:'payments' => :'Payments'
|
30
34
|
}
|
31
35
|
end
|
@@ -34,6 +38,7 @@ module XeroRuby::Accounting
|
|
34
38
|
def self.openapi_types
|
35
39
|
{
|
36
40
|
:'pagination' => :'Pagination',
|
41
|
+
:'warnings' => :'Array<ValidationError>',
|
37
42
|
:'payments' => :'Array<Payment>'
|
38
43
|
}
|
39
44
|
end
|
@@ -57,6 +62,12 @@ module XeroRuby::Accounting
|
|
57
62
|
self.pagination = attributes[:'pagination']
|
58
63
|
end
|
59
64
|
|
65
|
+
if attributes.key?(:'warnings')
|
66
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
67
|
+
self.warnings = value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
60
71
|
if attributes.key?(:'payments')
|
61
72
|
if (value = attributes[:'payments']).is_a?(Array)
|
62
73
|
self.payments = value
|
@@ -83,6 +94,7 @@ module XeroRuby::Accounting
|
|
83
94
|
return true if self.equal?(o)
|
84
95
|
self.class == o.class &&
|
85
96
|
pagination == o.pagination &&
|
97
|
+
warnings == o.warnings &&
|
86
98
|
payments == o.payments
|
87
99
|
end
|
88
100
|
|
@@ -95,7 +107,7 @@ module XeroRuby::Accounting
|
|
95
107
|
# Calculates hash code according to all attributes.
|
96
108
|
# @return [Integer] Hash code
|
97
109
|
def hash
|
98
|
-
[pagination, payments].hash
|
110
|
+
[pagination, warnings, payments].hash
|
99
111
|
end
|
100
112
|
|
101
113
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module XeroRuby::Accounting
|
|
19
19
|
|
20
20
|
attr_accessor :pagination
|
21
21
|
|
22
|
+
# Displays array of warning messages from the API
|
23
|
+
attr_accessor :warnings
|
24
|
+
|
22
25
|
|
23
26
|
attr_accessor :prepayments
|
24
27
|
|
@@ -26,6 +29,7 @@ module XeroRuby::Accounting
|
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'pagination' => :'pagination',
|
32
|
+
:'warnings' => :'Warnings',
|
29
33
|
:'prepayments' => :'Prepayments'
|
30
34
|
}
|
31
35
|
end
|
@@ -34,6 +38,7 @@ module XeroRuby::Accounting
|
|
34
38
|
def self.openapi_types
|
35
39
|
{
|
36
40
|
:'pagination' => :'Pagination',
|
41
|
+
:'warnings' => :'Array<ValidationError>',
|
37
42
|
:'prepayments' => :'Array<Prepayment>'
|
38
43
|
}
|
39
44
|
end
|
@@ -57,6 +62,12 @@ module XeroRuby::Accounting
|
|
57
62
|
self.pagination = attributes[:'pagination']
|
58
63
|
end
|
59
64
|
|
65
|
+
if attributes.key?(:'warnings')
|
66
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
67
|
+
self.warnings = value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
60
71
|
if attributes.key?(:'prepayments')
|
61
72
|
if (value = attributes[:'prepayments']).is_a?(Array)
|
62
73
|
self.prepayments = value
|
@@ -83,6 +94,7 @@ module XeroRuby::Accounting
|
|
83
94
|
return true if self.equal?(o)
|
84
95
|
self.class == o.class &&
|
85
96
|
pagination == o.pagination &&
|
97
|
+
warnings == o.warnings &&
|
86
98
|
prepayments == o.prepayments
|
87
99
|
end
|
88
100
|
|
@@ -95,7 +107,7 @@ module XeroRuby::Accounting
|
|
95
107
|
# Calculates hash code according to all attributes.
|
96
108
|
# @return [Integer] Hash code
|
97
109
|
def hash
|
98
|
-
[pagination, prepayments].hash
|
110
|
+
[pagination, warnings, prepayments].hash
|
99
111
|
end
|
100
112
|
|
101
113
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module XeroRuby::Accounting
|
|
19
19
|
|
20
20
|
attr_accessor :pagination
|
21
21
|
|
22
|
+
# Displays array of warning messages from the API
|
23
|
+
attr_accessor :warnings
|
24
|
+
|
22
25
|
|
23
26
|
attr_accessor :purchase_orders
|
24
27
|
|
@@ -26,6 +29,7 @@ module XeroRuby::Accounting
|
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'pagination' => :'pagination',
|
32
|
+
:'warnings' => :'Warnings',
|
29
33
|
:'purchase_orders' => :'PurchaseOrders'
|
30
34
|
}
|
31
35
|
end
|
@@ -34,6 +38,7 @@ module XeroRuby::Accounting
|
|
34
38
|
def self.openapi_types
|
35
39
|
{
|
36
40
|
:'pagination' => :'Pagination',
|
41
|
+
:'warnings' => :'Array<ValidationError>',
|
37
42
|
:'purchase_orders' => :'Array<PurchaseOrder>'
|
38
43
|
}
|
39
44
|
end
|
@@ -57,6 +62,12 @@ module XeroRuby::Accounting
|
|
57
62
|
self.pagination = attributes[:'pagination']
|
58
63
|
end
|
59
64
|
|
65
|
+
if attributes.key?(:'warnings')
|
66
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
67
|
+
self.warnings = value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
60
71
|
if attributes.key?(:'purchase_orders')
|
61
72
|
if (value = attributes[:'purchase_orders']).is_a?(Array)
|
62
73
|
self.purchase_orders = value
|
@@ -83,6 +94,7 @@ module XeroRuby::Accounting
|
|
83
94
|
return true if self.equal?(o)
|
84
95
|
self.class == o.class &&
|
85
96
|
pagination == o.pagination &&
|
97
|
+
warnings == o.warnings &&
|
86
98
|
purchase_orders == o.purchase_orders
|
87
99
|
end
|
88
100
|
|
@@ -95,7 +107,7 @@ module XeroRuby::Accounting
|
|
95
107
|
# Calculates hash code according to all attributes.
|
96
108
|
# @return [Integer] Hash code
|
97
109
|
def hash
|
98
|
-
[pagination, purchase_orders].hash
|
110
|
+
[pagination, warnings, purchase_orders].hash
|
99
111
|
end
|
100
112
|
|
101
113
|
# Builds the object from hash
|
@@ -63,6 +63,12 @@ module XeroRuby::PayrollNz
|
|
63
63
|
# Employee's job title
|
64
64
|
attr_accessor :job_title
|
65
65
|
|
66
|
+
# Engagement type of the employee
|
67
|
+
attr_accessor :engagement_type
|
68
|
+
|
69
|
+
# End date for an employee with a fixed-term engagement type
|
70
|
+
attr_accessor :fixed_term_end_date
|
71
|
+
|
66
72
|
class EnumAttributeValidator
|
67
73
|
attr_reader :datatype
|
68
74
|
attr_reader :allowable_values
|
@@ -102,7 +108,9 @@ module XeroRuby::PayrollNz
|
|
102
108
|
:'payroll_calendar_id' => :'payrollCalendarID',
|
103
109
|
:'updated_date_utc' => :'updatedDateUTC',
|
104
110
|
:'created_date_utc' => :'createdDateUTC',
|
105
|
-
:'job_title' => :'jobTitle'
|
111
|
+
:'job_title' => :'jobTitle',
|
112
|
+
:'engagement_type' => :'engagementType',
|
113
|
+
:'fixed_term_end_date' => :'fixedTermEndDate'
|
106
114
|
}
|
107
115
|
end
|
108
116
|
|
@@ -123,7 +131,9 @@ module XeroRuby::PayrollNz
|
|
123
131
|
:'payroll_calendar_id' => :'String',
|
124
132
|
:'updated_date_utc' => :'DateTime',
|
125
133
|
:'created_date_utc' => :'DateTime',
|
126
|
-
:'job_title' => :'String'
|
134
|
+
:'job_title' => :'String',
|
135
|
+
:'engagement_type' => :'String',
|
136
|
+
:'fixed_term_end_date' => :'Date'
|
127
137
|
}
|
128
138
|
end
|
129
139
|
|
@@ -201,6 +211,14 @@ module XeroRuby::PayrollNz
|
|
201
211
|
if attributes.key?(:'job_title')
|
202
212
|
self.job_title = attributes[:'job_title']
|
203
213
|
end
|
214
|
+
|
215
|
+
if attributes.key?(:'engagement_type')
|
216
|
+
self.engagement_type = attributes[:'engagement_type']
|
217
|
+
end
|
218
|
+
|
219
|
+
if attributes.key?(:'fixed_term_end_date')
|
220
|
+
self.fixed_term_end_date = attributes[:'fixed_term_end_date']
|
221
|
+
end
|
204
222
|
end
|
205
223
|
|
206
224
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -247,7 +265,9 @@ module XeroRuby::PayrollNz
|
|
247
265
|
payroll_calendar_id == o.payroll_calendar_id &&
|
248
266
|
updated_date_utc == o.updated_date_utc &&
|
249
267
|
created_date_utc == o.created_date_utc &&
|
250
|
-
job_title == o.job_title
|
268
|
+
job_title == o.job_title &&
|
269
|
+
engagement_type == o.engagement_type &&
|
270
|
+
fixed_term_end_date == o.fixed_term_end_date
|
251
271
|
end
|
252
272
|
|
253
273
|
# @see the `==` method
|
@@ -259,7 +279,7 @@ module XeroRuby::PayrollNz
|
|
259
279
|
# Calculates hash code according to all attributes.
|
260
280
|
# @return [Integer] Hash code
|
261
281
|
def hash
|
262
|
-
[employee_id, title, first_name, last_name, date_of_birth, address, email, gender, phone_number, start_date, end_date, payroll_calendar_id, updated_date_utc, created_date_utc, job_title].hash
|
282
|
+
[employee_id, title, first_name, last_name, date_of_birth, address, email, gender, phone_number, start_date, end_date, payroll_calendar_id, updated_date_utc, created_date_utc, job_title, engagement_type, fixed_term_end_date].hash
|
263
283
|
end
|
264
284
|
|
265
285
|
# Builds the object from hash
|
@@ -37,6 +37,12 @@ module XeroRuby::PayrollNz
|
|
37
37
|
# Initial sick leave balance. This will be positive unless they've taken sick leave in advance
|
38
38
|
attr_accessor :sick_leave_opening_balance
|
39
39
|
|
40
|
+
# Set Schedule of Accrual Type for Sick Leave
|
41
|
+
attr_accessor :sick_leave_schedule_of_accrual
|
42
|
+
|
43
|
+
# If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave
|
44
|
+
attr_accessor :sick_leave_anniversary_date
|
45
|
+
|
40
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
47
|
def self.attribute_map
|
42
48
|
{
|
@@ -46,7 +52,9 @@ module XeroRuby::PayrollNz
|
|
46
52
|
:'negative_annual_leave_balance_paid_amount' => :'negativeAnnualLeaveBalancePaidAmount',
|
47
53
|
:'sick_leave_hours_to_accrue_annually' => :'sickLeaveHoursToAccrueAnnually',
|
48
54
|
:'sick_leave_maximum_hours_to_accrue' => :'sickLeaveMaximumHoursToAccrue',
|
49
|
-
:'sick_leave_opening_balance' => :'sickLeaveOpeningBalance'
|
55
|
+
:'sick_leave_opening_balance' => :'sickLeaveOpeningBalance',
|
56
|
+
:'sick_leave_schedule_of_accrual' => :'SickLeaveScheduleOfAccrual',
|
57
|
+
:'sick_leave_anniversary_date' => :'SickLeaveAnniversaryDate'
|
50
58
|
}
|
51
59
|
end
|
52
60
|
|
@@ -59,7 +67,9 @@ module XeroRuby::PayrollNz
|
|
59
67
|
:'negative_annual_leave_balance_paid_amount' => :'BigDecimal',
|
60
68
|
:'sick_leave_hours_to_accrue_annually' => :'BigDecimal',
|
61
69
|
:'sick_leave_maximum_hours_to_accrue' => :'BigDecimal',
|
62
|
-
:'sick_leave_opening_balance' => :'BigDecimal'
|
70
|
+
:'sick_leave_opening_balance' => :'BigDecimal',
|
71
|
+
:'sick_leave_schedule_of_accrual' => :'String',
|
72
|
+
:'sick_leave_anniversary_date' => :'Date'
|
63
73
|
}
|
64
74
|
end
|
65
75
|
|
@@ -105,6 +115,14 @@ module XeroRuby::PayrollNz
|
|
105
115
|
if attributes.key?(:'sick_leave_opening_balance')
|
106
116
|
self.sick_leave_opening_balance = attributes[:'sick_leave_opening_balance']
|
107
117
|
end
|
118
|
+
|
119
|
+
if attributes.key?(:'sick_leave_schedule_of_accrual')
|
120
|
+
self.sick_leave_schedule_of_accrual = attributes[:'sick_leave_schedule_of_accrual']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'sick_leave_anniversary_date')
|
124
|
+
self.sick_leave_anniversary_date = attributes[:'sick_leave_anniversary_date']
|
125
|
+
end
|
108
126
|
end
|
109
127
|
|
110
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -131,7 +149,9 @@ module XeroRuby::PayrollNz
|
|
131
149
|
negative_annual_leave_balance_paid_amount == o.negative_annual_leave_balance_paid_amount &&
|
132
150
|
sick_leave_hours_to_accrue_annually == o.sick_leave_hours_to_accrue_annually &&
|
133
151
|
sick_leave_maximum_hours_to_accrue == o.sick_leave_maximum_hours_to_accrue &&
|
134
|
-
sick_leave_opening_balance == o.sick_leave_opening_balance
|
152
|
+
sick_leave_opening_balance == o.sick_leave_opening_balance &&
|
153
|
+
sick_leave_schedule_of_accrual == o.sick_leave_schedule_of_accrual &&
|
154
|
+
sick_leave_anniversary_date == o.sick_leave_anniversary_date
|
135
155
|
end
|
136
156
|
|
137
157
|
# @see the `==` method
|
@@ -143,7 +163,7 @@ module XeroRuby::PayrollNz
|
|
143
163
|
# Calculates hash code according to all attributes.
|
144
164
|
# @return [Integer] Hash code
|
145
165
|
def hash
|
146
|
-
[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].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
|
147
167
|
end
|
148
168
|
|
149
169
|
# Builds the object from hash
|
@@ -50,6 +50,9 @@ module XeroRuby::PayrollNz
|
|
50
50
|
# Specific to Annual Leave. Annual leave balance in dollars
|
51
51
|
attr_accessor :annual_leave_total_amount_paid
|
52
52
|
|
53
|
+
# The date when an employee becomes entitled to their accrual.
|
54
|
+
attr_accessor :schedule_of_accrual_date
|
55
|
+
|
53
56
|
class EnumAttributeValidator
|
54
57
|
attr_reader :datatype
|
55
58
|
attr_reader :allowable_values
|
@@ -84,7 +87,8 @@ module XeroRuby::PayrollNz
|
|
84
87
|
:'percentage_of_gross_earnings' => :'percentageOfGrossEarnings',
|
85
88
|
:'include_holiday_pay_every_pay' => :'includeHolidayPayEveryPay',
|
86
89
|
:'show_annual_leave_in_advance' => :'showAnnualLeaveInAdvance',
|
87
|
-
:'annual_leave_total_amount_paid' => :'annualLeaveTotalAmountPaid'
|
90
|
+
:'annual_leave_total_amount_paid' => :'annualLeaveTotalAmountPaid',
|
91
|
+
:'schedule_of_accrual_date' => :'scheduleOfAccrualDate'
|
88
92
|
}
|
89
93
|
end
|
90
94
|
|
@@ -100,7 +104,8 @@ module XeroRuby::PayrollNz
|
|
100
104
|
:'percentage_of_gross_earnings' => :'BigDecimal',
|
101
105
|
:'include_holiday_pay_every_pay' => :'Boolean',
|
102
106
|
:'show_annual_leave_in_advance' => :'Boolean',
|
103
|
-
:'annual_leave_total_amount_paid' => :'BigDecimal'
|
107
|
+
:'annual_leave_total_amount_paid' => :'BigDecimal',
|
108
|
+
:'schedule_of_accrual_date' => :'Date'
|
104
109
|
}
|
105
110
|
end
|
106
111
|
|
@@ -158,6 +163,10 @@ module XeroRuby::PayrollNz
|
|
158
163
|
if attributes.key?(:'annual_leave_total_amount_paid')
|
159
164
|
self.annual_leave_total_amount_paid = attributes[:'annual_leave_total_amount_paid']
|
160
165
|
end
|
166
|
+
|
167
|
+
if attributes.key?(:'schedule_of_accrual_date')
|
168
|
+
self.schedule_of_accrual_date = attributes[:'schedule_of_accrual_date']
|
169
|
+
end
|
161
170
|
end
|
162
171
|
|
163
172
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -199,7 +208,8 @@ module XeroRuby::PayrollNz
|
|
199
208
|
percentage_of_gross_earnings == o.percentage_of_gross_earnings &&
|
200
209
|
include_holiday_pay_every_pay == o.include_holiday_pay_every_pay &&
|
201
210
|
show_annual_leave_in_advance == o.show_annual_leave_in_advance &&
|
202
|
-
annual_leave_total_amount_paid == o.annual_leave_total_amount_paid
|
211
|
+
annual_leave_total_amount_paid == o.annual_leave_total_amount_paid &&
|
212
|
+
schedule_of_accrual_date == o.schedule_of_accrual_date
|
203
213
|
end
|
204
214
|
|
205
215
|
# @see the `==` method
|
@@ -211,7 +221,7 @@ module XeroRuby::PayrollNz
|
|
211
221
|
# Calculates hash code according to all attributes.
|
212
222
|
# @return [Integer] Hash code
|
213
223
|
def hash
|
214
|
-
[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].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
|
215
225
|
end
|
216
226
|
|
217
227
|
# Builds the object from hash
|