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.
- checksums.yaml +4 -4
- data/lib/xero-ruby/api_client.rb +1 -1
- data/lib/xero-ruby/models/accounting/account.rb +34 -34
- data/lib/xero-ruby/models/accounting/account_type.rb +22 -22
- data/lib/xero-ruby/models/accounting/action.rb +2 -2
- data/lib/xero-ruby/models/accounting/address.rb +2 -2
- data/lib/xero-ruby/models/accounting/address_for_organisation.rb +3 -3
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +11 -11
- data/lib/xero-ruby/models/accounting/batch_payment.rb +4 -4
- data/lib/xero-ruby/models/accounting/branding_theme.rb +1 -1
- data/lib/xero-ruby/models/accounting/budget.rb +2 -2
- data/lib/xero-ruby/models/accounting/contact.rb +9 -9
- data/lib/xero-ruby/models/accounting/contact_group.rb +2 -2
- data/lib/xero-ruby/models/accounting/country_code.rb +240 -240
- data/lib/xero-ruby/models/accounting/credit_note.rb +8 -8
- data/lib/xero-ruby/models/accounting/currency_code.rb +166 -166
- data/lib/xero-ruby/models/accounting/employee.rb +4 -4
- data/lib/xero-ruby/models/accounting/expense_claim.rb +5 -5
- data/lib/xero-ruby/models/accounting/external_link.rb +5 -5
- data/lib/xero-ruby/models/accounting/invoice.rb +14 -14
- data/lib/xero-ruby/models/accounting/journal.rb +25 -25
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +3 -3
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +8 -8
- data/lib/xero-ruby/models/accounting/manual_journal.rb +5 -5
- data/lib/xero-ruby/models/accounting/organisation.rb +70 -70
- data/lib/xero-ruby/models/accounting/overpayment.rb +6 -6
- data/lib/xero-ruby/models/accounting/payment.rb +10 -10
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +4 -4
- data/lib/xero-ruby/models/accounting/phone.rb +5 -5
- data/lib/xero-ruby/models/accounting/prepayment.rb +7 -7
- data/lib/xero-ruby/models/accounting/purchase_order.rb +5 -5
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +3 -3
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +6 -6
- data/lib/xero-ruby/models/accounting/receipt.rb +5 -5
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +5 -5
- data/lib/xero-ruby/models/accounting/report.rb +1 -1
- data/lib/xero-ruby/models/accounting/row_type.rb +4 -4
- data/lib/xero-ruby/models/accounting/schedule.rb +8 -8
- data/lib/xero-ruby/models/accounting/tax_rate.rb +78 -78
- data/lib/xero-ruby/models/accounting/tax_type.rb +59 -59
- data/lib/xero-ruby/models/accounting/time_zone.rb +109 -109
- data/lib/xero-ruby/models/accounting/tracking_category.rb +3 -3
- data/lib/xero-ruby/models/accounting/tracking_option.rb +3 -3
- data/lib/xero-ruby/models/accounting/user.rb +7 -7
- data/lib/xero-ruby/models/app_store/plan.rb +6 -5
- data/lib/xero-ruby/models/app_store/product.rb +2 -2
- data/lib/xero-ruby/models/app_store/subscription.rb +37 -0
- data/lib/xero-ruby/models/app_store/subscription_item.rb +53 -1
- data/lib/xero-ruby/models/assets/asset_status.rb +3 -3
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +3 -3
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +11 -11
- data/lib/xero-ruby/models/files/object_group.rb +12 -11
- data/lib/xero-ruby/models/files/object_type.rb +56 -55
- data/lib/xero-ruby/models/finance/problem_type.rb +5 -5
- data/lib/xero-ruby/models/payroll_au/account_type.rb +23 -23
- data/lib/xero-ruby/models/payroll_au/allowance_category.rb +41 -0
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +10 -7
- data/lib/xero-ruby/models/payroll_au/calendar_type.rb +6 -6
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +3 -3
- data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +3 -3
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +14 -4
- data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +3 -3
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +12 -12
- data/lib/xero-ruby/models/payroll_au/employee.rb +11 -11
- data/lib/xero-ruby/models/payroll_au/employee_status.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +5 -5
- data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +5 -5
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +4 -4
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +6 -6
- data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +7 -7
- data/lib/xero-ruby/models/payroll_au/rate_type.rb +3 -3
- data/lib/xero-ruby/models/payroll_au/residency_status.rb +3 -3
- data/lib/xero-ruby/models/payroll_au/state.rb +8 -8
- data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +3 -3
- data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +4 -4
- data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +4 -4
- data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +5 -5
- data/lib/xero-ruby/models/payroll_nz/account.rb +4 -4
- data/lib/xero-ruby/models/payroll_nz/bank_account.rb +2 -2
- data/lib/xero-ruby/models/payroll_nz/benefit.rb +5 -5
- data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +7 -7
- data/lib/xero-ruby/models/payroll_nz/deduction.rb +4 -4
- data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +18 -18
- data/lib/xero-ruby/models/payroll_nz/employee.rb +2 -2
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +4 -4
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +6 -6
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +8 -8
- data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +5 -5
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +2 -2
- data/lib/xero-ruby/models/payroll_nz/pay_run.rb +5 -5
- data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +3 -3
- data/lib/xero-ruby/models/payroll_nz/payment_method.rb +3 -3
- data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +8 -8
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +5 -5
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +11 -11
- data/lib/xero-ruby/models/payroll_nz/tax_code.rb +19 -19
- data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +2 -2
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +4 -4
- data/lib/xero-ruby/models/payroll_uk/account.rb +7 -7
- data/lib/xero-ruby/models/payroll_uk/benefit.rb +4 -4
- data/lib/xero-ruby/models/payroll_uk/deduction.rb +12 -12
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +26 -26
- data/lib/xero-ruby/models/payroll_uk/employee.rb +2 -2
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +4 -4
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +6 -6
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +8 -8
- data/lib/xero-ruby/models/payroll_uk/employment.rb +8 -8
- data/lib/xero-ruby/models/payroll_uk/leave_period.rb +2 -2
- data/lib/xero-ruby/models/payroll_uk/pay_run.rb +11 -11
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +6 -6
- data/lib/xero-ruby/models/payroll_uk/payment_method.rb +3 -3
- data/lib/xero-ruby/models/payroll_uk/payslip.rb +3 -3
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +5 -5
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +14 -14
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +3 -3
- data/lib/xero-ruby/models/projects/charge_type.rb +3 -3
- data/lib/xero-ruby/models/projects/currency_code.rb +164 -164
- data/lib/xero-ruby/models/projects/project_status.rb +2 -2
- data/lib/xero-ruby/models/projects/task.rb +3 -3
- data/lib/xero-ruby/models/projects/time_entry.rb +3 -3
- data/lib/xero-ruby/version.rb +6 -6
- data/lib/xero-ruby.rb +1 -0
- metadata +3 -2
@@ -14,9 +14,9 @@ require 'date'
|
|
14
14
|
|
15
15
|
module XeroRuby::Assets
|
16
16
|
class AssetStatusQueryParam
|
17
|
-
DRAFT
|
18
|
-
REGISTERED
|
19
|
-
DISPOSED
|
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
|
22
|
-
STRAIGHT_LINE
|
23
|
-
DIMINISHING_VALUE100
|
24
|
-
DIMINISHING_VALUE150
|
25
|
-
DIMINISHING_VALUE200
|
26
|
-
FULL_DEPRECIATION
|
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
|
31
|
-
ACTUAL_DAYS
|
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
|
42
|
-
LIFE
|
43
|
-
NONE
|
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
|
18
|
-
BANK_TRANSACTION
|
19
|
-
CONTACT
|
20
|
-
CREDIT_NOTE
|
21
|
-
INVOICE
|
22
|
-
ITEM
|
23
|
-
MANUAL_JOURNAL
|
24
|
-
OVERPAYMENT
|
25
|
-
PAYMENT
|
26
|
-
PREPAYMENT
|
27
|
-
|
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
|
18
|
-
ACCPAY
|
19
|
-
ACC_PAY_CREDIT
|
20
|
-
ACC_PAY_PAYMENT
|
21
|
-
ACC_REC
|
22
|
-
ACC_REC_CREDIT
|
23
|
-
ACC_REC_PAYMENT
|
24
|
-
ADJUSTMENT
|
25
|
-
AP_CREDIT_PAYMENT
|
26
|
-
AP_OVER_PAYMENT
|
27
|
-
AP_OVER_PAYMENT_PAYMENT
|
28
|
-
AP_OVER_PAYMENT_SOURCE_PAYMENT
|
29
|
-
AP_PREPAYMENT
|
30
|
-
AP_PREPAYMENT_PAYMENT
|
31
|
-
AP_PREPAYMENT_SOURCE_PAYMENT
|
32
|
-
AR_CREDIT_PAYMENT
|
33
|
-
AR_OVER_PAYMENT
|
34
|
-
AR_OVERPAYMENT_PAYMENT
|
35
|
-
AR_OVERPAYMENT_SOURCE_PAYMENT
|
36
|
-
AR_PREPAYMENT
|
37
|
-
AR_PREPAYMENT_PAYMENT
|
38
|
-
AR_PREPAYMENT_SOURCE_PAYMENT
|
39
|
-
CASH_PAID
|
40
|
-
CASH_REC
|
41
|
-
EXP_PAYMENT
|
42
|
-
MAN_JOURNAL
|
43
|
-
PURCHASE_ORDER
|
44
|
-
RECEIPT
|
45
|
-
TRANSFER
|
46
|
-
ACCOUNT
|
47
|
-
CONTACT
|
48
|
-
BUSINESS
|
49
|
-
EMPLOYEE
|
50
|
-
PERSON
|
51
|
-
USER
|
52
|
-
ORG
|
53
|
-
FIXED_ASSET
|
54
|
-
PAY_RUN
|
55
|
-
PRICE_LIST_ITEM
|
56
|
-
BANK
|
57
|
-
CURRENT
|
58
|
-
EQUITY
|
59
|
-
EXPENSE
|
60
|
-
FIXED
|
61
|
-
LIABILITY
|
62
|
-
PREPAYMENT
|
63
|
-
REVENUE
|
64
|
-
SALES
|
65
|
-
OVERHEADS
|
66
|
-
DEPRECIATN
|
67
|
-
OTHER_INCOME
|
68
|
-
DIRECT_COSTS
|
69
|
-
CURRLIAB
|
70
|
-
TERMLIAB
|
71
|
-
NON_CURRENT
|
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
|
18
|
-
INVALID_REQUEST
|
19
|
-
INVALID_APPLICATION
|
20
|
-
SERVICE_UNAVAILABLE
|
21
|
-
INTERNAL_ERROR
|
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
|
18
|
-
CURRENT
|
19
|
-
CURRLIAB
|
20
|
-
DEPRECIATN
|
21
|
-
DIRECTCOSTS
|
22
|
-
EQUITY
|
23
|
-
EXPENSE
|
24
|
-
FIXED
|
25
|
-
INVENTORY
|
26
|
-
LIABILITY
|
27
|
-
NONCURRENT
|
28
|
-
OTHERINCOME
|
29
|
-
OVERHEADS
|
30
|
-
PREPAYMENT
|
31
|
-
REVENUE
|
32
|
-
SALES
|
33
|
-
TERMLIAB
|
34
|
-
PAYGLIABILITY
|
35
|
-
PAYG
|
36
|
-
SUPERANNUATIONEXPENSE
|
37
|
-
SUPERANNUATIONLIABILITY
|
38
|
-
WAGESEXPENSE
|
39
|
-
WAGESPAYABLELIABILITY
|
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
|
18
|
-
TRANSPORT
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
18
|
-
FORTNIGHTLY
|
19
|
-
FOURWEEKLY
|
20
|
-
MONTHLY
|
21
|
-
TWICEMONTHLY
|
22
|
-
QUARTERLY
|
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
|
43
|
-
UNIONFEES
|
44
|
-
WORKPLACEGIVING
|
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
|
18
|
-
PRETAX
|
19
|
-
POSTTAX
|
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
|
18
|
-
ENTEREARNINGSRATE
|
19
|
-
ANNUALSALARY
|
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
|
18
|
-
ORDINARYTIMEEARNINGS
|
19
|
-
OVERTIMEEARNINGS
|
20
|
-
ALLOWANCE
|
21
|
-
LUMPSUMD
|
22
|
-
EMPLOYMENTTERMINATIONPAYMENT
|
23
|
-
LUMPSUMA
|
24
|
-
LUMPSUMB
|
25
|
-
BONUSESANDCOMMISSIONS
|
26
|
-
LUMPSUME
|
27
|
-
LUMPSUMW
|
28
|
-
DIRECTORSFEES
|
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
|
46
|
-
M
|
47
|
-
F
|
48
|
-
I
|
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
|
89
|
-
|
90
|
-
D
|
91
|
-
R
|
92
|
-
|
93
|
-
C
|
94
|
-
T
|
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
|
18
|
-
TERMINATED
|
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
|
18
|
-
PARTTIME
|
19
|
-
CASUAL
|
20
|
-
LABOURHIRE
|
21
|
-
SUPERINCOMESTREAM
|
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
|
18
|
-
R
|
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
|
18
|
-
PAIDOUT
|
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
|
18
|
-
FIXEDAMOUNTEACHPERIOD
|
19
|
-
ENTERRATEINPAYTEMPLATE
|
20
|
-
BASEDONORDINARYEARNINGS
|
21
|
-
EMPTY
|
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
|
18
|
-
PROCESSED
|
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
|
18
|
-
SALARYSACRIFICE
|
19
|
-
EMPLOYERADDITIONAL
|
20
|
-
EMPLOYEE
|
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
|