xero-ruby 3.5.0 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xero-ruby/api_client.rb +1 -1
  3. data/lib/xero-ruby/models/accounting/account.rb +34 -34
  4. data/lib/xero-ruby/models/accounting/account_type.rb +22 -22
  5. data/lib/xero-ruby/models/accounting/action.rb +2 -2
  6. data/lib/xero-ruby/models/accounting/address.rb +2 -2
  7. data/lib/xero-ruby/models/accounting/address_for_organisation.rb +3 -3
  8. data/lib/xero-ruby/models/accounting/bank_transaction.rb +11 -11
  9. data/lib/xero-ruby/models/accounting/batch_payment.rb +4 -4
  10. data/lib/xero-ruby/models/accounting/branding_theme.rb +1 -1
  11. data/lib/xero-ruby/models/accounting/budget.rb +2 -2
  12. data/lib/xero-ruby/models/accounting/contact.rb +9 -9
  13. data/lib/xero-ruby/models/accounting/contact_group.rb +2 -2
  14. data/lib/xero-ruby/models/accounting/country_code.rb +240 -240
  15. data/lib/xero-ruby/models/accounting/credit_note.rb +8 -8
  16. data/lib/xero-ruby/models/accounting/currency_code.rb +166 -166
  17. data/lib/xero-ruby/models/accounting/employee.rb +4 -4
  18. data/lib/xero-ruby/models/accounting/expense_claim.rb +5 -5
  19. data/lib/xero-ruby/models/accounting/external_link.rb +5 -5
  20. data/lib/xero-ruby/models/accounting/invoice.rb +14 -14
  21. data/lib/xero-ruby/models/accounting/journal.rb +25 -25
  22. data/lib/xero-ruby/models/accounting/line_amount_types.rb +3 -3
  23. data/lib/xero-ruby/models/accounting/linked_transaction.rb +8 -8
  24. data/lib/xero-ruby/models/accounting/manual_journal.rb +5 -5
  25. data/lib/xero-ruby/models/accounting/organisation.rb +70 -70
  26. data/lib/xero-ruby/models/accounting/overpayment.rb +6 -6
  27. data/lib/xero-ruby/models/accounting/payment.rb +10 -10
  28. data/lib/xero-ruby/models/accounting/payment_term_type.rb +4 -4
  29. data/lib/xero-ruby/models/accounting/phone.rb +5 -5
  30. data/lib/xero-ruby/models/accounting/prepayment.rb +7 -7
  31. data/lib/xero-ruby/models/accounting/purchase_order.rb +5 -5
  32. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +3 -3
  33. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +6 -6
  34. data/lib/xero-ruby/models/accounting/receipt.rb +5 -5
  35. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +5 -5
  36. data/lib/xero-ruby/models/accounting/report.rb +1 -1
  37. data/lib/xero-ruby/models/accounting/row_type.rb +4 -4
  38. data/lib/xero-ruby/models/accounting/schedule.rb +8 -8
  39. data/lib/xero-ruby/models/accounting/tax_rate.rb +78 -78
  40. data/lib/xero-ruby/models/accounting/tax_type.rb +59 -59
  41. data/lib/xero-ruby/models/accounting/time_zone.rb +109 -109
  42. data/lib/xero-ruby/models/accounting/tracking_category.rb +3 -3
  43. data/lib/xero-ruby/models/accounting/tracking_option.rb +3 -3
  44. data/lib/xero-ruby/models/accounting/user.rb +7 -7
  45. data/lib/xero-ruby/models/app_store/plan.rb +6 -5
  46. data/lib/xero-ruby/models/app_store/product.rb +2 -2
  47. data/lib/xero-ruby/models/app_store/subscription.rb +37 -0
  48. data/lib/xero-ruby/models/app_store/subscription_item.rb +53 -1
  49. data/lib/xero-ruby/models/assets/asset_status.rb +3 -3
  50. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +3 -3
  51. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +11 -11
  52. data/lib/xero-ruby/models/files/object_group.rb +12 -11
  53. data/lib/xero-ruby/models/files/object_type.rb +56 -55
  54. data/lib/xero-ruby/models/finance/problem_type.rb +5 -5
  55. data/lib/xero-ruby/models/payroll_au/account_type.rb +23 -23
  56. data/lib/xero-ruby/models/payroll_au/allowance_category.rb +41 -0
  57. data/lib/xero-ruby/models/payroll_au/allowance_type.rb +10 -7
  58. data/lib/xero-ruby/models/payroll_au/calendar_type.rb +6 -6
  59. data/lib/xero-ruby/models/payroll_au/deduction_type.rb +3 -3
  60. data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +3 -3
  61. data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +14 -4
  62. data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +3 -3
  63. data/lib/xero-ruby/models/payroll_au/earnings_type.rb +12 -12
  64. data/lib/xero-ruby/models/payroll_au/employee.rb +11 -11
  65. data/lib/xero-ruby/models/payroll_au/employee_status.rb +2 -2
  66. data/lib/xero-ruby/models/payroll_au/employment_basis.rb +5 -5
  67. data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +2 -2
  68. data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +2 -2
  69. data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +5 -5
  70. data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +2 -2
  71. data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +4 -4
  72. data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +6 -6
  73. data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +2 -2
  74. data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +7 -7
  75. data/lib/xero-ruby/models/payroll_au/rate_type.rb +3 -3
  76. data/lib/xero-ruby/models/payroll_au/residency_status.rb +3 -3
  77. data/lib/xero-ruby/models/payroll_au/state.rb +8 -8
  78. data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +2 -2
  79. data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +3 -3
  80. data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +4 -4
  81. data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +4 -4
  82. data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +5 -5
  83. data/lib/xero-ruby/models/payroll_nz/account.rb +4 -4
  84. data/lib/xero-ruby/models/payroll_nz/bank_account.rb +2 -2
  85. data/lib/xero-ruby/models/payroll_nz/benefit.rb +5 -5
  86. data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +7 -7
  87. data/lib/xero-ruby/models/payroll_nz/deduction.rb +4 -4
  88. data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +18 -18
  89. data/lib/xero-ruby/models/payroll_nz/employee.rb +2 -2
  90. data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +4 -4
  91. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +6 -6
  92. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +8 -8
  93. data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +5 -5
  94. data/lib/xero-ruby/models/payroll_nz/leave_period.rb +2 -2
  95. data/lib/xero-ruby/models/payroll_nz/pay_run.rb +5 -5
  96. data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +3 -3
  97. data/lib/xero-ruby/models/payroll_nz/payment_method.rb +3 -3
  98. data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +8 -8
  99. data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +5 -5
  100. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +11 -11
  101. data/lib/xero-ruby/models/payroll_nz/tax_code.rb +19 -19
  102. data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +2 -2
  103. data/lib/xero-ruby/models/payroll_nz/timesheet.rb +4 -4
  104. data/lib/xero-ruby/models/payroll_uk/account.rb +7 -7
  105. data/lib/xero-ruby/models/payroll_uk/benefit.rb +4 -4
  106. data/lib/xero-ruby/models/payroll_uk/deduction.rb +12 -12
  107. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +26 -26
  108. data/lib/xero-ruby/models/payroll_uk/employee.rb +2 -2
  109. data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +4 -4
  110. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +6 -6
  111. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +8 -8
  112. data/lib/xero-ruby/models/payroll_uk/employment.rb +8 -8
  113. data/lib/xero-ruby/models/payroll_uk/leave_period.rb +2 -2
  114. data/lib/xero-ruby/models/payroll_uk/pay_run.rb +11 -11
  115. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +6 -6
  116. data/lib/xero-ruby/models/payroll_uk/payment_method.rb +3 -3
  117. data/lib/xero-ruby/models/payroll_uk/payslip.rb +3 -3
  118. data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +5 -5
  119. data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +14 -14
  120. data/lib/xero-ruby/models/payroll_uk/timesheet.rb +3 -3
  121. data/lib/xero-ruby/models/projects/charge_type.rb +3 -3
  122. data/lib/xero-ruby/models/projects/currency_code.rb +164 -164
  123. data/lib/xero-ruby/models/projects/project_status.rb +2 -2
  124. data/lib/xero-ruby/models/projects/task.rb +3 -3
  125. data/lib/xero-ruby/models/projects/time_entry.rb +3 -3
  126. data/lib/xero-ruby/version.rb +6 -6
  127. data/lib/xero-ruby.rb +1 -0
  128. metadata +3 -2
@@ -14,9 +14,9 @@ require 'date'
14
14
 
15
15
  module XeroRuby::Assets
16
16
  class AssetStatusQueryParam
17
- DRAFT = "DRAFT".freeze
18
- REGISTERED = "REGISTERED".freeze
19
- DISPOSED = "DISPOSED".freeze
17
+ DRAFT ||= "DRAFT".freeze
18
+ REGISTERED ||= "REGISTERED".freeze
19
+ DISPOSED ||= "DISPOSED".freeze
20
20
 
21
21
  # Builds the enum from string
22
22
  # @param [String] The enum value in the form of the string
@@ -18,17 +18,17 @@ module XeroRuby::Assets
18
18
  class BookDepreciationSetting
19
19
  # The method of depreciation applied to this asset. See Depreciation Methods
20
20
  attr_accessor :depreciation_method
21
- NO_DEPRECIATION = "NoDepreciation".freeze
22
- STRAIGHT_LINE = "StraightLine".freeze
23
- DIMINISHING_VALUE100 = "DiminishingValue100".freeze
24
- DIMINISHING_VALUE150 = "DiminishingValue150".freeze
25
- DIMINISHING_VALUE200 = "DiminishingValue200".freeze
26
- FULL_DEPRECIATION = "FullDepreciation".freeze
21
+ NO_DEPRECIATION ||= "NoDepreciation".freeze
22
+ STRAIGHT_LINE ||= "StraightLine".freeze
23
+ DIMINISHING_VALUE100 ||= "DiminishingValue100".freeze
24
+ DIMINISHING_VALUE150 ||= "DiminishingValue150".freeze
25
+ DIMINISHING_VALUE200 ||= "DiminishingValue200".freeze
26
+ FULL_DEPRECIATION ||= "FullDepreciation".freeze
27
27
 
28
28
  # The method of averaging applied to this asset. See Averaging Methods
29
29
  attr_accessor :averaging_method
30
- FULL_MONTH = "FullMonth".freeze
31
- ACTUAL_DAYS = "ActualDays".freeze
30
+ FULL_MONTH ||= "FullMonth".freeze
31
+ ACTUAL_DAYS ||= "ActualDays".freeze
32
32
 
33
33
  # The rate of depreciation (e.g. 0.05)
34
34
  attr_accessor :depreciation_rate
@@ -38,9 +38,9 @@ module XeroRuby::Assets
38
38
 
39
39
  # See Depreciation Calculation Methods
40
40
  attr_accessor :depreciation_calculation_method
41
- RATE = "Rate".freeze
42
- LIFE = "Life".freeze
43
- NONE = "None".freeze
41
+ RATE ||= "Rate".freeze
42
+ LIFE ||= "Life".freeze
43
+ NONE ||= "None".freeze
44
44
 
45
45
  # Unique Xero identifier for the depreciable object
46
46
  attr_accessor :depreciable_object_id
@@ -14,17 +14,18 @@ require 'date'
14
14
 
15
15
  module XeroRuby::Files
16
16
  class ObjectGroup
17
- ACCOUNT = "Account".freeze
18
- BANK_TRANSACTION = "BankTransaction".freeze
19
- CONTACT = "Contact".freeze
20
- CREDIT_NOTE = "CreditNote".freeze
21
- INVOICE = "Invoice".freeze
22
- ITEM = "Item".freeze
23
- MANUAL_JOURNAL = "ManualJournal".freeze
24
- OVERPAYMENT = "Overpayment".freeze
25
- PAYMENT = "Payment".freeze
26
- PREPAYMENT = "Prepayment".freeze
27
- RECEIPT = "Receipt".freeze
17
+ ACCOUNT ||= "Account".freeze
18
+ BANK_TRANSACTION ||= "BankTransaction".freeze
19
+ CONTACT ||= "Contact".freeze
20
+ CREDIT_NOTE ||= "CreditNote".freeze
21
+ INVOICE ||= "Invoice".freeze
22
+ ITEM ||= "Item".freeze
23
+ MANUAL_JOURNAL ||= "ManualJournal".freeze
24
+ OVERPAYMENT ||= "Overpayment".freeze
25
+ PAYMENT ||= "Payment".freeze
26
+ PREPAYMENT ||= "Prepayment".freeze
27
+ QUOTE ||= "Quote".freeze
28
+ RECEIPT ||= "Receipt".freeze
28
29
 
29
30
  # Builds the enum from string
30
31
  # @param [String] The enum value in the form of the string
@@ -14,61 +14,62 @@ require 'date'
14
14
 
15
15
  module XeroRuby::Files
16
16
  class ObjectType
17
- UNKNOWN = "Unknown".freeze
18
- ACCPAY = "Accpay".freeze
19
- ACC_PAY_CREDIT = "AccPayCredit".freeze
20
- ACC_PAY_PAYMENT = "AccPayPayment".freeze
21
- ACC_REC = "AccRec".freeze
22
- ACC_REC_CREDIT = "AccRecCredit".freeze
23
- ACC_REC_PAYMENT = "AccRecPayment".freeze
24
- ADJUSTMENT = "Adjustment".freeze
25
- AP_CREDIT_PAYMENT = "ApCreditPayment".freeze
26
- AP_OVER_PAYMENT = "ApOverPayment".freeze
27
- AP_OVER_PAYMENT_PAYMENT = "ApOverPaymentPayment".freeze
28
- AP_OVER_PAYMENT_SOURCE_PAYMENT = "ApOverPaymentSourcePayment".freeze
29
- AP_PREPAYMENT = "ApPrepayment".freeze
30
- AP_PREPAYMENT_PAYMENT = "ApPrepaymentPayment".freeze
31
- AP_PREPAYMENT_SOURCE_PAYMENT = "ApPrepaymentSourcePayment".freeze
32
- AR_CREDIT_PAYMENT = "ArCreditPayment".freeze
33
- AR_OVER_PAYMENT = "ArOverPayment".freeze
34
- AR_OVERPAYMENT_PAYMENT = "ArOverpaymentPayment".freeze
35
- AR_OVERPAYMENT_SOURCE_PAYMENT = "ArOverpaymentSourcePayment".freeze
36
- AR_PREPAYMENT = "ArPrepayment".freeze
37
- AR_PREPAYMENT_PAYMENT = "ArPrepaymentPayment".freeze
38
- AR_PREPAYMENT_SOURCE_PAYMENT = "ArPrepaymentSourcePayment".freeze
39
- CASH_PAID = "CashPaid".freeze
40
- CASH_REC = "CashRec".freeze
41
- EXP_PAYMENT = "ExpPayment".freeze
42
- MAN_JOURNAL = "ManJournal".freeze
43
- PURCHASE_ORDER = "PurchaseOrder".freeze
44
- RECEIPT = "Receipt".freeze
45
- TRANSFER = "Transfer".freeze
46
- ACCOUNT = "Account".freeze
47
- CONTACT = "Contact".freeze
48
- BUSINESS = "Business".freeze
49
- EMPLOYEE = "Employee".freeze
50
- PERSON = "Person".freeze
51
- USER = "User".freeze
52
- ORG = "Org".freeze
53
- FIXED_ASSET = "FixedAsset".freeze
54
- PAY_RUN = "PayRun".freeze
55
- PRICE_LIST_ITEM = "PriceListItem".freeze
56
- BANK = "Bank".freeze
57
- CURRENT = "Current".freeze
58
- EQUITY = "Equity".freeze
59
- EXPENSE = "Expense".freeze
60
- FIXED = "Fixed".freeze
61
- LIABILITY = "Liability".freeze
62
- PREPAYMENT = "Prepayment".freeze
63
- REVENUE = "Revenue".freeze
64
- SALES = "Sales".freeze
65
- OVERHEADS = "Overheads".freeze
66
- DEPRECIATN = "Depreciatn".freeze
67
- OTHER_INCOME = "OtherIncome".freeze
68
- DIRECT_COSTS = "DirectCosts".freeze
69
- CURRLIAB = "Currliab".freeze
70
- TERMLIAB = "Termliab".freeze
71
- NON_CURRENT = "NonCurrent".freeze
17
+ UNKNOWN ||= "Unknown".freeze
18
+ ACCPAY ||= "Accpay".freeze
19
+ ACC_PAY_CREDIT ||= "AccPayCredit".freeze
20
+ ACC_PAY_PAYMENT ||= "AccPayPayment".freeze
21
+ ACC_REC ||= "AccRec".freeze
22
+ ACC_REC_CREDIT ||= "AccRecCredit".freeze
23
+ ACC_REC_PAYMENT ||= "AccRecPayment".freeze
24
+ ADJUSTMENT ||= "Adjustment".freeze
25
+ AP_CREDIT_PAYMENT ||= "ApCreditPayment".freeze
26
+ AP_OVER_PAYMENT ||= "ApOverPayment".freeze
27
+ AP_OVER_PAYMENT_PAYMENT ||= "ApOverPaymentPayment".freeze
28
+ AP_OVER_PAYMENT_SOURCE_PAYMENT ||= "ApOverPaymentSourcePayment".freeze
29
+ AP_PREPAYMENT ||= "ApPrepayment".freeze
30
+ AP_PREPAYMENT_PAYMENT ||= "ApPrepaymentPayment".freeze
31
+ AP_PREPAYMENT_SOURCE_PAYMENT ||= "ApPrepaymentSourcePayment".freeze
32
+ AR_CREDIT_PAYMENT ||= "ArCreditPayment".freeze
33
+ AR_OVER_PAYMENT ||= "ArOverPayment".freeze
34
+ AR_OVERPAYMENT_PAYMENT ||= "ArOverpaymentPayment".freeze
35
+ AR_OVERPAYMENT_SOURCE_PAYMENT ||= "ArOverpaymentSourcePayment".freeze
36
+ AR_PREPAYMENT ||= "ArPrepayment".freeze
37
+ AR_PREPAYMENT_PAYMENT ||= "ArPrepaymentPayment".freeze
38
+ AR_PREPAYMENT_SOURCE_PAYMENT ||= "ArPrepaymentSourcePayment".freeze
39
+ CASH_PAID ||= "CashPaid".freeze
40
+ CASH_REC ||= "CashRec".freeze
41
+ EXP_PAYMENT ||= "ExpPayment".freeze
42
+ MAN_JOURNAL ||= "ManJournal".freeze
43
+ PURCHASE_ORDER ||= "PurchaseOrder".freeze
44
+ RECEIPT ||= "Receipt".freeze
45
+ TRANSFER ||= "Transfer".freeze
46
+ ACCOUNT ||= "Account".freeze
47
+ CONTACT ||= "Contact".freeze
48
+ BUSINESS ||= "Business".freeze
49
+ EMPLOYEE ||= "Employee".freeze
50
+ PERSON ||= "Person".freeze
51
+ USER ||= "User".freeze
52
+ ORG ||= "Org".freeze
53
+ FIXED_ASSET ||= "FixedAsset".freeze
54
+ PAY_RUN ||= "PayRun".freeze
55
+ PRICE_LIST_ITEM ||= "PriceListItem".freeze
56
+ BANK ||= "Bank".freeze
57
+ CURRENT ||= "Current".freeze
58
+ EQUITY ||= "Equity".freeze
59
+ EXPENSE ||= "Expense".freeze
60
+ FIXED ||= "Fixed".freeze
61
+ LIABILITY ||= "Liability".freeze
62
+ PREPAYMENT ||= "Prepayment".freeze
63
+ REVENUE ||= "Revenue".freeze
64
+ SALES ||= "Sales".freeze
65
+ OVERHEADS ||= "Overheads".freeze
66
+ DEPRECIATN ||= "Depreciatn".freeze
67
+ OTHER_INCOME ||= "OtherIncome".freeze
68
+ DIRECT_COSTS ||= "DirectCosts".freeze
69
+ CURRLIAB ||= "Currliab".freeze
70
+ TERMLIAB ||= "Termliab".freeze
71
+ NON_CURRENT ||= "NonCurrent".freeze
72
+ SALES_QUOTE ||= "SalesQuote".freeze
72
73
 
73
74
  # Builds the enum from string
74
75
  # @param [String] The enum value in the form of the string
@@ -14,11 +14,11 @@ require 'date'
14
14
 
15
15
  module XeroRuby::Finance
16
16
  class ProblemType
17
- NOT_SET = "NotSet".freeze
18
- INVALID_REQUEST = "invalid-request".freeze
19
- INVALID_APPLICATION = "invalid-application".freeze
20
- SERVICE_UNAVAILABLE = "service-unavailable".freeze
21
- INTERNAL_ERROR = "internal-error".freeze
17
+ NOT_SET ||= "NotSet".freeze
18
+ INVALID_REQUEST ||= "invalid-request".freeze
19
+ INVALID_APPLICATION ||= "invalid-application".freeze
20
+ SERVICE_UNAVAILABLE ||= "service-unavailable".freeze
21
+ INTERNAL_ERROR ||= "internal-error".freeze
22
22
 
23
23
  # Builds the enum from string
24
24
  # @param [String] The enum value in the form of the string
@@ -14,29 +14,29 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class AccountType
17
- BANK = "BANK".freeze
18
- CURRENT = "CURRENT".freeze
19
- CURRLIAB = "CURRLIAB".freeze
20
- DEPRECIATN = "DEPRECIATN".freeze
21
- DIRECTCOSTS = "DIRECTCOSTS".freeze
22
- EQUITY = "EQUITY".freeze
23
- EXPENSE = "EXPENSE".freeze
24
- FIXED = "FIXED".freeze
25
- INVENTORY = "INVENTORY".freeze
26
- LIABILITY = "LIABILITY".freeze
27
- NONCURRENT = "NONCURRENT".freeze
28
- OTHERINCOME = "OTHERINCOME".freeze
29
- OVERHEADS = "OVERHEADS".freeze
30
- PREPAYMENT = "PREPAYMENT".freeze
31
- REVENUE = "REVENUE".freeze
32
- SALES = "SALES".freeze
33
- TERMLIAB = "TERMLIAB".freeze
34
- PAYGLIABILITY = "PAYGLIABILITY".freeze
35
- PAYG = "PAYG".freeze
36
- SUPERANNUATIONEXPENSE = "SUPERANNUATIONEXPENSE".freeze
37
- SUPERANNUATIONLIABILITY = "SUPERANNUATIONLIABILITY".freeze
38
- WAGESEXPENSE = "WAGESEXPENSE".freeze
39
- WAGESPAYABLELIABILITY = "WAGESPAYABLELIABILITY".freeze
17
+ BANK ||= "BANK".freeze
18
+ CURRENT ||= "CURRENT".freeze
19
+ CURRLIAB ||= "CURRLIAB".freeze
20
+ DEPRECIATN ||= "DEPRECIATN".freeze
21
+ DIRECTCOSTS ||= "DIRECTCOSTS".freeze
22
+ EQUITY ||= "EQUITY".freeze
23
+ EXPENSE ||= "EXPENSE".freeze
24
+ FIXED ||= "FIXED".freeze
25
+ INVENTORY ||= "INVENTORY".freeze
26
+ LIABILITY ||= "LIABILITY".freeze
27
+ NONCURRENT ||= "NONCURRENT".freeze
28
+ OTHERINCOME ||= "OTHERINCOME".freeze
29
+ OVERHEADS ||= "OVERHEADS".freeze
30
+ PREPAYMENT ||= "PREPAYMENT".freeze
31
+ REVENUE ||= "REVENUE".freeze
32
+ SALES ||= "SALES".freeze
33
+ TERMLIAB ||= "TERMLIAB".freeze
34
+ PAYGLIABILITY ||= "PAYGLIABILITY".freeze
35
+ PAYG ||= "PAYG".freeze
36
+ SUPERANNUATIONEXPENSE ||= "SUPERANNUATIONEXPENSE".freeze
37
+ SUPERANNUATIONLIABILITY ||= "SUPERANNUATIONLIABILITY".freeze
38
+ WAGESEXPENSE ||= "WAGESEXPENSE".freeze
39
+ WAGESPAYABLELIABILITY ||= "WAGESPAYABLELIABILITY".freeze
40
40
 
41
41
  # Builds the enum from string
42
42
  # @param [String] The enum value in the form of the string
@@ -0,0 +1,41 @@
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 AllowanceCategory
17
+ NONDEDUCTIBLE ||= "NONDEDUCTIBLE".freeze
18
+ UNIFORM ||= "UNIFORM".freeze
19
+ PRIVATEVEHICLE ||= "PRIVATEVEHICLE".freeze
20
+ HOMEOFFICE ||= "HOMEOFFICE".freeze
21
+ TRANSPORT ||= "TRANSPORT".freeze
22
+ GENERAL ||= "GENERAL".freeze
23
+ OTHER ||= "OTHER".freeze
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ constantValues = AllowanceCategory.constants.select { |c| AllowanceCategory::const_get(c) == value }
37
+ raise "Invalid ENUM value #{value} for class #AllowanceCategory" if constantValues.empty?
38
+ value
39
+ end
40
+ end
41
+ end
@@ -14,13 +14,16 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class AllowanceType
17
- CAR = "CAR".freeze
18
- TRANSPORT = "TRANSPORT".freeze
19
- TRAVEL = "TRAVEL".freeze
20
- LAUNDRY = "LAUNDRY".freeze
21
- MEALS = "MEALS".freeze
22
- JOBKEEPER = "JOBKEEPER".freeze
23
- OTHER = "OTHER".freeze
17
+ CAR ||= "CAR".freeze
18
+ TRANSPORT ||= "TRANSPORT".freeze
19
+ LAUNDRY ||= "LAUNDRY".freeze
20
+ MEALS ||= "MEALS".freeze
21
+ TRAVEL ||= "TRAVEL".freeze
22
+ OTHER ||= "OTHER".freeze
23
+ JOBKEEPER ||= "JOBKEEPER".freeze
24
+ TOOLS ||= "TOOLS".freeze
25
+ TASKS ||= "TASKS".freeze
26
+ QUALIFICATIONS ||= "QUALIFICATIONS".freeze
24
27
 
