xero-ruby 3.11.0 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c835eed40b43d98cc3e443b861d03ec03f67c659611c36beb8ae66f3115454fb
4
- data.tar.gz: b06d56f98ee5cbc136c3971d3db74e5c1c6347a83fb89825479d62befbb190c2
3
+ metadata.gz: eca22a65d6cd11bc3848d37259562279cb05874c8eb659acea215a5e72f3fb88
4
+ data.tar.gz: 13e577c274b99dd0ef74b33e648e821f8b5d9bdfe6c7550ffe4585ba282de3fa
5
5
  SHA512:
6
- metadata.gz: 19758f8f9a2afff93de80d10afda49fca73c5c1af5914f66aa561878b4504c9bb5805db7cfc45331eaa2441e1b054bc957bd448cf033638c9ae258295a6564ea
7
- data.tar.gz: a4dc1ff1dfe44f34035e3a506acdd22b20e9d22dc919b0379b7e07a10449c3c44c80f3b8f91d56a3a5827e45032125b368c144874999f59d2cc630edf9f2daa4
6
+ metadata.gz: 19a28bc6110af2ea9a80a5099b932bcd08109832d05e4938636c63c5bb6d45e5d63a7e8d4ec54a335b4283d43a887c87a5d9cf4acc63807c5558abee14a5bf87
7
+ data.tar.gz: 92d5d4b03239e8ca5739057d353ee7fb5f9b46d1f81d5a28ffb0824ebd34909c604ffb71fdb6387739ecd5af1b44fc54304a87a3d171c864cab1f3f0fcf1451a
@@ -167,6 +167,7 @@ module XeroRuby::Accounting
167
167
  GST_CASHBOOK ||= "GST_CASHBOOK".freeze
168
168
  NON_GST_CASHBOOK ||= "NON_GST_CASHBOOK".freeze
169
169
  ULTIMATE ||= "ULTIMATE".freeze
170
+ LITE ||= "LITE".freeze
170
171
 
171
172
  # BUSINESS or PARTNER. Partner edition organisations are sold exclusively through accounting partners and have restricted functionality (e.g. no access to invoicing)
172
173
  attr_accessor :edition
@@ -462,7 +463,7 @@ module XeroRuby::Accounting
462
463
  return false unless sales_tax_period_validator.valid?(@sales_tax_period)
463
464
  organisation_entity_type_validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "INDIVIDUAL", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
464
465
  return false unless organisation_entity_type_validator.valid?(@organisation_entity_type)
465
- _class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE"])
466
+ _class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE"])
466
467
  return false unless _class_validator.valid?(@_class)
467
468
  edition_validator = EnumAttributeValidator.new('String', ["BUSINESS", "PARTNER"])
468
469
  return false unless edition_validator.valid?(@edition)
@@ -522,7 +523,7 @@ module XeroRuby::Accounting
522
523
  # Custom attribute writer method checking allowed values (enum).
523
524
  # @param [Object] _class Object to be assigned
524
525
  def _class=(_class)
525
- validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE"])
526
+ validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE"])
526
527
  unless validator.valid?(_class)
527
528
  fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
528
529
  end
@@ -40,7 +40,7 @@ module XeroRuby::PayrollAu
40
40
  # The email address for the employee
41
41
  attr_accessor :email
42
42
 
43
- # The employee’s gender. See Employee Gender
43
+ # The employee’s gender. See Employee Gender
44
44
  attr_accessor :gender
45
45
  N ||= "N".freeze
46
46
  M ||= "M".freeze
@@ -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
+ PERSONALCARERSLEAVE ||= "PERSONALCARERSLEAVE".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
@@ -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.25.0
10
+ The version of the XeroOpenAPI document: 2.27.0
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '3.11.0'
14
+ VERSION = '3.12.0'
15
15
  end
data/lib/xero-ruby.rb CHANGED
@@ -292,6 +292,7 @@ require 'xero-ruby/models/payroll_au/leave_accrual_line'
292
292
  require 'xero-ruby/models/payroll_au/leave_application'
293
293
  require 'xero-ruby/models/payroll_au/leave_applications'
294
294
  require 'xero-ruby/models/payroll_au/leave_balance'
295
+ require 'xero-ruby/models/payroll_au/leave_category_code'
295
296
  require 'xero-ruby/models/payroll_au/leave_earnings_line'
296
297
  require 'xero-ruby/models/payroll_au/leave_line'
297
298
  require 'xero-ruby/models/payroll_au/leave_line_calculation_type'
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.11.0
4
+ version: 3.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xero API Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -350,6 +350,7 @@ files:
350
350
  - lib/xero-ruby/models/payroll_au/leave_application.rb
351
351
  - lib/xero-ruby/models/payroll_au/leave_applications.rb
352
352
  - lib/xero-ruby/models/payroll_au/leave_balance.rb
353
+ - lib/xero-ruby/models/payroll_au/leave_category_code.rb
353
354
  - lib/xero-ruby/models/payroll_au/leave_earnings_line.rb
354
355
  - lib/xero-ruby/models/payroll_au/leave_line.rb
355
356
  - lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb
@@ -1094,7 +1095,7 @@ homepage: https://developer.xero.com
1094
1095
  licenses:
1095
1096
  - Unlicense
1096
1097
  metadata: {}
1097
- post_install_message:
1098
+ post_install_message:
1098
1099
  rdoc_options: []
1099
1100
  require_paths:
1100
1101
  - lib
@@ -1109,8 +1110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1109
1110
  - !ruby/object:Gem::Version
1110
1111
  version: '0'
1111
1112
  requirements: []
1112
- rubygems_version: 3.2.3
1113
- signing_key:
1113
+ rubygems_version: 3.1.6
1114
+ signing_key:
1114
1115
  specification_version: 4
1115
1116
  summary: Xero Accounting API Ruby Gem
1116
1117
  test_files: