xero-ruby 3.9.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/xero-ruby/api/accounting_api.rb +1136 -46
  4. data/lib/xero-ruby/api/app_store_api.rb +244 -0
  5. data/lib/xero-ruby/api/asset_api.rb +16 -6
  6. data/lib/xero-ruby/api/files_api.rb +156 -20
  7. data/lib/xero-ruby/api/payroll_au_api.rb +326 -30
  8. data/lib/xero-ruby/api/payroll_nz_api.rb +87 -0
  9. data/lib/xero-ruby/api/payroll_uk_api.rb +81 -0
  10. data/lib/xero-ruby/api/project_api.rb +286 -2
  11. data/lib/xero-ruby/api_client.rb +9 -3
  12. data/lib/xero-ruby/models/accounting/account.rb +1 -1
  13. data/lib/xero-ruby/models/accounting/account_type.rb +0 -4
  14. data/lib/xero-ruby/models/accounting/allocation.rb +21 -1
  15. data/lib/xero-ruby/models/accounting/batch_payment.rb +2 -2
  16. data/lib/xero-ruby/models/accounting/batch_payment_delete.rb +244 -0
  17. data/lib/xero-ruby/models/accounting/batch_payment_delete_by_url_param.rb +229 -0
  18. data/lib/xero-ruby/models/accounting/contact.rb +1 -11
  19. data/lib/xero-ruby/models/accounting/currency_code.rb +10 -8
  20. data/lib/xero-ruby/models/accounting/journal_line.rb +1 -1
  21. data/lib/xero-ruby/models/accounting/line_item.rb +2 -2
  22. data/lib/xero-ruby/models/accounting/organisation.rb +6 -2
  23. data/lib/xero-ruby/models/accounting/payment.rb +26 -4
  24. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +53 -5
  25. data/lib/xero-ruby/models/accounting/tax_rate.rb +23 -5
  26. data/lib/xero-ruby/models/accounting/tax_type.rb +60 -3
  27. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +75 -4
  28. data/lib/xero-ruby/models/accounting/time_zone.rb +123 -91
  29. data/lib/xero-ruby/models/app_store/create_usage_record.rb +243 -0
  30. data/lib/xero-ruby/models/app_store/update_usage_record.rb +228 -0
  31. data/lib/xero-ruby/models/app_store/usage_record.rb +332 -0
  32. data/lib/xero-ruby/models/app_store/usage_records_list.rb +230 -0
  33. data/lib/xero-ruby/models/files/association.rb +31 -1
  34. data/lib/xero-ruby/models/finance/problem_type.rb +1 -0
  35. data/lib/xero-ruby/models/finance/statement_line_response.rb +11 -1
  36. data/lib/xero-ruby/models/finance/statement_response.rb +24 -4
  37. data/lib/xero-ruby/models/payroll_au/allowance_type.rb +0 -1
  38. data/lib/xero-ruby/models/payroll_au/country_of_residence.rb +284 -0
  39. data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +21 -1
  40. data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -0
  41. data/lib/xero-ruby/models/payroll_au/employee.rb +42 -2
  42. data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -0
  43. data/lib/xero-ruby/models/payroll_au/employment_type.rb +36 -0
  44. data/lib/xero-ruby/models/payroll_au/income_type.rb +39 -0
  45. data/lib/xero-ruby/models/payroll_au/leave_application.rb +11 -1
  46. data/lib/xero-ruby/models/payroll_au/leave_category_code.rb +46 -0
  47. data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +14 -4
  48. data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +0 -1
  49. data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +2 -0
  50. data/lib/xero-ruby/models/payroll_au/leave_type.rb +24 -4
  51. data/lib/xero-ruby/models/payroll_au/opening_balances.rb +16 -4
  52. data/lib/xero-ruby/models/payroll_au/paid_leave_earnings_line.rb +272 -0
  53. data/lib/xero-ruby/models/payroll_au/pay_out_type.rb +36 -0
  54. data/lib/xero-ruby/models/payroll_au/senior_marital_status.rb +37 -0
  55. data/lib/xero-ruby/models/payroll_au/settings.rb +14 -4
  56. data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +51 -1
  57. data/lib/xero-ruby/models/payroll_au/tax_scale_type.rb +40 -0
  58. data/lib/xero-ruby/models/payroll_au/work_condition.rb +37 -0
  59. data/lib/xero-ruby/models/payroll_nz/employee.rb +14 -4
  60. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +3 -3
  61. data/lib/xero-ruby/models/projects/currency_code.rb +0 -1
  62. data/lib/xero-ruby/models/projects/task.rb +6 -6
  63. data/lib/xero-ruby/models/projects/task_create_or_update.rb +1 -1
  64. data/lib/xero-ruby/version.rb +2 -2
  65. data/lib/xero-ruby/where.rb +2 -0
  66. data/lib/xero-ruby.rb +15 -0
  67. metadata +30 -15