25
28
  # Builds the enum from string
26
29
  # @param [String] The enum value in the form of the string
@@ -14,12 +14,12 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class CalendarType
17
- WEEKLY = "WEEKLY".freeze
18
- FORTNIGHTLY = "FORTNIGHTLY".freeze
19
- FOURWEEKLY = "FOURWEEKLY".freeze
20
- MONTHLY = "MONTHLY".freeze
21
- TWICEMONTHLY = "TWICEMONTHLY".freeze
22
- QUARTERLY = "QUARTERLY".freeze
17
+ WEEKLY ||= "WEEKLY".freeze
18
+ FORTNIGHTLY ||= "FORTNIGHTLY".freeze
19
+ FOURWEEKLY ||= "FOURWEEKLY".freeze
20
+ MONTHLY ||= "MONTHLY".freeze
21
+ TWICEMONTHLY ||= "TWICEMONTHLY".freeze
22
+ QUARTERLY ||= "QUARTERLY".freeze
23
23
 
24
24
  # Builds the enum from string
25
25
  # @param [String] The enum value in the form of the string
@@ -39,9 +39,9 @@ module XeroRuby::PayrollAu
39
39
 
40
40
 
41
41
  attr_accessor :deduction_category
42
- NONE = "NONE".freeze
43
- UNIONFEES = "UNIONFEES".freeze
44
- WORKPLACEGIVING = "WORKPLACEGIVING".freeze
42
+ NONE ||= "NONE".freeze
43
+ UNIONFEES ||= "UNIONFEES".freeze
44
+ WORKPLACEGIVING ||= "WORKPLACEGIVING".freeze
45
45
 
46
46
  # Is the current record
47
47
  attr_accessor :current_record
@@ -14,9 +14,9 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class DeductionTypeCalculationType
17
- FIXEDAMOUNT = "FIXEDAMOUNT".freeze
18
- PRETAX = "PRETAX".freeze
19
- POSTTAX = "POSTTAX".freeze
17
+ FIXEDAMOUNT ||= "FIXEDAMOUNT".freeze
18
+ PRETAX ||= "PRETAX".freeze
19
+ POSTTAX ||= "POSTTAX".freeze
20
20
 
21
21
  # Builds the enum from string
22
22
  # @param [String] The enum value in the form of the string
@@ -67,6 +67,9 @@ module XeroRuby::PayrollAu
67
67
 
68
68
  attr_accessor :allowance_type
69
69
 
70
+
71
+ attr_accessor :allowance_category
72
+
70
73
  # Attribute mapping from ruby-style variable name to JSON key.
71
74
  def self.attribute_map
72
75
  {
@@ -86,7 +89,8 @@ module XeroRuby::PayrollAu
86
89
  :'employment_termination_payment_type' => :'EmploymentTerminationPaymentType',
87
90
  :'updated_date_utc' => :'UpdatedDateUTC',
88
91
  :'current_record' => :'CurrentRecord',
89
- :'allowance_type' => :'AllowanceType'
92
+ :'allowance_type' => :'AllowanceType',
93
+ :'allowance_category' => :'AllowanceCategory'
90
94
  }
91
95
  end
92
96
 
@@ -109,7 +113,8 @@ module XeroRuby::PayrollAu
109
113
  :'employment_termination_payment_type' => :'EmploymentTerminationPaymentType',
110
114
  :'updated_date_utc' => :'DateTime',
111
115
  :'current_record' => :'Boolean',
112
- :'allowance_type' => :'AllowanceType'
116
+ :'allowance_type' => :'AllowanceType',
117
+ :'allowance_category' => :'AllowanceCategory'
113
118
  }
114
119
  end
115
120
 
@@ -195,6 +200,10 @@ module XeroRuby::PayrollAu
195
200
  if attributes.key?(:'allowance_type')
196
201
  self.allowance_type = attributes[:'allowance_type']
197
202
  end
203
+
204
+ if attributes.key?(:'allowance_category')
205
+ self.allowance_category = attributes[:'allowance_category']
206
+ end
198
207
  end
199
208
 
200
209
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -261,7 +270,8 @@ module XeroRuby::PayrollAu
261
270
  employment_termination_payment_type == o.employment_termination_payment_type &&
262
271
  updated_date_utc == o.updated_date_utc &&
263
272
  current_record == o.current_record &&
