├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── actions │ └── notify-slack │ │ └── action.yml └── workflows │ ├── build-lint-test.yml │ ├── check-publish.yml │ ├── jira_create_issue.yml │ ├── jira_update_issue_closed.yml │ └── jira_update_issue_reopen.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── composer.json ├── docs └── v2 │ ├── accounting │ └── index.html │ ├── appstore │ └── index.html │ ├── assets │ └── index.html │ ├── files │ └── index.html │ ├── finance │ └── index.html │ ├── payroll_au │ └── index.html │ ├── payroll_nz │ └── index.html │ ├── payroll_uk │ └── index.html │ └── projects │ └── index.html ├── git_push.sh ├── lib ├── AccountingObjectSerializer.php ├── Api │ ├── AccountingApi.php │ ├── AppStoreApi.php │ ├── AssetApi.php │ ├── FilesApi.php │ ├── FinanceApi.php │ ├── IdentityApi.php │ ├── PayrollAuApi.php │ ├── PayrollNzApi.php │ ├── PayrollUkApi.php │ └── ProjectApi.php ├── ApiException.php ├── AppStoreObjectSerializer.php ├── AssetObjectSerializer.php ├── Configuration.php ├── FileObjectSerializer.php ├── FinanceObjectSerializer.php ├── HeaderSelector.php ├── IdentityObjectSerializer.php ├── JWTClaims.php ├── Models │ ├── Accounting │ │ ├── Account.php │ │ ├── AccountType.php │ │ ├── Accounts.php │ │ ├── AccountsPayable.php │ │ ├── AccountsReceivable.php │ │ ├── Action.php │ │ ├── Actions.php │ │ ├── Address.php │ │ ├── AddressForOrganisation.php │ │ ├── Allocation.php │ │ ├── Allocations.php │ │ ├── Attachment.php │ │ ├── Attachments.php │ │ ├── BalanceDetails.php │ │ ├── Balances.php │ │ ├── BankTransaction.php │ │ ├── BankTransactions.php │ │ ├── BankTransfer.php │ │ ├── BankTransfers.php │ │ ├── BatchPayment.php │ │ ├── BatchPaymentDelete.php │ │ ├── BatchPaymentDeleteByUrlParam.php │ │ ├── BatchPaymentDetails.php │ │ ├── BatchPayments.php │ │ ├── Bill.php │ │ ├── BrandingTheme.php │ │ ├── BrandingThemes.php │ │ ├── Budget.php │ │ ├── BudgetBalance.php │ │ ├── BudgetLine.php │ │ ├── BudgetLines.php │ │ ├── Budgets.php │ │ ├── CISOrgSetting.php │ │ ├── CISOrgSettings.php │ │ ├── CISSetting.php │ │ ├── CISSettings.php │ │ ├── Contact.php │ │ ├── ContactGroup.php │ │ ├── ContactGroups.php │ │ ├── ContactPerson.php │ │ ├── Contacts.php │ │ ├── ConversionBalances.php │ │ ├── ConversionDate.php │ │ ├── CountryCode.php │ │ ├── CreditNote.php │ │ ├── CreditNotes.php │ │ ├── Currencies.php │ │ ├── Currency.php │ │ ├── CurrencyCode.php │ │ ├── Element.php │ │ ├── Employee.php │ │ ├── Employees.php │ │ ├── Error.php │ │ ├── ExpenseClaim.php │ │ ├── ExpenseClaims.php │ │ ├── ExternalLink.php │ │ ├── GetBankTransactionsResponse.php │ │ ├── GetContactsResponse.php │ │ ├── GetCreditNotesResponse.php │ │ ├── GetInvoicesResponse.php │ │ ├── GetManualJournalsResponse.php │ │ ├── GetOverpaymentsResponse.php │ │ ├── GetPaymentsResponse.php │ │ ├── GetPrepaymentsResponse.php │ │ ├── GetPurchaseOrdersResponse.php │ │ ├── HistoryRecord.php │ │ ├── HistoryRecords.php │ │ ├── ImportSummary.php │ │ ├── ImportSummaryAccounts.php │ │ ├── ImportSummaryObject.php │ │ ├── ImportSummaryOrganisation.php │ │ ├── Invoice.php │ │ ├── InvoiceAddress.php │ │ ├── InvoiceReminder.php │ │ ├── InvoiceReminders.php │ │ ├── Invoices.php │ │ ├── Item.php │ │ ├── Items.php │ │ ├── Journal.php │ │ ├── JournalLine.php │ │ ├── Journals.php │ │ ├── LineAmountTypes.php │ │ ├── LineItem.php │ │ ├── LineItemItem.php │ │ ├── LineItemTracking.php │ │ ├── LinkedTransaction.php │ │ ├── LinkedTransactions.php │ │ ├── ManualJournal.php │ │ ├── ManualJournalLine.php │ │ ├── ManualJournals.php │ │ ├── ModelInterface.php │ │ ├── OnlineInvoice.php │ │ ├── OnlineInvoices.php │ │ ├── Organisation.php │ │ ├── Organisations.php │ │ ├── Overpayment.php │ │ ├── Overpayments.php │ │ ├── PageInfo.php │ │ ├── Pagination.php │ │ ├── Payment.php │ │ ├── PaymentDelete.php │ │ ├── PaymentService.php │ │ ├── PaymentServices.php │ │ ├── PaymentTerm.php │ │ ├── PaymentTermType.php │ │ ├── Payments.php │ │ ├── Phone.php │ │ ├── Prepayment.php │ │ ├── Prepayments.php │ │ ├── Purchase.php │ │ ├── PurchaseOrder.php │ │ ├── PurchaseOrders.php │ │ ├── Quote.php │ │ ├── QuoteLineAmountTypes.php │ │ ├── QuoteStatusCodes.php │ │ ├── Quotes.php │ │ ├── Receipt.php │ │ ├── Receipts.php │ │ ├── RepeatingInvoice.php │ │ ├── RepeatingInvoices.php │ │ ├── Report.php │ │ ├── ReportAttribute.php │ │ ├── ReportCell.php │ │ ├── ReportFields.php │ │ ├── ReportRow.php │ │ ├── ReportRows.php │ │ ├── ReportWithRow.php │ │ ├── ReportWithRows.php │ │ ├── Reports.php │ │ ├── RequestEmpty.php │ │ ├── RowType.php │ │ ├── SalesTrackingCategory.php │ │ ├── Schedule.php │ │ ├── Setup.php │ │ ├── SetupBalanceDetails.php │ │ ├── SetupConversionBalances.php │ │ ├── SetupConversionDate.php │ │ ├── TaxBreakdownComponent.php │ │ ├── TaxComponent.php │ │ ├── TaxRate.php │ │ ├── TaxRates.php │ │ ├── TaxType.php │ │ ├── TenNinetyNineContact.php │ │ ├── TenNinteyNineContact.php │ │ ├── TimeZone.php │ │ ├── TrackingCategories.php │ │ ├── TrackingCategory.php │ │ ├── TrackingOption.php │ │ ├── TrackingOptions.php │ │ ├── User.php │ │ ├── Users.php │ │ └── ValidationError.php │ ├── AppStore │ │ ├── CreateUsageRecord.php │ │ ├── ModelInterface.php │ │ ├── Plan.php │ │ ├── Price.php │ │ ├── ProblemDetails.php │ │ ├── Product.php │ │ ├── Subscription.php │ │ ├── SubscriptionItem.php │ │ ├── UpdateUsageRecord.php │ │ ├── UsageRecord.php │ │ └── UsageRecordsList.php │ ├── Asset │ │ ├── Asset.php │ │ ├── AssetStatus.php │ │ ├── AssetStatusQueryParam.php │ │ ├── AssetType.php │ │ ├── Assets.php │ │ ├── BookDepreciationDetail.php │ │ ├── BookDepreciationSetting.php │ │ ├── Error.php │ │ ├── FieldValidationErrorsElement.php │ │ ├── ModelInterface.php │ │ ├── Pagination.php │ │ ├── ResourceValidationErrorsElement.php │ │ └── Setting.php │ ├── File │ │ ├── Association.php │ │ ├── FileObject.php │ │ ├── FileResponse204.php │ │ ├── Files.php │ │ ├── Folder.php │ │ ├── Folders.php │ │ ├── InlineObject.php │ │ ├── ModelInterface.php │ │ ├── ObjectGroup.php │ │ ├── ObjectType.php │ │ ├── UploadObject.php │ │ └── User.php │ ├── Finance │ │ ├── AccountUsage.php │ │ ├── AccountUsageResponse.php │ │ ├── BalanceSheetAccountDetail.php │ │ ├── BalanceSheetAccountGroup.php │ │ ├── BalanceSheetAccountType.php │ │ ├── BalanceSheetResponse.php │ │ ├── BankStatementAccountingResponse.php │ │ ├── BankStatementResponse.php │ │ ├── BankTransactionResponse.php │ │ ├── CashAccountResponse.php │ │ ├── CashBalance.php │ │ ├── CashValidationResponse.php │ │ ├── CashflowAccount.php │ │ ├── CashflowActivity.php │ │ ├── CashflowResponse.php │ │ ├── CashflowType.php │ │ ├── ContactDetail.php │ │ ├── ContactResponse.php │ │ ├── ContactTotalDetail.php │ │ ├── ContactTotalOther.php │ │ ├── CreditNoteResponse.php │ │ ├── CurrentStatementResponse.php │ │ ├── DataSourceResponse.php │ │ ├── HistoryRecordResponse.php │ │ ├── IncomeByContactResponse.php │ │ ├── InvoiceResponse.php │ │ ├── LineItemResponse.php │ │ ├── LockHistoryModel.php │ │ ├── LockHistoryResponse.php │ │ ├── ManualJournalTotal.php │ │ ├── ModelInterface.php │ │ ├── OverpaymentResponse.php │ │ ├── PaymentResponse.php │ │ ├── PnlAccount.php │ │ ├── PnlAccountClass.php │ │ ├── PnlAccountType.php │ │ ├── PracticeResponse.php │ │ ├── PrepaymentResponse.php │ │ ├── Problem.php │ │ ├── ProblemType.php │ │ ├── ProfitAndLossResponse.php │ │ ├── ReportHistoryModel.php │ │ ├── ReportHistoryResponse.php │ │ ├── StatementBalanceResponse.php │ │ ├── StatementLineResponse.php │ │ ├── StatementLinesResponse.php │ │ ├── StatementResponse.php │ │ ├── TotalDetail.php │ │ ├── TotalOther.php │ │ ├── TrialBalanceAccount.php │ │ ├── TrialBalanceEntry.php │ │ ├── TrialBalanceMovement.php │ │ ├── TrialBalanceResponse.php │ │ ├── UserActivitiesResponse.php │ │ └── UserResponse.php │ ├── Identity │ │ ├── AccessToken.php │ │ ├── Connection.php │ │ ├── ModelInterface.php │ │ └── RefreshToken.php │ ├── PayrollAu │ │ ├── APIException.php │ │ ├── Account.php │ │ ├── AccountType.php │ │ ├── AllowanceCategory.php │ │ ├── AllowanceType.php │ │ ├── BankAccount.php │ │ ├── CalendarType.php │ │ ├── CountryOfResidence.php │ │ ├── DeductionLine.php │ │ ├── DeductionType.php │ │ ├── DeductionTypeCalculationType.php │ │ ├── EarningsLine.php │ │ ├── EarningsRate.php │ │ ├── EarningsRateCalculationType.php │ │ ├── EarningsType.php │ │ ├── Employee.php │ │ ├── EmployeeStatus.php │ │ ├── Employees.php │ │ ├── EmploymentBasis.php │ │ ├── EmploymentTerminationPaymentType.php │ │ ├── EmploymentType.php │ │ ├── EntitlementFinalPayPayoutType.php │ │ ├── HomeAddress.php │ │ ├── IncomeType.php │ │ ├── LeaveAccrualLine.php │ │ ├── LeaveApplication.php │ │ ├── LeaveApplications.php │ │ ├── LeaveBalance.php │ │ ├── LeaveCategoryCode.php │ │ ├── LeaveEarningsLine.php │ │ ├── LeaveLine.php │ │ ├── LeaveLineCalculationType.php │ │ ├── LeaveLines.php │ │ ├── LeavePeriod.php │ │ ├── LeavePeriodStatus.php │ │ ├── LeaveType.php │ │ ├── LeaveTypeContributionType.php │ │ ├── ManualTaxType.php │ │ ├── ModelInterface.php │ │ ├── OpeningBalances.php │ │ ├── PaidLeaveEarningsLine.php │ │ ├── PayItem.php │ │ ├── PayItems.php │ │ ├── PayOutType.php │ │ ├── PayRun.php │ │ ├── PayRunStatus.php │ │ ├── PayRuns.php │ │ ├── PayTemplate.php │ │ ├── PaymentFrequencyType.php │ │ ├── PayrollCalendar.php │ │ ├── PayrollCalendars.php │ │ ├── Payslip.php │ │ ├── PayslipLines.php │ │ ├── PayslipObject.php │ │ ├── PayslipSummary.php │ │ ├── Payslips.php │ │ ├── RateType.php │ │ ├── ReimbursementLine.php │ │ ├── ReimbursementLines.php │ │ ├── ReimbursementType.php │ │ ├── ResidencyStatus.php │ │ ├── SeniorMaritalStatus.php │ │ ├── Settings.php │ │ ├── SettingsObject.php │ │ ├── SettingsTrackingCategories.php │ │ ├── SettingsTrackingCategoriesEmployeeGroups.php │ │ ├── SettingsTrackingCategoriesTimesheetCategories.php │ │ ├── State.php │ │ ├── SuperFund.php │ │ ├── SuperFundProduct.php │ │ ├── SuperFundProducts.php │ │ ├── SuperFundType.php │ │ ├── SuperFunds.php │ │ ├── SuperLine.php │ │ ├── SuperMembership.php │ │ ├── SuperannuationCalculationType.php │ │ ├── SuperannuationContributionType.php │ │ ├── SuperannuationLine.php │ │ ├── TFNExemptionType.php │ │ ├── TaxDeclaration.php │ │ ├── TaxLine.php │ │ ├── TaxScaleType.php │ │ ├── Timesheet.php │ │ ├── TimesheetLine.php │ │ ├── TimesheetObject.php │ │ ├── TimesheetStatus.php │ │ ├── Timesheets.php │ │ ├── ValidationError.php │ │ └── WorkCondition.php │ ├── PayrollNz │ │ ├── Account.php │ │ ├── Accounts.php │ │ ├── Address.php │ │ ├── BankAccount.php │ │ ├── Benefit.php │ │ ├── CalendarType.php │ │ ├── Deduction.php │ │ ├── DeductionLine.php │ │ ├── DeductionObject.php │ │ ├── Deductions.php │ │ ├── EarningsLine.php │ │ ├── EarningsOrder.php │ │ ├── EarningsOrderObject.php │ │ ├── EarningsOrders.php │ │ ├── EarningsRate.php │ │ ├── EarningsRateObject.php │ │ ├── EarningsRates.php │ │ ├── EarningsTemplate.php │ │ ├── EarningsTemplateObject.php │ │ ├── Employee.php │ │ ├── EmployeeEarningsTemplates.php │ │ ├── EmployeeLeave.php │ │ ├── EmployeeLeaveBalance.php │ │ ├── EmployeeLeaveBalances.php │ │ ├── EmployeeLeaveObject.php │ │ ├── EmployeeLeaveSetup.php │ │ ├── EmployeeLeaveSetupObject.php │ │ ├── EmployeeLeaveType.php │ │ ├── EmployeeLeaveTypeObject.php │ │ ├── EmployeeLeaveTypes.php │ │ ├── EmployeeLeaves.php │ │ ├── EmployeeObject.php │ │ ├── EmployeeOpeningBalance.php │ │ ├── EmployeeOpeningBalancesObject.php │ │ ├── EmployeePayTemplate.php │ │ ├── EmployeePayTemplateObject.php │ │ ├── EmployeePayTemplates.php │ │ ├── EmployeeStatutoryLeaveBalance.php │ │ ├── EmployeeStatutoryLeaveBalanceObject.php │ │ ├── EmployeeStatutoryLeaveSummary.php │ │ ├── EmployeeStatutoryLeavesSummaries.php │ │ ├── EmployeeStatutorySickLeave.php │ │ ├── EmployeeStatutorySickLeaveObject.php │ │ ├── EmployeeStatutorySickLeaves.php │ │ ├── EmployeeTax.php │ │ ├── EmployeeTaxObject.php │ │ ├── EmployeeWorkingPattern.php │ │ ├── EmployeeWorkingPatternWithWorkingWeeks.php │ │ ├── EmployeeWorkingPatternWithWorkingWeeksObject.php │ │ ├── EmployeeWorkingPatternWithWorkingWeeksRequest.php │ │ ├── EmployeeWorkingPatternsObject.php │ │ ├── Employees.php │ │ ├── Employment.php │ │ ├── EmploymentObject.php │ │ ├── GrossEarningsHistory.php │ │ ├── InvalidField.php │ │ ├── LeaveAccrualLine.php │ │ ├── LeaveEarningsLine.php │ │ ├── LeavePeriod.php │ │ ├── LeavePeriods.php │ │ ├── LeaveType.php │ │ ├── LeaveTypeObject.php │ │ ├── LeaveTypes.php │ │ ├── ModelInterface.php │ │ ├── Pagination.php │ │ ├── PayRun.php │ │ ├── PayRunCalendar.php │ │ ├── PayRunCalendarObject.php │ │ ├── PayRunCalendars.php │ │ ├── PayRunObject.php │ │ ├── PayRuns.php │ │ ├── PaySlip.php │ │ ├── PaySlipObject.php │ │ ├── PaySlips.php │ │ ├── PaymentLine.php │ │ ├── PaymentMethod.php │ │ ├── PaymentMethodObject.php │ │ ├── Problem.php │ │ ├── Reimbursement.php │ │ ├── ReimbursementLine.php │ │ ├── ReimbursementObject.php │ │ ├── Reimbursements.php │ │ ├── SalaryAndWage.php │ │ ├── SalaryAndWageObject.php │ │ ├── SalaryAndWages.php │ │ ├── Settings.php │ │ ├── StatutoryDeduction.php │ │ ├── StatutoryDeductionCategory.php │ │ ├── StatutoryDeductionLine.php │ │ ├── StatutoryDeductionObject.php │ │ ├── StatutoryDeductions.php │ │ ├── SuperannuationLine.php │ │ ├── SuperannuationObject.php │ │ ├── Superannuations.php │ │ ├── TaxCode.php │ │ ├── TaxLine.php │ │ ├── TaxSettings.php │ │ ├── Timesheet.php │ │ ├── TimesheetEarningsLine.php │ │ ├── TimesheetLine.php │ │ ├── TimesheetLineObject.php │ │ ├── TimesheetObject.php │ │ ├── Timesheets.php │ │ ├── TrackingCategories.php │ │ ├── TrackingCategory.php │ │ └── WorkingWeek.php │ ├── PayrollUk │ │ ├── Account.php │ │ ├── Accounts.php │ │ ├── Address.php │ │ ├── BankAccount.php │ │ ├── Benefit.php │ │ ├── BenefitLine.php │ │ ├── BenefitObject.php │ │ ├── Benefits.php │ │ ├── CourtOrderLine.php │ │ ├── Deduction.php │ │ ├── DeductionLine.php │ │ ├── DeductionObject.php │ │ ├── Deductions.php │ │ ├── EarningsLine.php │ │ ├── EarningsOrder.php │ │ ├── EarningsOrderObject.php │ │ ├── EarningsOrders.php │ │ ├── EarningsRate.php │ │ ├── EarningsRateObject.php │ │ ├── EarningsRates.php │ │ ├── EarningsTemplate.php │ │ ├── EarningsTemplateObject.php │ │ ├── Employee.php │ │ ├── EmployeeLeave.php │ │ ├── EmployeeLeaveBalance.php │ │ ├── EmployeeLeaveBalances.php │ │ ├── EmployeeLeaveObject.php │ │ ├── EmployeeLeaveType.php │ │ ├── EmployeeLeaveTypeObject.php │ │ ├── EmployeeLeaveTypes.php │ │ ├── EmployeeLeaves.php │ │ ├── EmployeeObject.php │ │ ├── EmployeeOpeningBalances.php │ │ ├── EmployeeOpeningBalancesObject.php │ │ ├── EmployeePayTemplate.php │ │ ├── EmployeePayTemplateObject.php │ │ ├── EmployeePayTemplates.php │ │ ├── EmployeeStatutoryLeaveBalance.php │ │ ├── EmployeeStatutoryLeaveBalanceObject.php │ │ ├── EmployeeStatutoryLeaveSummary.php │ │ ├── EmployeeStatutoryLeavesSummaries.php │ │ ├── EmployeeStatutorySickLeave.php │ │ ├── EmployeeStatutorySickLeaveObject.php │ │ ├── EmployeeStatutorySickLeaves.php │ │ ├── EmployeeTax.php │ │ ├── EmployeeTaxObject.php │ │ ├── Employees.php │ │ ├── Employment.php │ │ ├── EmploymentObject.php │ │ ├── InvalidField.php │ │ ├── LeaveAccrualLine.php │ │ ├── LeaveEarningsLine.php │ │ ├── LeavePeriod.php │ │ ├── LeavePeriods.php │ │ ├── LeaveType.php │ │ ├── LeaveTypeObject.php │ │ ├── LeaveTypes.php │ │ ├── ModelInterface.php │ │ ├── NICategory.php │ │ ├── NICategoryLetter.php │ │ ├── NICategoryOneOf.php │ │ ├── NICategoryOneOf1.php │ │ ├── Pagination.php │ │ ├── PayRun.php │ │ ├── PayRunCalendar.php │ │ ├── PayRunCalendarObject.php │ │ ├── PayRunCalendars.php │ │ ├── PayRunObject.php │ │ ├── PayRuns.php │ │ ├── PaymentLine.php │ │ ├── PaymentMethod.php │ │ ├── PaymentMethodObject.php │ │ ├── Payslip.php │ │ ├── PayslipObject.php │ │ ├── Payslips.php │ │ ├── Problem.php │ │ ├── Reimbursement.php │ │ ├── ReimbursementLine.php │ │ ├── ReimbursementObject.php │ │ ├── Reimbursements.php │ │ ├── SalaryAndWage.php │ │ ├── SalaryAndWageObject.php │ │ ├── SalaryAndWages.php │ │ ├── Settings.php │ │ ├── StatutoryDeduction.php │ │ ├── StatutoryDeductionCategory.php │ │ ├── TaxLine.php │ │ ├── Timesheet.php │ │ ├── TimesheetEarningsLine.php │ │ ├── TimesheetLine.php │ │ ├── TimesheetLineObject.php │ │ ├── TimesheetObject.php │ │ ├── Timesheets.php │ │ ├── TrackingCategories.php │ │ └── TrackingCategory.php │ └── Project │ │ ├── Amount.php │ │ ├── ChargeType.php │ │ ├── CurrencyCode.php │ │ ├── Error.php │ │ ├── ModelInterface.php │ │ ├── Pagination.php │ │ ├── Project.php │ │ ├── ProjectCreateOrUpdate.php │ │ ├── ProjectPatch.php │ │ ├── ProjectStatus.php │ │ ├── ProjectUser.php │ │ ├── ProjectUsers.php │ │ ├── Projects.php │ │ ├── Task.php │ │ ├── TaskCreateOrUpdate.php │ │ ├── Tasks.php │ │ ├── TimeEntries.php │ │ ├── TimeEntry.php │ │ └── TimeEntryCreateOrUpdate.php ├── PayrollAuObjectSerializer.php ├── PayrollNzObjectSerializer.php ├── PayrollUkObjectSerializer.php ├── ProjectObjectSerializer.php └── StringUtil.php ├── phpunit.xml.dist └── test ├── Api ├── AccountingApiTest.php └── IdentityApiTest.php └── Model ├── AccessTokenTest.php ├── AccountTest.php ├── AccountTypeTest.php ├── AccountsPayableTest.php ├── AccountsReceivableTest.php ├── AccountsTest.php ├── AddressTest.php ├── AllocationTest.php ├── AllocationsTest.php ├── AttachmentTest.php ├── AttachmentsTest.php ├── BalancesTest.php ├── BankTransactionTest.php ├── BankTransactionsTest.php ├── BankTransferTest.php ├── BankTransfersTest.php ├── BatchPaymentDetailsTest.php ├── BatchPaymentTest.php ├── BatchPaymentsTest.php ├── BillTest.php ├── BrandingThemeTest.php ├── BrandingThemesTest.php ├── CISOrgSettingTest.php ├── CISSettingTest.php ├── CISSettingsTest.php ├── ConnectionTest.php ├── ContactGroupTest.php ├── ContactGroupsTest.php ├── ContactPersonTest.php ├── ContactTest.php ├── ContactsTest.php ├── CountryCodeTest.php ├── CreditNoteTest.php ├── CreditNotesTest.php ├── CurrenciesTest.php ├── CurrencyCodeTest.php ├── CurrencyTest.php ├── ElementTest.php ├── EmployeeTest.php ├── EmployeesTest.php ├── ErrorTest.php ├── ExpenseClaimTest.php ├── ExpenseClaimsTest.php ├── ExternalLinkTest.php ├── HistoryRecordTest.php ├── HistoryRecordsTest.php ├── InvoiceReminderTest.php ├── InvoiceRemindersTest.php ├── InvoiceTest.php ├── InvoicesTest.php ├── ItemTest.php ├── ItemsTest.php ├── JournalLineTest.php ├── JournalTest.php ├── JournalsTest.php ├── LineAmountTypesTest.php ├── LineItemTest.php ├── LineItemTrackingTest.php ├── LinkedTransactionTest.php ├── LinkedTransactionsTest.php ├── ManualJournalLineTest.php ├── ManualJournalTest.php ├── ManualJournalsTest.php ├── OnlineInvoiceTest.php ├── OnlineInvoicesTest.php ├── OrganisationTest.php ├── OrganisationsTest.php ├── OverpaymentTest.php ├── OverpaymentsTest.php ├── PaymentServiceTest.php ├── PaymentServicesTest.php ├── PaymentTermTest.php ├── PaymentTermTypeTest.php ├── PaymentTest.php ├── PaymentsTest.php ├── PhoneTest.php ├── PrepaymentTest.php ├── PrepaymentsTest.php ├── PurchaseOrderTest.php ├── PurchaseOrdersTest.php ├── PurchaseTest.php ├── ReceiptTest.php ├── ReceiptsTest.php ├── RefreshTokenTest.php ├── RepeatingInvoiceTest.php ├── RepeatingInvoicesTest.php ├── ReportAttributeTest.php ├── ReportCellTest.php ├── ReportFieldsTest.php ├── ReportRowTest.php ├── ReportRowsTest.php ├── ReportTest.php ├── ReportWithRowTest.php ├── ReportWithRowsTest.php ├── ReportsTest.php ├── RequestEmptyTest.php ├── RowTypeTest.php ├── SalesTrackingCategoryTest.php ├── ScheduleTest.php ├── TaxComponentTest.php ├── TaxRateTest.php ├── TaxRatesTest.php ├── TaxTypeTest.php ├── TenNinteyNineContactTest.php ├── TimeZoneTest.php ├── TrackingCategoriesTest.php ├── TrackingCategoryTest.php ├── TrackingOptionTest.php ├── TrackingOptionsTest.php ├── UserTest.php ├── UsersTest.php └── ValidationErrorTest.php /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **SDK you're using (please complete the following information):** 11 | - Version [e.g. 1.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/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **SDK you're using (please complete the following information):** 11 | - Version [e.g. 1.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: PHP Build, Lint 2 | 3 | on: 4 | push: 5 | 6 | jobs: 7 | build-test-lint: 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - name: Checkout xero-php repo 12 | uses: actions/checkout@v4 13 | with: 14 | repository: XeroAPI/xero-php-oauth2 15 | path: xero-php-oauth2 16 | 17 | - name: Setup PHP 18 | run: sudo apt-get install -y php php-mbstring php-intl php-xml php-zip php-curl 19 | 20 | - name: Install Composer 21 | run: | 22 | php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" 23 | php composer-setup.php --install-dir=/usr/local/bin --filename=composer 24 | php -r "unlink('composer-setup.php');" 25 | 26 | - name: Install Dependencies 27 | run: composer install 28 | working-directory: xero-php-oauth2 29 | 30 | - name: Validate PHP Syntax 31 | run: find . -path ./vendor -prune -o -name "*.php" -exec php -l {} \; > /dev/null || exit 1 32 | working-directory: xero-php-oauth2 -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .build_notes.md 3 | vendor/ 4 | composer.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Xero Developer API 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xeroapi/xero-php-oauth2", 3 | "description": "Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3", 4 | "keywords": [ 5 | "openapispec", 6 | "xero", 7 | "php", 8 | "sdk", 9 | "rest", 10 | "api" 11 | ], 12 | "homepage": "https://github.com/xeroapi/xero-php-oauth2", 13 | "license": "MIT", 14 | "authors": [ 15 | { 16 | "name": "Xero API Team", 17 | "homepage": "https://developer.xero.com" 18 | } 19 | ], 20 | "require": { 21 | "php": ">=5.6", 22 | "ext-curl": "*", 23 | "ext-json": "*", 24 | "ext-mbstring": "*", 25 | "guzzlehttp/guzzle": "^6.2 | ^7.0", 26 | "league/oauth2-client": "^2.5.0", 27 | "firebase/php-jwt": "^6.0" 28 | }, 29 | "require-dev": { 30 | "phpunit/phpunit": "^4.8", 31 | "squizlabs/php_codesniffer": "~2.6", 32 | "friendsofphp/php-cs-fixer": "~2.12" 33 | }, 34 | "autoload": { 35 | "psr-4": { "XeroAPI\\XeroPHP\\" : "lib/" } 36 | }, 37 | "autoload-dev": { 38 | "psr-4": { "XeroAPI\\XeroPHP\\" : "test/" } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | 10 | if [ "$git_user_id" = "" ]; then 11 | git_user_id="xeroapi" 12 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 13 | fi 14 | 15 | if [ "$git_repo_id" = "" ]; then 16 | git_repo_id="xero-php-oauth2" 17 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 18 | fi 19 | 20 | if [ "$release_note" = "" ]; then 21 | release_note="Minor update" 22 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 23 | fi 24 | 25 | # Initialize the local directory as a Git repository 26 | git init 27 | 28 | # Adds the files in the local repository and stages them for commit. 29 | git add . 30 | 31 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 32 | git commit -m "$release_note" 33 | 34 | # Sets the new remote 35 | git_remote=`git remote` 36 | if [ "$git_remote" = "" ]; then # git remote not defined 37 | 38 | if [ "$GIT_TOKEN" = "" ]; then 39 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." 40 | git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git 41 | else 42 | git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git 43 | fi 44 | 45 | fi 46 | 47 | git pull origin master 48 | 49 | # Pushes (Forces) the changes in the local repository up to the remote repository 50 | echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" 51 | git push origin master 2>&1 | grep -v 'To https' 52 | 53 | -------------------------------------------------------------------------------- /lib/Models/Accounting/LineAmountTypes.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | ./test/Api 11 | ./test/Model 12 | 13 | 14 | 15 | 16 | 17 | ./lib/Api 18 | ./lib/Models/Identity 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /test/Api/IdentityApiTest.php: -------------------------------------------------------------------------------- 1 |