@@ -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
 
@@ -61,6 +73,9 @@ module XeroRuby::PayrollAu
61
73
  # If the employee is eligible for student startup loan rules
62
74
  attr_accessor :has_student_startup_loan
63
75
 
76
+ # If the employee has any of the following loans or debts: Higher Education Loan Program (HELP/HECS), VET Student Loan (VSL), Financial Supplement (FS), Student Start-up Loan (SSL), or Trade Support Loan (TSL)
77
+ attr_accessor :has_loan_or_student_debt
78
+
64
79
  # Last modified timestamp
65
80
  attr_accessor :updated_date_utc
66
81
 
@@ -71,8 +86,12 @@ module XeroRuby::PayrollAu
71
86
  :'employment_basis' => :'EmploymentBasis',
72
87
  :'tfn_exemption_type' => :'TFNExemptionType',
73
88
  :'tax_file_number' => :'TaxFileNumber',
89
+ :'abn' => :'ABN',
74
90
  :'australian_resident_for_tax_purposes' => :'AustralianResidentForTaxPurposes',
75
91
  :'residency_status' => :'ResidencyStatus',
92
+ :'tax_scale_type' => :'TaxScaleType',
93
+ :'work_condition' => :'WorkCondition',
94
+ :'senior_marital_status' => :'SeniorMaritalStatus',
76
95
  :'tax_free_threshold_claimed' => :'TaxFreeThresholdClaimed',
77
96
  :'tax_offset_estimated_amount' => :'TaxOffsetEstimatedAmount',
78
97
  :'has_help_debt' => :'HasHELPDebt',
@@ -82,6 +101,7 @@ module XeroRuby::PayrollAu
82
101
  :'eligible_to_receive_leave_loading' => :'EligibleToReceiveLeaveLoading',
83
102
  :'approved_withholding_variation_percentage' => :'ApprovedWithholdingVariationPercentage',
84
103
  :'has_student_startup_loan' => :'HasStudentStartupLoan',
104
+ :'has_loan_or_student_debt' => :'HasLoanOrStudentDebt',
85
105
  :'updated_date_utc' => :'UpdatedDateUTC'
86
106
  }
87
107
  end
@@ -93,8 +113,12 @@ module XeroRuby::PayrollAu
93
113
  :'employment_basis' => :'EmploymentBasis',
94
114
  :'tfn_exemption_type' => :'TFNExemptionType',
95
115
  :'tax_file_number' => :'String',
116
+ :'abn' => :'String',
96
117
  :'australian_resident_for_tax_purposes' => :'Boolean',
97
118
  :'residency_status' => :'ResidencyStatus',
119
+ :'tax_scale_type' => :'TaxScaleType',
120
+ :'work_condition' => :'WorkCondition',
121
+ :'senior_marital_status' => :'SeniorMaritalStatus',
98
122
  :'tax_free_threshold_claimed' => :'Boolean',
99
123
  :'tax_offset_estimated_amount' => :'Float',
100
124
  :'has_help_debt' => :'Boolean',
