├── .editorconfig ├── .eslintrc.json ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── custom-issue-template.md │ └── feature_request.md ├── actions │ └── notify-slack │ │ └── action.yml └── workflows │ ├── build-lint-test.yml │ ├── jira_create_issue.yml │ ├── jira_update_issue_closed.yml │ ├── jira_update_issue_reopen.yml │ ├── publish.yml │ └── test.yml ├── .npmignore ├── .prettierrc.json ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── docs ├── accounting │ └── index.html ├── appstore │ └── index.html ├── assets │ └── index.html ├── bankfeeds │ └── index.html ├── files │ └── index.html ├── finance │ └── index.html ├── payroll-au │ └── index.html ├── payroll-nz │ └── index.html ├── payroll-uk │ └── index.html └── projects │ └── index.html ├── jest.config.js ├── package-lock.json ├── package.json ├── src ├── XeroClient.ts ├── gen │ ├── .openapi-generator-ignore │ ├── api.ts │ ├── api │ │ ├── accountingApi.ts │ │ ├── apis.ts │ │ ├── appStoreApi.ts │ │ ├── assetApi.ts │ │ ├── bankfeedsApi.ts │ │ ├── filesApi.ts │ │ ├── financeApi.ts │ │ ├── payrollAUApi.ts │ │ ├── payrollNZApi.ts │ │ ├── payrollUKApi.ts │ │ └── projectApi.ts │ └── model │ │ ├── accounting │ │ ├── account.ts │ │ ├── accountType.ts │ │ ├── accounts.ts │ │ ├── accountsPayable.ts │ │ ├── accountsReceivable.ts │ │ ├── action.ts │ │ ├── actions.ts │ │ ├── address.ts │ │ ├── addressForOrganisation.ts │ │ ├── allocation.ts │ │ ├── allocations.ts │ │ ├── attachment.ts │ │ ├── attachments.ts │ │ ├── balanceDetails.ts │ │ ├── balances.ts │ │ ├── bankTransaction.ts │ │ ├── bankTransactions.ts │ │ ├── bankTransfer.ts │ │ ├── bankTransfers.ts │ │ ├── batchPayment.ts │ │ ├── batchPaymentDelete.ts │ │ ├── batchPaymentDeleteByUrlParam.ts │ │ ├── batchPaymentDetails.ts │ │ ├── batchPayments.ts │ │ ├── bill.ts │ │ ├── brandingTheme.ts │ │ ├── brandingThemes.ts │ │ ├── budget.ts │ │ ├── budgetBalance.ts │ │ ├── budgetLine.ts │ │ ├── budgets.ts │ │ ├── cISOrgSetting.ts │ │ ├── cISOrgSettings.ts │ │ ├── cISSetting.ts │ │ ├── cISSettings.ts │ │ ├── contact.ts │ │ ├── contactGroup.ts │ │ ├── contactGroups.ts │ │ ├── contactPerson.ts │ │ ├── contacts.ts │ │ ├── conversionBalances.ts │ │ ├── conversionDate.ts │ │ ├── countryCode.ts │ │ ├── creditNote.ts │ │ ├── creditNotes.ts │ │ ├── currencies.ts │ │ ├── currency.ts │ │ ├── currencyCode.ts │ │ ├── element.ts │ │ ├── employee.ts │ │ ├── employees.ts │ │ ├── expenseClaim.ts │ │ ├── expenseClaims.ts │ │ ├── externalLink.ts │ │ ├── historyRecord.ts │ │ ├── historyRecords.ts │ │ ├── importSummary.ts │ │ ├── importSummaryAccounts.ts │ │ ├── importSummaryObject.ts │ │ ├── importSummaryOrganisation.ts │ │ ├── invoice.ts │ │ ├── invoiceAddress.ts │ │ ├── invoiceReminder.ts │ │ ├── invoiceReminders.ts │ │ ├── invoices.ts │ │ ├── item.ts │ │ ├── items.ts │ │ ├── journal.ts │ │ ├── journalLine.ts │ │ ├── journals.ts │ │ ├── lineAmountTypes.ts │ │ ├── lineItem.ts │ │ ├── lineItemItem.ts │ │ ├── lineItemTracking.ts │ │ ├── linkedTransaction.ts │ │ ├── linkedTransactions.ts │ │ ├── manualJournal.ts │ │ ├── manualJournalLine.ts │ │ ├── manualJournals.ts │ │ ├── modelError.ts │ │ ├── models.ts │ │ ├── onlineInvoice.ts │ │ ├── onlineInvoices.ts │ │ ├── organisation.ts │ │ ├── organisations.ts │ │ ├── overpayment.ts │ │ ├── overpayments.ts │ │ ├── pagination.ts │ │ ├── payment.ts │ │ ├── paymentDelete.ts │ │ ├── paymentService.ts │ │ ├── paymentServices.ts │ │ ├── paymentTerm.ts │ │ ├── paymentTermType.ts │ │ ├── payments.ts │ │ ├── phone.ts │ │ ├── prepayment.ts │ │ ├── prepayments.ts │ │ ├── purchase.ts │ │ ├── purchaseOrder.ts │ │ ├── purchaseOrders.ts │ │ ├── quote.ts │ │ ├── quoteLineAmountTypes.ts │ │ ├── quoteStatusCodes.ts │ │ ├── quotes.ts │ │ ├── receipt.ts │ │ ├── receipts.ts │ │ ├── repeatingInvoice.ts │ │ ├── repeatingInvoices.ts │ │ ├── report.ts │ │ ├── reportAttribute.ts │ │ ├── reportCell.ts │ │ ├── reportFields.ts │ │ ├── reportRow.ts │ │ ├── reportRows.ts │ │ ├── reportWithRow.ts │ │ ├── reportWithRows.ts │ │ ├── reports.ts │ │ ├── requestEmpty.ts │ │ ├── rowType.ts │ │ ├── salesTrackingCategory.ts │ │ ├── schedule.ts │ │ ├── setup.ts │ │ ├── taxBreakdownComponent.ts │ │ ├── taxComponent.ts │ │ ├── taxRate.ts │ │ ├── taxRates.ts │ │ ├── taxType.ts │ │ ├── tenNinetyNineContact.ts │ │ ├── timeZone.ts │ │ ├── trackingCategories.ts │ │ ├── trackingCategory.ts │ │ ├── trackingOption.ts │ │ ├── trackingOptions.ts │ │ ├── user.ts │ │ ├── users.ts │ │ └── validationError.ts │ │ ├── appstore │ │ ├── createUsageRecord.ts │ │ ├── models.ts │ │ ├── plan.ts │ │ ├── price.ts │ │ ├── problemDetails.ts │ │ ├── product.ts │ │ ├── subscription.ts │ │ ├── subscriptionItem.ts │ │ ├── updateUsageRecord.ts │ │ ├── usageRecord.ts │ │ └── usageRecordsList.ts │ │ ├── assets │ │ ├── asset.ts │ │ ├── assetStatus.ts │ │ ├── assetStatusQueryParam.ts │ │ ├── assetType.ts │ │ ├── assets.ts │ │ ├── bookDepreciationDetail.ts │ │ ├── bookDepreciationSetting.ts │ │ ├── fieldValidationErrorsElement.ts │ │ ├── modelError.ts │ │ ├── models.ts │ │ ├── pagination.ts │ │ ├── resourceValidationErrorsElement.ts │ │ └── setting.ts │ │ ├── bankfeeds │ │ ├── countryCode.ts │ │ ├── creditDebitIndicator.ts │ │ ├── currencyCode.ts │ │ ├── endBalance.ts │ │ ├── feedConnection.ts │ │ ├── feedConnections.ts │ │ ├── modelError.ts │ │ ├── models.ts │ │ ├── pagination.ts │ │ ├── startBalance.ts │ │ ├── statement.ts │ │ ├── statementLine.ts │ │ └── statements.ts │ │ ├── files │ │ ├── association.ts │ │ ├── fileObject.ts │ │ ├── files.ts │ │ ├── folder.ts │ │ ├── folders.ts │ │ ├── models.ts │ │ ├── objectGroup.ts │ │ ├── objectType.ts │ │ ├── uploadObject.ts │ │ └── user.ts │ │ ├── finance │ │ ├── accountUsage.ts │ │ ├── accountUsageResponse.ts │ │ ├── balanceSheetAccountDetail.ts │ │ ├── balanceSheetAccountGroup.ts │ │ ├── balanceSheetAccountType.ts │ │ ├── balanceSheetResponse.ts │ │ ├── bankStatementAccountingResponse.ts │ │ ├── bankStatementResponse.ts │ │ ├── bankTransactionResponse.ts │ │ ├── cashAccountResponse.ts │ │ ├── cashBalance.ts │ │ ├── cashValidationResponse.ts │ │ ├── cashflowAccount.ts │ │ ├── cashflowActivity.ts │ │ ├── cashflowResponse.ts │ │ ├── cashflowType.ts │ │ ├── contactDetail.ts │ │ ├── contactResponse.ts │ │ ├── contactTotalDetail.ts │ │ ├── contactTotalOther.ts │ │ ├── creditNoteResponse.ts │ │ ├── currentStatementResponse.ts │ │ ├── dataSourceResponse.ts │ │ ├── historyRecordResponse.ts │ │ ├── incomeByContactResponse.ts │ │ ├── invoiceResponse.ts │ │ ├── lineItemResponse.ts │ │ ├── lockHistoryModel.ts │ │ ├── lockHistoryResponse.ts │ │ ├── manualJournalTotal.ts │ │ ├── models.ts │ │ ├── overpaymentResponse.ts │ │ ├── paymentResponse.ts │ │ ├── pnlAccount.ts │ │ ├── pnlAccountClass.ts │ │ ├── pnlAccountType.ts │ │ ├── practiceResponse.ts │ │ ├── prepaymentResponse.ts │ │ ├── problem.ts │ │ ├── problemType.ts │ │ ├── profitAndLossResponse.ts │ │ ├── reportHistoryModel.ts │ │ ├── reportHistoryResponse.ts │ │ ├── statementBalanceResponse.ts │ │ ├── statementLineResponse.ts │ │ ├── statementLinesResponse.ts │ │ ├── statementResponse.ts │ │ ├── totalDetail.ts │ │ ├── totalOther.ts │ │ ├── trialBalanceAccount.ts │ │ ├── trialBalanceEntry.ts │ │ ├── trialBalanceMovement.ts │ │ ├── trialBalanceResponse.ts │ │ ├── userActivitiesResponse.ts │ │ └── userResponse.ts │ │ ├── payroll-au │ │ ├── aPIException.ts │ │ ├── account.ts │ │ ├── accountType.ts │ │ ├── allowanceCategory.ts │ │ ├── allowanceType.ts │ │ ├── bankAccount.ts │ │ ├── calendarType.ts │ │ ├── countryOfResidence.ts │ │ ├── deductionLine.ts │ │ ├── deductionType.ts │ │ ├── deductionTypeCalculationType.ts │ │ ├── earningsLine.ts │ │ ├── earningsRate.ts │ │ ├── earningsRateCalculationType.ts │ │ ├── earningsType.ts │ │ ├── employee.ts │ │ ├── employeeStatus.ts │ │ ├── employees.ts │ │ ├── employmentBasis.ts │ │ ├── employmentTerminationPaymentType.ts │ │ ├── employmentType.ts │ │ ├── entitlementFinalPayPayoutType.ts │ │ ├── homeAddress.ts │ │ ├── incomeType.ts │ │ ├── leaveAccrualLine.ts │ │ ├── leaveApplication.ts │ │ ├── leaveApplications.ts │ │ ├── leaveBalance.ts │ │ ├── leaveCategoryCode.ts │ │ ├── leaveEarningsLine.ts │ │ ├── leaveLine.ts │ │ ├── leaveLineCalculationType.ts │ │ ├── leaveLines.ts │ │ ├── leavePeriod.ts │ │ ├── leavePeriodStatus.ts │ │ ├── leaveType.ts │ │ ├── leaveTypeContributionType.ts │ │ ├── manualTaxType.ts │ │ ├── models.ts │ │ ├── openingBalances.ts │ │ ├── paidLeaveEarningsLine.ts │ │ ├── payItem.ts │ │ ├── payItems.ts │ │ ├── payOutType.ts │ │ ├── payRun.ts │ │ ├── payRunStatus.ts │ │ ├── payRuns.ts │ │ ├── payTemplate.ts │ │ ├── paymentFrequencyType.ts │ │ ├── payrollCalendar.ts │ │ ├── payrollCalendars.ts │ │ ├── payslip.ts │ │ ├── payslipLines.ts │ │ ├── payslipObject.ts │ │ ├── payslipSummary.ts │ │ ├── payslips.ts │ │ ├── rateType.ts │ │ ├── reimbursementLine.ts │ │ ├── reimbursementLines.ts │ │ ├── reimbursementType.ts │ │ ├── residencyStatus.ts │ │ ├── seniorMaritalStatus.ts │ │ ├── settings.ts │ │ ├── settingsObject.ts │ │ ├── settingsTrackingCategories.ts │ │ ├── settingsTrackingCategoriesEmployeeGroups.ts │ │ ├── settingsTrackingCategoriesTimesheetCategories.ts │ │ ├── state.ts │ │ ├── superFund.ts │ │ ├── superFundProduct.ts │ │ ├── superFundProducts.ts │ │ ├── superFundType.ts │ │ ├── superFunds.ts │ │ ├── superLine.ts │ │ ├── superMembership.ts │ │ ├── superannuationCalculationType.ts │ │ ├── superannuationContributionType.ts │ │ ├── superannuationLine.ts │ │ ├── tFNExemptionType.ts │ │ ├── taxDeclaration.ts │ │ ├── taxLine.ts │ │ ├── taxScaleType.ts │ │ ├── timesheet.ts │ │ ├── timesheetLine.ts │ │ ├── timesheetObject.ts │ │ ├── timesheetStatus.ts │ │ ├── timesheets.ts │ │ ├── validationError.ts │ │ └── workCondition.ts │ │ ├── payroll-nz │ │ ├── account.ts │ │ ├── accounts.ts │ │ ├── address.ts │ │ ├── bankAccount.ts │ │ ├── benefit.ts │ │ ├── calendarType.ts │ │ ├── deduction.ts │ │ ├── deductionLine.ts │ │ ├── deductionObject.ts │ │ ├── deductions.ts │ │ ├── earningsLine.ts │ │ ├── earningsOrder.ts │ │ ├── earningsOrderObject.ts │ │ ├── earningsOrders.ts │ │ ├── earningsRate.ts │ │ ├── earningsRateObject.ts │ │ ├── earningsRates.ts │ │ ├── earningsTemplate.ts │ │ ├── earningsTemplateObject.ts │ │ ├── employee.ts │ │ ├── employeeEarningsTemplates.ts │ │ ├── employeeLeave.ts │ │ ├── employeeLeaveBalance.ts │ │ ├── employeeLeaveBalances.ts │ │ ├── employeeLeaveObject.ts │ │ ├── employeeLeaveSetup.ts │ │ ├── employeeLeaveSetupObject.ts │ │ ├── employeeLeaveType.ts │ │ ├── employeeLeaveTypeObject.ts │ │ ├── employeeLeaveTypes.ts │ │ ├── employeeLeaves.ts │ │ ├── employeeObject.ts │ │ ├── employeeOpeningBalance.ts │ │ ├── employeeOpeningBalancesObject.ts │ │ ├── employeePayTemplate.ts │ │ ├── employeePayTemplateObject.ts │ │ ├── employeePayTemplates.ts │ │ ├── employeeStatutoryLeaveBalance.ts │ │ ├── employeeStatutoryLeaveBalanceObject.ts │ │ ├── employeeStatutoryLeaveSummary.ts │ │ ├── employeeStatutoryLeavesSummaries.ts │ │ ├── employeeStatutorySickLeave.ts │ │ ├── employeeStatutorySickLeaveObject.ts │ │ ├── employeeStatutorySickLeaves.ts │ │ ├── employeeTax.ts │ │ ├── employeeTaxObject.ts │ │ ├── employeeWorkingPattern.ts │ │ ├── employeeWorkingPatternWithWorkingWeeks.ts │ │ ├── employeeWorkingPatternWithWorkingWeeksObject.ts │ │ ├── employeeWorkingPatternWithWorkingWeeksRequest.ts │ │ ├── employeeWorkingPatternsObject.ts │ │ ├── employees.ts │ │ ├── employment.ts │ │ ├── employmentObject.ts │ │ ├── grossEarningsHistory.ts │ │ ├── invalidField.ts │ │ ├── leaveAccrualLine.ts │ │ ├── leaveEarningsLine.ts │ │ ├── leavePeriod.ts │ │ ├── leavePeriods.ts │ │ ├── leaveType.ts │ │ ├── leaveTypeObject.ts │ │ ├── leaveTypes.ts │ │ ├── models.ts │ │ ├── pagination.ts │ │ ├── payRun.ts │ │ ├── payRunCalendar.ts │ │ ├── payRunCalendarObject.ts │ │ ├── payRunCalendars.ts │ │ ├── payRunObject.ts │ │ ├── payRuns.ts │ │ ├── paySlip.ts │ │ ├── paySlipObject.ts │ │ ├── paySlips.ts │ │ ├── paymentLine.ts │ │ ├── paymentMethod.ts │ │ ├── paymentMethodObject.ts │ │ ├── problem.ts │ │ ├── reimbursement.ts │ │ ├── reimbursementLine.ts │ │ ├── reimbursementObject.ts │ │ ├── reimbursements.ts │ │ ├── salaryAndWage.ts │ │ ├── salaryAndWageObject.ts │ │ ├── salaryAndWages.ts │ │ ├── settings.ts │ │ ├── statutoryDeduction.ts │ │ ├── statutoryDeductionCategory.ts │ │ ├── statutoryDeductionLine.ts │ │ ├── statutoryDeductionObject.ts │ │ ├── statutoryDeductions.ts │ │ ├── superannuationLine.ts │ │ ├── superannuationObject.ts │ │ ├── superannuations.ts │ │ ├── taxCode.ts │ │ ├── taxLine.ts │ │ ├── taxSettings.ts │ │ ├── timesheet.ts │ │ ├── timesheetEarningsLine.ts │ │ ├── timesheetLine.ts │ │ ├── timesheetLineObject.ts │ │ ├── timesheetObject.ts │ │ ├── timesheets.ts │ │ ├── trackingCategories.ts │ │ ├── trackingCategory.ts │ │ └── workingWeek.ts │ │ ├── payroll-uk │ │ ├── account.ts │ │ ├── accounts.ts │ │ ├── address.ts │ │ ├── bankAccount.ts │ │ ├── benefit.ts │ │ ├── benefitLine.ts │ │ ├── benefitObject.ts │ │ ├── benefits.ts │ │ ├── courtOrderLine.ts │ │ ├── deduction.ts │ │ ├── deductionLine.ts │ │ ├── deductionObject.ts │ │ ├── deductions.ts │ │ ├── earningsLine.ts │ │ ├── earningsOrder.ts │ │ ├── earningsOrderObject.ts │ │ ├── earningsOrders.ts │ │ ├── earningsRate.ts │ │ ├── earningsRateObject.ts │ │ ├── earningsRates.ts │ │ ├── earningsTemplate.ts │ │ ├── earningsTemplateObject.ts │ │ ├── employee.ts │ │ ├── employeeLeave.ts │ │ ├── employeeLeaveBalance.ts │ │ ├── employeeLeaveBalances.ts │ │ ├── employeeLeaveObject.ts │ │ ├── employeeLeaveType.ts │ │ ├── employeeLeaveTypeObject.ts │ │ ├── employeeLeaveTypes.ts │ │ ├── employeeLeaves.ts │ │ ├── employeeObject.ts │ │ ├── employeeOpeningBalances.ts │ │ ├── employeeOpeningBalancesObject.ts │ │ ├── employeePayTemplate.ts │ │ ├── employeePayTemplateObject.ts │ │ ├── employeePayTemplates.ts │ │ ├── employeeStatutoryLeaveBalance.ts │ │ ├── employeeStatutoryLeaveBalanceObject.ts │ │ ├── employeeStatutoryLeaveSummary.ts │ │ ├── employeeStatutoryLeavesSummaries.ts │ │ ├── employeeStatutorySickLeave.ts │ │ ├── employeeStatutorySickLeaveObject.ts │ │ ├── employeeStatutorySickLeaves.ts │ │ ├── employeeTax.ts │ │ ├── employeeTaxObject.ts │ │ ├── employees.ts │ │ ├── employment.ts │ │ ├── employmentObject.ts │ │ ├── invalidField.ts │ │ ├── leaveAccrualLine.ts │ │ ├── leaveEarningsLine.ts │ │ ├── leavePeriod.ts │ │ ├── leavePeriods.ts │ │ ├── leaveType.ts │ │ ├── leaveTypeObject.ts │ │ ├── leaveTypes.ts │ │ ├── models.ts │ │ ├── nICategory.ts │ │ ├── nICategoryLetter.ts │ │ ├── nICategoryOneOf.ts │ │ ├── nICategoryOneOf1.ts │ │ ├── pagination.ts │ │ ├── payRun.ts │ │ ├── payRunCalendar.ts │ │ ├── payRunCalendarObject.ts │ │ ├── payRunCalendars.ts │ │ ├── payRunObject.ts │ │ ├── payRuns.ts │ │ ├── paymentLine.ts │ │ ├── paymentMethod.ts │ │ ├── paymentMethodObject.ts │ │ ├── payslip.ts │ │ ├── payslipObject.ts │ │ ├── payslips.ts │ │ ├── problem.ts │ │ ├── reimbursement.ts │ │ ├── reimbursementLine.ts │ │ ├── reimbursementObject.ts │ │ ├── reimbursements.ts │ │ ├── salaryAndWage.ts │ │ ├── salaryAndWageObject.ts │ │ ├── salaryAndWages.ts │ │ ├── settings.ts │ │ ├── statutoryDeduction.ts │ │ ├── statutoryDeductionCategory.ts │ │ ├── taxLine.ts │ │ ├── timesheet.ts │ │ ├── timesheetEarningsLine.ts │ │ ├── timesheetLine.ts │ │ ├── timesheetLineObject.ts │ │ ├── timesheetObject.ts │ │ ├── timesheets.ts │ │ ├── trackingCategories.ts │ │ └── trackingCategory.ts │ │ └── projects │ │ ├── amount.ts │ │ ├── chargeType.ts │ │ ├── currencyCode.ts │ │ ├── modelError.ts │ │ ├── models.ts │ │ ├── pagination.ts │ │ ├── project.ts │ │ ├── projectCreateOrUpdate.ts │ │ ├── projectPatch.ts │ │ ├── projectStatus.ts │ │ ├── projectUser.ts │ │ ├── projectUsers.ts │ │ ├── projects.ts │ │ ├── task.ts │ │ ├── taskCreateOrUpdate.ts │ │ ├── tasks.ts │ │ ├── timeEntries.ts │ │ ├── timeEntry.ts │ │ └── timeEntryCreateOrUpdate.ts ├── index.ts ├── model │ └── ApiError.ts └── test │ ├── mocks │ ├── connectionsResponse.json │ ├── getOrganisationResponse.json │ ├── refreshedTokenSet.json │ └── tokenSet.json │ └── xeroClient.spec.ts └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = crlf 5 | indent_style = tab 6 | trim_trailing_whitespace = true 7 | insert_final_newline = true 8 | 9 | [*.{json,yml,sh}] 10 | charset = utf-8 11 | indent_style = space 12 | indent_size = 2 13 | end_of_line = lf 14 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: bug reported (?) 6 | assignees: '' 7 | 8 | --- 9 | 10 | **SDK you're using (please complete the following information):** 11 | - Version [e.g. 3.x.x] 12 | 13 | **Describe the bug** 14 | A clear and concise description of what the bug is. 15 | 16 | **To Reproduce** 17 | Steps to reproduce the behavior: 18 | 1. Go to '...' 19 | 2. Click on '....' 20 | 3. Scroll down to '....' 21 | 4. See error 22 | 23 | **Expected behavior** 24 | A clear and concise description of what you expected to happen. 25 | 26 | **Screenshots** 27 | If applicable, add screenshots to help explain your problem. 28 | 29 | **Additional context** 30 | Add any other context about the problem here. 31 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom-issue-template.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Custom issue template 3 | about: Describe this issue template's purpose here. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Hi, before posting an issue please try to replicate your bug in an empty repo and push it up to be available publicly. 11 | 12 | Here are some repos that you can fork and attempt to replicate the issue: 13 | 14 | - https://github.com/XeroAPI/xero-node-samples 15 | - Copy and paste the examples in the README or this repo 16 | 17 | This will help us to diagnose your issue. 18 | 19 | Any bugs/issues with the API are best directed to: https://developer.xero.com/community 20 | 21 | Often the best place for documentation is the tests in this repo. Please have a look: 22 | 23 | - [tests](src/__tests__) 24 | - [Sample app](https://github.com/XeroAPI/xero-node-sample-app) 25 | 26 | Thanks 27 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: feature request 6 | assignees: '' 7 | 8 | --- 9 | 10 | **SDK you're using (please complete the following information):** 11 | - Version [e.g. 3.x.x] 12 | 13 | **Is your feature request related to a problem? Please describe.** 14 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 15 | 16 | **Describe the solution you'd like** 17 | A clear and concise description of what you want to happen. 18 | 19 | **Describe alternatives you've considered** 20 | A clear and concise description of any alternative solutions or features you've considered. 21 | 22 | **Additional context** 23 | Add any other context or screenshots about the feature request here. 24 | -------------------------------------------------------------------------------- /.github/workflows/build-lint-test.yml: -------------------------------------------------------------------------------- 1 | name: Node Build, Lint and Test 2 | 3 | on: 4 | push: 5 | 6 | jobs: 7 | build-test-lint: 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - name: Checkout xero-node repo 12 | uses: actions/checkout@v4 13 | with: 14 | repository: XeroAPI/xero-node 15 | path: xero-node 16 | 17 | - name: Set up Node environment 18 | uses: actions/setup-node@v4 19 | with: 20 | node-version: 20 21 | cache: 'npm' 22 | cache-dependency-path: '**/package-lock.json' 23 | 24 | 25 | - name: Install dependencies 26 | run: npm ci 27 | working-directory: xero-node 28 | 29 | - name: Run Build 30 | run: npm run build 31 | working-directory: xero-node 32 | 33 | - name: Run Tests 34 | run: npm run test 35 | working-directory: xero-node 36 | -------------------------------------------------------------------------------- /.github/workflows/jira_create_issue.yml: -------------------------------------------------------------------------------- 1 | name: Create Issue in Jira 2 | 3 | on: 4 | issues: 5 | types: 6 | - opened 7 | 8 | jobs: 9 | create_jira_issue: 10 | uses: XeroAPI/Xero-OpenAPI/.github/workflows/jira_create_issue.yml@master 11 | secrets: inherit 12 | -------------------------------------------------------------------------------- /.github/workflows/jira_update_issue_closed.yml: -------------------------------------------------------------------------------- 1 | name: Update Jira Ticket Status To Done 2 | 3 | on: 4 | issues: 5 | types: 6 | - closed 7 | 8 | jobs: 9 | create_jira_issue: 10 | uses: XeroAPI/Xero-OpenAPI/.github/workflows/jira_update_issue_closed.yml@master 11 | secrets: inherit 12 | -------------------------------------------------------------------------------- /.github/workflows/jira_update_issue_reopen.yml: -------------------------------------------------------------------------------- 1 | name: Update Jira Ticket Status To Backlog 2 | 3 | on: 4 | issues: 5 | types: 6 | - reopened 7 | 8 | jobs: 9 | create_jira_issue: 10 | uses: XeroAPI/Xero-OpenAPI/.github/workflows/jira_update_issue_reopen.yml@master 11 | secrets: inherit 12 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: test-hook 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: ubuntu-latest 9 | 10 | strategy: 11 | matrix: 12 | node-version: [18.x] 13 | 14 | steps: 15 | - uses: actions/checkout@v2 16 | - name: Use Node.js ${{ matrix.node-version }} 17 | uses: actions/setup-node@v1 18 | with: 19 | node-version: ${{ matrix.node-version }} 20 | - run: npm install 21 | - run: npm test 22 | env: 23 | CI: true 24 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | src/ 3 | docs_theme/ 4 | .* 5 | *.tgz 6 | typedoc.json 7 | scratch.ts 8 | **/__tests__/** 9 | docs_theme 10 | *.config.js 11 | docs -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 100, 3 | "endOfLine": "crlf", 4 | "trailingComma": "es5", 5 | "singleQuote": true, 6 | "semi": true, 7 | "useTabs": true, 8 | "tabWidth": 1, 9 | "arrowParens": "always", 10 | "overrides": [ 11 | { 12 | "files": ["*.yml", "*.sh", "*.json"], 13 | "options": { 14 | "singleQuote": false, 15 | "useTabs": false, 16 | "endOfLine": "lf", 17 | "tabWidth": 2 18 | } 19 | }, 20 | { 21 | "files": ["package.json", "package-lock.json"], 22 | "options": { 23 | "parser": "json-stringify" 24 | } 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp 6 | // Editor config to enforce our TAB and CRLF 7 | "EditorConfig.editorconfig", 8 | // We use Jest for test and this extension allows easy debugging 9 | "Orta.vscode-jest", 10 | // We use ESLint for code linting 11 | "dbaeumer.vscode-eslint" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "type": "node", 9 | "request": "attach", 10 | "name": "Attach by Process ID", 11 | "processId": "${command:PickProcess}" 12 | }, 13 | { 14 | "name": "Current TS File", 15 | "type": "node", 16 | "request": "launch", 17 | "args": [ 18 | "${relativeFile}" 19 | ], 20 | "runtimeArgs": [ 21 | "--nolazy", 22 | "-r", 23 | "ts-node/register" 24 | ], 25 | "sourceMaps": true, 26 | "cwd": "${workspaceRoot}", 27 | "protocol": "inspector", 28 | } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the tasks.json format 4 | "version": "2.0.0", 5 | "tasks": [ 6 | { 7 | "label": "install", 8 | "type": "shell", 9 | "command": "npm", 10 | "args": ["install"] 11 | }, 12 | { 13 | "label": "update", 14 | "type": "shell", 15 | "command": "npm", 16 | "args": ["update"] 17 | }, 18 | { 19 | "label": "build", 20 | "type": "shell", 21 | "command": "npm", 22 | "args": ["run", "build"] 23 | }, 24 | { 25 | "label": "build-watch", 26 | "type": "shell", 27 | "command": "npm", 28 | "args": ["run", "build-watch"], 29 | "problemMatcher": "$tsc-watch" 30 | }, 31 | { 32 | "label": "test", 33 | "type": "shell", 34 | "command": "npm", 35 | "args": ["run", "test"] 36 | } 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | transform: { 3 | "^.+\\.tsx?$": "ts-jest", 4 | }, 5 | testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", 6 | testPathIgnorePatterns: ["/lib/", "/node_modules/"], 7 | moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], 8 | testEnvironment: "node" 9 | // collectCoverage: true, 10 | }; 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xero-node", 3 | "version": "11.2.0", 4 | "description": "Xero NodeJS OAuth 2.0 client for xero-node", 5 | "main": "dist/index.js", 6 | "types": "dist/index.d.ts", 7 | "author": "Xero Platform Team", 8 | "license": "MIT", 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/XeroAPI/xero-node.git" 12 | }, 13 | "scripts": { 14 | "build": "tsc", 15 | "test": "jest" 16 | }, 17 | "devDependencies": { 18 | "@types/jest": "^29.5.12", 19 | "jest": "^29.7.0", 20 | "nock": "^12.0.1", 21 | "open": "^6.4.0", 22 | "prompt": "^1.0.0", 23 | "sinon": "^9.0.0", 24 | "ts-jest": "^29.1.2", 25 | "typescript": "^5.3.3" 26 | }, 27 | "dependencies": { 28 | "axios": "^1.6.5", 29 | "openid-client": "5.6.5" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/gen/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | git_push.sh 8 | .gitignore -------------------------------------------------------------------------------- /src/gen/api.ts: -------------------------------------------------------------------------------- 1 | // This is the entrypoint for the package 2 | export * from './api/apis'; 3 | export * from './model/accounting/models'; 4 | export * from '../XeroClient'; 5 | -------------------------------------------------------------------------------- /src/gen/api/apis.ts: -------------------------------------------------------------------------------- 1 | export * from './accountingApi'; 2 | export * from './assetApi'; 3 | export * from './projectApi'; 4 | export * from './filesApi'; 5 | export * from './payrollAUApi'; 6 | export * from './bankfeedsApi'; 7 | export * from './payrollUKApi'; 8 | export * from './payrollNZApi'; 9 | export * from './appStoreApi'; 10 | export * from './financeApi'; 11 | import { AccountingApi } from './accountingApi'; 12 | import { AssetApi } from './assetApi'; 13 | import { FilesApi } from './filesApi'; 14 | import { ProjectApi } from './projectApi'; 15 | import { PayrollAuApi } from './payrollAUApi'; 16 | import { BankFeedsApi } from './bankfeedsApi'; 17 | import { PayrollUkApi } from './payrollUKApi'; 18 | import { PayrollNzApi } from './payrollNZApi'; 19 | import { AppStoreApi } from './appStoreApi'; 20 | import { FinanceApi } from './financeApi'; 21 | export const APIS = [AccountingApi, AssetApi, FilesApi, ProjectApi, PayrollAuApi, BankFeedsApi, PayrollUkApi, PayrollNzApi, AppStoreApi, FinanceApi]; -------------------------------------------------------------------------------- /src/gen/model/accounting/accountType.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * See Account Types 4 | */ 5 | export enum AccountType { 6 | BANK = 'BANK', 7 | CURRENT = 'CURRENT', 8 | CURRLIAB = 'CURRLIAB', 9 | DEPRECIATN = 'DEPRECIATN', 10 | DIRECTCOSTS = 'DIRECTCOSTS', 11 | EQUITY = 'EQUITY', 12 | EXPENSE = 'EXPENSE', 13 | FIXED = 'FIXED', 14 | INVENTORY = 'INVENTORY', 15 | LIABILITY = 'LIABILITY', 16 | NONCURRENT = 'NONCURRENT', 17 | OTHERINCOME = 'OTHERINCOME', 18 | OVERHEADS = 'OVERHEADS', 19 | PREPAYMENT = 'PREPAYMENT', 20 | REVENUE = 'REVENUE', 21 | SALES = 'SALES', 22 | TERMLIAB = 'TERMLIAB', 23 | PAYG = 'PAYG' 24 | } 25 | -------------------------------------------------------------------------------- /src/gen/model/accounting/accounts.ts: -------------------------------------------------------------------------------- 1 | import { Account } from '././account'; 2 | 3 | export class Accounts { 4 | 'accounts'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "accounts", 11 | "baseName": "Accounts", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Accounts.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/accountsPayable.ts: -------------------------------------------------------------------------------- 1 | 2 | export class AccountsPayable { 3 | 'outstanding'?: number; 4 | 'overdue'?: number; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "outstanding", 11 | "baseName": "Outstanding", 12 | "type": "number" 13 | }, 14 | { 15 | "name": "overdue", 16 | "baseName": "Overdue", 17 | "type": "number" 18 | } ]; 19 | 20 | static getAttributeTypeMap() { 21 | return AccountsPayable.attributeTypeMap; 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /src/gen/model/accounting/accountsReceivable.ts: -------------------------------------------------------------------------------- 1 | 2 | export class AccountsReceivable { 3 | 'outstanding'?: number; 4 | 'overdue'?: number; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "outstanding", 11 | "baseName": "Outstanding", 12 | "type": "number" 13 | }, 14 | { 15 | "name": "overdue", 16 | "baseName": "Overdue", 17 | "type": "number" 18 | } ]; 19 | 20 | static getAttributeTypeMap() { 21 | return AccountsReceivable.attributeTypeMap; 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /src/gen/model/accounting/action.ts: -------------------------------------------------------------------------------- 1 | 2 | export class Action { 3 | /** 4 | * Name of the actions for this organisation 5 | */ 6 | 'name'?: string; 7 | /** 8 | * Status of the action for this organisation 9 | */ 10 | 'status'?: Action.StatusEnum; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "name", 17 | "baseName": "Name", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "status", 22 | "baseName": "Status", 23 | "type": "Action.StatusEnum" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return Action.attributeTypeMap; 28 | } 29 | } 30 | 31 | export namespace Action { 32 | export enum StatusEnum { 33 | ALLOWED = 'ALLOWED', 34 | NOTALLOWED = 'NOT-ALLOWED' 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/gen/model/accounting/actions.ts: -------------------------------------------------------------------------------- 1 | import { Action } from '././action'; 2 | 3 | export class Actions { 4 | 'actions'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "actions", 11 | "baseName": "Actions", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Actions.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/allocations.ts: -------------------------------------------------------------------------------- 1 | import { Allocation } from '././allocation'; 2 | 3 | export class Allocations { 4 | 'allocations'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "allocations", 11 | "baseName": "Allocations", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Allocations.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/attachments.ts: -------------------------------------------------------------------------------- 1 | import { Attachment } from '././attachment'; 2 | 3 | export class Attachments { 4 | 'attachments'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "attachments", 11 | "baseName": "Attachments", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Attachments.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/balances.ts: -------------------------------------------------------------------------------- 1 | import { AccountsPayable } from '././accountsPayable'; 2 | import { AccountsReceivable } from '././accountsReceivable'; 3 | 4 | /** 5 | * The raw AccountsReceivable(sales invoices) and AccountsPayable(bills) outstanding and overdue amounts, not converted to base currency (read only) 6 | */ 7 | export class Balances { 8 | 'accountsReceivable'?: AccountsReceivable; 9 | 'accountsPayable'?: AccountsPayable; 10 | 11 | static discriminator: string | undefined = undefined; 12 | 13 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 14 | { 15 | "name": "accountsReceivable", 16 | "baseName": "AccountsReceivable", 17 | "type": "AccountsReceivable" 18 | }, 19 | { 20 | "name": "accountsPayable", 21 | "baseName": "AccountsPayable", 22 | "type": "AccountsPayable" 23 | } ]; 24 | 25 | static getAttributeTypeMap() { 26 | return Balances.attributeTypeMap; 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/gen/model/accounting/bankTransfers.ts: -------------------------------------------------------------------------------- 1 | import { BankTransfer } from '././bankTransfer'; 2 | 3 | export class BankTransfers { 4 | 'bankTransfers'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "bankTransfers", 11 | "baseName": "BankTransfers", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return BankTransfers.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/batchPaymentDelete.ts: -------------------------------------------------------------------------------- 1 | 2 | export class BatchPaymentDelete { 3 | /** 4 | * The Xero generated unique identifier for the bank transaction (read-only) 5 | */ 6 | 'batchPaymentID': string; 7 | /** 8 | * The status of the batch payment. 9 | */ 10 | 'status': string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "batchPaymentID", 17 | "baseName": "BatchPaymentID", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "status", 22 | "baseName": "Status", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return BatchPaymentDelete.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/accounting/batchPaymentDeleteByUrlParam.ts: -------------------------------------------------------------------------------- 1 | 2 | export class BatchPaymentDeleteByUrlParam { 3 | /** 4 | * The status of the batch payment. 5 | */ 6 | 'status': string; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "status", 13 | "baseName": "Status", 14 | "type": "string" 15 | } ]; 16 | 17 | static getAttributeTypeMap() { 18 | return BatchPaymentDeleteByUrlParam.attributeTypeMap; 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/gen/model/accounting/batchPayments.ts: -------------------------------------------------------------------------------- 1 | import { BatchPayment } from '././batchPayment'; 2 | 3 | export class BatchPayments { 4 | 'batchPayments'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "batchPayments", 11 | "baseName": "BatchPayments", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return BatchPayments.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/bill.ts: -------------------------------------------------------------------------------- 1 | import { PaymentTermType } from '././paymentTermType'; 2 | 3 | export class Bill { 4 | /** 5 | * Day of Month (0-31) 6 | */ 7 | 'day'?: number; 8 | 'type'?: PaymentTermType; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "day", 15 | "baseName": "Day", 16 | "type": "number" 17 | }, 18 | { 19 | "name": "type", 20 | "baseName": "Type", 21 | "type": "PaymentTermType" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return Bill.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/gen/model/accounting/brandingThemes.ts: -------------------------------------------------------------------------------- 1 | import { BrandingTheme } from '././brandingTheme'; 2 | 3 | export class BrandingThemes { 4 | 'brandingThemes'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "brandingThemes", 11 | "baseName": "BrandingThemes", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return BrandingThemes.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/budgetLine.ts: -------------------------------------------------------------------------------- 1 | import { BudgetBalance } from '././budgetBalance'; 2 | 3 | export class BudgetLine { 4 | /** 5 | * See Accounts 6 | */ 7 | 'accountID'?: string; 8 | /** 9 | * See Accounts 10 | */ 11 | 'accountCode'?: string; 12 | 'budgetBalances'?: Array; 13 | 14 | static discriminator: string | undefined = undefined; 15 | 16 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 17 | { 18 | "name": "accountID", 19 | "baseName": "AccountID", 20 | "type": "string" 21 | }, 22 | { 23 | "name": "accountCode", 24 | "baseName": "AccountCode", 25 | "type": "string" 26 | }, 27 | { 28 | "name": "budgetBalances", 29 | "baseName": "BudgetBalances", 30 | "type": "Array" 31 | } ]; 32 | 33 | static getAttributeTypeMap() { 34 | return BudgetLine.attributeTypeMap; 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /src/gen/model/accounting/budgets.ts: -------------------------------------------------------------------------------- 1 | import { Budget } from '././budget'; 2 | 3 | export class Budgets { 4 | 'budgets'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "budgets", 11 | "baseName": "Budgets", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Budgets.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/cISOrgSettings.ts: -------------------------------------------------------------------------------- 1 | import { CISOrgSetting } from '././cISOrgSetting'; 2 | 3 | export class CISOrgSettings { 4 | 'cISSettings'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "cISSettings", 11 | "baseName": "CISSettings", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return CISOrgSettings.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/cISSetting.ts: -------------------------------------------------------------------------------- 1 | 2 | export class CISSetting { 3 | /** 4 | * Boolean that describes if the contact is a CIS Subcontractor 5 | */ 6 | 'cISEnabled'?: boolean; 7 | /** 8 | * CIS Deduction rate for the contact if he is a subcontractor. If the contact is not CISEnabled, then the rate is not returned 9 | */ 10 | 'rate'?: number; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "cISEnabled", 17 | "baseName": "CISEnabled", 18 | "type": "boolean" 19 | }, 20 | { 21 | "name": "rate", 22 | "baseName": "Rate", 23 | "type": "number" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return CISSetting.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/accounting/cISSettings.ts: -------------------------------------------------------------------------------- 1 | import { CISSetting } from '././cISSetting'; 2 | 3 | export class CISSettings { 4 | 'cISSettings'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "cISSettings", 11 | "baseName": "CISSettings", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return CISSettings.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/contactGroups.ts: -------------------------------------------------------------------------------- 1 | import { ContactGroup } from '././contactGroup'; 2 | 3 | export class ContactGroups { 4 | 'contactGroups'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "contactGroups", 11 | "baseName": "ContactGroups", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return ContactGroups.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/conversionDate.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * The date when the organisation starts using Xero 4 | */ 5 | export class ConversionDate { 6 | /** 7 | * The month the organisation starts using Xero. Value is an integer between 1 and 12 8 | */ 9 | 'month'?: number; 10 | /** 11 | * The year the organisation starts using Xero. Value is an integer greater than 2006 12 | */ 13 | 'year'?: number; 14 | 15 | static discriminator: string | undefined = undefined; 16 | 17 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 18 | { 19 | "name": "month", 20 | "baseName": "Month", 21 | "type": "number" 22 | }, 23 | { 24 | "name": "year", 25 | "baseName": "Year", 26 | "type": "number" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ConversionDate.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/accounting/currencies.ts: -------------------------------------------------------------------------------- 1 | import { Currency } from '././currency'; 2 | 3 | export class Currencies { 4 | 'currencies'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "currencies", 11 | "baseName": "Currencies", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Currencies.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/currency.ts: -------------------------------------------------------------------------------- 1 | import { CurrencyCode } from '././currencyCode'; 2 | 3 | export class Currency { 4 | 'code'?: CurrencyCode; 5 | /** 6 | * Name of Currency 7 | */ 8 | 'description'?: string; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "code", 15 | "baseName": "Code", 16 | "type": "CurrencyCode" 17 | }, 18 | { 19 | "name": "description", 20 | "baseName": "Description", 21 | "type": "string" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return Currency.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/gen/model/accounting/employees.ts: -------------------------------------------------------------------------------- 1 | import { Employee } from '././employee'; 2 | 3 | export class Employees { 4 | 'employees'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "employees", 11 | "baseName": "Employees", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Employees.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/expenseClaims.ts: -------------------------------------------------------------------------------- 1 | import { ExpenseClaim } from '././expenseClaim'; 2 | 3 | export class ExpenseClaims { 4 | 'expenseClaims'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "expenseClaims", 11 | "baseName": "ExpenseClaims", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return ExpenseClaims.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/historyRecords.ts: -------------------------------------------------------------------------------- 1 | import { HistoryRecord } from '././historyRecord'; 2 | 3 | export class HistoryRecords { 4 | 'historyRecords'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "historyRecords", 11 | "baseName": "HistoryRecords", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return HistoryRecords.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/importSummary.ts: -------------------------------------------------------------------------------- 1 | import { ImportSummaryAccounts } from '././importSummaryAccounts'; 2 | import { ImportSummaryOrganisation } from '././importSummaryOrganisation'; 3 | 4 | /** 5 | * A summary of the import from setup endpoint 6 | */ 7 | export class ImportSummary { 8 | 'accounts'?: ImportSummaryAccounts; 9 | 'organisation'?: ImportSummaryOrganisation; 10 | 11 | static discriminator: string | undefined = undefined; 12 | 13 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 14 | { 15 | "name": "accounts", 16 | "baseName": "Accounts", 17 | "type": "ImportSummaryAccounts" 18 | }, 19 | { 20 | "name": "organisation", 21 | "baseName": "Organisation", 22 | "type": "ImportSummaryOrganisation" 23 | } ]; 24 | 25 | static getAttributeTypeMap() { 26 | return ImportSummary.attributeTypeMap; 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/gen/model/accounting/importSummaryObject.ts: -------------------------------------------------------------------------------- 1 | import { ImportSummary } from '././importSummary'; 2 | 3 | export class ImportSummaryObject { 4 | 'importSummary'?: ImportSummary; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "importSummary", 11 | "baseName": "ImportSummary", 12 | "type": "ImportSummary" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return ImportSummaryObject.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/importSummaryOrganisation.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ImportSummaryOrganisation { 3 | 'present'?: boolean; 4 | 5 | static discriminator: string | undefined = undefined; 6 | 7 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 8 | { 9 | "name": "present", 10 | "baseName": "Present", 11 | "type": "boolean" 12 | } ]; 13 | 14 | static getAttributeTypeMap() { 15 | return ImportSummaryOrganisation.attributeTypeMap; 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /src/gen/model/accounting/invoiceReminder.ts: -------------------------------------------------------------------------------- 1 | 2 | export class InvoiceReminder { 3 | /** 4 | * setting for on or off 5 | */ 6 | 'enabled'?: boolean; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "enabled", 13 | "baseName": "Enabled", 14 | "type": "boolean" 15 | } ]; 16 | 17 | static getAttributeTypeMap() { 18 | return InvoiceReminder.attributeTypeMap; 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/gen/model/accounting/invoiceReminders.ts: -------------------------------------------------------------------------------- 1 | import { InvoiceReminder } from '././invoiceReminder'; 2 | 3 | export class InvoiceReminders { 4 | 'invoiceReminders'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "invoiceReminders", 11 | "baseName": "InvoiceReminders", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return InvoiceReminders.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/items.ts: -------------------------------------------------------------------------------- 1 | import { Item } from '././item'; 2 | 3 | export class Items { 4 | 'items'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "items", 11 | "baseName": "Items", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Items.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/journals.ts: -------------------------------------------------------------------------------- 1 | import { Journal } from '././journal'; 2 | import { ValidationError } from '././validationError'; 3 | 4 | export class Journals { 5 | /** 6 | * Displays array of warning messages from the API 7 | */ 8 | 'warnings'?: Array; 9 | 'journals'?: Array; 10 | 11 | static discriminator: string | undefined = undefined; 12 | 13 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 14 | { 15 | "name": "warnings", 16 | "baseName": "Warnings", 17 | "type": "Array" 18 | }, 19 | { 20 | "name": "journals", 21 | "baseName": "Journals", 22 | "type": "Array" 23 | } ]; 24 | 25 | static getAttributeTypeMap() { 26 | return Journals.attributeTypeMap; 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/gen/model/accounting/lineAmountTypes.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types 4 | */ 5 | export enum LineAmountTypes { 6 | Exclusive = 'Exclusive', 7 | Inclusive = 'Inclusive', 8 | NoTax = 'NoTax' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/accounting/lineItemItem.ts: -------------------------------------------------------------------------------- 1 | 2 | export class LineItemItem { 3 | /** 4 | * User defined item code (max length = 30) 5 | */ 6 | 'code'?: string; 7 | /** 8 | * The name of the item (max length = 50) 9 | */ 10 | 'name'?: string; 11 | /** 12 | * The Xero identifier for an Item 13 | */ 14 | 'itemID'?: string; 15 | 16 | static discriminator: string | undefined = undefined; 17 | 18 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 19 | { 20 | "name": "code", 21 | "baseName": "Code", 22 | "type": "string" 23 | }, 24 | { 25 | "name": "name", 26 | "baseName": "Name", 27 | "type": "string" 28 | }, 29 | { 30 | "name": "itemID", 31 | "baseName": "ItemID", 32 | "type": "string" 33 | } ]; 34 | 35 | static getAttributeTypeMap() { 36 | return LineItemItem.attributeTypeMap; 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /src/gen/model/accounting/linkedTransactions.ts: -------------------------------------------------------------------------------- 1 | import { LinkedTransaction } from '././linkedTransaction'; 2 | 3 | export class LinkedTransactions { 4 | 'linkedTransactions'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "linkedTransactions", 11 | "baseName": "LinkedTransactions", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return LinkedTransactions.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/onlineInvoice.ts: -------------------------------------------------------------------------------- 1 | 2 | export class OnlineInvoice { 3 | /** 4 | * the URL to an online invoice 5 | */ 6 | 'onlineInvoiceUrl'?: string; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "onlineInvoiceUrl", 13 | "baseName": "OnlineInvoiceUrl", 14 | "type": "string" 15 | } ]; 16 | 17 | static getAttributeTypeMap() { 18 | return OnlineInvoice.attributeTypeMap; 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/gen/model/accounting/onlineInvoices.ts: -------------------------------------------------------------------------------- 1 | import { OnlineInvoice } from '././onlineInvoice'; 2 | 3 | export class OnlineInvoices { 4 | 'onlineInvoices'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "onlineInvoices", 11 | "baseName": "OnlineInvoices", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return OnlineInvoices.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/organisations.ts: -------------------------------------------------------------------------------- 1 | import { Organisation } from '././organisation'; 2 | 3 | export class Organisations { 4 | 'organisations'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "organisations", 11 | "baseName": "Organisations", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Organisations.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/pagination.ts: -------------------------------------------------------------------------------- 1 | 2 | export class Pagination { 3 | 'page'?: number; 4 | 'pageSize'?: number; 5 | 'pageCount'?: number; 6 | 'itemCount'?: number; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "page", 13 | "baseName": "page", 14 | "type": "number" 15 | }, 16 | { 17 | "name": "pageSize", 18 | "baseName": "pageSize", 19 | "type": "number" 20 | }, 21 | { 22 | "name": "pageCount", 23 | "baseName": "pageCount", 24 | "type": "number" 25 | }, 26 | { 27 | "name": "itemCount", 28 | "baseName": "itemCount", 29 | "type": "number" 30 | } ]; 31 | 32 | static getAttributeTypeMap() { 33 | return Pagination.attributeTypeMap; 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/gen/model/accounting/paymentDelete.ts: -------------------------------------------------------------------------------- 1 | 2 | export class PaymentDelete { 3 | /** 4 | * The status of the payment. 5 | */ 6 | 'status': string; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "status", 13 | "baseName": "Status", 14 | "type": "string" 15 | } ]; 16 | 17 | static getAttributeTypeMap() { 18 | return PaymentDelete.attributeTypeMap; 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/gen/model/accounting/paymentServices.ts: -------------------------------------------------------------------------------- 1 | import { PaymentService } from '././paymentService'; 2 | 3 | export class PaymentServices { 4 | 'paymentServices'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "paymentServices", 11 | "baseName": "PaymentServices", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return PaymentServices.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/paymentTerm.ts: -------------------------------------------------------------------------------- 1 | import { Bill } from '././bill'; 2 | 3 | export class PaymentTerm { 4 | 'bills'?: Bill; 5 | 'sales'?: Bill; 6 | 7 | static discriminator: string | undefined = undefined; 8 | 9 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 10 | { 11 | "name": "bills", 12 | "baseName": "Bills", 13 | "type": "Bill" 14 | }, 15 | { 16 | "name": "sales", 17 | "baseName": "Sales", 18 | "type": "Bill" 19 | } ]; 20 | 21 | static getAttributeTypeMap() { 22 | return PaymentTerm.attributeTypeMap; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/gen/model/accounting/paymentTermType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum PaymentTermType { 3 | DAYSAFTERBILLDATE = 'DAYSAFTERBILLDATE', 4 | DAYSAFTERBILLMONTH = 'DAYSAFTERBILLMONTH', 5 | OFCURRENTMONTH = 'OFCURRENTMONTH', 6 | OFFOLLOWINGMONTH = 'OFFOLLOWINGMONTH' 7 | } 8 | -------------------------------------------------------------------------------- /src/gen/model/accounting/quoteLineAmountTypes.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types 4 | */ 5 | export enum QuoteLineAmountTypes { 6 | EXCLUSIVE = 'EXCLUSIVE', 7 | INCLUSIVE = 'INCLUSIVE', 8 | NOTAX = 'NOTAX' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/accounting/quoteStatusCodes.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * The status of the quote. 4 | */ 5 | export enum QuoteStatusCodes { 6 | DRAFT = 'DRAFT', 7 | SENT = 'SENT', 8 | DECLINED = 'DECLINED', 9 | ACCEPTED = 'ACCEPTED', 10 | INVOICED = 'INVOICED', 11 | DELETED = 'DELETED' 12 | } 13 | -------------------------------------------------------------------------------- /src/gen/model/accounting/quotes.ts: -------------------------------------------------------------------------------- 1 | import { Quote } from '././quote'; 2 | 3 | export class Quotes { 4 | 'quotes'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "quotes", 11 | "baseName": "Quotes", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Quotes.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/receipts.ts: -------------------------------------------------------------------------------- 1 | import { Receipt } from '././receipt'; 2 | 3 | export class Receipts { 4 | 'receipts'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "receipts", 11 | "baseName": "Receipts", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Receipts.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/repeatingInvoices.ts: -------------------------------------------------------------------------------- 1 | import { RepeatingInvoice } from '././repeatingInvoice'; 2 | 3 | export class RepeatingInvoices { 4 | 'repeatingInvoices'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "repeatingInvoices", 11 | "baseName": "RepeatingInvoices", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return RepeatingInvoices.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/reportAttribute.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ReportAttribute { 3 | 'id'?: string; 4 | 'value'?: string; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "id", 11 | "baseName": "Id", 12 | "type": "string" 13 | }, 14 | { 15 | "name": "value", 16 | "baseName": "Value", 17 | "type": "string" 18 | } ]; 19 | 20 | static getAttributeTypeMap() { 21 | return ReportAttribute.attributeTypeMap; 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /src/gen/model/accounting/reportCell.ts: -------------------------------------------------------------------------------- 1 | import { ReportAttribute } from '././reportAttribute'; 2 | 3 | export class ReportCell { 4 | 'value'?: string; 5 | 'attributes'?: Array; 6 | 7 | static discriminator: string | undefined = undefined; 8 | 9 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 10 | { 11 | "name": "value", 12 | "baseName": "Value", 13 | "type": "string" 14 | }, 15 | { 16 | "name": "attributes", 17 | "baseName": "Attributes", 18 | "type": "Array" 19 | } ]; 20 | 21 | static getAttributeTypeMap() { 22 | return ReportCell.attributeTypeMap; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/gen/model/accounting/reportFields.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ReportFields { 3 | 'fieldID'?: string; 4 | 'description'?: string; 5 | 'value'?: string; 6 | 7 | static discriminator: string | undefined = undefined; 8 | 9 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 10 | { 11 | "name": "fieldID", 12 | "baseName": "FieldID", 13 | "type": "string" 14 | }, 15 | { 16 | "name": "description", 17 | "baseName": "Description", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "value", 22 | "baseName": "Value", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return ReportFields.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/accounting/reportRow.ts: -------------------------------------------------------------------------------- 1 | import { ReportCell } from '././reportCell'; 2 | import { RowType } from '././rowType'; 3 | 4 | export class ReportRow { 5 | 'rowType'?: RowType; 6 | 'title'?: string; 7 | 'cells'?: Array; 8 | 9 | static discriminator: string | undefined = undefined; 10 | 11 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 12 | { 13 | "name": "rowType", 14 | "baseName": "RowType", 15 | "type": "RowType" 16 | }, 17 | { 18 | "name": "title", 19 | "baseName": "Title", 20 | "type": "string" 21 | }, 22 | { 23 | "name": "cells", 24 | "baseName": "Cells", 25 | "type": "Array" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return ReportRow.attributeTypeMap; 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /src/gen/model/accounting/reportWithRows.ts: -------------------------------------------------------------------------------- 1 | import { ReportWithRow } from '././reportWithRow'; 2 | 3 | export class ReportWithRows { 4 | 'reports'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "reports", 11 | "baseName": "Reports", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return ReportWithRows.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/reports.ts: -------------------------------------------------------------------------------- 1 | import { Report } from '././report'; 2 | 3 | export class Reports { 4 | 'reports'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "reports", 11 | "baseName": "Reports", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Reports.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/requestEmpty.ts: -------------------------------------------------------------------------------- 1 | 2 | export class RequestEmpty { 3 | /** 4 | * Need at least one field to create an empty JSON payload 5 | */ 6 | 'status'?: string; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "status", 13 | "baseName": "Status", 14 | "type": "string" 15 | } ]; 16 | 17 | static getAttributeTypeMap() { 18 | return RequestEmpty.attributeTypeMap; 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/gen/model/accounting/rowType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum RowType { 3 | Header = 'Header', 4 | Section = 'Section', 5 | Row = 'Row', 6 | SummaryRow = 'SummaryRow' 7 | } 8 | -------------------------------------------------------------------------------- /src/gen/model/accounting/salesTrackingCategory.ts: -------------------------------------------------------------------------------- 1 | 2 | export class SalesTrackingCategory { 3 | /** 4 | * The default sales tracking category name for contacts 5 | */ 6 | 'trackingCategoryName'?: string; 7 | /** 8 | * The default purchase tracking category name for contacts 9 | */ 10 | 'trackingOptionName'?: string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "trackingCategoryName", 17 | "baseName": "TrackingCategoryName", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "trackingOptionName", 22 | "baseName": "TrackingOptionName", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return SalesTrackingCategory.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/accounting/taxRates.ts: -------------------------------------------------------------------------------- 1 | import { TaxRate } from '././taxRate'; 2 | 3 | export class TaxRates { 4 | 'taxRates'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "taxRates", 11 | "baseName": "TaxRates", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return TaxRates.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/trackingCategories.ts: -------------------------------------------------------------------------------- 1 | import { TrackingCategory } from '././trackingCategory'; 2 | 3 | export class TrackingCategories { 4 | 'trackingCategories'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "trackingCategories", 11 | "baseName": "TrackingCategories", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return TrackingCategories.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/trackingOptions.ts: -------------------------------------------------------------------------------- 1 | import { TrackingOption } from '././trackingOption'; 2 | 3 | export class TrackingOptions { 4 | 'options'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "options", 11 | "baseName": "Options", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return TrackingOptions.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/users.ts: -------------------------------------------------------------------------------- 1 | import { User } from '././user'; 2 | 3 | export class Users { 4 | 'users'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "users", 11 | "baseName": "Users", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Users.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/accounting/validationError.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ValidationError { 3 | /** 4 | * Validation error message 5 | */ 6 | 'message'?: string; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "message", 13 | "baseName": "Message", 14 | "type": "string" 15 | } ]; 16 | 17 | static getAttributeTypeMap() { 18 | return ValidationError.attributeTypeMap; 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/gen/model/appstore/createUsageRecord.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Data transfer object for public create usage end point 4 | */ 5 | export class CreateUsageRecord { 6 | /** 7 | * The initial quantity for the usage record. Must be a whole number that is greater than or equal to 0 8 | */ 9 | 'quantity': number; 10 | /** 11 | * DateTime in UTC of when the the product was consumed/used 12 | */ 13 | 'timestamp': Date; 14 | 15 | static discriminator: string | undefined = undefined; 16 | 17 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 18 | { 19 | "name": "quantity", 20 | "baseName": "quantity", 21 | "type": "number" 22 | }, 23 | { 24 | "name": "timestamp", 25 | "baseName": "timestamp", 26 | "type": "Date" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return CreateUsageRecord.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/appstore/price.ts: -------------------------------------------------------------------------------- 1 | 2 | export class Price { 3 | /** 4 | * The net (before tax) amount. 5 | */ 6 | 'amount': number; 7 | /** 8 | * The currency of the price. 9 | */ 10 | 'currency': string; 11 | /** 12 | * The unique identifier of the price. 13 | */ 14 | 'id': string; 15 | 16 | static discriminator: string | undefined = undefined; 17 | 18 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 19 | { 20 | "name": "amount", 21 | "baseName": "amount", 22 | "type": "number" 23 | }, 24 | { 25 | "name": "currency", 26 | "baseName": "currency", 27 | "type": "string" 28 | }, 29 | { 30 | "name": "id", 31 | "baseName": "id", 32 | "type": "string" 33 | } ]; 34 | 35 | static getAttributeTypeMap() { 36 | return Price.attributeTypeMap; 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /src/gen/model/appstore/updateUsageRecord.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Data transfer object for public update usage end point 4 | */ 5 | export class UpdateUsageRecord { 6 | /** 7 | * The new quantity for the usage record. Must be a whole number that is greater than or equal to 0 8 | */ 9 | 'quantity': number; 10 | 11 | static discriminator: string | undefined = undefined; 12 | 13 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 14 | { 15 | "name": "quantity", 16 | "baseName": "quantity", 17 | "type": "number" 18 | } ]; 19 | 20 | static getAttributeTypeMap() { 21 | return UpdateUsageRecord.attributeTypeMap; 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /src/gen/model/appstore/usageRecordsList.ts: -------------------------------------------------------------------------------- 1 | import { UsageRecord } from '././usageRecord'; 2 | 3 | /** 4 | * Response to get usage record 5 | */ 6 | export class UsageRecordsList { 7 | /** 8 | * A collection of usage records 9 | */ 10 | 'usageRecords': Array; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "usageRecords", 17 | "baseName": "usageRecords", 18 | "type": "Array" 19 | } ]; 20 | 21 | static getAttributeTypeMap() { 22 | return UsageRecordsList.attributeTypeMap; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/gen/model/assets/assetStatus.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * See Asset Status Codes. 4 | */ 5 | export enum AssetStatus { 6 | Draft = 'Draft', 7 | Registered = 'Registered', 8 | Disposed = 'Disposed' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/assets/assetStatusQueryParam.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * See Asset Status Codes. 4 | */ 5 | export enum AssetStatusQueryParam { 6 | DRAFT = 'DRAFT', 7 | REGISTERED = 'REGISTERED', 8 | DISPOSED = 'DISPOSED' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/assets/assets.ts: -------------------------------------------------------------------------------- 1 | import { Asset } from '././asset'; 2 | import { Pagination } from '././pagination'; 3 | 4 | export class Assets { 5 | 'pagination'?: Pagination; 6 | 'items'?: Array; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "pagination", 13 | "baseName": "pagination", 14 | "type": "Pagination" 15 | }, 16 | { 17 | "name": "items", 18 | "baseName": "items", 19 | "type": "Array" 20 | } ]; 21 | 22 | static getAttributeTypeMap() { 23 | return Assets.attributeTypeMap; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/gen/model/assets/pagination.ts: -------------------------------------------------------------------------------- 1 | 2 | export class Pagination { 3 | 'page'?: number; 4 | 'pageSize'?: number; 5 | 'pageCount'?: number; 6 | 'itemCount'?: number; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "page", 13 | "baseName": "page", 14 | "type": "number" 15 | }, 16 | { 17 | "name": "pageSize", 18 | "baseName": "pageSize", 19 | "type": "number" 20 | }, 21 | { 22 | "name": "pageCount", 23 | "baseName": "pageCount", 24 | "type": "number" 25 | }, 26 | { 27 | "name": "itemCount", 28 | "baseName": "itemCount", 29 | "type": "number" 30 | } ]; 31 | 32 | static getAttributeTypeMap() { 33 | return Pagination.attributeTypeMap; 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/gen/model/bankfeeds/creditDebitIndicator.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * If the statement balances are credit or debit, the CreditDebitIndicator should be specified from the perspective of the Customer. 4 | */ 5 | export enum CreditDebitIndicator { 6 | CREDIT = 'CREDIT', 7 | DEBIT = 'DEBIT' 8 | } 9 | -------------------------------------------------------------------------------- /src/gen/model/bankfeeds/endBalance.ts: -------------------------------------------------------------------------------- 1 | import { CreditDebitIndicator } from '././creditDebitIndicator'; 2 | 3 | /** 4 | * The StartBalance plus all the Statement Line Amounts should be equal to the EndBalance Amount. 5 | */ 6 | export class EndBalance { 7 | 'amount'?: number; 8 | 'creditDebitIndicator'?: CreditDebitIndicator; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "amount", 15 | "baseName": "amount", 16 | "type": "number" 17 | }, 18 | { 19 | "name": "creditDebitIndicator", 20 | "baseName": "creditDebitIndicator", 21 | "type": "CreditDebitIndicator" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return EndBalance.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/gen/model/bankfeeds/feedConnections.ts: -------------------------------------------------------------------------------- 1 | import { FeedConnection } from '././feedConnection'; 2 | import { Pagination } from '././pagination'; 3 | 4 | export class FeedConnections { 5 | 'pagination'?: Pagination; 6 | 'items'?: Array; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "pagination", 13 | "baseName": "pagination", 14 | "type": "Pagination" 15 | }, 16 | { 17 | "name": "items", 18 | "baseName": "items", 19 | "type": "Array" 20 | } ]; 21 | 22 | static getAttributeTypeMap() { 23 | return FeedConnections.attributeTypeMap; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/gen/model/bankfeeds/startBalance.ts: -------------------------------------------------------------------------------- 1 | import { CreditDebitIndicator } from '././creditDebitIndicator'; 2 | 3 | /** 4 | * The starting balance of the statement 5 | */ 6 | export class StartBalance { 7 | /** 8 | * decimal(19,4) unsigned Opening/closing balance amount. 9 | */ 10 | 'amount'?: number; 11 | 'creditDebitIndicator'?: CreditDebitIndicator; 12 | 13 | static discriminator: string | undefined = undefined; 14 | 15 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 16 | { 17 | "name": "amount", 18 | "baseName": "amount", 19 | "type": "number" 20 | }, 21 | { 22 | "name": "creditDebitIndicator", 23 | "baseName": "creditDebitIndicator", 24 | "type": "CreditDebitIndicator" 25 | } ]; 26 | 27 | static getAttributeTypeMap() { 28 | return StartBalance.attributeTypeMap; 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /src/gen/model/bankfeeds/statements.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Statement } from '././statement'; 3 | 4 | export class Statements { 5 | 'pagination'?: Pagination; 6 | 'items'?: Array; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "pagination", 13 | "baseName": "pagination", 14 | "type": "Pagination" 15 | }, 16 | { 17 | "name": "items", 18 | "baseName": "items", 19 | "type": "Array" 20 | } ]; 21 | 22 | static getAttributeTypeMap() { 23 | return Statements.attributeTypeMap; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/gen/model/files/files.ts: -------------------------------------------------------------------------------- 1 | import { FileObject } from '././fileObject'; 2 | 3 | export class Files { 4 | 'totalCount'?: number; 5 | 'page'?: number; 6 | 'perPage'?: number; 7 | 'items'?: Array; 8 | 9 | static discriminator: string | undefined = undefined; 10 | 11 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 12 | { 13 | "name": "totalCount", 14 | "baseName": "TotalCount", 15 | "type": "number" 16 | }, 17 | { 18 | "name": "page", 19 | "baseName": "Page", 20 | "type": "number" 21 | }, 22 | { 23 | "name": "perPage", 24 | "baseName": "PerPage", 25 | "type": "number" 26 | }, 27 | { 28 | "name": "items", 29 | "baseName": "Items", 30 | "type": "Array" 31 | } ]; 32 | 33 | static getAttributeTypeMap() { 34 | return Files.attributeTypeMap; 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /src/gen/model/files/folders.ts: -------------------------------------------------------------------------------- 1 | import { Folder } from '././folder'; 2 | 3 | export class Folders { 4 | 'folders'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "folders", 11 | "baseName": "Folders", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Folders.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/files/objectGroup.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * The Object Group that the object is in. These roughly correlate to the endpoints that can be used to retrieve the object via the core accounting API. 4 | */ 5 | export enum ObjectGroup { 6 | Account = 'Account', 7 | BankTransaction = 'BankTransaction', 8 | Contact = 'Contact', 9 | CreditNote = 'CreditNote', 10 | Invoice = 'Invoice', 11 | Item = 'Item', 12 | ManualJournal = 'ManualJournal', 13 | Overpayment = 'Overpayment', 14 | Payment = 'Payment', 15 | Prepayment = 'Prepayment', 16 | Quote = 'Quote', 17 | Receipt = 'Receipt' 18 | } 19 | -------------------------------------------------------------------------------- /src/gen/model/files/uploadObject.ts: -------------------------------------------------------------------------------- 1 | 2 | export class UploadObject { 3 | 'body': string; 4 | /** 5 | * exact name of the file you are uploading 6 | */ 7 | 'name': string; 8 | 'filename': string; 9 | 'mimeType'?: string; 10 | 11 | static discriminator: string | undefined = undefined; 12 | 13 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 14 | { 15 | "name": "body", 16 | "baseName": "body", 17 | "type": "string" 18 | }, 19 | { 20 | "name": "name", 21 | "baseName": "name", 22 | "type": "string" 23 | }, 24 | { 25 | "name": "filename", 26 | "baseName": "filename", 27 | "type": "string" 28 | }, 29 | { 30 | "name": "mimeType", 31 | "baseName": "mimeType", 32 | "type": "string" 33 | } ]; 34 | 35 | static getAttributeTypeMap() { 36 | return UploadObject.attributeTypeMap; 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /src/gen/model/finance/balanceSheetAccountGroup.ts: -------------------------------------------------------------------------------- 1 | import { BalanceSheetAccountType } from '././balanceSheetAccountType'; 2 | 3 | export class BalanceSheetAccountGroup { 4 | 'accountTypes'?: Array; 5 | /** 6 | * Total value of all the accounts in this type 7 | */ 8 | 'total'?: number; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "accountTypes", 15 | "baseName": "accountTypes", 16 | "type": "Array" 17 | }, 18 | { 19 | "name": "total", 20 | "baseName": "total", 21 | "type": "number" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return BalanceSheetAccountGroup.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/gen/model/finance/bankStatementResponse.ts: -------------------------------------------------------------------------------- 1 | import { CurrentStatementResponse } from '././currentStatementResponse'; 2 | import { StatementLinesResponse } from '././statementLinesResponse'; 3 | 4 | export class BankStatementResponse { 5 | 'statementLines'?: StatementLinesResponse; 6 | 'currentStatement'?: CurrentStatementResponse; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "statementLines", 13 | "baseName": "statementLines", 14 | "type": "StatementLinesResponse" 15 | }, 16 | { 17 | "name": "currentStatement", 18 | "baseName": "currentStatement", 19 | "type": "CurrentStatementResponse" 20 | } ]; 21 | 22 | static getAttributeTypeMap() { 23 | return BankStatementResponse.attributeTypeMap; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/gen/model/finance/contactResponse.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ContactResponse { 3 | /** 4 | * Xero Identifier of contact 5 | */ 6 | 'contactId'?: string; 7 | /** 8 | * Full name of contact/organisation 9 | */ 10 | 'contactName'?: string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "contactId", 17 | "baseName": "contactId", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "contactName", 22 | "baseName": "contactName", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return ContactResponse.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/finance/manualJournalTotal.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ManualJournalTotal { 3 | /** 4 | * Total value of manual journals. 5 | */ 6 | 'total'?: number; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "total", 13 | "baseName": "total", 14 | "type": "number" 15 | } ]; 16 | 17 | static getAttributeTypeMap() { 18 | return ManualJournalTotal.attributeTypeMap; 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/gen/model/finance/pnlAccountClass.ts: -------------------------------------------------------------------------------- 1 | import { PnlAccountType } from '././pnlAccountType'; 2 | 3 | export class PnlAccountClass { 4 | /** 5 | * Total revenue/expense value 6 | */ 7 | 'total'?: number; 8 | /** 9 | * Contains trading income and other income for revenue section / operating expenses and direct cost for expense section if the data is available for each section. Refer to the account type element below 10 | */ 11 | 'accountTypes'?: Array; 12 | 13 | static discriminator: string | undefined = undefined; 14 | 15 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 16 | { 17 | "name": "total", 18 | "baseName": "total", 19 | "type": "number" 20 | }, 21 | { 22 | "name": "accountTypes", 23 | "baseName": "accountTypes", 24 | "type": "Array" 25 | } ]; 26 | 27 | static getAttributeTypeMap() { 28 | return PnlAccountClass.attributeTypeMap; 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /src/gen/model/finance/problem.ts: -------------------------------------------------------------------------------- 1 | import { ProblemType } from '././problemType'; 2 | 3 | export class Problem { 4 | 'type'?: ProblemType; 5 | 'title'?: string; 6 | 'status'?: number; 7 | 'detail'?: string; 8 | 9 | static discriminator: string | undefined = undefined; 10 | 11 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 12 | { 13 | "name": "type", 14 | "baseName": "type", 15 | "type": "ProblemType" 16 | }, 17 | { 18 | "name": "title", 19 | "baseName": "title", 20 | "type": "string" 21 | }, 22 | { 23 | "name": "status", 24 | "baseName": "status", 25 | "type": "number" 26 | }, 27 | { 28 | "name": "detail", 29 | "baseName": "detail", 30 | "type": "string" 31 | } ]; 32 | 33 | static getAttributeTypeMap() { 34 | return Problem.attributeTypeMap; 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /src/gen/model/finance/problemType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum ProblemType { 3 | NotSet = 'NotSet', 4 | BankAccountNotFound = 'bank-account-not-found', 5 | InternalError = 'internal-error', 6 | InvalidApplication = 'invalid-application', 7 | InvalidRequest = 'invalid-request', 8 | OrganisationNotFound = 'organisation-not-found', 9 | OrganisationOffline = 'organisation-offline', 10 | RequestTimeout = 'request-timeout', 11 | ServiceUnavailable = 'service-unavailable', 12 | Unauthorized = 'unauthorized', 13 | RateLimitError = 'rate-limit-error' 14 | } 15 | -------------------------------------------------------------------------------- /src/gen/model/finance/trialBalanceEntry.ts: -------------------------------------------------------------------------------- 1 | 2 | export class TrialBalanceEntry { 3 | /** 4 | * Net movement or net balance in the account 5 | */ 6 | 'value'?: number; 7 | /** 8 | * Sign (Debit/Credit) of the movement of balance in the account 9 | */ 10 | 'entryType'?: string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "value", 17 | "baseName": "value", 18 | "type": "number" 19 | }, 20 | { 21 | "name": "entryType", 22 | "baseName": "entryType", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return TrialBalanceEntry.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/accountType.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * See Account Types 4 | */ 5 | export enum AccountType { 6 | BANK = 'BANK', 7 | CURRENT = 'CURRENT', 8 | CURRLIAB = 'CURRLIAB', 9 | DEPRECIATN = 'DEPRECIATN', 10 | DIRECTCOSTS = 'DIRECTCOSTS', 11 | EQUITY = 'EQUITY', 12 | EXPENSE = 'EXPENSE', 13 | FIXED = 'FIXED', 14 | INVENTORY = 'INVENTORY', 15 | LIABILITY = 'LIABILITY', 16 | NONCURRENT = 'NONCURRENT', 17 | OTHERINCOME = 'OTHERINCOME', 18 | OVERHEADS = 'OVERHEADS', 19 | PREPAYMENT = 'PREPAYMENT', 20 | REVENUE = 'REVENUE', 21 | SALES = 'SALES', 22 | TERMLIAB = 'TERMLIAB', 23 | PAYGLIABILITY = 'PAYGLIABILITY', 24 | PAYG = 'PAYG', 25 | SUPERANNUATIONEXPENSE = 'SUPERANNUATIONEXPENSE', 26 | SUPERANNUATIONLIABILITY = 'SUPERANNUATIONLIABILITY', 27 | WAGESEXPENSE = 'WAGESEXPENSE', 28 | WAGESPAYABLELIABILITY = 'WAGESPAYABLELIABILITY' 29 | } 30 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/allowanceCategory.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum AllowanceCategory { 3 | NONDEDUCTIBLE = 'NONDEDUCTIBLE', 4 | UNIFORM = 'UNIFORM', 5 | PRIVATEVEHICLE = 'PRIVATEVEHICLE', 6 | HOMEOFFICE = 'HOMEOFFICE', 7 | TRANSPORT = 'TRANSPORT', 8 | GENERAL = 'GENERAL', 9 | OTHER = 'OTHER' 10 | } 11 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/allowanceType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum AllowanceType { 3 | CAR = 'CAR', 4 | TRANSPORT = 'TRANSPORT', 5 | LAUNDRY = 'LAUNDRY', 6 | MEALS = 'MEALS', 7 | TRAVEL = 'TRAVEL', 8 | OTHER = 'OTHER', 9 | TOOLS = 'TOOLS', 10 | TASKS = 'TASKS', 11 | QUALIFICATIONS = 'QUALIFICATIONS' 12 | } 13 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/calendarType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum CalendarType { 3 | WEEKLY = 'WEEKLY', 4 | FORTNIGHTLY = 'FORTNIGHTLY', 5 | FOURWEEKLY = 'FOURWEEKLY', 6 | MONTHLY = 'MONTHLY', 7 | TWICEMONTHLY = 'TWICEMONTHLY', 8 | QUARTERLY = 'QUARTERLY' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/deductionTypeCalculationType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum DeductionTypeCalculationType { 3 | FIXEDAMOUNT = 'FIXEDAMOUNT', 4 | PRETAX = 'PRETAX', 5 | POSTTAX = 'POSTTAX' 6 | } 7 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/earningsRateCalculationType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum EarningsRateCalculationType { 3 | USEEARNINGSRATE = 'USEEARNINGSRATE', 4 | ENTEREARNINGSRATE = 'ENTEREARNINGSRATE', 5 | ANNUALSALARY = 'ANNUALSALARY' 6 | } 7 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/earningsType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum EarningsType { 3 | FIXED = 'FIXED', 4 | ORDINARYTIMEEARNINGS = 'ORDINARYTIMEEARNINGS', 5 | OVERTIMEEARNINGS = 'OVERTIMEEARNINGS', 6 | ALLOWANCE = 'ALLOWANCE', 7 | LUMPSUMD = 'LUMPSUMD', 8 | EMPLOYMENTTERMINATIONPAYMENT = 'EMPLOYMENTTERMINATIONPAYMENT', 9 | LUMPSUMA = 'LUMPSUMA', 10 | LUMPSUMB = 'LUMPSUMB', 11 | BONUSESANDCOMMISSIONS = 'BONUSESANDCOMMISSIONS', 12 | LUMPSUME = 'LUMPSUME', 13 | LUMPSUMW = 'LUMPSUMW', 14 | DIRECTORSFEES = 'DIRECTORSFEES', 15 | PAIDPARENTALLEAVE = 'PAIDPARENTALLEAVE', 16 | WORKERSCOMPENSATION = 'WORKERSCOMPENSATION' 17 | } 18 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/employeeStatus.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Employee Status Types 4 | */ 5 | export enum EmployeeStatus { 6 | ACTIVE = 'ACTIVE', 7 | TERMINATED = 'TERMINATED' 8 | } 9 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/employees.ts: -------------------------------------------------------------------------------- 1 | import { Employee } from '././employee'; 2 | 3 | export class Employees { 4 | 'employees'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "employees", 11 | "baseName": "Employees", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Employees.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/employmentBasis.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum EmploymentBasis { 3 | FULLTIME = 'FULLTIME', 4 | PARTTIME = 'PARTTIME', 5 | CASUAL = 'CASUAL', 6 | LABOURHIRE = 'LABOURHIRE', 7 | SUPERINCOMESTREAM = 'SUPERINCOMESTREAM', 8 | NONEMPLOYEE = 'NONEMPLOYEE' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/employmentTerminationPaymentType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum EmploymentTerminationPaymentType { 3 | O = 'O', 4 | R = 'R' 5 | } 6 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/employmentType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum EmploymentType { 3 | EMPLOYEE = 'EMPLOYEE', 4 | CONTRACTOR = 'CONTRACTOR' 5 | } 6 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/entitlementFinalPayPayoutType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum EntitlementFinalPayPayoutType { 3 | NOTPAIDOUT = 'NOTPAIDOUT', 4 | PAIDOUT = 'PAIDOUT' 5 | } 6 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/incomeType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum IncomeType { 3 | SALARYANDWAGES = 'SALARYANDWAGES', 4 | WORKINGHOLIDAYMAKER = 'WORKINGHOLIDAYMAKER', 5 | NONEMPLOYEE = 'NONEMPLOYEE', 6 | CLOSELYHELDPAYEES = 'CLOSELYHELDPAYEES', 7 | LABOURHIRE = 'LABOURHIRE' 8 | } 9 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/leaveApplications.ts: -------------------------------------------------------------------------------- 1 | import { LeaveApplication } from '././leaveApplication'; 2 | 3 | export class LeaveApplications { 4 | 'leaveApplications'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "leaveApplications", 11 | "baseName": "LeaveApplications", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return LeaveApplications.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/leaveCategoryCode.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Code used to identify the Leave Category 4 | */ 5 | export enum LeaveCategoryCode { 6 | ANNUALLEAVE = 'ANNUALLEAVE', 7 | LONGSERVICELEAVE = 'LONGSERVICELEAVE', 8 | PERSONALSICKCARERSLEAVE = 'PERSONALSICKCARERSLEAVE', 9 | ROSTEREDDAYOFF = 'ROSTEREDDAYOFF', 10 | TIMEOFFINLIEU = 'TIMEOFFINLIEU', 11 | COMPASSIONATEANDBEREAVEMENTLEAVE = 'COMPASSIONATEANDBEREAVEMENTLEAVE', 12 | STUDYLEAVE = 'STUDYLEAVE', 13 | FAMILYANDDOMESTICVIOLENCELEAVE = 'FAMILYANDDOMESTICVIOLENCELEAVE', 14 | SPECIALPAIDLEAVE = 'SPECIALPAIDLEAVE', 15 | COMMUNITYSERVICELEAVE = 'COMMUNITYSERVICELEAVE', 16 | JURYDUTYLEAVE = 'JURYDUTYLEAVE', 17 | DEFENCERESERVELEAVE = 'DEFENCERESERVELEAVE' 18 | } 19 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/leaveLineCalculationType.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Calculation type for leave line for Opening Balance on Employee 4 | */ 5 | export enum LeaveLineCalculationType { 6 | NOCALCULATIONREQUIRED = 'NOCALCULATIONREQUIRED', 7 | FIXEDAMOUNTEACHPERIOD = 'FIXEDAMOUNTEACHPERIOD', 8 | ENTERRATEINPAYTEMPLATE = 'ENTERRATEINPAYTEMPLATE', 9 | BASEDONORDINARYEARNINGS = 'BASEDONORDINARYEARNINGS' 10 | } 11 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/leaveLines.ts: -------------------------------------------------------------------------------- 1 | import { LeaveLine } from '././leaveLine'; 2 | 3 | /** 4 | * The leave type lines 5 | */ 6 | export class LeaveLines { 7 | 'employee'?: Array; 8 | 9 | static discriminator: string | undefined = undefined; 10 | 11 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 12 | { 13 | "name": "employee", 14 | "baseName": "Employee", 15 | "type": "Array" 16 | } ]; 17 | 18 | static getAttributeTypeMap() { 19 | return LeaveLines.attributeTypeMap; 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/leavePeriodStatus.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum LeavePeriodStatus { 3 | SCHEDULED = 'SCHEDULED', 4 | PROCESSED = 'PROCESSED', 5 | REQUESTED = 'REQUESTED', 6 | REJECTED = 'REJECTED' 7 | } 8 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/leaveTypeContributionType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum LeaveTypeContributionType { 3 | SGC = 'SGC', 4 | SALARYSACRIFICE = 'SALARYSACRIFICE', 5 | EMPLOYERADDITIONAL = 'EMPLOYERADDITIONAL', 6 | EMPLOYEE = 'EMPLOYEE' 7 | } 8 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/manualTaxType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum ManualTaxType { 3 | PAYGMANUAL = 'PAYGMANUAL', 4 | ETPOMANUAL = 'ETPOMANUAL', 5 | ETPRMANUAL = 'ETPRMANUAL', 6 | SCHEDULE5MANUAL = 'SCHEDULE5MANUAL', 7 | SCHEDULE5STSLMANUAL = 'SCHEDULE5STSLMANUAL', 8 | SCHEDULE4MANUAL = 'SCHEDULE4MANUAL' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/payItems.ts: -------------------------------------------------------------------------------- 1 | import { PayItem } from '././payItem'; 2 | 3 | export class PayItems { 4 | 'payItems'?: PayItem; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "payItems", 11 | "baseName": "PayItems", 12 | "type": "PayItem" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return PayItems.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/payOutType.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * How the requested leave will be paid out, e.g. cashed out. 4 | */ 5 | export enum PayOutType { 6 | DEFAULT = 'DEFAULT', 7 | CASHEDOUT = 'CASHED_OUT' 8 | } 9 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/payRunStatus.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum PayRunStatus { 3 | DRAFT = 'DRAFT', 4 | POSTED = 'POSTED' 5 | } 6 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/payRuns.ts: -------------------------------------------------------------------------------- 1 | import { PayRun } from '././payRun'; 2 | 3 | export class PayRuns { 4 | 'payRuns'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "payRuns", 11 | "baseName": "PayRuns", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return PayRuns.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/paymentFrequencyType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum PaymentFrequencyType { 3 | WEEKLY = 'WEEKLY', 4 | MONTHLY = 'MONTHLY', 5 | FORTNIGHTLY = 'FORTNIGHTLY', 6 | QUARTERLY = 'QUARTERLY', 7 | TWICEMONTHLY = 'TWICEMONTHLY', 8 | FOURWEEKLY = 'FOURWEEKLY', 9 | YEARLY = 'YEARLY' 10 | } 11 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/payrollCalendars.ts: -------------------------------------------------------------------------------- 1 | import { PayrollCalendar } from '././payrollCalendar'; 2 | 3 | export class PayrollCalendars { 4 | 'payrollCalendars'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "payrollCalendars", 11 | "baseName": "PayrollCalendars", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return PayrollCalendars.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/payslipObject.ts: -------------------------------------------------------------------------------- 1 | import { Payslip } from '././payslip'; 2 | 3 | export class PayslipObject { 4 | 'payslip'?: Payslip; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "payslip", 11 | "baseName": "Payslip", 12 | "type": "Payslip" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return PayslipObject.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/payslips.ts: -------------------------------------------------------------------------------- 1 | import { Payslip } from '././payslip'; 2 | 3 | export class Payslips { 4 | 'payslips'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "payslips", 11 | "baseName": "Payslips", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Payslips.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/rateType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum RateType { 3 | FIXEDAMOUNT = 'FIXEDAMOUNT', 4 | MULTIPLE = 'MULTIPLE', 5 | RATEPERUNIT = 'RATEPERUNIT' 6 | } 7 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/reimbursementLines.ts: -------------------------------------------------------------------------------- 1 | import { ReimbursementLine } from '././reimbursementLine'; 2 | 3 | /** 4 | * The reimbursement type lines 5 | */ 6 | export class ReimbursementLines { 7 | 'reimbursementLines'?: Array; 8 | 9 | static discriminator: string | undefined = undefined; 10 | 11 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 12 | { 13 | "name": "reimbursementLines", 14 | "baseName": "ReimbursementLines", 15 | "type": "Array" 16 | } ]; 17 | 18 | static getAttributeTypeMap() { 19 | return ReimbursementLines.attributeTypeMap; 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/residencyStatus.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum ResidencyStatus { 3 | AUSTRALIANRESIDENT = 'AUSTRALIANRESIDENT', 4 | FOREIGNRESIDENT = 'FOREIGNRESIDENT', 5 | WORKINGHOLIDAYMAKER = 'WORKINGHOLIDAYMAKER' 6 | } 7 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/seniorMaritalStatus.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum SeniorMaritalStatus { 3 | MEMBEROFCOUPLE = 'MEMBEROFCOUPLE', 4 | MEMBEROFILLNESSSEPARATEDCOUPLE = 'MEMBEROFILLNESSSEPARATEDCOUPLE', 5 | SINGLE = 'SINGLE' 6 | } 7 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/settingsObject.ts: -------------------------------------------------------------------------------- 1 | import { Settings } from '././settings'; 2 | 3 | export class SettingsObject { 4 | 'settings'?: Settings; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "settings", 11 | "baseName": "Settings", 12 | "type": "Settings" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return SettingsObject.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/settingsTrackingCategoriesEmployeeGroups.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * The tracking category used for employees 4 | */ 5 | export class SettingsTrackingCategoriesEmployeeGroups { 6 | /** 7 | * The identifier for the tracking category 8 | */ 9 | 'trackingCategoryID'?: string; 10 | /** 11 | * Name of the tracking category 12 | */ 13 | 'trackingCategoryName'?: string; 14 | 15 | static discriminator: string | undefined = undefined; 16 | 17 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 18 | { 19 | "name": "trackingCategoryID", 20 | "baseName": "TrackingCategoryID", 21 | "type": "string" 22 | }, 23 | { 24 | "name": "trackingCategoryName", 25 | "baseName": "TrackingCategoryName", 26 | "type": "string" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SettingsTrackingCategoriesEmployeeGroups.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/settingsTrackingCategoriesTimesheetCategories.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * The tracking category used for timesheets 4 | */ 5 | export class SettingsTrackingCategoriesTimesheetCategories { 6 | /** 7 | * The identifier for the tracking category 8 | */ 9 | 'trackingCategoryID'?: string; 10 | /** 11 | * Name of the tracking category 12 | */ 13 | 'trackingCategoryName'?: string; 14 | 15 | static discriminator: string | undefined = undefined; 16 | 17 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 18 | { 19 | "name": "trackingCategoryID", 20 | "baseName": "TrackingCategoryID", 21 | "type": "string" 22 | }, 23 | { 24 | "name": "trackingCategoryName", 25 | "baseName": "TrackingCategoryName", 26 | "type": "string" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SettingsTrackingCategoriesTimesheetCategories.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/state.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * State abbreviation for employee home address 4 | */ 5 | export enum State { 6 | ACT = 'ACT', 7 | NSW = 'NSW', 8 | NT = 'NT', 9 | QLD = 'QLD', 10 | SA = 'SA', 11 | TAS = 'TAS', 12 | VIC = 'VIC', 13 | WA = 'WA' 14 | } 15 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/superFundProducts.ts: -------------------------------------------------------------------------------- 1 | import { SuperFundProduct } from '././superFundProduct'; 2 | 3 | export class SuperFundProducts { 4 | 'superFundProducts'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "superFundProducts", 11 | "baseName": "SuperFundProducts", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return SuperFundProducts.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/superFundType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum SuperFundType { 3 | REGULATED = 'REGULATED', 4 | SMSF = 'SMSF' 5 | } 6 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/superFunds.ts: -------------------------------------------------------------------------------- 1 | import { SuperFund } from '././superFund'; 2 | 3 | export class SuperFunds { 4 | 'superFunds'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "superFunds", 11 | "baseName": "SuperFunds", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return SuperFunds.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/superannuationCalculationType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum SuperannuationCalculationType { 3 | FIXEDAMOUNT = 'FIXEDAMOUNT', 4 | PERCENTAGEOFEARNINGS = 'PERCENTAGEOFEARNINGS', 5 | STATUTORY = 'STATUTORY' 6 | } 7 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/superannuationContributionType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum SuperannuationContributionType { 3 | SGC = 'SGC', 4 | SALARYSACRIFICE = 'SALARYSACRIFICE', 5 | EMPLOYERADDITIONAL = 'EMPLOYERADDITIONAL', 6 | EMPLOYEE = 'EMPLOYEE' 7 | } 8 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/tFNExemptionType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum TFNExemptionType { 3 | NOTQUOTED = 'NOTQUOTED', 4 | PENDING = 'PENDING', 5 | PENSIONER = 'PENSIONER', 6 | UNDER18 = 'UNDER18' 7 | } 8 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/taxScaleType.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum TaxScaleType { 3 | REGULAR = 'REGULAR', 4 | ACTORSARTISTSENTERTAINERS = 'ACTORSARTISTSENTERTAINERS', 5 | HORTICULTURISTORSHEARER = 'HORTICULTURISTORSHEARER', 6 | SENIORORPENSIONER = 'SENIORORPENSIONER', 7 | WORKINGHOLIDAYMAKER = 'WORKINGHOLIDAYMAKER', 8 | FOREIGN = 'FOREIGN' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/timesheetObject.ts: -------------------------------------------------------------------------------- 1 | import { Timesheet } from '././timesheet'; 2 | 3 | export class TimesheetObject { 4 | 'timesheet'?: Timesheet; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "timesheet", 11 | "baseName": "Timesheet", 12 | "type": "Timesheet" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return TimesheetObject.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/timesheetStatus.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum TimesheetStatus { 3 | DRAFT = 'DRAFT', 4 | PROCESSED = 'PROCESSED', 5 | APPROVED = 'APPROVED', 6 | REJECTED = 'REJECTED', 7 | REQUESTED = 'REQUESTED' 8 | } 9 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/timesheets.ts: -------------------------------------------------------------------------------- 1 | import { Timesheet } from '././timesheet'; 2 | 3 | export class Timesheets { 4 | 'timesheets'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "timesheets", 11 | "baseName": "Timesheets", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Timesheets.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/validationError.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ValidationError { 3 | /** 4 | * Validation error message 5 | */ 6 | 'message'?: string; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "message", 13 | "baseName": "Message", 14 | "type": "string" 15 | } ]; 16 | 17 | static getAttributeTypeMap() { 18 | return ValidationError.attributeTypeMap; 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /src/gen/model/payroll-au/workCondition.ts: -------------------------------------------------------------------------------- 1 | 2 | export enum WorkCondition { 3 | PROMOTIONAL = 'PROMOTIONAL', 4 | THREELESSPERFORMANCESPERWEEK = 'THREELESSPERFORMANCESPERWEEK', 5 | NONE = 'NONE' 6 | } 7 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/accounts.ts: -------------------------------------------------------------------------------- 1 | import { Account } from '././account'; 2 | 3 | export class Accounts { 4 | 'accounts'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "accounts", 11 | "baseName": "accounts", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Accounts.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/calendarType.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Calendar type of the pay run 4 | */ 5 | export enum CalendarType { 6 | Weekly = 'Weekly', 7 | Fortnightly = 'Fortnightly', 8 | FourWeekly = 'FourWeekly', 9 | Monthly = 'Monthly', 10 | Annual = 'Annual', 11 | Quarterly = 'Quarterly', 12 | TwiceMonthly = 'TwiceMonthly' 13 | } 14 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/deductionObject.ts: -------------------------------------------------------------------------------- 1 | import { Deduction } from '././deduction'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class DeductionObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'deduction'?: Deduction; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "deduction", 25 | "baseName": "deduction", 26 | "type": "Deduction" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return DeductionObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/deductions.ts: -------------------------------------------------------------------------------- 1 | import { Deduction } from '././deduction'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Deductions { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'deductions'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "deductions", 25 | "baseName": "deductions", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Deductions.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/earningsOrderObject.ts: -------------------------------------------------------------------------------- 1 | import { EarningsOrder } from '././earningsOrder'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EarningsOrderObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'statutoryDeduction'?: EarningsOrder; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "statutoryDeduction", 25 | "baseName": "statutoryDeduction", 26 | "type": "EarningsOrder" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EarningsOrderObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/earningsOrders.ts: -------------------------------------------------------------------------------- 1 | import { EarningsOrder } from '././earningsOrder'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EarningsOrders { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'statutoryDeductions'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "statutoryDeductions", 25 | "baseName": "statutoryDeductions", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EarningsOrders.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/earningsRateObject.ts: -------------------------------------------------------------------------------- 1 | import { EarningsRate } from '././earningsRate'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EarningsRateObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'earningsRate'?: EarningsRate; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "earningsRate", 25 | "baseName": "earningsRate", 26 | "type": "EarningsRate" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EarningsRateObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/earningsRates.ts: -------------------------------------------------------------------------------- 1 | import { EarningsRate } from '././earningsRate'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EarningsRates { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'earningsRates'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "earningsRates", 25 | "baseName": "earningsRates", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EarningsRates.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeeLeaveObject.ts: -------------------------------------------------------------------------------- 1 | import { EmployeeLeave } from '././employeeLeave'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeLeaveObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leave'?: EmployeeLeave; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leave", 25 | "baseName": "leave", 26 | "type": "EmployeeLeave" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeLeaveObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeeLeaveTypeObject.ts: -------------------------------------------------------------------------------- 1 | import { EmployeeLeaveType } from '././employeeLeaveType'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeLeaveTypeObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leaveType'?: EmployeeLeaveType; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leaveType", 25 | "baseName": "leaveType", 26 | "type": "EmployeeLeaveType" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeLeaveTypeObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeeLeaveTypes.ts: -------------------------------------------------------------------------------- 1 | import { EmployeeLeaveType } from '././employeeLeaveType'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeLeaveTypes { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leaveTypes'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leaveTypes", 25 | "baseName": "leaveTypes", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeLeaveTypes.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeeLeaves.ts: -------------------------------------------------------------------------------- 1 | import { EmployeeLeave } from '././employeeLeave'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeLeaves { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leave'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leave", 25 | "baseName": "leave", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeLeaves.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeeObject.ts: -------------------------------------------------------------------------------- 1 | import { Employee } from '././employee'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeObject { 6 | 'pagination'?: Pagination; 7 | 'employee'?: Employee; 8 | 'problem'?: Problem; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "employee", 20 | "baseName": "employee", 21 | "type": "Employee" 22 | }, 23 | { 24 | "name": "problem", 25 | "baseName": "problem", 26 | "type": "Problem" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeePayTemplate.ts: -------------------------------------------------------------------------------- 1 | import { EarningsTemplate } from '././earningsTemplate'; 2 | 3 | export class EmployeePayTemplate { 4 | /** 5 | * Unique identifier for the employee 6 | */ 7 | 'employeeID'?: string; 8 | 'earningTemplates'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "employeeID", 15 | "baseName": "employeeID", 16 | "type": "string" 17 | }, 18 | { 19 | "name": "earningTemplates", 20 | "baseName": "earningTemplates", 21 | "type": "Array" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return EmployeePayTemplate.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeeTaxObject.ts: -------------------------------------------------------------------------------- 1 | import { EmployeeTax } from '././employeeTax'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeTaxObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'employeeTax'?: EmployeeTax; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "employeeTax", 25 | "baseName": "employeeTax", 26 | "type": "EmployeeTax" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeTaxObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeeWorkingPattern.ts: -------------------------------------------------------------------------------- 1 | 2 | export class EmployeeWorkingPattern { 3 | /** 4 | * The Xero identifier for for Employee working pattern 5 | */ 6 | 'payeeWorkingPatternID': string; 7 | /** 8 | * The effective date of the corresponding salary and wages 9 | */ 10 | 'effectiveFrom': string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "payeeWorkingPatternID", 17 | "baseName": "payeeWorkingPatternID", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "effectiveFrom", 22 | "baseName": "effectiveFrom", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return EmployeeWorkingPattern.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employeeWorkingPatternWithWorkingWeeksRequest.ts: -------------------------------------------------------------------------------- 1 | import { WorkingWeek } from '././workingWeek'; 2 | 3 | export class EmployeeWorkingPatternWithWorkingWeeksRequest { 4 | /** 5 | * The effective date of the corresponding salary and wages 6 | */ 7 | 'effectiveFrom': string; 8 | 'workingWeeks': Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "effectiveFrom", 15 | "baseName": "effectiveFrom", 16 | "type": "string" 17 | }, 18 | { 19 | "name": "workingWeeks", 20 | "baseName": "workingWeeks", 21 | "type": "Array" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return EmployeeWorkingPatternWithWorkingWeeksRequest.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employees.ts: -------------------------------------------------------------------------------- 1 | import { Employee } from '././employee'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Employees { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'employees'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "employees", 25 | "baseName": "employees", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Employees.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/employmentObject.ts: -------------------------------------------------------------------------------- 1 | import { Employment } from '././employment'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmploymentObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'employment'?: Employment; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "employment", 25 | "baseName": "employment", 26 | "type": "Employment" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmploymentObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/grossEarningsHistory.ts: -------------------------------------------------------------------------------- 1 | 2 | export class GrossEarningsHistory { 3 | /** 4 | * Number of days the employee worked in the pay period (0 - 365) 5 | */ 6 | 'daysPaid'?: number; 7 | /** 8 | * Number of full weeks the employee didn\'t work in the pay period (0 - 52) 9 | */ 10 | 'unpaidWeeks'?: number; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "daysPaid", 17 | "baseName": "daysPaid", 18 | "type": "number" 19 | }, 20 | { 21 | "name": "unpaidWeeks", 22 | "baseName": "unpaidWeeks", 23 | "type": "number" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return GrossEarningsHistory.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/invalidField.ts: -------------------------------------------------------------------------------- 1 | 2 | export class InvalidField { 3 | /** 4 | * The name of the field that caused the error 5 | */ 6 | 'name'?: string; 7 | /** 8 | * The reason the error occurred 9 | */ 10 | 'reason'?: string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "name", 17 | "baseName": "name", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "reason", 22 | "baseName": "reason", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return InvalidField.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/leaveAccrualLine.ts: -------------------------------------------------------------------------------- 1 | 2 | export class LeaveAccrualLine { 3 | /** 4 | * Xero identifier for the Leave type 5 | */ 6 | 'leaveTypeID'?: string; 7 | /** 8 | * Leave accrual number of units 9 | */ 10 | 'numberOfUnits'?: number; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "leaveTypeID", 17 | "baseName": "leaveTypeID", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "numberOfUnits", 22 | "baseName": "numberOfUnits", 23 | "type": "number" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return LeaveAccrualLine.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/leavePeriods.ts: -------------------------------------------------------------------------------- 1 | import { LeavePeriod } from '././leavePeriod'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class LeavePeriods { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'periods'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "periods", 25 | "baseName": "periods", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return LeavePeriods.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/leaveTypeObject.ts: -------------------------------------------------------------------------------- 1 | import { LeaveType } from '././leaveType'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class LeaveTypeObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leaveType'?: LeaveType; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leaveType", 25 | "baseName": "leaveType", 26 | "type": "LeaveType" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return LeaveTypeObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/leaveTypes.ts: -------------------------------------------------------------------------------- 1 | import { LeaveType } from '././leaveType'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class LeaveTypes { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leaveTypes'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leaveTypes", 25 | "baseName": "leaveTypes", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return LeaveTypes.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/pagination.ts: -------------------------------------------------------------------------------- 1 | 2 | export class Pagination { 3 | 'page'?: number; 4 | 'pageSize'?: number; 5 | 'pageCount'?: number; 6 | 'itemCount'?: number; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "page", 13 | "baseName": "page", 14 | "type": "number" 15 | }, 16 | { 17 | "name": "pageSize", 18 | "baseName": "pageSize", 19 | "type": "number" 20 | }, 21 | { 22 | "name": "pageCount", 23 | "baseName": "pageCount", 24 | "type": "number" 25 | }, 26 | { 27 | "name": "itemCount", 28 | "baseName": "itemCount", 29 | "type": "number" 30 | } ]; 31 | 32 | static getAttributeTypeMap() { 33 | return Pagination.attributeTypeMap; 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/payRunCalendarObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PayRunCalendar } from '././payRunCalendar'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayRunCalendarObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'payRunCalendar'?: PayRunCalendar; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "payRunCalendar", 25 | "baseName": "payRunCalendar", 26 | "type": "PayRunCalendar" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayRunCalendarObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/payRunCalendars.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PayRunCalendar } from '././payRunCalendar'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayRunCalendars { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'payRunCalendars'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "payRunCalendars", 25 | "baseName": "payRunCalendars", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayRunCalendars.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/payRunObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PayRun } from '././payRun'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayRunObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'payRun'?: PayRun; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "payRun", 25 | "baseName": "payRun", 26 | "type": "PayRun" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayRunObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/payRuns.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PayRun } from '././payRun'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayRuns { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'payRuns'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "payRuns", 25 | "baseName": "payRuns", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayRuns.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/paySlipObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PaySlip } from '././paySlip'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PaySlipObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'paySlip'?: PaySlip; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "paySlip", 25 | "baseName": "paySlip", 26 | "type": "PaySlip" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PaySlipObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/paySlips.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PaySlip } from '././paySlip'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PaySlips { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'paySlips'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "paySlips", 25 | "baseName": "paySlips", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PaySlips.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/paymentMethodObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PaymentMethod } from '././paymentMethod'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PaymentMethodObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'paymentMethod'?: PaymentMethod; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "paymentMethod", 25 | "baseName": "paymentMethod", 26 | "type": "PaymentMethod" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PaymentMethodObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/reimbursementObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { Reimbursement } from '././reimbursement'; 4 | 5 | export class ReimbursementObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'reimbursement'?: Reimbursement; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "reimbursement", 25 | "baseName": "reimbursement", 26 | "type": "Reimbursement" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ReimbursementObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/reimbursements.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { Reimbursement } from '././reimbursement'; 4 | 5 | export class Reimbursements { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'reimbursements'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "reimbursements", 25 | "baseName": "reimbursements", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Reimbursements.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/salaryAndWageObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { SalaryAndWage } from '././salaryAndWage'; 4 | 5 | export class SalaryAndWageObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'salaryAndWages'?: SalaryAndWage; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "salaryAndWages", 25 | "baseName": "salaryAndWages", 26 | "type": "SalaryAndWage" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SalaryAndWageObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/salaryAndWages.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { SalaryAndWage } from '././salaryAndWage'; 4 | 5 | export class SalaryAndWages { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'salaryAndWages'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "salaryAndWages", 25 | "baseName": "salaryAndWages", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SalaryAndWages.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/settings.ts: -------------------------------------------------------------------------------- 1 | import { Accounts } from '././accounts'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Settings { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'settings'?: Accounts; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "settings", 25 | "baseName": "settings", 26 | "type": "Accounts" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Settings.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/statutoryDeductionCategory.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Statutory Deduction Category 4 | */ 5 | export enum StatutoryDeductionCategory { 6 | PriorityOrder = 'PriorityOrder', 7 | NonPriorityOrder = 'NonPriorityOrder', 8 | TableBased = 'TableBased', 9 | ChildSupport = 'ChildSupport', 10 | CourtFines = 'CourtFines', 11 | InlandRevenueArrears = 'InlandRevenueArrears', 12 | MsdRepayments = 'MsdRepayments', 13 | StudentLoan = 'StudentLoan', 14 | AdditionalStudentLoan = 'AdditionalStudentLoan', 15 | VoluntaryStudentLoan = 'VoluntaryStudentLoan', 16 | KiwiSaver = 'KiwiSaver' 17 | } 18 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/superannuationObject.ts: -------------------------------------------------------------------------------- 1 | import { Benefit } from '././benefit'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class SuperannuationObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'benefit'?: Benefit; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "benefit", 25 | "baseName": "benefit", 26 | "type": "Benefit" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SuperannuationObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/superannuations.ts: -------------------------------------------------------------------------------- 1 | import { Benefit } from '././benefit'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Superannuations { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'benefits'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "benefits", 25 | "baseName": "benefits", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Superannuations.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/taxCode.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Tax codes used for employee tax 4 | */ 5 | export enum TaxCode { 6 | ND = 'ND', 7 | M = 'M', 8 | ME = 'ME', 9 | MSL = 'MSL', 10 | MESL = 'MESL', 11 | SB = 'SB', 12 | S = 'S', 13 | SH = 'SH', 14 | ST = 'ST', 15 | SBSL = 'SBSL', 16 | SSL = 'SSL', 17 | SHSL = 'SHSL', 18 | STSL = 'STSL', 19 | WT = 'WT', 20 | CAE = 'CAE', 21 | EDW = 'EDW', 22 | NSW = 'NSW', 23 | STC = 'STC', 24 | STCSL = 'STCSL' 25 | } 26 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/timesheetLineObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { TimesheetLine } from '././timesheetLine'; 4 | 5 | export class TimesheetLineObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'timesheetLine'?: TimesheetLine; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "timesheetLine", 25 | "baseName": "timesheetLine", 26 | "type": "TimesheetLine" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return TimesheetLineObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/timesheetObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { Timesheet } from '././timesheet'; 4 | 5 | export class TimesheetObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'timesheet'?: Timesheet; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "timesheet", 25 | "baseName": "timesheet", 26 | "type": "Timesheet" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return TimesheetObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/timesheets.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { Timesheet } from '././timesheet'; 4 | 5 | export class Timesheets { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'timesheets'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "timesheets", 25 | "baseName": "timesheets", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Timesheets.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-nz/trackingCategory.ts: -------------------------------------------------------------------------------- 1 | 2 | export class TrackingCategory { 3 | /** 4 | * The Xero identifier for Employee groups tracking category. 5 | */ 6 | 'employeeGroupsTrackingCategoryID'?: string; 7 | /** 8 | * The Xero identifier for Timesheet tracking category. 9 | */ 10 | 'timesheetTrackingCategoryID'?: string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "employeeGroupsTrackingCategoryID", 17 | "baseName": "employeeGroupsTrackingCategoryID", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "timesheetTrackingCategoryID", 22 | "baseName": "timesheetTrackingCategoryID", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return TrackingCategory.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/accounts.ts: -------------------------------------------------------------------------------- 1 | import { Account } from '././account'; 2 | 3 | export class Accounts { 4 | 'accounts'?: Array; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "accounts", 11 | "baseName": "accounts", 12 | "type": "Array" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return Accounts.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/benefitObject.ts: -------------------------------------------------------------------------------- 1 | import { Benefit } from '././benefit'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class BenefitObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'benefit'?: Benefit; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "benefit", 25 | "baseName": "benefit", 26 | "type": "Benefit" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return BenefitObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/benefits.ts: -------------------------------------------------------------------------------- 1 | import { Benefit } from '././benefit'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Benefits { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'benefits'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "benefits", 25 | "baseName": "benefits", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Benefits.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/courtOrderLine.ts: -------------------------------------------------------------------------------- 1 | 2 | export class CourtOrderLine { 3 | /** 4 | * Xero identifier for payroll court order type 5 | */ 6 | 'courtOrderTypeID'?: string; 7 | /** 8 | * Amount 9 | */ 10 | 'amount'?: number; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "courtOrderTypeID", 17 | "baseName": "courtOrderTypeID", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "amount", 22 | "baseName": "amount", 23 | "type": "number" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return CourtOrderLine.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/deductionObject.ts: -------------------------------------------------------------------------------- 1 | import { Deduction } from '././deduction'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class DeductionObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'deduction'?: Deduction; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "deduction", 25 | "baseName": "deduction", 26 | "type": "Deduction" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return DeductionObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/deductions.ts: -------------------------------------------------------------------------------- 1 | import { Deduction } from '././deduction'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Deductions { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'deductions'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "deductions", 25 | "baseName": "deductions", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Deductions.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/earningsOrderObject.ts: -------------------------------------------------------------------------------- 1 | import { EarningsOrder } from '././earningsOrder'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EarningsOrderObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'statutoryDeduction'?: EarningsOrder; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "statutoryDeduction", 25 | "baseName": "statutoryDeduction", 26 | "type": "EarningsOrder" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EarningsOrderObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/earningsOrders.ts: -------------------------------------------------------------------------------- 1 | import { EarningsOrder } from '././earningsOrder'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EarningsOrders { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'statutoryDeductions'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "statutoryDeductions", 25 | "baseName": "statutoryDeductions", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EarningsOrders.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/earningsRateObject.ts: -------------------------------------------------------------------------------- 1 | import { EarningsRate } from '././earningsRate'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EarningsRateObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'earningsRate'?: EarningsRate; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "earningsRate", 25 | "baseName": "earningsRate", 26 | "type": "EarningsRate" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EarningsRateObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/earningsRates.ts: -------------------------------------------------------------------------------- 1 | import { EarningsRate } from '././earningsRate'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EarningsRates { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'earningsRates'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "earningsRates", 25 | "baseName": "earningsRates", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EarningsRates.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/employeeLeaveObject.ts: -------------------------------------------------------------------------------- 1 | import { EmployeeLeave } from '././employeeLeave'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeLeaveObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leave'?: EmployeeLeave; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leave", 25 | "baseName": "leave", 26 | "type": "EmployeeLeave" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeLeaveObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/employeeLeaves.ts: -------------------------------------------------------------------------------- 1 | import { EmployeeLeave } from '././employeeLeave'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeLeaves { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leave'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leave", 25 | "baseName": "leave", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeLeaves.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/employeeObject.ts: -------------------------------------------------------------------------------- 1 | import { Employee } from '././employee'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeObject { 6 | 'pagination'?: Pagination; 7 | 'employee'?: Employee; 8 | 'problem'?: Problem; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "employee", 20 | "baseName": "employee", 21 | "type": "Employee" 22 | }, 23 | { 24 | "name": "problem", 25 | "baseName": "problem", 26 | "type": "Problem" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/employeePayTemplate.ts: -------------------------------------------------------------------------------- 1 | import { EarningsTemplate } from '././earningsTemplate'; 2 | 3 | export class EmployeePayTemplate { 4 | /** 5 | * Unique identifier for the employee 6 | */ 7 | 'employeeID'?: string; 8 | 'earningTemplates'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "employeeID", 15 | "baseName": "employeeID", 16 | "type": "string" 17 | }, 18 | { 19 | "name": "earningTemplates", 20 | "baseName": "earningTemplates", 21 | "type": "Array" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return EmployeePayTemplate.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/employeeTaxObject.ts: -------------------------------------------------------------------------------- 1 | import { EmployeeTax } from '././employeeTax'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmployeeTaxObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'employeeTax'?: EmployeeTax; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "employeeTax", 25 | "baseName": "employeeTax", 26 | "type": "EmployeeTax" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmployeeTaxObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/employees.ts: -------------------------------------------------------------------------------- 1 | import { Employee } from '././employee'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Employees { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'employees'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "employees", 25 | "baseName": "employees", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Employees.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/employmentObject.ts: -------------------------------------------------------------------------------- 1 | import { Employment } from '././employment'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class EmploymentObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'employment'?: Employment; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "employment", 25 | "baseName": "employment", 26 | "type": "Employment" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EmploymentObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/invalidField.ts: -------------------------------------------------------------------------------- 1 | 2 | export class InvalidField { 3 | /** 4 | * The name of the field that caused the error 5 | */ 6 | 'name'?: string; 7 | /** 8 | * The reason the error occurred 9 | */ 10 | 'reason'?: string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "name", 17 | "baseName": "name", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "reason", 22 | "baseName": "reason", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return InvalidField.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/leaveAccrualLine.ts: -------------------------------------------------------------------------------- 1 | 2 | export class LeaveAccrualLine { 3 | /** 4 | * Xero identifier for the Leave type 5 | */ 6 | 'leaveTypeID'?: string; 7 | /** 8 | * Leave accrual number of units 9 | */ 10 | 'numberOfUnits'?: number; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "leaveTypeID", 17 | "baseName": "leaveTypeID", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "numberOfUnits", 22 | "baseName": "numberOfUnits", 23 | "type": "number" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return LeaveAccrualLine.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/leavePeriods.ts: -------------------------------------------------------------------------------- 1 | import { LeavePeriod } from '././leavePeriod'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class LeavePeriods { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'periods'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "periods", 25 | "baseName": "periods", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return LeavePeriods.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/leaveTypeObject.ts: -------------------------------------------------------------------------------- 1 | import { LeaveType } from '././leaveType'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class LeaveTypeObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leaveType'?: LeaveType; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leaveType", 25 | "baseName": "leaveType", 26 | "type": "LeaveType" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return LeaveTypeObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/leaveTypes.ts: -------------------------------------------------------------------------------- 1 | import { LeaveType } from '././leaveType'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class LeaveTypes { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'leaveTypes'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "leaveTypes", 25 | "baseName": "leaveTypes", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return LeaveTypes.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/nICategoryLetter.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * The employee\'s NI Category letter. 4 | */ 5 | export enum NICategoryLetter { 6 | A = 'A', 7 | B = 'B', 8 | C = 'C', 9 | F = 'F', 10 | H = 'H', 11 | I = 'I', 12 | J = 'J', 13 | L = 'L', 14 | M = 'M', 15 | S = 'S', 16 | V = 'V', 17 | X = 'X', 18 | Z = 'Z', 19 | D = 'D', 20 | E = 'E', 21 | K = 'K', 22 | N = 'N' 23 | } 24 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/nICategoryOneOf.ts: -------------------------------------------------------------------------------- 1 | 2 | export class NICategoryOneOf { 3 | 'niCategory'?: NICategoryOneOf.NiCategoryEnum; 4 | 5 | static discriminator: string | undefined = undefined; 6 | 7 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 8 | { 9 | "name": "niCategory", 10 | "baseName": "niCategory", 11 | "type": "NICategoryOneOf.NiCategoryEnum" 12 | } ]; 13 | 14 | static getAttributeTypeMap() { 15 | return NICategoryOneOf.attributeTypeMap; 16 | } 17 | } 18 | 19 | export namespace NICategoryOneOf { 20 | export enum NiCategoryEnum { 21 | F = 'F', 22 | I = 'I', 23 | L = 'L', 24 | S = 'S', 25 | N = 'N', 26 | E = 'E', 27 | D = 'D', 28 | K = 'K' 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/nICategoryOneOf1.ts: -------------------------------------------------------------------------------- 1 | 2 | export class NICategoryOneOf1 { 3 | 'niCategory'?: NICategoryOneOf1.NiCategoryEnum; 4 | 5 | static discriminator: string | undefined = undefined; 6 | 7 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 8 | { 9 | "name": "niCategory", 10 | "baseName": "niCategory", 11 | "type": "NICategoryOneOf1.NiCategoryEnum" 12 | } ]; 13 | 14 | static getAttributeTypeMap() { 15 | return NICategoryOneOf1.attributeTypeMap; 16 | } 17 | } 18 | 19 | export namespace NICategoryOneOf1 { 20 | export enum NiCategoryEnum { 21 | V = 'V' 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/pagination.ts: -------------------------------------------------------------------------------- 1 | 2 | export class Pagination { 3 | 'page'?: number; 4 | 'pageSize'?: number; 5 | 'pageCount'?: number; 6 | 'itemCount'?: number; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "page", 13 | "baseName": "page", 14 | "type": "number" 15 | }, 16 | { 17 | "name": "pageSize", 18 | "baseName": "pageSize", 19 | "type": "number" 20 | }, 21 | { 22 | "name": "pageCount", 23 | "baseName": "pageCount", 24 | "type": "number" 25 | }, 26 | { 27 | "name": "itemCount", 28 | "baseName": "itemCount", 29 | "type": "number" 30 | } ]; 31 | 32 | static getAttributeTypeMap() { 33 | return Pagination.attributeTypeMap; 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/payRunCalendarObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PayRunCalendar } from '././payRunCalendar'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayRunCalendarObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'payRunCalendar'?: PayRunCalendar; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "payRunCalendar", 25 | "baseName": "payRunCalendar", 26 | "type": "PayRunCalendar" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayRunCalendarObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/payRunCalendars.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PayRunCalendar } from '././payRunCalendar'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayRunCalendars { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'payRunCalendars'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "payRunCalendars", 25 | "baseName": "payRunCalendars", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayRunCalendars.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/payRunObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PayRun } from '././payRun'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayRunObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'payRun'?: PayRun; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "payRun", 25 | "baseName": "payRun", 26 | "type": "PayRun" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayRunObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/payRuns.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PayRun } from '././payRun'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayRuns { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'payRuns'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "payRuns", 25 | "baseName": "payRuns", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayRuns.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/paymentMethodObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { PaymentMethod } from '././paymentMethod'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PaymentMethodObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'paymentMethod'?: PaymentMethod; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "paymentMethod", 25 | "baseName": "paymentMethod", 26 | "type": "PaymentMethod" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PaymentMethodObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/payslipObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Payslip } from '././payslip'; 3 | import { Problem } from '././problem'; 4 | 5 | export class PayslipObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'paySlip'?: Payslip; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "paySlip", 25 | "baseName": "paySlip", 26 | "type": "Payslip" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PayslipObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/payslips.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Payslip } from '././payslip'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Payslips { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'paySlips'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "paySlips", 25 | "baseName": "paySlips", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Payslips.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/reimbursementObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { Reimbursement } from '././reimbursement'; 4 | 5 | export class ReimbursementObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'reimbursement'?: Reimbursement; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "reimbursement", 25 | "baseName": "reimbursement", 26 | "type": "Reimbursement" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ReimbursementObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/reimbursements.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { Reimbursement } from '././reimbursement'; 4 | 5 | export class Reimbursements { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'reimbursements'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "reimbursements", 25 | "baseName": "reimbursements", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Reimbursements.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/salaryAndWageObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { SalaryAndWage } from '././salaryAndWage'; 4 | 5 | export class SalaryAndWageObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'salaryAndWages'?: SalaryAndWage; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "salaryAndWages", 25 | "baseName": "salaryAndWages", 26 | "type": "SalaryAndWage" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SalaryAndWageObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/salaryAndWages.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { SalaryAndWage } from '././salaryAndWage'; 4 | 5 | export class SalaryAndWages { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'salaryAndWages'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "salaryAndWages", 25 | "baseName": "salaryAndWages", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SalaryAndWages.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/settings.ts: -------------------------------------------------------------------------------- 1 | import { Accounts } from '././accounts'; 2 | import { Pagination } from '././pagination'; 3 | import { Problem } from '././problem'; 4 | 5 | export class Settings { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'settings'?: Accounts; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "settings", 25 | "baseName": "settings", 26 | "type": "Accounts" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Settings.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/statutoryDeductionCategory.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Statutory Deduction Category 4 | */ 5 | export enum StatutoryDeductionCategory { 6 | AdditionalStudentLoan = 'AdditionalStudentLoan', 7 | ChildSupport = 'ChildSupport', 8 | CourtFines = 'CourtFines', 9 | Creditor = 'Creditor', 10 | FederalLevy = 'FederalLevy', 11 | InlandRevenueArrears = 'InlandRevenueArrears', 12 | KiwiSaver = 'KiwiSaver', 13 | MsdRepayments = 'MsdRepayments', 14 | NonPriorityOrder = 'NonPriorityOrder', 15 | PriorityOrder = 'PriorityOrder', 16 | TableBased = 'TableBased', 17 | StudentLoan = 'StudentLoan', 18 | VoluntaryStudentLoan = 'VoluntaryStudentLoan', 19 | USChildSupport = 'USChildSupport' 20 | } 21 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/timesheetLineObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { TimesheetLine } from '././timesheetLine'; 4 | 5 | export class TimesheetLineObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'timesheetLine'?: TimesheetLine; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "timesheetLine", 25 | "baseName": "timesheetLine", 26 | "type": "TimesheetLine" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return TimesheetLineObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/timesheetObject.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { Timesheet } from '././timesheet'; 4 | 5 | export class TimesheetObject { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'timesheet'?: Timesheet; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "timesheet", 25 | "baseName": "timesheet", 26 | "type": "Timesheet" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return TimesheetObject.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/timesheets.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Problem } from '././problem'; 3 | import { Timesheet } from '././timesheet'; 4 | 5 | export class Timesheets { 6 | 'pagination'?: Pagination; 7 | 'problem'?: Problem; 8 | 'timesheets'?: Array; 9 | 10 | static discriminator: string | undefined = undefined; 11 | 12 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 13 | { 14 | "name": "pagination", 15 | "baseName": "pagination", 16 | "type": "Pagination" 17 | }, 18 | { 19 | "name": "problem", 20 | "baseName": "problem", 21 | "type": "Problem" 22 | }, 23 | { 24 | "name": "timesheets", 25 | "baseName": "timesheets", 26 | "type": "Array" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Timesheets.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/gen/model/payroll-uk/trackingCategory.ts: -------------------------------------------------------------------------------- 1 | 2 | export class TrackingCategory { 3 | /** 4 | * The Xero identifier for Employee groups tracking category. 5 | */ 6 | 'employeeGroupsTrackingCategoryID'?: string; 7 | /** 8 | * The Xero identifier for Timesheet tracking category. 9 | */ 10 | 'timesheetTrackingCategoryID'?: string; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "employeeGroupsTrackingCategoryID", 17 | "baseName": "employeeGroupsTrackingCategoryID", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "timesheetTrackingCategoryID", 22 | "baseName": "timesheetTrackingCategoryID", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return TrackingCategory.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/projects/amount.ts: -------------------------------------------------------------------------------- 1 | import { CurrencyCode } from '././currencyCode'; 2 | 3 | export class Amount { 4 | 'currency'?: CurrencyCode; 5 | 'value'?: number; 6 | 7 | static discriminator: string | undefined = undefined; 8 | 9 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 10 | { 11 | "name": "currency", 12 | "baseName": "currency", 13 | "type": "CurrencyCode" 14 | }, 15 | { 16 | "name": "value", 17 | "baseName": "value", 18 | "type": "number" 19 | } ]; 20 | 21 | static getAttributeTypeMap() { 22 | return Amount.attributeTypeMap; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/gen/model/projects/chargeType.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Can be `TIME`, `FIXED` or `NON_CHARGEABLE`, defines how the task will be charged. Use `TIME` when you want to charge per hour and `FIXED` to charge as a fixed amount. If the task will not be charged use `NON_CHARGEABLE`. 4 | */ 5 | export enum ChargeType { 6 | TIME = 'TIME', 7 | FIXED = 'FIXED', 8 | NONCHARGEABLE = 'NON_CHARGEABLE' 9 | } 10 | -------------------------------------------------------------------------------- /src/gen/model/projects/modelError.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ModelError { 3 | /** 4 | * Exception message 5 | */ 6 | 'message'?: string; 7 | /** 8 | * Array of Elements of validation Errors 9 | */ 10 | 'modelState'?: object; 11 | 12 | static discriminator: string | undefined = undefined; 13 | 14 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 15 | { 16 | "name": "message", 17 | "baseName": "message", 18 | "type": "string" 19 | }, 20 | { 21 | "name": "modelState", 22 | "baseName": "modelState", 23 | "type": "object" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return ModelError.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/gen/model/projects/projectPatch.ts: -------------------------------------------------------------------------------- 1 | import { ProjectStatus } from '././projectStatus'; 2 | 3 | export class ProjectPatch { 4 | 'status': ProjectStatus; 5 | 6 | static discriminator: string | undefined = undefined; 7 | 8 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 9 | { 10 | "name": "status", 11 | "baseName": "status", 12 | "type": "ProjectStatus" 13 | } ]; 14 | 15 | static getAttributeTypeMap() { 16 | return ProjectPatch.attributeTypeMap; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/gen/model/projects/projectStatus.ts: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Status for project 4 | */ 5 | export enum ProjectStatus { 6 | INPROGRESS = 'INPROGRESS', 7 | CLOSED = 'CLOSED' 8 | } 9 | -------------------------------------------------------------------------------- /src/gen/model/projects/projectUser.ts: -------------------------------------------------------------------------------- 1 | 2 | export class ProjectUser { 3 | /** 4 | * Identifier of the user of the project. 5 | */ 6 | 'userId'?: string; 7 | /** 8 | * Full name of the user. 9 | */ 10 | 'name'?: string; 11 | /** 12 | * Email address of the user. 13 | */ 14 | 'email'?: string; 15 | 16 | static discriminator: string | undefined = undefined; 17 | 18 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 19 | { 20 | "name": "userId", 21 | "baseName": "userId", 22 | "type": "string" 23 | }, 24 | { 25 | "name": "name", 26 | "baseName": "name", 27 | "type": "string" 28 | }, 29 | { 30 | "name": "email", 31 | "baseName": "email", 32 | "type": "string" 33 | } ]; 34 | 35 | static getAttributeTypeMap() { 36 | return ProjectUser.attributeTypeMap; 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /src/gen/model/projects/projectUsers.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { ProjectUser } from '././projectUser'; 3 | 4 | export class ProjectUsers { 5 | 'pagination'?: Pagination; 6 | 'items'?: Array; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "pagination", 13 | "baseName": "pagination", 14 | "type": "Pagination" 15 | }, 16 | { 17 | "name": "items", 18 | "baseName": "items", 19 | "type": "Array" 20 | } ]; 21 | 22 | static getAttributeTypeMap() { 23 | return ProjectUsers.attributeTypeMap; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/gen/model/projects/projects.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Project } from '././project'; 3 | 4 | export class Projects { 5 | 'pagination'?: Pagination; 6 | 'items'?: Array; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "pagination", 13 | "baseName": "pagination", 14 | "type": "Pagination" 15 | }, 16 | { 17 | "name": "items", 18 | "baseName": "items", 19 | "type": "Array" 20 | } ]; 21 | 22 | static getAttributeTypeMap() { 23 | return Projects.attributeTypeMap; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/gen/model/projects/tasks.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { Task } from '././task'; 3 | 4 | export class Tasks { 5 | 'pagination'?: Pagination; 6 | 'items'?: Array; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "pagination", 13 | "baseName": "pagination", 14 | "type": "Pagination" 15 | }, 16 | { 17 | "name": "items", 18 | "baseName": "items", 19 | "type": "Array" 20 | } ]; 21 | 22 | static getAttributeTypeMap() { 23 | return Tasks.attributeTypeMap; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/gen/model/projects/timeEntries.ts: -------------------------------------------------------------------------------- 1 | import { Pagination } from '././pagination'; 2 | import { TimeEntry } from '././timeEntry'; 3 | 4 | export class TimeEntries { 5 | 'pagination'?: Pagination; 6 | 'items'?: Array; 7 | 8 | static discriminator: string | undefined = undefined; 9 | 10 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 11 | { 12 | "name": "pagination", 13 | "baseName": "pagination", 14 | "type": "Pagination" 15 | }, 16 | { 17 | "name": "items", 18 | "baseName": "items", 19 | "type": "Array" 20 | } ]; 21 | 22 | static getAttributeTypeMap() { 23 | return TimeEntries.attributeTypeMap; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './gen/api/apis'; 2 | export * from './gen/model/accounting/models'; 3 | export * from './XeroClient'; -------------------------------------------------------------------------------- /src/test/mocks/connectionsResponse.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": "1234", 4 | "tenantId": "1234", 5 | "tenantType": "ORGANISATION", 6 | "tenantName": "Demo Company (US)", 7 | "createdDateUtc": "2020-01-08T19:50:42.8073030", 8 | "updatedDateUtc": "2020-01-08T19:50:42.8099500" 9 | }, 10 | { 11 | "id": "1234", 12 | "tenantId": "1234", 13 | "tenantType": "ORGANISATION", 14 | "tenantName": "Demo Company (NZ)", 15 | "createdDateUtc": "2020-01-08T19:50:42.8073030", 16 | "updatedDateUtc": "2020-01-08T19:50:42.8099500" 17 | } 18 | ] -------------------------------------------------------------------------------- /src/test/mocks/refreshedTokenSet.json: -------------------------------------------------------------------------------- 1 | { 2 | "id_token": "eyJhxxxx.yyy", 3 | "access_token": "eyJxxx.yyy.zzz", 4 | "expires_at": 1614644381, 5 | "token_type": "Bearer", 6 | "refresh_token": "xxxyyyyzzz", 7 | "scope": "openid profile email accounting.settings accounting.reports.read accounting.journals.read accounting.contacts accounting.attachments accounting.transactions offline_access" 8 | } -------------------------------------------------------------------------------- /src/test/mocks/tokenSet.json: -------------------------------------------------------------------------------- 1 | { 2 | "id_token": "eyJhxxxx.yyy", 3 | "access_token": "eyJxxx.yyy.zzz", 4 | "expires_at": 1231231234, 5 | "token_type": "Bearer", 6 | "refresh_token": "xxxyyyyzzz", 7 | "scope": "openid profile email accounting.settings accounting.reports.read accounting.journals.read accounting.contacts accounting.attachments accounting.transactions offline_access", 8 | "session_state": "xxx.yyy" 9 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "esModuleInterop": true, 5 | "target": "es6", 6 | "moduleResolution": "node", 7 | "sourceMap": true, 8 | "outDir": "dist", 9 | "rootDir": "./src", 10 | "declaration": true, 11 | "resolveJsonModule": true 12 | }, 13 | "lib": [ 14 | "es2015" 15 | ], 16 | "exclude": [ 17 | "node_modules", 18 | "dist", 19 | "src/test/" 20 | ] 21 | } --------------------------------------------------------------------------------