264
- allowance_type == o.allowance_type
273
+ allowance_type == o.allowance_type &&
274
+ allowance_category == o.allowance_category
265
275
  end
266
276
 
267
277
  # @see the `==` method
@@ -273,7 +283,7 @@ module XeroRuby::PayrollAu
273
283
  # Calculates hash code according to all attributes.
274
284
  # @return [Integer] Hash code
275
285
  def hash
276
- [name, account_code, type_of_units, is_exempt_from_tax, is_exempt_from_super, is_reportable_as_w1, earnings_type, earnings_rate_id, rate_type, rate_per_unit, multiplier, accrue_leave, amount, employment_termination_payment_type, updated_date_utc, current_record, allowance_type].hash
286
+ [name, account_code, type_of_units, is_exempt_from_tax, is_exempt_from_super, is_reportable_as_w1, earnings_type, earnings_rate_id, rate_type, rate_per_unit, multiplier, accrue_leave, amount, employment_termination_payment_type, updated_date_utc, current_record, allowance_type, allowance_category].hash
277
287
  end
278
288
 
279
289
  # Builds the object from hash
@@ -14,9 +14,9 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class EarningsRateCalculationType
17
- USEEARNINGSRATE = "USEEARNINGSRATE".freeze
18
- ENTEREARNINGSRATE = "ENTEREARNINGSRATE".freeze
19
- ANNUALSALARY = "ANNUALSALARY".freeze
17
+ USEEARNINGSRATE ||= "USEEARNINGSRATE".freeze
18
+ ENTEREARNINGSRATE ||= "ENTEREARNINGSRATE".freeze
19
+ ANNUALSALARY ||= "ANNUALSALARY".freeze
20
20
 
21
21
  # Builds the enum from string
22
22
  # @param [String] The enum value in the form of the string
@@ -14,18 +14,18 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class EarningsType
17
- FIXED = "FIXED".freeze
18
- ORDINARYTIMEEARNINGS = "ORDINARYTIMEEARNINGS".freeze
19
- OVERTIMEEARNINGS = "OVERTIMEEARNINGS".freeze
20
- ALLOWANCE = "ALLOWANCE".freeze
21
- LUMPSUMD = "LUMPSUMD".freeze
22
- EMPLOYMENTTERMINATIONPAYMENT = "EMPLOYMENTTERMINATIONPAYMENT".freeze
23
- LUMPSUMA = "LUMPSUMA".freeze
24
- LUMPSUMB = "LUMPSUMB".freeze
25
- BONUSESANDCOMMISSIONS = "BONUSESANDCOMMISSIONS".freeze
26
- LUMPSUME = "LUMPSUME".freeze
27
- LUMPSUMW = "LUMPSUMW".freeze
28
- DIRECTORSFEES = "DIRECTORSFEES".freeze
17
+ FIXED ||= "FIXED".freeze
18
+ ORDINARYTIMEEARNINGS ||= "ORDINARYTIMEEARNINGS".freeze
19
+ OVERTIMEEARNINGS ||= "OVERTIMEEARNINGS".freeze
20
+ ALLOWANCE ||= "ALLOWANCE".freeze
21
+ LUMPSUMD ||= "LUMPSUMD".freeze
22
+ EMPLOYMENTTERMINATIONPAYMENT ||= "EMPLOYMENTTERMINATIONPAYMENT".freeze
23
+ LUMPSUMA ||= "LUMPSUMA".freeze
24
+ LUMPSUMB ||= "LUMPSUMB".freeze
25
+ BONUSESANDCOMMISSIONS ||= "BONUSESANDCOMMISSIONS".freeze
26
+ LUMPSUME ||= "LUMPSUME".freeze
27
+ LUMPSUMW ||= "LUMPSUMW".freeze
28
+ DIRECTORSFEES ||= "DIRECTORSFEES".freeze
29
29
 
30
30
  # Builds the enum from string
31
31
  # @param [String] The enum value in the form of the string
@@ -42,10 +42,10 @@ module XeroRuby::PayrollAu
42
42
 
43
43
  # The employee’s gender. See Employee Gender
44
44
  attr_accessor :gender
45
- N = "N".freeze
46
- M = "M".freeze
47
- F = "F".freeze
48
- I = "I".freeze
45
+ N ||= "N".freeze
46
+ M ||= "M".freeze
47
+ F ||= "F".freeze
48
+ I ||= "I".freeze
49
49
 
50
50
  # Employee phone number
51
51
  attr_accessor :phone
@@ -85,13 +85,13 @@ module XeroRuby::PayrollAu
85
85
 
86
86
  # * `V` Voluntary cessation - An employee resignation, retirement, domestic or pressing necessity or abandonment of employment * `I` Ill health - An employee resignation due to medical condition that prevents the continuation of employment, such as for illness, ill-health, medical unfitness or total permanent disability * `D` Deceased - The death of an employee * `R` Redundancy - An employer-initiated termination of employment due to a genuine redundancy or approved early retirement scheme * `F` Dismissal - An employer-initiated termination of employment due to dismissal, inability to perform the required work, misconduct or inefficiency * `C` Contract cessation - The natural conclusion of a limited employment relationship due to contract/engagement duration or task completion, seasonal work completion, or to cease casuals that are no longer required * `T` Transfer - The administrative arrangements performed to transfer employees across payroll systems, move them temporarily to another employer (machinery of government for public servants), transfer of business, move them to outsourcing arrangements or other such technical activities.
