xero-ruby 3.11.0 → 3.16.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/README.md +1 -1
- data/lib/xero-ruby/api/accounting_api.rb +84 -9
- data/lib/xero-ruby/api/app_store_api.rb +238 -0
- data/lib/xero-ruby/api/project_api.rb +7 -7
- data/lib/xero-ruby/api_client.rb +7 -1
- data/lib/xero-ruby/models/accounting/account.rb +1 -1
- data/lib/xero-ruby/models/accounting/batch_payment.rb +2 -2
- data/lib/xero-ruby/models/accounting/journal_line.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_item.rb +2 -2
- data/lib/xero-ruby/models/accounting/organisation.rb +3 -2
- data/lib/xero-ruby/models/accounting/payment.rb +11 -1
- data/lib/xero-ruby/models/accounting/tax_rate.rb +12 -2
- data/lib/xero-ruby/models/accounting/tax_type.rb +15 -0
- data/lib/xero-ruby/models/accounting/time_zone.rb +123 -91
- data/lib/xero-ruby/models/app_store/create_usage_record.rb +243 -0
- data/lib/xero-ruby/models/app_store/update_usage_record.rb +228 -0
- data/lib/xero-ruby/models/app_store/usage_record.rb +332 -0
- data/lib/xero-ruby/models/app_store/usage_records_list.rb +230 -0
- data/lib/xero-ruby/models/payroll_au/country_of_residence.rb +285 -0
- data/lib/xero-ruby/models/payroll_au/employee.rb +42 -2
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -0
- data/lib/xero-ruby/models/payroll_au/employment_type.rb +36 -0
- data/lib/xero-ruby/models/payroll_au/income_type.rb +39 -0
- data/lib/xero-ruby/models/payroll_au/leave_category_code.rb +46 -0
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +24 -4
- data/lib/xero-ruby/models/payroll_au/senior_marital_status.rb +37 -0
- data/lib/xero-ruby/models/payroll_au/settings.rb +14 -4
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +41 -1
- data/lib/xero-ruby/models/payroll_au/tax_scale_type.rb +40 -0
- data/lib/xero-ruby/models/payroll_au/work_condition.rb +37 -0
- data/lib/xero-ruby/version.rb +2 -2
- data/lib/xero-ruby/where.rb +2 -0
- data/lib/xero-ruby.rb +11 -0
- metadata +13 -2
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
#Xero Payroll AU API
|
3
|
+
|
4
|
+
#This is the Xero Payroll API for orgs in Australia region.
|
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::PayrollAu
|
16
|
+
class LeaveCategoryCode
|
17
|
+
ANNUALLEAVE ||= "ANNUALLEAVE".freeze
|
18
|
+
LONGSERVICELEAVE ||= "LONGSERVICELEAVE".freeze
|
19
|
+
PERSONALSICKCARERSLEAVE ||= "PERSONALSICKCARERSLEAVE".freeze
|
20
|
+
ROSTEREDDAYOFF ||= "ROSTEREDDAYOFF".freeze
|
21
|
+
TIMEOFFINLIEU ||= "TIMEOFFINLIEU".freeze
|
22
|
+
COMPASSIONATEANDBEREAVEMENTLEAVE ||= "COMPASSIONATEANDBEREAVEMENTLEAVE".freeze
|
23
|
+
STUDYLEAVE ||= "STUDYLEAVE".freeze
|
24
|
+
FAMILYANDDOMESTICVIOLENCELEAVE ||= "FAMILYANDDOMESTICVIOLENCELEAVE".freeze
|
25
|
+
SPECIALPAIDLEAVE ||= "SPECIALPAIDLEAVE".freeze
|
26
|
+
COMMUNITYSERVICELEAVE ||= "COMMUNITYSERVICELEAVE".freeze
|
27
|
+
JURYDUTYLEAVE ||= "JURYDUTYLEAVE".freeze
|
28
|
+
DEFENCERESERVELEAVE ||= "DEFENCERESERVELEAVE".freeze
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def self.build_from_hash(value)
|
34
|
+
new.build_from_hash(value)
|
35
|
+
end
|
36
|
+
|
37
|
+
# Builds the enum from string
|
38
|
+
# @param [String] The enum value in the form of the string
|
39
|
+
# @return [String] The enum value
|
40
|
+
def build_from_hash(value)
|
41
|
+
constantValues = LeaveCategoryCode.constants.select { |c| LeaveCategoryCode::const_get(c) == value }
|
42
|
+
raise "Invalid ENUM value #{value} for class #LeaveCategoryCode" if constantValues.empty?
|
43
|
+
value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -43,6 +43,12 @@ module XeroRuby::PayrollAu
|
|
43
43
|
# Is the current record
|
44
44
|
attr_accessor :current_record
|
45
45
|
|
46
|
+
|
47
|
+
attr_accessor :leave_category_code
|
48
|
+
|
49
|
+
# Set this to indicate that the leave type is exempt from superannuation guarantee contribution
|
50
|
+
attr_accessor :sgc_exempt
|
51
|
+
|
46
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
53
|
def self.attribute_map
|
48
54
|
{
|
@@ -54,7 +60,9 @@ module XeroRuby::PayrollAu
|
|
54
60
|
:'updated_date_utc' => :'UpdatedDateUTC',
|
55
61
|
:'is_paid_leave' => :'IsPaidLeave',
|
56
62
|
:'show_on_payslip' => :'ShowOnPayslip',
|
57
|
-
:'current_record' => :'CurrentRecord'
|
63
|
+
:'current_record' => :'CurrentRecord',
|
64
|
+
:'leave_category_code' => :'LeaveCategoryCode',
|
65
|
+
:'sgc_exempt' => :'SGCExempt'
|
58
66
|
}
|
59
67
|
end
|
60
68
|
|
@@ -69,7 +77,9 @@ module XeroRuby::PayrollAu
|
|
69
77
|
:'updated_date_utc' => :'DateTime',
|
70
78
|
:'is_paid_leave' => :'Boolean',
|
71
79
|
:'show_on_payslip' => :'Boolean',
|
72
|
-
:'current_record' => :'Boolean'
|
80
|
+
:'current_record' => :'Boolean',
|
81
|
+
:'leave_category_code' => :'LeaveCategoryCode',
|
82
|
+
:'sgc_exempt' => :'Boolean'
|
73
83
|
}
|
74
84
|
end
|
75
85
|
|
@@ -123,6 +133,14 @@ module XeroRuby::PayrollAu
|
|
123
133
|
if attributes.key?(:'current_record')
|
124
134
|
self.current_record = attributes[:'current_record']
|
125
135
|
end
|
136
|
+
|
137
|
+
if attributes.key?(:'leave_category_code')
|
138
|
+
self.leave_category_code = attributes[:'leave_category_code']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'sgc_exempt')
|
142
|
+
self.sgc_exempt = attributes[:'sgc_exempt']
|
143
|
+
end
|
126
144
|
end
|
127
145
|
|
128
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -166,7 +184,9 @@ module XeroRuby::PayrollAu
|
|
166
184
|
updated_date_utc == o.updated_date_utc &&
|
167
185
|
is_paid_leave == o.is_paid_leave &&
|
168
186
|
show_on_payslip == o.show_on_payslip &&
|
169
|
-
current_record == o.current_record
|
187
|
+
current_record == o.current_record &&
|
188
|
+
leave_category_code == o.leave_category_code &&
|
189
|
+
sgc_exempt == o.sgc_exempt
|
170
190
|
end
|
171
191
|
|
172
192
|
# @see the `==` method
|
@@ -178,7 +198,7 @@ module XeroRuby::PayrollAu
|
|
178
198
|
# Calculates hash code according to all attributes.
|
179
199
|
# @return [Integer] Hash code
|
180
200
|
def hash
|
181
|
-
[name, type_of_units, leave_type_id, normal_entitlement, leave_loading_rate, updated_date_utc, is_paid_leave, show_on_payslip, current_record].hash
|
201
|
+
[name, type_of_units, leave_type_id, normal_entitlement, leave_loading_rate, updated_date_utc, is_paid_leave, show_on_payslip, current_record, leave_category_code, sgc_exempt].hash
|
182
202
|
end
|
183
203
|
|
184
204
|
# Builds the object from hash
|
@@ -0,0 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
#Xero Payroll AU API
|
3
|
+
|
4
|
+
#This is the Xero Payroll API for orgs in Australia region.
|
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::PayrollAu
|
16
|
+
class SeniorMaritalStatus
|
17
|
+
MEMBEROFCOUPLE ||= "MEMBEROFCOUPLE".freeze
|
18
|
+
MEMBEROFILLNESSSEPARATEDCOUPLE ||= "MEMBEROFILLNESSSEPARATEDCOUPLE".freeze
|
19
|
+
SINGLE ||= "SINGLE".freeze
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
constantValues = SeniorMaritalStatus.constants.select { |c| SeniorMaritalStatus::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #SeniorMaritalStatus" if constantValues.empty?
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -25,12 +25,16 @@ module XeroRuby::PayrollAu
|
|
25
25
|
# Number of days in the Payroll year
|
26
26
|
attr_accessor :days_in_payroll_year
|
27
27
|
|
28
|
+
# Indicates if the organisation has been enabled for STP Phase 2 editing of employees.
|
29
|
+
attr_accessor :employees_are_stp2
|
30
|
+
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
34
|
:'accounts' => :'Accounts',
|
32
35
|
:'tracking_categories' => :'TrackingCategories',
|
33
|
-
:'days_in_payroll_year' => :'DaysInPayrollYear'
|
36
|
+
:'days_in_payroll_year' => :'DaysInPayrollYear',
|
37
|
+
:'employees_are_stp2' => :'EmployeesAreSTP2'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -39,7 +43,8 @@ module XeroRuby::PayrollAu
|
|
39
43
|
{
|
40
44
|
:'accounts' => :'Array<Account>',
|
41
45
|
:'tracking_categories' => :'SettingsTrackingCategories',
|
42
|
-
:'days_in_payroll_year' => :'Integer'
|
46
|
+
:'days_in_payroll_year' => :'Integer',
|
47
|
+
:'employees_are_stp2' => :'Boolean'
|
43
48
|
}
|
44
49
|
end
|
45
50
|
|
@@ -71,6 +76,10 @@ module XeroRuby::PayrollAu
|
|
71
76
|
if attributes.key?(:'days_in_payroll_year')
|
72
77
|
self.days_in_payroll_year = attributes[:'days_in_payroll_year']
|
73
78
|
end
|
79
|
+
|
80
|
+
if attributes.key?(:'employees_are_stp2')
|
81
|
+
self.employees_are_stp2 = attributes[:'employees_are_stp2']
|
82
|
+
end
|
74
83
|
end
|
75
84
|
|
76
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -93,7 +102,8 @@ module XeroRuby::PayrollAu
|
|
93
102
|
self.class == o.class &&
|
94
103
|
accounts == o.accounts &&
|
95
104
|
tracking_categories == o.tracking_categories &&
|
96
|
-
days_in_payroll_year == o.days_in_payroll_year
|
105
|
+
days_in_payroll_year == o.days_in_payroll_year &&
|
106
|
+
employees_are_stp2 == o.employees_are_stp2
|
97
107
|
end
|
98
108
|
|
99
109
|
# @see the `==` method
|
@@ -105,7 +115,7 @@ module XeroRuby::PayrollAu
|
|
105
115
|
# Calculates hash code according to all attributes.
|
106
116
|
# @return [Integer] Hash code
|
107
117
|
def hash
|
108
|
-
[accounts, tracking_categories, days_in_payroll_year].hash
|
118
|
+
[accounts, tracking_categories, days_in_payroll_year, employees_are_stp2].hash
|
109
119
|
end
|
110
120
|
|
111
121
|
# Builds the object from hash
|
@@ -28,12 +28,24 @@ module XeroRuby::PayrollAu
|
|
28
28
|
# The tax file number e.g 123123123.
|
29
29
|
attr_accessor :tax_file_number
|
30
30
|
|
31
|
+
# 11-digit Australian Business Number e.g 21006819692 or an empty string (\"\") to unset a previously set value. Only applicable, and mandatory if income type is NONEMPLOYEE.
|
32
|
+
attr_accessor :abn
|
33
|
+
|
31
34
|
# If the employee is Australian resident for tax purposes. e.g true or false
|
32
35
|
attr_accessor :australian_resident_for_tax_purposes
|
33
36
|
|
34
37
|
|
35
38
|
attr_accessor :residency_status
|
36
39
|
|
40
|
+
|
41
|
+
attr_accessor :tax_scale_type
|
42
|
+
|
43
|
+
|
44
|
+
attr_accessor :work_condition
|
45
|
+
|
46
|
+
|
47
|
+
attr_accessor :senior_marital_status
|
48
|
+
|
37
49
|
# If tax free threshold claimed. e.g true or false
|
38
50
|
attr_accessor :tax_free_threshold_claimed
|
39
51
|
|
@@ -74,8 +86,12 @@ module XeroRuby::PayrollAu
|
|
74
86
|
:'employment_basis' => :'EmploymentBasis',
|
75
87
|
:'tfn_exemption_type' => :'TFNExemptionType',
|
76
88
|
:'tax_file_number' => :'TaxFileNumber',
|
89
|
+
:'abn' => :'ABN',
|
77
90
|
:'australian_resident_for_tax_purposes' => :'AustralianResidentForTaxPurposes',
|
78
91
|
:'residency_status' => :'ResidencyStatus',
|
92
|
+
:'tax_scale_type' => :'TaxScaleType',
|
93
|
+
:'work_condition' => :'WorkCondition',
|
94
|
+
:'senior_marital_status' => :'SeniorMaritalStatus',
|
79
95
|
:'tax_free_threshold_claimed' => :'TaxFreeThresholdClaimed',
|
80
96
|
:'tax_offset_estimated_amount' => :'TaxOffsetEstimatedAmount',
|
81
97
|
:'has_help_debt' => :'HasHELPDebt',
|
@@ -97,8 +113,12 @@ module XeroRuby::PayrollAu
|
|
97
113
|
:'employment_basis' => :'EmploymentBasis',
|
98
114
|
:'tfn_exemption_type' => :'TFNExemptionType',
|
99
115
|
:'tax_file_number' => :'String',
|
116
|
+
:'abn' => :'String',
|
100
117
|
:'australian_resident_for_tax_purposes' => :'Boolean',
|
101
118
|
:'residency_status' => :'ResidencyStatus',
|
119
|
+
:'tax_scale_type' => :'TaxScaleType',
|
120
|
+
:'work_condition' => :'WorkCondition',
|
121
|
+
:'senior_marital_status' => :'SeniorMaritalStatus',
|
102
122
|
:'tax_free_threshold_claimed' => :'Boolean',
|
103
123
|
:'tax_offset_estimated_amount' => :'Float',
|
104
124
|
:'has_help_debt' => :'Boolean',
|
@@ -144,6 +164,10 @@ module XeroRuby::PayrollAu
|
|
144
164
|
self.tax_file_number = attributes[:'tax_file_number']
|
145
165
|
end
|
146
166
|
|
167
|
+
if attributes.key?(:'abn')
|
168
|
+
self.abn = attributes[:'abn']
|
169
|
+
end
|
170
|
+
|
147
171
|
if attributes.key?(:'australian_resident_for_tax_purposes')
|
148
172
|
self.australian_resident_for_tax_purposes = attributes[:'australian_resident_for_tax_purposes']
|
149
173
|
end
|
@@ -152,6 +176,18 @@ module XeroRuby::PayrollAu
|
|
152
176
|
self.residency_status = attributes[:'residency_status']
|
153
177
|
end
|
154
178
|
|
179
|
+
if attributes.key?(:'tax_scale_type')
|
180
|
+
self.tax_scale_type = attributes[:'tax_scale_type']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.key?(:'work_condition')
|
184
|
+
self.work_condition = attributes[:'work_condition']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.key?(:'senior_marital_status')
|
188
|
+
self.senior_marital_status = attributes[:'senior_marital_status']
|
189
|
+
end
|
190
|
+
|
155
191
|
if attributes.key?(:'tax_free_threshold_claimed')
|
156
192
|
self.tax_free_threshold_claimed = attributes[:'tax_free_threshold_claimed']
|
157
193
|
end
|
@@ -219,8 +255,12 @@ module XeroRuby::PayrollAu
|
|
219
255
|
employment_basis == o.employment_basis &&
|
220
256
|
tfn_exemption_type == o.tfn_exemption_type &&
|
221
257
|
tax_file_number == o.tax_file_number &&
|
258
|
+
abn == o.abn &&
|
222
259
|
australian_resident_for_tax_purposes == o.australian_resident_for_tax_purposes &&
|
223
260
|
residency_status == o.residency_status &&
|
261
|
+
tax_scale_type == o.tax_scale_type &&
|
262
|
+
work_condition == o.work_condition &&
|
263
|
+
senior_marital_status == o.senior_marital_status &&
|
224
264
|
tax_free_threshold_claimed == o.tax_free_threshold_claimed &&
|
225
265
|
tax_offset_estimated_amount == o.tax_offset_estimated_amount &&
|
226
266
|
has_help_debt == o.has_help_debt &&
|
@@ -243,7 +283,7 @@ module XeroRuby::PayrollAu
|
|
243
283
|
# Calculates hash code according to all attributes.
|
244
284
|
# @return [Integer] Hash code
|
245
285
|
def hash
|
246
|
-
[employee_id, employment_basis, tfn_exemption_type, tax_file_number, australian_resident_for_tax_purposes, residency_status, tax_free_threshold_claimed, tax_offset_estimated_amount, has_help_debt, has_sfss_debt, has_trade_support_loan_debt, upward_variation_tax_withholding_amount, eligible_to_receive_leave_loading, approved_withholding_variation_percentage, has_student_startup_loan, has_loan_or_student_debt, updated_date_utc].hash
|
286
|
+
[employee_id, employment_basis, tfn_exemption_type, tax_file_number, abn, australian_resident_for_tax_purposes, residency_status, tax_scale_type, work_condition, senior_marital_status, tax_free_threshold_claimed, tax_offset_estimated_amount, has_help_debt, has_sfss_debt, has_trade_support_loan_debt, upward_variation_tax_withholding_amount, eligible_to_receive_leave_loading, approved_withholding_variation_percentage, has_student_startup_loan, has_loan_or_student_debt, updated_date_utc].hash
|
247
287
|
end
|
248
288
|
|
249
289
|
# Builds the object from hash
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
#Xero Payroll AU API
|
3
|
+
|
4
|
+
#This is the Xero Payroll API for orgs in Australia region.
|
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::PayrollAu
|
16
|
+
class TaxScaleType
|
17
|
+
REGULAR ||= "REGULAR".freeze
|
18
|
+
ACTORSARTISTSENTERTAINERS ||= "ACTORSARTISTSENTERTAINERS".freeze
|
19
|
+
HORTICULTURISTORSHEARER ||= "HORTICULTURISTORSHEARER".freeze
|
20
|
+
SENIORORPENSIONER ||= "SENIORORPENSIONER".freeze
|
21
|
+
WORKINGHOLIDAYMAKER ||= "WORKINGHOLIDAYMAKER".freeze
|
22
|
+
FOREIGN ||= "FOREIGN".freeze
|
23
|
+
|
24
|
+
# Builds the enum from string
|
25
|
+
# @param [String] The enum value in the form of the string
|
26
|
+
# @return [String] The enum value
|
27
|
+
def self.build_from_hash(value)
|
28
|
+
new.build_from_hash(value)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [String] The enum value in the form of the string
|
33
|
+
# @return [String] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
constantValues = TaxScaleType.constants.select { |c| TaxScaleType::const_get(c) == value }
|
36
|
+
raise "Invalid ENUM value #{value} for class #TaxScaleType" if constantValues.empty?
|
37
|
+
value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
#Xero Payroll AU API
|
3
|
+
|
4
|
+
#This is the Xero Payroll API for orgs in Australia region.
|
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::PayrollAu
|
16
|
+
class WorkCondition
|
17
|
+
PROMOTIONAL ||= "PROMOTIONAL".freeze
|
18
|
+
THREELESSPERFORMANCESPERWEEK ||= "THREELESSPERFORMANCESPERWEEK".freeze
|
19
|
+
NONE ||= "NONE".freeze
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
constantValues = WorkCondition.constants.select { |c| WorkCondition::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #WorkCondition" if constantValues.empty?
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
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: 2.
|
10
|
+
The version of the XeroOpenAPI document: 2.33.1
|
11
11
|
=end
|
12
12
|
|
13
13
|
module XeroRuby
|
14
|
-
VERSION = '3.
|
14
|
+
VERSION = '3.16.0'
|
15
15
|
end
|
data/lib/xero-ruby/where.rb
CHANGED
data/lib/xero-ruby.rb
CHANGED
@@ -72,12 +72,16 @@ require 'xero-ruby/models/finance/trial_balance_movement'
|
|
72
72
|
require 'xero-ruby/models/finance/trial_balance_response'
|
73
73
|
require 'xero-ruby/models/finance/user_activities_response'
|
74
74
|
require 'xero-ruby/models/finance/user_response'
|
75
|
+
require 'xero-ruby/models/app_store/create_usage_record'
|
75
76
|
require 'xero-ruby/models/app_store/plan'
|
76
77
|
require 'xero-ruby/models/app_store/price'
|
77
78
|
require 'xero-ruby/models/app_store/problem_details'
|
78
79
|
require 'xero-ruby/models/app_store/product'
|
79
80
|
require 'xero-ruby/models/app_store/subscription'
|
80
81
|
require 'xero-ruby/models/app_store/subscription_item'
|
82
|
+
require 'xero-ruby/models/app_store/update_usage_record'
|
83
|
+
require 'xero-ruby/models/app_store/usage_record'
|
84
|
+
require 'xero-ruby/models/app_store/usage_records_list'
|
81
85
|
require 'xero-ruby/models/payroll_uk/account'
|
82
86
|
require 'xero-ruby/models/payroll_uk/accounts'
|
83
87
|
require 'xero-ruby/models/payroll_uk/address'
|
@@ -274,6 +278,7 @@ require 'xero-ruby/models/payroll_au/allowance_category'
|
|
274
278
|
require 'xero-ruby/models/payroll_au/allowance_type'
|
275
279
|
require 'xero-ruby/models/payroll_au/bank_account'
|
276
280
|
require 'xero-ruby/models/payroll_au/calendar_type'
|
281
|
+
require 'xero-ruby/models/payroll_au/country_of_residence'
|
277
282
|
require 'xero-ruby/models/payroll_au/deduction_line'
|
278
283
|
require 'xero-ruby/models/payroll_au/deduction_type'
|
279
284
|
require 'xero-ruby/models/payroll_au/deduction_type_calculation_type'
|
@@ -286,12 +291,15 @@ require 'xero-ruby/models/payroll_au/employee_status'
|
|
286
291
|
require 'xero-ruby/models/payroll_au/employees'
|
287
292
|
require 'xero-ruby/models/payroll_au/employment_basis'
|
288
293
|
require 'xero-ruby/models/payroll_au/employment_termination_payment_type'
|
294
|
+
require 'xero-ruby/models/payroll_au/employment_type'
|
289
295
|
require 'xero-ruby/models/payroll_au/entitlement_final_pay_payout_type'
|
290
296
|
require 'xero-ruby/models/payroll_au/home_address'
|
297
|
+
require 'xero-ruby/models/payroll_au/income_type'
|
291
298
|
require 'xero-ruby/models/payroll_au/leave_accrual_line'
|
292
299
|
require 'xero-ruby/models/payroll_au/leave_application'
|
293
300
|
require 'xero-ruby/models/payroll_au/leave_applications'
|
294
301
|
require 'xero-ruby/models/payroll_au/leave_balance'
|
302
|
+
require 'xero-ruby/models/payroll_au/leave_category_code'
|
295
303
|
require 'xero-ruby/models/payroll_au/leave_earnings_line'
|
296
304
|
require 'xero-ruby/models/payroll_au/leave_line'
|
297
305
|
require 'xero-ruby/models/payroll_au/leave_line_calculation_type'
|
@@ -321,6 +329,7 @@ require 'xero-ruby/models/payroll_au/reimbursement_line'
|
|
321
329
|
require 'xero-ruby/models/payroll_au/reimbursement_lines'
|
322
330
|
require 'xero-ruby/models/payroll_au/reimbursement_type'
|
323
331
|
require 'xero-ruby/models/payroll_au/residency_status'
|
332
|
+
require 'xero-ruby/models/payroll_au/senior_marital_status'
|
324
333
|
require 'xero-ruby/models/payroll_au/settings'
|
325
334
|
require 'xero-ruby/models/payroll_au/settings_object'
|
326
335
|
require 'xero-ruby/models/payroll_au/settings_tracking_categories'
|
@@ -340,12 +349,14 @@ require 'xero-ruby/models/payroll_au/superannuation_line'
|
|
340
349
|
require 'xero-ruby/models/payroll_au/tfn_exemption_type'
|
341
350
|
require 'xero-ruby/models/payroll_au/tax_declaration'
|
342
351
|
require 'xero-ruby/models/payroll_au/tax_line'
|
352
|
+
require 'xero-ruby/models/payroll_au/tax_scale_type'
|
343
353
|
require 'xero-ruby/models/payroll_au/timesheet'
|
344
354
|
require 'xero-ruby/models/payroll_au/timesheet_line'
|
345
355
|
require 'xero-ruby/models/payroll_au/timesheet_object'
|
346
356
|
require 'xero-ruby/models/payroll_au/timesheet_status'
|
347
357
|
require 'xero-ruby/models/payroll_au/timesheets'
|
348
358
|
require 'xero-ruby/models/payroll_au/validation_error'
|
359
|
+
require 'xero-ruby/models/payroll_au/work_condition'
|
349
360
|
require 'xero-ruby/models/files/association'
|
350
361
|
require 'xero-ruby/models/files/file_object'
|
351
362
|
require 'xero-ruby/models/files/files'
|
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: 3.
|
4
|
+
version: 3.16.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-
|
11
|
+
date: 2022-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -244,12 +244,16 @@ files:
|
|
244
244
|
- lib/xero-ruby/models/accounting/user.rb
|
245
245
|
- lib/xero-ruby/models/accounting/users.rb
|
246
246
|
- lib/xero-ruby/models/accounting/validation_error.rb
|
247
|
+
- lib/xero-ruby/models/app_store/create_usage_record.rb
|
247
248
|
- lib/xero-ruby/models/app_store/plan.rb
|
248
249
|
- lib/xero-ruby/models/app_store/price.rb
|
249
250
|
- lib/xero-ruby/models/app_store/problem_details.rb
|
250
251
|
- lib/xero-ruby/models/app_store/product.rb
|
251
252
|
- lib/xero-ruby/models/app_store/subscription.rb
|
252
253
|
- lib/xero-ruby/models/app_store/subscription_item.rb
|
254
|
+
- lib/xero-ruby/models/app_store/update_usage_record.rb
|
255
|
+
- lib/xero-ruby/models/app_store/usage_record.rb
|
256
|
+
- lib/xero-ruby/models/app_store/usage_records_list.rb
|
253
257
|
- lib/xero-ruby/models/assets/asset.rb
|
254
258
|
- lib/xero-ruby/models/assets/asset_status.rb
|
255
259
|
- lib/xero-ruby/models/assets/asset_status_query_param.rb
|
@@ -332,6 +336,7 @@ files:
|
|
332
336
|
- lib/xero-ruby/models/payroll_au/api_exception.rb
|
333
337
|
- lib/xero-ruby/models/payroll_au/bank_account.rb
|
334
338
|
- lib/xero-ruby/models/payroll_au/calendar_type.rb
|
339
|
+
- lib/xero-ruby/models/payroll_au/country_of_residence.rb
|
335
340
|
- lib/xero-ruby/models/payroll_au/deduction_line.rb
|
336
341
|
- lib/xero-ruby/models/payroll_au/deduction_type.rb
|
337
342
|
- lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb
|
@@ -344,12 +349,15 @@ files:
|
|
344
349
|
- lib/xero-ruby/models/payroll_au/employees.rb
|
345
350
|
- lib/xero-ruby/models/payroll_au/employment_basis.rb
|
346
351
|
- lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb
|
352
|
+
- lib/xero-ruby/models/payroll_au/employment_type.rb
|
347
353
|
- lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb
|
348
354
|
- lib/xero-ruby/models/payroll_au/home_address.rb
|
355
|
+
- lib/xero-ruby/models/payroll_au/income_type.rb
|
349
356
|
- lib/xero-ruby/models/payroll_au/leave_accrual_line.rb
|
350
357
|
- lib/xero-ruby/models/payroll_au/leave_application.rb
|
351
358
|
- lib/xero-ruby/models/payroll_au/leave_applications.rb
|
352
359
|
- lib/xero-ruby/models/payroll_au/leave_balance.rb
|
360
|
+
- lib/xero-ruby/models/payroll_au/leave_category_code.rb
|
353
361
|
- lib/xero-ruby/models/payroll_au/leave_earnings_line.rb
|
354
362
|
- lib/xero-ruby/models/payroll_au/leave_line.rb
|
355
363
|
- lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb
|
@@ -379,6 +387,7 @@ files:
|
|
379
387
|
- lib/xero-ruby/models/payroll_au/reimbursement_lines.rb
|
380
388
|
- lib/xero-ruby/models/payroll_au/reimbursement_type.rb
|
381
389
|
- lib/xero-ruby/models/payroll_au/residency_status.rb
|
390
|
+
- lib/xero-ruby/models/payroll_au/senior_marital_status.rb
|
382
391
|
- lib/xero-ruby/models/payroll_au/settings.rb
|
383
392
|
- lib/xero-ruby/models/payroll_au/settings_object.rb
|
384
393
|
- lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb
|
@@ -397,6 +406,7 @@ files:
|
|
397
406
|
- lib/xero-ruby/models/payroll_au/superannuation_line.rb
|
398
407
|
- lib/xero-ruby/models/payroll_au/tax_declaration.rb
|
399
408
|
- lib/xero-ruby/models/payroll_au/tax_line.rb
|
409
|
+
- lib/xero-ruby/models/payroll_au/tax_scale_type.rb
|
400
410
|
- lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb
|
401
411
|
- lib/xero-ruby/models/payroll_au/timesheet.rb
|
402
412
|
- lib/xero-ruby/models/payroll_au/timesheet_line.rb
|
@@ -404,6 +414,7 @@ files:
|
|
404
414
|
- lib/xero-ruby/models/payroll_au/timesheet_status.rb
|
405
415
|
- lib/xero-ruby/models/payroll_au/timesheets.rb
|
406
416
|
- lib/xero-ruby/models/payroll_au/validation_error.rb
|
417
|
+
- lib/xero-ruby/models/payroll_au/work_condition.rb
|
407
418
|
- lib/xero-ruby/models/payroll_nz/account.rb
|
408
419
|
- lib/xero-ruby/models/payroll_nz/accounts.rb
|
409
420
|
- lib/xero-ruby/models/payroll_nz/address.rb
|