@@ -104,6 +128,7 @@ module XeroRuby::PayrollAu
104
128
  :'eligible_to_receive_leave_loading' => :'Boolean',
105
129
  :'approved_withholding_variation_percentage' => :'Float',
106
130
  :'has_student_startup_loan' => :'Boolean',
131
+ :'has_loan_or_student_debt' => :'Boolean',
107
132
  :'updated_date_utc' => :'DateTime'
108
133
  }
109
134
  end
@@ -139,6 +164,10 @@ module XeroRuby::PayrollAu
139
164
  self.tax_file_number = attributes[:'tax_file_number']
140
165
  end
141
166
 
167
+ if attributes.key?(:'abn')
168
+ self.abn = attributes[:'abn']
169
+ end
170
+
142
171
  if attributes.key?(:'australian_resident_for_tax_purposes')
143
172
  self.australian_resident_for_tax_purposes = attributes[:'australian_resident_for_tax_purposes']
144
173
  end
@@ -147,6 +176,18 @@ module XeroRuby::PayrollAu
147
176
  self.residency_status = attributes[:'residency_status']
148
177
  end
149
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
+
150
191
  if attributes.key?(:'tax_free_threshold_claimed')
151
192
  self.tax_free_threshold_claimed = attributes[:'tax_free_threshold_claimed']
152
193
  end
@@ -183,6 +224,10 @@ module XeroRuby::PayrollAu
183
224
  self.has_student_startup_loan = attributes[:'has_student_startup_loan']
184
225
  end
185
226
 
227
+ if attributes.key?(:'has_loan_or_student_debt')
228
+ self.has_loan_or_student_debt = attributes[:'has_loan_or_student_debt']
229
+ end
230
+
186
231
  if attributes.key?(:'updated_date_utc')
187
232
  self.updated_date_utc = attributes[:'updated_date_utc']
188
233
  end
@@ -210,8 +255,12 @@ module XeroRuby::PayrollAu
210
255
  employment_basis == o.employment_basis &&
211
256
  tfn_exemption_type == o.tfn_exemption_type &&
212
257
  tax_file_number == o.tax_file_number &&
258
+ abn == o.abn &&
213
259
  australian_resident_for_tax_purposes == o.australian_resident_for_tax_purposes &&
214
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 &&
215
264
  tax_free_threshold_claimed == o.tax_free_threshold_claimed &&
216
265
  tax_offset_estimated_amount == o.tax_offset_estimated_amount &&
217
266
  has_help_debt == o.has_help_debt &&
@@ -221,6 +270,7 @@ module XeroRuby::PayrollAu
221
270
  eligible_to_receive_leave_loading == o.eligible_to_receive_leave_loading &&
222
271
  approved_withholding_variation_percentage == o.approved_withholding_variation_percentage &&
223
272
  has_student_startup_loan == o.has_student_startup_loan &&
273
+ has_loan_or_student_debt == o.has_loan_or_student_debt &&
224
274
  updated_date_utc == o.updated_date_utc
225
275
  end
226
276
 
@@ -233,7 +283,7 @@ module XeroRuby::PayrollAu
233
283
  # Calculates hash code according to all attributes.
234
284
  # @return [Integer] Hash code
235
285
  def hash
236
- [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, 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
237
287
  end
238
288
 
239
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
@@ -60,6 +60,9 @@ module XeroRuby::PayrollNz
60
60
  # UTC timestamp when the employee was created in Xero
61
61
  attr_accessor :created_date_utc
62
62
 
63
+ # Employee's job title
64
+ attr_accessor :job_title
65
+
63
66
  class EnumAttributeValidator
64
67
  attr_reader :datatype
65
68
  attr_reader :allowable_values
@@ -98,7 +101,8 @@ module XeroRuby::PayrollNz
98
101
  :'end_date' => :'endDate',
99
102
  :'payroll_calendar_id' => :'payrollCalendarID',
100
103
  :'updated_date_utc' => :'updatedDateUTC',
101
- :'created_date_utc' => :'createdDateUTC'
104
+ :'created_date_utc' => :'createdDateUTC',
105
+ :'job_title' => :'jobTitle'
102
106
  }