87
87
  attr_accessor :termination_reason
88
- V = "V".freeze
89
- # I = "I".freeze
90
- D = "D".freeze
91
- R = "R".freeze
92
- # F = "F".freeze
93
- C = "C".freeze
94
- T = "T".freeze
88
+ V ||= "V".freeze
89
+ I ||= "I".freeze
90
+ D ||= "D".freeze
91
+ R ||= "R".freeze
92
+ F ||= "F".freeze
93
+ C ||= "C".freeze
94
+ T ||= "T".freeze
95
95
 
96
96
 
97
97
  attr_accessor :bank_accounts
@@ -14,8 +14,8 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class EmployeeStatus
17
- ACTIVE = "ACTIVE".freeze
18
- TERMINATED = "TERMINATED".freeze
17
+ ACTIVE ||= "ACTIVE".freeze
18
+ TERMINATED ||= "TERMINATED".freeze
19
19
 
20
20
  # Builds the enum from string
21
21
  # @param [String] The enum value in the form of the string
@@ -14,11 +14,11 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class EmploymentBasis
17
- FULLTIME = "FULLTIME".freeze
18
- PARTTIME = "PARTTIME".freeze
19
- CASUAL = "CASUAL".freeze
20
- LABOURHIRE = "LABOURHIRE".freeze
21
- SUPERINCOMESTREAM = "SUPERINCOMESTREAM".freeze
17
+ FULLTIME ||= "FULLTIME".freeze
18
+ PARTTIME ||= "PARTTIME".freeze
19
+ CASUAL ||= "CASUAL".freeze
20
+ LABOURHIRE ||= "LABOURHIRE".freeze
21
+ SUPERINCOMESTREAM ||= "SUPERINCOMESTREAM".freeze
22
22
 
23
23
  # Builds the enum from string
24
24
  # @param [String] The enum value in the form of the string
@@ -14,8 +14,8 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class EmploymentTerminationPaymentType
17
- O = "O".freeze
18
- R = "R".freeze
17
+ O ||= "O".freeze
18
+ R ||= "R".freeze
19
19
 
20
20
  # Builds the enum from string
21
21
  # @param [String] The enum value in the form of the string
@@ -14,8 +14,8 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class EntitlementFinalPayPayoutType
17
- NOTPAIDOUT = "NOTPAIDOUT".freeze
18
- PAIDOUT = "PAIDOUT".freeze
17
+ NOTPAIDOUT ||= "NOTPAIDOUT".freeze
18
+ PAIDOUT ||= "PAIDOUT".freeze
19
19
 
20
20
  # Builds the enum from string
21
21
  # @param [String] The enum value in the form of the string
@@ -14,11 +14,11 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class LeaveLineCalculationType
17
- NOCALCULATIONREQUIRED = "NOCALCULATIONREQUIRED".freeze
18
- FIXEDAMOUNTEACHPERIOD = "FIXEDAMOUNTEACHPERIOD".freeze
19
- ENTERRATEINPAYTEMPLATE = "ENTERRATEINPAYTEMPLATE".freeze
20
- BASEDONORDINARYEARNINGS = "BASEDONORDINARYEARNINGS".freeze
21
- EMPTY = "".freeze
17
+ NOCALCULATIONREQUIRED ||= "NOCALCULATIONREQUIRED".freeze
18
+ FIXEDAMOUNTEACHPERIOD ||= "FIXEDAMOUNTEACHPERIOD".freeze
19
+ ENTERRATEINPAYTEMPLATE ||= "ENTERRATEINPAYTEMPLATE".freeze
20
+ BASEDONORDINARYEARNINGS ||= "BASEDONORDINARYEARNINGS".freeze
21
+ EMPTY ||= "".freeze
22
22
 
23
23
  # Builds the enum from string
24
24
  # @param [String] The enum value in the form of the string
@@ -14,8 +14,8 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class LeavePeriodStatus
17
- SCHEDULED = "SCHEDULED".freeze
18
- PROCESSED = "PROCESSED".freeze
17
+ SCHEDULED ||= "SCHEDULED".freeze
18
+ PROCESSED ||= "PROCESSED".freeze
19
19
 
20
20
  # Builds the enum from string
21
21
  # @param [String] The enum value in the form of the string
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module XeroRuby::PayrollAu
16
16
  class LeaveTypeContributionType
17
- SGC = "SGC".freeze
18
- SALARYSACRIFICE = "SALARYSACRIFICE".freeze
19
- EMPLOYERADDITIONAL = "EMPLOYERADDITIONAL".freeze
20
- EMPLOYEE = "EMPLOYEE".freeze
17
+ SGC ||= "SGC".freeze
18
+ SALARYSACRIFICE ||= "SALARYSACRIFICE".freeze
19
+ EMPLOYERADDITIONAL ||= "EMPLOYERADDITIONAL".freeze
20
+ EMPLOYEE ||= "EMPLOYEE".freeze
21
21
 
22
22
  # Builds the enum from string
23
23
  # @param [String] The enum value in the form of the string