103
107
  end
104
108
 
@@ -118,7 +122,8 @@ module XeroRuby::PayrollNz
118
122
  :'end_date' => :'Date',
119
123
  :'payroll_calendar_id' => :'String',
120
124
  :'updated_date_utc' => :'DateTime',
121
- :'created_date_utc' => :'DateTime'
125
+ :'created_date_utc' => :'DateTime',
126
+ :'job_title' => :'String'
122
127
  }
123
128
  end
124
129
 
@@ -192,6 +197,10 @@ module XeroRuby::PayrollNz
192
197
  if attributes.key?(:'created_date_utc')
193
198
  self.created_date_utc = attributes[:'created_date_utc']
194
199
  end
200
+
201
+ if attributes.key?(:'job_title')
202
+ self.job_title = attributes[:'job_title']
203
+ end
195
204
  end
196
205
 
197
206
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -237,7 +246,8 @@ module XeroRuby::PayrollNz
237
246
  end_date == o.end_date &&
238
247
  payroll_calendar_id == o.payroll_calendar_id &&
239
248
  updated_date_utc == o.updated_date_utc &&
240
- created_date_utc == o.created_date_utc
249
+ created_date_utc == o.created_date_utc &&
250
+ job_title == o.job_title
241
251
  end
242
252
 
243
253
  # @see the `==` method
@@ -249,7 +259,7 @@ module XeroRuby::PayrollNz
249
259
  # Calculates hash code according to all attributes.
250
260
  # @return [Integer] Hash code
251
261
  def hash
252
- [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].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
253
263
  end
254
264
 
255
265
  # Builds the object from hash
@@ -25,7 +25,7 @@ module XeroRuby::PayrollUk
25
25
  # Indicates how an employee will be paid when taking this type of earning
26
26
  attr_accessor :earnings_type
27
27
  ALLOWANCE ||= "Allowance".freeze
28
- BACKPAY ||= "Backpay".freeze
28
+ BACK_PAY ||= "BackPay".freeze
29
29
  BONUS ||= "Bonus".freeze
30
30
  COMMISSION ||= "Commission".freeze
31
31
  LUMP_SUM ||= "LumpSum".freeze
@@ -214,7 +214,7 @@ module XeroRuby::PayrollUk
214
214
  def valid?
215
215
  return false if @name.nil?
216
216
  return false if @earnings_type.nil?
217
- earnings_type_validator = EnumAttributeValidator.new('String', ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
217
+ earnings_type_validator = EnumAttributeValidator.new('String', ["Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
218
218
  return false unless earnings_type_validator.valid?(@earnings_type)
219
219
  return false if @rate_type.nil?
220
220
  rate_type_validator = EnumAttributeValidator.new('String', ["RatePerUnit", "MultipleOfOrdinaryEarningsRate", "FixedAmount"])
@@ -227,7 +227,7 @@ module XeroRuby::PayrollUk
227
227
  # Custom attribute writer method checking allowed values (enum).
228
228
  # @param [Object] earnings_type Object to be assigned
229
229
  def earnings_type=(earnings_type)
230
- validator = EnumAttributeValidator.new('String', ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
230
+ validator = EnumAttributeValidator.new('String', ["Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
231
231
  unless validator.valid?(earnings_type)
232
232
  fail ArgumentError, "invalid value for \"earnings_type\", must be one of #{validator.allowable_values}."
233
233
  end
@@ -177,7 +177,6 @@ module XeroRuby::Projects
177
177
  ZMW ||= "ZMW".freeze
178
178
  ZMK ||= "ZMK".freeze
179
179
  ZWD ||= "ZWD".freeze
180
- EMPTY ||= "".freeze
181
180
 
182
181
  # Builds the enum from string
183
182
  # @param [String] The enum value in the form of the string
@@ -114,14 +114,14 @@ module XeroRuby::Projects
114
114
  :'name' => :'String',
115
115
  :'rate' => :'Amount',
116
116
  :'charge_type' => :'ChargeType',
117
- :'estimate_minutes' => :'Float',
117
+ :'estimate_minutes' => :'Integer',
118
118
  :'project_id' => :'String',
119
- :'total_minutes' => :'Float',
119
+ :'total_minutes' => :'Integer',
120
120
  :'total_amount' => :'Amount',
121
- :'minutes_invoiced' => :'Float',
122
- :'minutes_to_be_invoiced' => :'Float',
123
- :'fixed_minutes' => :'Float',
124
- :'non_chargeable_minutes' => :'Float',
121
+ :'minutes_invoiced' => :'Integer',
122
+ :'minutes_to_be_invoiced' => :'Integer',
123
+ :'fixed_minutes' => :'Integer',
124
+ :'non_chargeable_minutes' => :'Integer',
125
125
  :'amount_to_be_invoiced' => :'Amount',
126
126
  :'amount_invoiced' => :'Amount',
127
127
  :'status' => :'String'
@@ -25,7 +25,7 @@ module XeroRuby::Projects
25
25
 
26
26
  attr_accessor :charge_type
27
27
 
28
- # Estimated time to perform the task. EstimateMinutes has to be greater than 0 if provided.
28
+ # An estimated time to perform the task
29
29
  attr_accessor :estimate_minutes
30
30
 
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -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.22.4
10
+ The version of the XeroOpenAPI document: 4.0.0
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '3.9.0'
14
+ VERSION = '7.0.0'
15
15
  end
@@ -44,6 +44,8 @@ module XeroRuby
44
44
  'Contact.ContactID'
45
45
  when :contact_number
46
46
  'Contact.ContactNumber'
47
+ when :invoice_id
48
+ 'Invoice.InvoiceId'
47
49
  else
48
50
  camelize_key(key)
49
51
  end
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'
@@ -302,8 +310,10 @@ require 'xero-ruby/models/payroll_au/leave_type'
302
310
  require 'xero-ruby/models/payroll_au/leave_type_contribution_type'
303
311
  require 'xero-ruby/models/payroll_au/manual_tax_type'
304
312
  require 'xero-ruby/models/payroll_au/opening_balances'
313
+ require 'xero-ruby/models/payroll_au/paid_leave_earnings_line'
305
314
  require 'xero-ruby/models/payroll_au/pay_item'
306
315
  require 'xero-ruby/models/payroll_au/pay_items'
316
+ require 'xero-ruby/models/payroll_au/pay_out_type'
307
317
  require 'xero-ruby/models/payroll_au/pay_run'
308
318
  require 'xero-ruby/models/payroll_au/pay_run_status'
309
319
  require 'xero-ruby/models/payroll_au/pay_runs'
@@ -321,6 +331,7 @@ require 'xero-ruby/models/payroll_au/reimbursement_line'
321
331
  require 'xero-ruby/models/payroll_au/reimbursement_lines'
322
332
  require 'xero-ruby/models/payroll_au/reimbursement_type'
323
333
  require 'xero-ruby/models/payroll_au/residency_status'
334
+ require 'xero-ruby/models/payroll_au/senior_marital_status'
324
335
  require 'xero-ruby/models/payroll_au/settings'
325
336
  require 'xero-ruby/models/payroll_au/settings_object'
326
337
  require 'xero-ruby/models/payroll_au/settings_tracking_categories'
@@ -340,12 +351,14 @@ require 'xero-ruby/models/payroll_au/superannuation_line'
340
351
  require 'xero-ruby/models/payroll_au/tfn_exemption_type'
341
352
  require 'xero-ruby/models/payroll_au/tax_declaration'
342
353
  require 'xero-ruby/models/payroll_au/tax_line'
354
+ require 'xero-ruby/models/payroll_au/tax_scale_type'
343
355
  require 'xero-ruby/models/payroll_au/timesheet'
344
356
  require 'xero-ruby/models/payroll_au/timesheet_line'
345
357
  require 'xero-ruby/models/payroll_au/timesheet_object'
346
358
  require 'xero-ruby/models/payroll_au/timesheet_status'
347
359
  require 'xero-ruby/models/payroll_au/timesheets'
348
360
  require 'xero-ruby/models/payroll_au/validation_error'
361
+ require 'xero-ruby/models/payroll_au/work_condition'
349
362
  require 'xero-ruby/models/files/association'
350
363
  require 'xero-ruby/models/files/file_object'
351
364
  require 'xero-ruby/models/files/files'
@@ -405,6 +418,8 @@ require 'xero-ruby/models/accounting/bank_transactions'
405
418
  require 'xero-ruby/models/accounting/bank_transfer'
406
419
  require 'xero-ruby/models/accounting/bank_transfers'
407
420
  require 'xero-ruby/models/accounting/batch_payment'
421
+ require 'xero-ruby/models/accounting/batch_payment_delete'
422
+ require 'xero-ruby/models/accounting/batch_payment_delete_by_url_param'
408
423
  require 'xero-ruby/models/accounting/batch_payment_details'
409
424
  require 'xero-ruby/models/accounting/batch_payments'
410
425
  require 'xero-ruby/models/accounting/bill'
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xero-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.0
4
+ version: 7.0.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-05-10 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 1.0.1
19
+ version: '2.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.0'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
- version: 1.0.1
29
+ version: '2.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -56,20 +56,20 @@ dependencies:
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '1.5'
59
+ version: '1.16'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 1.5.2
62
+ version: 1.16.3
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '1.5'
69
+ version: '1.16'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 1.5.2
72
+ version: 1.16.3
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: rspec
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -131,6 +131,8 @@ files:
131
131
  - lib/xero-ruby/models/accounting/bank_transfer.rb
132
132
  - lib/xero-ruby/models/accounting/bank_transfers.rb
133
133
  - lib/xero-ruby/models/accounting/batch_payment.rb
134
+ - lib/xero-ruby/models/accounting/batch_payment_delete.rb
135
+ - lib/xero-ruby/models/accounting/batch_payment_delete_by_url_param.rb
134
136
  - lib/xero-ruby/models/accounting/batch_payment_details.rb
135
137
  - lib/xero-ruby/models/accounting/batch_payments.rb
136
138
  - lib/xero-ruby/models/accounting/bill.rb
@@ -242,12 +244,16 @@ files:
242
244
  - lib/xero-ruby/models/accounting/user.rb
243
245
  - lib/xero-ruby/models/accounting/users.rb
244
246
  - lib/xero-ruby/models/accounting/validation_error.rb
247
+ - lib/xero-ruby/models/app_store/create_usage_record.rb
245
248
  - lib/xero-ruby/models/app_store/plan.rb
246
249
  - lib/xero-ruby/models/app_store/price.rb
247
250
  - lib/xero-ruby/models/app_store/problem_details.rb
248
251
  - lib/xero-ruby/models/app_store/product.rb
249
252
  - lib/xero-ruby/models/app_store/subscription.rb
250
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
251
257
  - lib/xero-ruby/models/assets/asset.rb
252
258
  - lib/xero-ruby/models/assets/asset_status.rb
253
259
  - lib/xero-ruby/models/assets/asset_status_query_param.rb
@@ -330,6 +336,7 @@ files:
330
336
  - lib/xero-ruby/models/payroll_au/api_exception.rb
331
337
  - lib/xero-ruby/models/payroll_au/bank_account.rb
332
338
  - lib/xero-ruby/models/payroll_au/calendar_type.rb
339
+ - lib/xero-ruby/models/payroll_au/country_of_residence.rb
333
340
  - lib/xero-ruby/models/payroll_au/deduction_line.rb
334
341
  - lib/xero-ruby/models/payroll_au/deduction_type.rb
335
342
  - lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb
@@ -342,12 +349,15 @@ files:
342
349
  - lib/xero-ruby/models/payroll_au/employees.rb
343
350
  - lib/xero-ruby/models/payroll_au/employment_basis.rb
344
351
  - lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb
352
+ - lib/xero-ruby/models/payroll_au/employment_type.rb
345
353
  - lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb
346
354
  - lib/xero-ruby/models/payroll_au/home_address.rb
355
+ - lib/xero-ruby/models/payroll_au/income_type.rb
347
356
  - lib/xero-ruby/models/payroll_au/leave_accrual_line.rb
348
357
  - lib/xero-ruby/models/payroll_au/leave_application.rb
349
358
  - lib/xero-ruby/models/payroll_au/leave_applications.rb
350
359
  - lib/xero-ruby/models/payroll_au/leave_balance.rb
360
+ - lib/xero-ruby/models/payroll_au/leave_category_code.rb
351
361
  - lib/xero-ruby/models/payroll_au/leave_earnings_line.rb
352
362
  - lib/xero-ruby/models/payroll_au/leave_line.rb
353
363
  - lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb
@@ -358,8 +368,10 @@ files:
358
368
  - lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb
359
369
  - lib/xero-ruby/models/payroll_au/manual_tax_type.rb
360
370
  - lib/xero-ruby/models/payroll_au/opening_balances.rb
371
+ - lib/xero-ruby/models/payroll_au/paid_leave_earnings_line.rb
361
372
  - lib/xero-ruby/models/payroll_au/pay_item.rb
362
373
  - lib/xero-ruby/models/payroll_au/pay_items.rb
374
+ - lib/xero-ruby/models/payroll_au/pay_out_type.rb
363
375
  - lib/xero-ruby/models/payroll_au/pay_run.rb
364
376
  - lib/xero-ruby/models/payroll_au/pay_run_status.rb
365
377
  - lib/xero-ruby/models/payroll_au/pay_runs.rb
@@ -377,6 +389,7 @@ files:
377
389
  - lib/xero-ruby/models/payroll_au/reimbursement_lines.rb
378
390
  - lib/xero-ruby/models/payroll_au/reimbursement_type.rb
379
391
  - lib/xero-ruby/models/payroll_au/residency_status.rb
392
+ - lib/xero-ruby/models/payroll_au/senior_marital_status.rb
380
393
  - lib/xero-ruby/models/payroll_au/settings.rb
381
394
  - lib/xero-ruby/models/payroll_au/settings_object.rb
382
395
  - lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb
@@ -395,6 +408,7 @@ files:
395
408
  - lib/xero-ruby/models/payroll_au/superannuation_line.rb
396
409
  - lib/xero-ruby/models/payroll_au/tax_declaration.rb
397
410
  - lib/xero-ruby/models/payroll_au/tax_line.rb
411
+ - lib/xero-ruby/models/payroll_au/tax_scale_type.rb
398
412
  - lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb
399
413
  - lib/xero-ruby/models/payroll_au/timesheet.rb
400
414
  - lib/xero-ruby/models/payroll_au/timesheet_line.rb
@@ -402,6 +416,7 @@ files:
402
416
  - lib/xero-ruby/models/payroll_au/timesheet_status.rb
403
417
  - lib/xero-ruby/models/payroll_au/timesheets.rb
404
418
  - lib/xero-ruby/models/payroll_au/validation_error.rb
419
+ - lib/xero-ruby/models/payroll_au/work_condition.rb
405
420
  - lib/xero-ruby/models/payroll_nz/account.rb
406
421
  - lib/xero-ruby/models/payroll_nz/accounts.rb
407
422
  - lib/xero-ruby/models/payroll_nz/address.rb
@@ -1107,7 +1122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1107
1122
  - !ruby/object:Gem::Version
1108
1123
  version: '0'
1109
1124
  requirements: []
1110
- rubygems_version: 3.2.3
1125
+ rubygems_version: 3.1.6
1111
1126
  signing_key:
1112
1127
  specification_version: 4
1113
1128
  summary: Xero Accounting API Ruby Gem