xero-ruby 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +76 -0
- data/CONTRIBUTING.md +82 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +2 -2
- data/Rakefile +10 -0
- data/build_notes.md +52 -0
- data/docs/accounting/Account.md +55 -0
- data/docs/accounting/AccountType.md +16 -0
- data/docs/accounting/AccountingApi.md +15310 -0
- data/docs/accounting/Accounts.md +17 -0
- data/docs/accounting/AccountsPayable.md +19 -0
- data/docs/accounting/AccountsReceivable.md +19 -0
- data/docs/accounting/Action.md +19 -0
- data/docs/accounting/Actions.md +17 -0
- data/docs/accounting/Address.md +35 -0
- data/docs/accounting/Allocation.md +31 -0
- data/docs/accounting/Allocations.md +17 -0
- data/docs/accounting/Attachment.md +27 -0
- data/docs/accounting/Attachments.md +17 -0
- data/docs/accounting/BalanceDetails.md +21 -0
- data/docs/accounting/Balances.md +19 -0
- data/docs/accounting/BankTransaction.md +59 -0
- data/docs/accounting/BankTransactions.md +17 -0
- data/docs/accounting/BankTransfer.md +37 -0
- data/docs/accounting/BankTransfers.md +17 -0
- data/docs/accounting/BatchPayment.md +47 -0
- data/docs/accounting/BatchPaymentDetails.md +25 -0
- data/docs/accounting/BatchPayments.md +17 -0
- data/docs/accounting/Bill.md +19 -0
- data/docs/accounting/BrandingTheme.md +27 -0
- data/docs/accounting/BrandingThemes.md +17 -0
- data/docs/accounting/CISOrgSetting.md +21 -0
- data/docs/accounting/CISSetting.md +19 -0
- data/docs/accounting/CISSettings.md +17 -0
- data/docs/accounting/Contact.md +93 -0
- data/docs/accounting/ContactGroup.md +23 -0
- data/docs/accounting/ContactGroups.md +17 -0
- data/docs/accounting/ContactPerson.md +23 -0
- data/docs/accounting/Contacts.md +17 -0
- data/docs/accounting/ConversionBalances.md +21 -0
- data/docs/accounting/ConversionDate.md +19 -0
- data/docs/accounting/CountryCode.md +16 -0
- data/docs/accounting/CreditNote.md +69 -0
- data/docs/accounting/CreditNotes.md +17 -0
- data/docs/accounting/Currencies.md +17 -0
- data/docs/accounting/Currency.md +19 -0
- data/docs/accounting/CurrencyCode.md +16 -0
- data/docs/accounting/Element.md +31 -0
- data/docs/accounting/Employee.md +31 -0
- data/docs/accounting/Employees.md +17 -0
- data/docs/accounting/Error.md +23 -0
- data/docs/accounting/ExpenseClaim.md +39 -0
- data/docs/accounting/ExpenseClaims.md +17 -0
- data/docs/accounting/ExternalLink.md +21 -0
- data/docs/accounting/HistoryRecord.md +23 -0
- data/docs/accounting/HistoryRecords.md +17 -0
- data/docs/accounting/ImportSummary.md +19 -0
- data/docs/accounting/ImportSummaryAccounts.md +33 -0
- data/docs/accounting/ImportSummaryObject.md +17 -0
- data/docs/accounting/ImportSummaryOrganisation.md +17 -0
- data/docs/accounting/Invoice.md +93 -0
- data/docs/accounting/InvoiceReminder.md +17 -0
- data/docs/accounting/InvoiceReminders.md +17 -0
- data/docs/accounting/Invoices.md +17 -0
- data/docs/accounting/Item.md +47 -0
- data/docs/accounting/Items.md +17 -0
- data/docs/accounting/Journal.md +31 -0
- data/docs/accounting/JournalLine.md +39 -0
- data/docs/accounting/Journals.md +17 -0
- data/docs/accounting/LineAmountTypes.md +16 -0
- data/docs/accounting/LineItem.md +41 -0
- data/docs/accounting/LineItemTracking.md +23 -0
- data/docs/accounting/LinkedTransaction.md +37 -0
- data/docs/accounting/LinkedTransactions.md +17 -0
- data/docs/accounting/ManualJournal.md +43 -0
- data/docs/accounting/ManualJournalLine.md +31 -0
- data/docs/accounting/ManualJournals.md +17 -0
- data/docs/accounting/OnlineInvoice.md +17 -0
- data/docs/accounting/OnlineInvoices.md +17 -0
- data/docs/accounting/Organisation.md +81 -0
- data/docs/accounting/Organisations.md +17 -0
- data/docs/accounting/Overpayment.md +53 -0
- data/docs/accounting/Overpayments.md +17 -0
- data/docs/accounting/Payment.md +63 -0
- data/docs/accounting/PaymentDelete.md +17 -0
- data/docs/accounting/PaymentService.md +27 -0
- data/docs/accounting/PaymentServices.md +17 -0
- data/docs/accounting/PaymentTerm.md +19 -0
- data/docs/accounting/PaymentTermType.md +16 -0
- data/docs/accounting/Payments.md +17 -0
- data/docs/accounting/Phone.md +23 -0
- data/docs/accounting/Prepayment.md +53 -0
- data/docs/accounting/Prepayments.md +17 -0
- data/docs/accounting/Purchase.md +23 -0
- data/docs/accounting/PurchaseOrder.md +71 -0
- data/docs/accounting/PurchaseOrders.md +17 -0
- data/docs/accounting/Quote.md +63 -0
- data/docs/accounting/QuoteLineAmountTypes.md +16 -0
- data/docs/accounting/QuoteStatusCodes.md +16 -0
- data/docs/accounting/Quotes.md +17 -0
- data/docs/accounting/Receipt.md +51 -0
- data/docs/accounting/Receipts.md +17 -0
- data/docs/accounting/RepeatingInvoice.md +47 -0
- data/docs/accounting/RepeatingInvoices.md +17 -0
- data/docs/accounting/Report.md +29 -0
- data/docs/accounting/ReportAttribute.md +19 -0
- data/docs/accounting/ReportCell.md +19 -0
- data/docs/accounting/ReportFields.md +21 -0
- data/docs/accounting/ReportRow.md +21 -0
- data/docs/accounting/ReportRows.md +23 -0
- data/docs/accounting/ReportWithRow.md +33 -0
- data/docs/accounting/ReportWithRows.md +17 -0
- data/docs/accounting/Reports.md +17 -0
- data/docs/accounting/RequestEmpty.md +17 -0
- data/docs/accounting/RowType.md +16 -0
- data/docs/accounting/SalesTrackingCategory.md +19 -0
- data/docs/accounting/Schedule.md +29 -0
- data/docs/accounting/Setup.md +21 -0
- data/docs/accounting/TaxComponent.md +23 -0
- data/docs/accounting/TaxRate.md +39 -0
- data/docs/accounting/TaxRates.md +17 -0
- data/docs/accounting/TaxType.md +16 -0
- data/docs/accounting/TenNinetyNineContact.md +59 -0
- data/docs/accounting/TimeZone.md +16 -0
- data/docs/accounting/TrackingCategories.md +17 -0
- data/docs/accounting/TrackingCategory.md +27 -0
- data/docs/accounting/TrackingOption.md +23 -0
- data/docs/accounting/TrackingOptions.md +17 -0
- data/docs/accounting/User.md +29 -0
- data/docs/accounting/Users.md +17 -0
- data/docs/accounting/ValidationError.md +17 -0
- data/docs/assets/Asset.md +47 -0
- data/docs/assets/AssetApi.md +426 -0
- data/docs/assets/AssetStatus.md +16 -0
- data/docs/assets/AssetStatusQueryParam.md +16 -0
- data/docs/assets/AssetType.md +29 -0
- data/docs/assets/Assets.md +19 -0
- data/docs/assets/BookDepreciationDetail.md +29 -0
- data/docs/assets/BookDepreciationSetting.md +31 -0
- data/docs/assets/Error.md +25 -0
- data/docs/assets/FieldValidationErrorsElement.md +27 -0
- data/docs/assets/Pagination.md +23 -0
- data/docs/assets/ResourceValidationErrorsElement.md +25 -0
- data/docs/assets/Setting.md +31 -0
- data/docs/files/Association.md +23 -0
- data/docs/files/FileObject.md +31 -0
- data/docs/files/FileResponse204.md +17 -0
- data/docs/files/Files.md +23 -0
- data/docs/files/FilesApi.md +1116 -0
- data/docs/files/Folder.md +25 -0
- data/docs/files/Folders.md +17 -0
- data/docs/files/InlineObject.md +23 -0
- data/docs/files/ObjectGroup.md +16 -0
- data/docs/files/ObjectType.md +16 -0
- data/docs/files/User.md +25 -0
- data/docs/payroll_au/APIException.md +21 -0
- data/docs/payroll_au/Account.md +23 -0
- data/docs/payroll_au/AccountType.md +16 -0
- data/docs/payroll_au/AllowanceType.md +16 -0
- data/docs/payroll_au/BankAccount.md +27 -0
- data/docs/payroll_au/CalendarType.md +16 -0
- data/docs/payroll_au/DeductionLine.md +25 -0
- data/docs/payroll_au/DeductionType.md +33 -0
- data/docs/payroll_au/DeductionTypeCalculationType.md +16 -0
- data/docs/payroll_au/EarningsLine.md +33 -0
- data/docs/payroll_au/EarningsRate.md +49 -0
- data/docs/payroll_au/EarningsRateCalculationType.md +16 -0
- data/docs/payroll_au/EarningsType.md +16 -0
- data/docs/payroll_au/Employee.md +77 -0
- data/docs/payroll_au/EmployeeStatus.md +16 -0
- data/docs/payroll_au/Employees.md +17 -0
- data/docs/payroll_au/EmploymentBasis.md +16 -0
- data/docs/payroll_au/EmploymentTerminationPaymentType.md +16 -0
- data/docs/payroll_au/EntitlementFinalPayPayoutType.md +16 -0
- data/docs/payroll_au/HomeAddress.md +27 -0
- data/docs/payroll_au/LeaveAccrualLine.md +21 -0
- data/docs/payroll_au/LeaveApplication.md +35 -0
- data/docs/payroll_au/LeaveApplications.md +17 -0
- data/docs/payroll_au/LeaveBalance.md +23 -0
- data/docs/payroll_au/LeaveEarningsLine.md +21 -0
- data/docs/payroll_au/LeaveLine.md +31 -0
- data/docs/payroll_au/LeaveLineCalculationType.md +16 -0
- data/docs/payroll_au/LeaveLines.md +17 -0
- data/docs/payroll_au/LeavePeriod.md +23 -0
- data/docs/payroll_au/LeavePeriodStatus.md +16 -0
- data/docs/payroll_au/LeaveType.md +33 -0
- data/docs/payroll_au/LeaveTypeContributionType.md +16 -0
- data/docs/payroll_au/ManualTaxType.md +16 -0
- data/docs/payroll_au/OpeningBalances.md +29 -0
- data/docs/payroll_au/PayItem.md +23 -0
- data/docs/payroll_au/PayItems.md +17 -0
- data/docs/payroll_au/PayRun.md +47 -0
- data/docs/payroll_au/PayRunStatus.md +16 -0
- data/docs/payroll_au/PayRuns.md +17 -0
- data/docs/payroll_au/PayTemplate.md +25 -0
- data/docs/payroll_au/PaymentFrequencyType.md +16 -0
- data/docs/payroll_au/PayrollAuApi.md +2018 -0
- data/docs/payroll_au/PayrollCalendar.md +29 -0
- data/docs/payroll_au/PayrollCalendars.md +17 -0
- data/docs/payroll_au/Payslip.md +53 -0
- data/docs/payroll_au/PayslipLines.md +31 -0
- data/docs/payroll_au/PayslipObject.md +17 -0
- data/docs/payroll_au/PayslipSummary.md +39 -0
- data/docs/payroll_au/Payslips.md +17 -0
- data/docs/payroll_au/RateType.md +16 -0
- data/docs/payroll_au/ReimbursementLine.md +23 -0
- data/docs/payroll_au/ReimbursementLines.md +17 -0
- data/docs/payroll_au/ReimbursementType.md +25 -0
- data/docs/payroll_au/ResidencyStatus.md +16 -0
- data/docs/payroll_au/Settings.md +21 -0
- data/docs/payroll_au/SettingsObject.md +17 -0
- data/docs/payroll_au/SettingsTrackingCategories.md +19 -0
- data/docs/payroll_au/SettingsTrackingCategoriesEmployeeGroups.md +19 -0
- data/docs/payroll_au/SettingsTrackingCategoriesTimesheetCategories.md +19 -0
- data/docs/payroll_au/State.md +16 -0
- data/docs/payroll_au/SuperFund.md +41 -0
- data/docs/payroll_au/SuperFundProduct.md +23 -0
- data/docs/payroll_au/SuperFundProducts.md +17 -0
- data/docs/payroll_au/SuperFundType.md +16 -0
- data/docs/payroll_au/SuperFunds.md +17 -0
- data/docs/payroll_au/SuperLine.md +31 -0
- data/docs/payroll_au/SuperMembership.md +21 -0
- data/docs/payroll_au/SuperannuationCalculationType.md +16 -0
- data/docs/payroll_au/SuperannuationContributionType.md +16 -0
- data/docs/payroll_au/SuperannuationLine.md +33 -0
- data/docs/payroll_au/TFNExemptionType.md +16 -0
- data/docs/payroll_au/TaxDeclaration.md +47 -0
- data/docs/payroll_au/TaxLine.md +27 -0
- data/docs/payroll_au/Timesheet.md +33 -0
- data/docs/payroll_au/TimesheetLine.md +23 -0
- data/docs/payroll_au/TimesheetObject.md +17 -0
- data/docs/payroll_au/TimesheetStatus.md +16 -0
- data/docs/payroll_au/Timesheets.md +17 -0
- data/docs/payroll_au/ValidationError.md +17 -0
- data/docs/payroll_nz/Account.md +23 -0
- data/docs/payroll_nz/Accounts.md +17 -0
- data/docs/payroll_nz/Address.md +27 -0
- data/docs/payroll_nz/BankAccount.md +31 -0
- data/docs/payroll_nz/Benefit.md +35 -0
- data/docs/payroll_nz/CalendarType.md +16 -0
- data/docs/payroll_nz/Deduction.md +27 -0
- data/docs/payroll_nz/DeductionLine.md +25 -0
- data/docs/payroll_nz/DeductionObject.md +21 -0
- data/docs/payroll_nz/Deductions.md +21 -0
- data/docs/payroll_nz/EarningsLine.md +35 -0
- data/docs/payroll_nz/EarningsOrder.md +25 -0
- data/docs/payroll_nz/EarningsOrderObject.md +21 -0
- data/docs/payroll_nz/EarningsOrders.md +21 -0
- data/docs/payroll_nz/EarningsRate.md +35 -0
- data/docs/payroll_nz/EarningsRateObject.md +21 -0
- data/docs/payroll_nz/EarningsRates.md +21 -0
- data/docs/payroll_nz/EarningsTemplate.md +27 -0
- data/docs/payroll_nz/EarningsTemplateObject.md +21 -0
- data/docs/payroll_nz/Employee.md +43 -0
- data/docs/payroll_nz/EmployeeEarningsTemplates.md +21 -0
- data/docs/payroll_nz/EmployeeLeave.md +29 -0
- data/docs/payroll_nz/EmployeeLeaveBalance.md +23 -0
- data/docs/payroll_nz/EmployeeLeaveBalances.md +21 -0
- data/docs/payroll_nz/EmployeeLeaveObject.md +21 -0
- data/docs/payroll_nz/EmployeeLeaveSetup.md +29 -0
- data/docs/payroll_nz/EmployeeLeaveSetupObject.md +21 -0
- data/docs/payroll_nz/EmployeeLeaveType.md +35 -0
- data/docs/payroll_nz/EmployeeLeaveTypeObject.md +21 -0
- data/docs/payroll_nz/EmployeeLeaveTypes.md +21 -0
- data/docs/payroll_nz/EmployeeLeaves.md +21 -0
- data/docs/payroll_nz/EmployeeObject.md +21 -0
- data/docs/payroll_nz/EmployeeOpeningBalance.md +23 -0
- data/docs/payroll_nz/EmployeeOpeningBalancesObject.md +21 -0
- data/docs/payroll_nz/EmployeePayTemplate.md +19 -0
- data/docs/payroll_nz/EmployeePayTemplateObject.md +21 -0
- data/docs/payroll_nz/EmployeePayTemplates.md +21 -0
- data/docs/payroll_nz/EmployeeStatutoryLeaveBalance.md +21 -0
- data/docs/payroll_nz/EmployeeStatutoryLeaveBalanceObject.md +21 -0
- data/docs/payroll_nz/EmployeeStatutoryLeaveSummary.md +29 -0
- data/docs/payroll_nz/EmployeeStatutoryLeavesSummaries.md +21 -0
- data/docs/payroll_nz/EmployeeStatutorySickLeave.md +47 -0
- data/docs/payroll_nz/EmployeeStatutorySickLeaveObject.md +21 -0
- data/docs/payroll_nz/EmployeeStatutorySickLeaves.md +21 -0
- data/docs/payroll_nz/EmployeeTax.md +47 -0
- data/docs/payroll_nz/EmployeeTaxObject.md +21 -0
- data/docs/payroll_nz/Employees.md +21 -0
- data/docs/payroll_nz/Employment.md +21 -0
- data/docs/payroll_nz/EmploymentObject.md +21 -0
- data/docs/payroll_nz/GrossEarningsHistory.md +19 -0
- data/docs/payroll_nz/InvalidField.md +19 -0
- data/docs/payroll_nz/LeaveAccrualLine.md +19 -0
- data/docs/payroll_nz/LeaveEarningsLine.md +35 -0
- data/docs/payroll_nz/LeavePeriod.md +23 -0
- data/docs/payroll_nz/LeavePeriods.md +21 -0
- data/docs/payroll_nz/LeaveType.md +27 -0
- data/docs/payroll_nz/LeaveTypeObject.md +21 -0
- data/docs/payroll_nz/LeaveTypes.md +21 -0
- data/docs/payroll_nz/Pagination.md +23 -0
- data/docs/payroll_nz/PayRun.md +39 -0
- data/docs/payroll_nz/PayRunCalendar.md +29 -0
- data/docs/payroll_nz/PayRunCalendarObject.md +21 -0
- data/docs/payroll_nz/PayRunCalendars.md +21 -0
- data/docs/payroll_nz/PayRunObject.md +21 -0
- data/docs/payroll_nz/PayRuns.md +21 -0
- data/docs/payroll_nz/PaySlip.md +75 -0
- data/docs/payroll_nz/PaySlipObject.md +21 -0
- data/docs/payroll_nz/PaySlips.md +21 -0
- data/docs/payroll_nz/PaymentLine.md +25 -0
- data/docs/payroll_nz/PaymentMethod.md +19 -0
- data/docs/payroll_nz/PaymentMethodObject.md +21 -0
- data/docs/payroll_nz/PayrollNzApi.md +4544 -0
- data/docs/payroll_nz/Problem.md +27 -0
- data/docs/payroll_nz/Reimbursement.md +33 -0
- data/docs/payroll_nz/ReimbursementLine.md +25 -0
- data/docs/payroll_nz/ReimbursementObject.md +21 -0
- data/docs/payroll_nz/Reimbursements.md +21 -0
- data/docs/payroll_nz/SalaryAndWage.md +35 -0
- data/docs/payroll_nz/SalaryAndWageObject.md +21 -0
- data/docs/payroll_nz/SalaryAndWages.md +21 -0
- data/docs/payroll_nz/Settings.md +21 -0
- data/docs/payroll_nz/StatutoryDeduction.md +25 -0
- data/docs/payroll_nz/StatutoryDeductionCategory.md +16 -0
- data/docs/payroll_nz/StatutoryDeductionLine.md +23 -0
- data/docs/payroll_nz/StatutoryDeductionObject.md +21 -0
- data/docs/payroll_nz/StatutoryDeductions.md +21 -0
- data/docs/payroll_nz/SuperannuationLine.md +27 -0
- data/docs/payroll_nz/SuperannuationObject.md +21 -0
- data/docs/payroll_nz/Superannuations.md +21 -0
- data/docs/payroll_nz/TaxCode.md +16 -0
- data/docs/payroll_nz/TaxLine.md +25 -0
- data/docs/payroll_nz/TaxSettings.md +27 -0
- data/docs/payroll_nz/Timesheet.md +33 -0
- data/docs/payroll_nz/TimesheetEarningsLine.md +35 -0
- data/docs/payroll_nz/TimesheetLine.md +25 -0
- data/docs/payroll_nz/TimesheetLineObject.md +21 -0
- data/docs/payroll_nz/TimesheetObject.md +21 -0
- data/docs/payroll_nz/Timesheets.md +21 -0
- data/docs/payroll_nz/TrackingCategories.md +21 -0
- data/docs/payroll_nz/TrackingCategory.md +19 -0
- data/docs/payroll_uk/Account.md +23 -0
- data/docs/payroll_uk/Accounts.md +17 -0
- data/docs/payroll_uk/Address.md +25 -0
- data/docs/payroll_uk/BankAccount.md +21 -0
- data/docs/payroll_uk/Benefit.md +43 -0
- data/docs/payroll_uk/BenefitLine.md +25 -0
- data/docs/payroll_uk/BenefitObject.md +21 -0
- data/docs/payroll_uk/Benefits.md +21 -0
- data/docs/payroll_uk/CourtOrderLine.md +19 -0
- data/docs/payroll_uk/Deduction.md +47 -0
- data/docs/payroll_uk/DeductionLine.md +23 -0
- data/docs/payroll_uk/DeductionObject.md +21 -0
- data/docs/payroll_uk/Deductions.md +21 -0
- data/docs/payroll_uk/EarningsLine.md +33 -0
- data/docs/payroll_uk/EarningsOrder.md +25 -0
- data/docs/payroll_uk/EarningsOrderObject.md +21 -0
- data/docs/payroll_uk/EarningsOrders.md +21 -0
- data/docs/payroll_uk/EarningsRate.md +35 -0
- data/docs/payroll_uk/EarningsRateObject.md +21 -0
- data/docs/payroll_uk/EarningsRates.md +21 -0
- data/docs/payroll_uk/EarningsTemplate.md +27 -0
- data/docs/payroll_uk/EarningsTemplateObject.md +21 -0
- data/docs/payroll_uk/Employee.md +45 -0
- data/docs/payroll_uk/EmployeeLeave.md +29 -0
- data/docs/payroll_uk/EmployeeLeaveBalance.md +23 -0
- data/docs/payroll_uk/EmployeeLeaveBalances.md +21 -0
- data/docs/payroll_uk/EmployeeLeaveObject.md +21 -0
- data/docs/payroll_uk/EmployeeLeaveType.md +27 -0
- data/docs/payroll_uk/EmployeeLeaveTypeObject.md +21 -0
- data/docs/payroll_uk/EmployeeLeaveTypes.md +21 -0
- data/docs/payroll_uk/EmployeeLeaves.md +21 -0
- data/docs/payroll_uk/EmployeeObject.md +21 -0
- data/docs/payroll_uk/EmployeeOpeningBalances.md +27 -0
- data/docs/payroll_uk/EmployeeOpeningBalancesObject.md +21 -0
- data/docs/payroll_uk/EmployeePayTemplate.md +19 -0
- data/docs/payroll_uk/EmployeePayTemplateObject.md +21 -0
- data/docs/payroll_uk/EmployeePayTemplates.md +21 -0
- data/docs/payroll_uk/EmployeeStatutoryLeaveBalance.md +21 -0
- data/docs/payroll_uk/EmployeeStatutoryLeaveBalanceObject.md +21 -0
- data/docs/payroll_uk/EmployeeStatutoryLeaveSummary.md +29 -0
- data/docs/payroll_uk/EmployeeStatutoryLeavesSummaries.md +21 -0
- data/docs/payroll_uk/EmployeeStatutorySickLeave.md +47 -0
- data/docs/payroll_uk/EmployeeStatutorySickLeaveObject.md +21 -0
- data/docs/payroll_uk/EmployeeStatutorySickLeaves.md +21 -0
- data/docs/payroll_uk/EmployeeTax.md +37 -0
- data/docs/payroll_uk/EmployeeTaxObject.md +21 -0
- data/docs/payroll_uk/Employees.md +21 -0
- data/docs/payroll_uk/Employment.md +23 -0
- data/docs/payroll_uk/EmploymentObject.md +21 -0
- data/docs/payroll_uk/InvalidField.md +19 -0
- data/docs/payroll_uk/LeaveAccrualLine.md +19 -0
- data/docs/payroll_uk/LeaveEarningsLine.md +27 -0
- data/docs/payroll_uk/LeavePeriod.md +23 -0
- data/docs/payroll_uk/LeavePeriods.md +21 -0
- data/docs/payroll_uk/LeaveType.md +31 -0
- data/docs/payroll_uk/LeaveTypeObject.md +21 -0
- data/docs/payroll_uk/LeaveTypes.md +21 -0
- data/docs/payroll_uk/Pagination.md +23 -0
- data/docs/payroll_uk/PayRun.md +39 -0
- data/docs/payroll_uk/PayRunCalendar.md +29 -0
- data/docs/payroll_uk/PayRunCalendarObject.md +21 -0
- data/docs/payroll_uk/PayRunCalendars.md +21 -0
- data/docs/payroll_uk/PayRunObject.md +21 -0
- data/docs/payroll_uk/PayRuns.md +21 -0
- data/docs/payroll_uk/PaymentLine.md +25 -0
- data/docs/payroll_uk/PaymentMethod.md +19 -0
- data/docs/payroll_uk/PaymentMethodObject.md +21 -0
- data/docs/payroll_uk/PayrollUkApi.md +4683 -0
- data/docs/payroll_uk/Payslip.md +71 -0
- data/docs/payroll_uk/PayslipObject.md +21 -0
- data/docs/payroll_uk/Payslips.md +21 -0
- data/docs/payroll_uk/Problem.md +27 -0
- data/docs/payroll_uk/Reimbursement.md +23 -0
- data/docs/payroll_uk/ReimbursementLine.md +21 -0
- data/docs/payroll_uk/ReimbursementObject.md +21 -0
- data/docs/payroll_uk/Reimbursements.md +21 -0
- data/docs/payroll_uk/SalaryAndWage.md +33 -0
- data/docs/payroll_uk/SalaryAndWageObject.md +21 -0
- data/docs/payroll_uk/SalaryAndWages.md +21 -0
- data/docs/payroll_uk/Settings.md +21 -0
- data/docs/payroll_uk/StatutoryDeduction.md +25 -0
- data/docs/payroll_uk/StatutoryDeductionCategory.md +16 -0
- data/docs/payroll_uk/TaxLine.md +27 -0
- data/docs/payroll_uk/Timesheet.md +33 -0
- data/docs/payroll_uk/TimesheetEarningsLine.md +27 -0
- data/docs/payroll_uk/TimesheetLine.md +25 -0
- data/docs/payroll_uk/TimesheetLineObject.md +21 -0
- data/docs/payroll_uk/TimesheetObject.md +21 -0
- data/docs/payroll_uk/Timesheets.md +21 -0
- data/docs/payroll_uk/TrackingCategories.md +21 -0
- data/docs/payroll_uk/TrackingCategory.md +19 -0
- data/docs/projects/Amount.md +19 -0
- data/docs/projects/ChargeType.md +16 -0
- data/docs/projects/CurrencyCode.md +16 -0
- data/docs/projects/Error.md +19 -0
- data/docs/projects/Pagination.md +23 -0
- data/docs/projects/Project.md +59 -0
- data/docs/projects/ProjectApi.md +956 -0
- data/docs/projects/ProjectCreateOrUpdate.md +23 -0
- data/docs/projects/ProjectPatch.md +17 -0
- data/docs/projects/ProjectStatus.md +16 -0
- data/docs/projects/ProjectUser.md +21 -0
- data/docs/projects/ProjectUsers.md +19 -0
- data/docs/projects/Projects.md +19 -0
- data/docs/projects/Task.md +45 -0
- data/docs/projects/TaskCreateOrUpdate.md +23 -0
- data/docs/projects/Tasks.md +19 -0
- data/docs/projects/TimeEntries.md +19 -0
- data/docs/projects/TimeEntry.md +33 -0
- data/docs/projects/TimeEntryCreateOrUpdate.md +25 -0
- data/git_push.sh +55 -0
- data/lib/xero-ruby.rb +10 -1
- data/lib/xero-ruby/api/accounting_api.rb +79 -3
- data/lib/xero-ruby/api/asset_api.rb +1 -1
- data/lib/xero-ruby/api/files_api.rb +1 -1
- data/lib/xero-ruby/api/payroll_au_api.rb +1 -1
- data/lib/xero-ruby/api/payroll_nz_api.rb +1 -1
- data/lib/xero-ruby/api/payroll_uk_api.rb +1 -1
- data/lib/xero-ruby/api/project_api.rb +4 -1
- data/lib/xero-ruby/api_client.rb +1 -1
- data/lib/xero-ruby/api_error.rb +1 -1
- data/lib/xero-ruby/configuration.rb +1 -1
- data/lib/xero-ruby/models/accounting/account.rb +2 -1
- data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +1 -1
- data/lib/xero-ruby/models/accounting/action.rb +1 -1
- data/lib/xero-ruby/models/accounting/actions.rb +1 -1
- data/lib/xero-ruby/models/accounting/address.rb +1 -1
- data/lib/xero-ruby/models/accounting/allocation.rb +1 -1
- data/lib/xero-ruby/models/accounting/allocations.rb +1 -1
- data/lib/xero-ruby/models/accounting/attachment.rb +1 -1
- data/lib/xero-ruby/models/accounting/attachments.rb +1 -1
- data/lib/xero-ruby/models/accounting/balance_details.rb +229 -0
- data/lib/xero-ruby/models/accounting/balances.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +1 -1
- data/lib/xero-ruby/models/accounting/batch_payment.rb +6 -6
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +1 -1
- data/lib/xero-ruby/models/accounting/batch_payments.rb +1 -1
- data/lib/xero-ruby/models/accounting/bill.rb +1 -1
- data/lib/xero-ruby/models/accounting/branding_theme.rb +1 -1
- data/lib/xero-ruby/models/accounting/branding_themes.rb +1 -1
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +1 -1
- data/lib/xero-ruby/models/accounting/cis_setting.rb +1 -1
- data/lib/xero-ruby/models/accounting/cis_settings.rb +1 -1
- data/lib/xero-ruby/models/accounting/contact.rb +1 -1
- data/lib/xero-ruby/models/accounting/contact_group.rb +1 -1
- data/lib/xero-ruby/models/accounting/contact_groups.rb +1 -1
- data/lib/xero-ruby/models/accounting/contact_person.rb +1 -1
- data/lib/xero-ruby/models/accounting/contacts.rb +1 -1
- data/lib/xero-ruby/models/accounting/conversion_balances.rb +231 -0
- data/lib/xero-ruby/models/accounting/conversion_date.rb +219 -0
- data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
- data/lib/xero-ruby/models/accounting/credit_note.rb +12 -2
- data/lib/xero-ruby/models/accounting/credit_notes.rb +1 -1
- data/lib/xero-ruby/models/accounting/currencies.rb +1 -1
- data/lib/xero-ruby/models/accounting/currency.rb +1 -1
- data/lib/xero-ruby/models/accounting/currency_code.rb +1 -1
- data/lib/xero-ruby/models/accounting/element.rb +1 -1
- data/lib/xero-ruby/models/accounting/employee.rb +1 -1
- data/lib/xero-ruby/models/accounting/employees.rb +1 -1
- data/lib/xero-ruby/models/accounting/error.rb +1 -1
- data/lib/xero-ruby/models/accounting/expense_claim.rb +1 -1
- data/lib/xero-ruby/models/accounting/expense_claims.rb +1 -1
- data/lib/xero-ruby/models/accounting/external_link.rb +1 -1
- data/lib/xero-ruby/models/accounting/history_record.rb +1 -1
- data/lib/xero-ruby/models/accounting/history_records.rb +1 -1
- data/lib/xero-ruby/models/accounting/import_summary.rb +219 -0
- data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +289 -0
- data/lib/xero-ruby/models/accounting/import_summary_object.rb +208 -0
- data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +208 -0
- data/lib/xero-ruby/models/accounting/invoice.rb +1 -1
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +1 -1
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +1 -1
- data/lib/xero-ruby/models/accounting/invoices.rb +1 -1
- data/lib/xero-ruby/models/accounting/item.rb +1 -1
- data/lib/xero-ruby/models/accounting/items.rb +1 -1
- data/lib/xero-ruby/models/accounting/journal.rb +1 -1
- data/lib/xero-ruby/models/accounting/journal_line.rb +1 -1
- data/lib/xero-ruby/models/accounting/journals.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_item.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +1 -1
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +1 -1
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +1 -1
- data/lib/xero-ruby/models/accounting/manual_journal.rb +1 -1
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +1 -1
- data/lib/xero-ruby/models/accounting/manual_journals.rb +1 -1
- data/lib/xero-ruby/models/accounting/online_invoice.rb +1 -1
- data/lib/xero-ruby/models/accounting/online_invoices.rb +1 -1
- data/lib/xero-ruby/models/accounting/organisation.rb +3 -1
- data/lib/xero-ruby/models/accounting/organisations.rb +1 -1
- data/lib/xero-ruby/models/accounting/overpayment.rb +1 -1
- data/lib/xero-ruby/models/accounting/overpayments.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_delete.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_service.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_services.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_term.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/payments.rb +1 -1
- data/lib/xero-ruby/models/accounting/phone.rb +1 -1
- data/lib/xero-ruby/models/accounting/prepayment.rb +1 -1
- data/lib/xero-ruby/models/accounting/prepayments.rb +1 -1
- data/lib/xero-ruby/models/accounting/purchase.rb +1 -1
- data/lib/xero-ruby/models/accounting/purchase_order.rb +1 -1
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +1 -1
- data/lib/xero-ruby/models/accounting/quote.rb +1 -1
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
- data/lib/xero-ruby/models/accounting/quotes.rb +1 -1
- data/lib/xero-ruby/models/accounting/receipt.rb +1 -1
- data/lib/xero-ruby/models/accounting/receipts.rb +1 -1
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +1 -1
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +1 -1
- data/lib/xero-ruby/models/accounting/report.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_attribute.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_cell.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_fields.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_row.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_rows.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_with_row.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +1 -1
- data/lib/xero-ruby/models/accounting/reports.rb +1 -1
- data/lib/xero-ruby/models/accounting/request_empty.rb +1 -1
- data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +1 -1
- data/lib/xero-ruby/models/accounting/schedule.rb +1 -1
- data/lib/xero-ruby/models/accounting/setup.rb +232 -0
- data/lib/xero-ruby/models/accounting/tax_component.rb +1 -1
- data/lib/xero-ruby/models/accounting/tax_rate.rb +1 -1
- data/lib/xero-ruby/models/accounting/tax_rates.rb +1 -1
- data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +1 -1
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_category.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_option.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_options.rb +1 -1
- data/lib/xero-ruby/models/accounting/user.rb +1 -1
- data/lib/xero-ruby/models/accounting/users.rb +1 -1
- data/lib/xero-ruby/models/accounting/validation_error.rb +1 -1
- data/lib/xero-ruby/models/assets/asset.rb +12 -2
- data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_type.rb +1 -1
- data/lib/xero-ruby/models/assets/assets.rb +1 -1
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +1 -1
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +1 -1
- data/lib/xero-ruby/models/assets/error.rb +1 -1
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +1 -1
- data/lib/xero-ruby/models/assets/pagination.rb +1 -1
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +1 -1
- data/lib/xero-ruby/models/assets/setting.rb +1 -1
- data/lib/xero-ruby/models/files/association.rb +1 -1
- data/lib/xero-ruby/models/files/file_object.rb +12 -12
- data/lib/xero-ruby/models/files/file_response204.rb +1 -1
- data/lib/xero-ruby/models/files/files.rb +1 -1
- data/lib/xero-ruby/models/files/folder.rb +1 -1
- data/lib/xero-ruby/models/files/folders.rb +1 -1
- data/lib/xero-ruby/models/files/inline_object.rb +1 -1
- data/lib/xero-ruby/models/files/object_group.rb +1 -1
- data/lib/xero-ruby/models/files/object_type.rb +54 -32
- data/lib/xero-ruby/models/files/user.rb +24 -89
- data/lib/xero-ruby/models/payroll_au/account.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/account_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/api_exception.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/bank_account.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/calendar_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employee.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employee_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employees.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/home_address.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_applications.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_balance.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_lines.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_period.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_item.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_items.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_run.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_runs.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_template.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslip.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslip_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslips.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/rate_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/residency_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/state.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_funds.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_membership.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/tax_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheets.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/validation_error.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/account.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/accounts.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/address.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/bank_account.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/benefit.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +42 -0
- data/lib/xero-ruby/models/payroll_nz/deduction.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/deductions.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +14 -9
- data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employees.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employment.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employment_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/leave_types.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/pagination.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/pay_run.rb +3 -21
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +3 -43
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/payment_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/payment_method.rb +1 -6
- data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/problem.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +1 -6
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/settings.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/superannuations.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/tax_code.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/tax_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +2 -2
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/timesheets.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/account.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/accounts.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/address.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/bank_account.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/benefit.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/benefits.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/deduction.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/deductions.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employees.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employment.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employment_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/leave_period.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/leave_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/leave_types.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/pagination.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/payment_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/payment_method.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/payslip.rb +14 -2
- data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/payslips.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/problem.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/settings.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/tax_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/timesheets.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +1 -1
- data/lib/xero-ruby/models/projects/amount.rb +1 -1
- data/lib/xero-ruby/models/projects/charge_type.rb +1 -1
- data/lib/xero-ruby/models/projects/currency_code.rb +1 -1
- data/lib/xero-ruby/models/projects/error.rb +1 -1
- data/lib/xero-ruby/models/projects/pagination.rb +1 -1
- data/lib/xero-ruby/models/projects/project.rb +1 -1
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +1 -1
- data/lib/xero-ruby/models/projects/project_patch.rb +1 -1
- data/lib/xero-ruby/models/projects/project_status.rb +1 -1
- data/lib/xero-ruby/models/projects/project_user.rb +1 -1
- data/lib/xero-ruby/models/projects/project_users.rb +1 -1
- data/lib/xero-ruby/models/projects/projects.rb +1 -1
- data/lib/xero-ruby/models/projects/task.rb +1 -1
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +1 -1
- data/lib/xero-ruby/models/projects/tasks.rb +1 -1
- data/lib/xero-ruby/models/projects/time_entries.rb +1 -1
- data/lib/xero-ruby/models/projects/time_entry.rb +1 -1
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +1 -1
- data/lib/xero-ruby/version.rb +2 -2
- data/xero-ruby.gem +0 -0
- data/xero-ruby.gemspec +38 -0
- metadata +458 -2
@@ -0,0 +1,21 @@
|
|
1
|
+
# XeroRuby::PayrollUk::PayRunCalendarObject
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
**problem** | [**Problem**](Problem.md) | | [optional]
|
9
|
+
**pay_run_calendar** | [**PayRunCalendar**](PayRunCalendar.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'XeroRuby::PayrollUk'
|
15
|
+
|
16
|
+
instance = XeroRuby::PayrollUk::PayRunCalendarObject.new(pagination: null,
|
17
|
+
problem: null,
|
18
|
+
pay_run_calendar: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# XeroRuby::PayrollUk::PayRunCalendars
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
**problem** | [**Problem**](Problem.md) | | [optional]
|
9
|
+
**pay_run_calendars** | [**Array<PayRunCalendar>**](PayRunCalendar.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'XeroRuby::PayrollUk'
|
15
|
+
|
16
|
+
instance = XeroRuby::PayrollUk::PayRunCalendars.new(pagination: null,
|
17
|
+
problem: null,
|
18
|
+
pay_run_calendars: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# XeroRuby::PayrollUk::PayRunObject
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
**problem** | [**Problem**](Problem.md) | | [optional]
|
9
|
+
**pay_run** | [**PayRun**](PayRun.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'XeroRuby::PayrollUk'
|
15
|
+
|
16
|
+
instance = XeroRuby::PayrollUk::PayRunObject.new(pagination: null,
|
17
|
+
problem: null,
|
18
|
+
pay_run: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# XeroRuby::PayrollUk::PayRuns
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
**problem** | [**Problem**](Problem.md) | | [optional]
|
9
|
+
**pay_runs** | [**Array<PayRun>**](PayRun.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'XeroRuby::PayrollUk'
|
15
|
+
|
16
|
+
instance = XeroRuby::PayrollUk::PayRuns.new(pagination: null,
|
17
|
+
problem: null,
|
18
|
+
pay_runs: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# XeroRuby::PayrollUk::PaymentLine
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**payment_line_id** | **String** | Xero identifier for payroll payment line | [optional]
|
8
|
+
**amount** | **Float** | The amount of the payment line | [optional]
|
9
|
+
**account_number** | **String** | The account number | [optional]
|
10
|
+
**sort_code** | **String** | The account sort code | [optional]
|
11
|
+
**account_name** | **String** | The account name | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'XeroRuby::PayrollUk'
|
17
|
+
|
18
|
+
instance = XeroRuby::PayrollUk::PaymentLine.new(payment_line_id: null,
|
19
|
+
amount: null,
|
20
|
+
account_number: null,
|
21
|
+
sort_code: null,
|
22
|
+
account_name: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# XeroRuby::PayrollUk::PaymentMethod
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**payment_method** | **String** | The payment method code |
|
8
|
+
**bank_accounts** | [**Array<BankAccount>**](BankAccount.md) | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'XeroRuby::PayrollUk'
|
14
|
+
|
15
|
+
instance = XeroRuby::PayrollUk::PaymentMethod.new(payment_method: null,
|
16
|
+
bank_accounts: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# XeroRuby::PayrollUk::PaymentMethodObject
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
**problem** | [**Problem**](Problem.md) | | [optional]
|
9
|
+
**payment_method** | [**PaymentMethod**](PaymentMethod.md) | | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'XeroRuby::PayrollUk'
|
15
|
+
|
16
|
+
instance = XeroRuby::PayrollUk::PaymentMethodObject.new(pagination: null,
|
17
|
+
problem: null,
|
18
|
+
payment_method: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,4683 @@
|
|
1
|
+
# XeroRuby::PayrollUk::PayrollUkApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.xero.com/payroll.xro/2.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**approve_timesheet**](PayrollUkApi.md#approve_timesheet) | **POST** /Timesheets/{TimesheetID}/Approve | approve a timesheet
|
8
|
+
[**create_benefit**](PayrollUkApi.md#create_benefit) | **POST** /Benefits | create a new benefit
|
9
|
+
[**create_deduction**](PayrollUkApi.md#create_deduction) | **POST** /Deductions | create a new deduction
|
10
|
+
[**create_earnings_rate**](PayrollUkApi.md#create_earnings_rate) | **POST** /EarningsRates | create a new earnings rate
|
11
|
+
[**create_employee**](PayrollUkApi.md#create_employee) | **POST** /Employees | creates employees
|
12
|
+
[**create_employee_earnings_template**](PayrollUkApi.md#create_employee_earnings_template) | **POST** /Employees/{EmployeeId}/PayTemplates/earnings | creates employee earnings template records
|
13
|
+
[**create_employee_leave**](PayrollUkApi.md#create_employee_leave) | **POST** /Employees/{EmployeeId}/Leave | creates employee leave records
|
14
|
+
[**create_employee_leave_type**](PayrollUkApi.md#create_employee_leave_type) | **POST** /Employees/{EmployeeId}/LeaveTypes | creates employee leave type records
|
15
|
+
[**create_employee_opening_balances**](PayrollUkApi.md#create_employee_opening_balances) | **POST** /Employees/{EmployeeId}/ukopeningbalances | creates employee opening balances
|
16
|
+
[**create_employee_payment_method**](PayrollUkApi.md#create_employee_payment_method) | **POST** /Employees/{EmployeeId}/PaymentMethods | creates employee payment method
|
17
|
+
[**create_employee_salary_and_wage**](PayrollUkApi.md#create_employee_salary_and_wage) | **POST** /Employees/{EmployeeId}/SalaryAndWages | creates employee salary and wage record
|
18
|
+
[**create_employee_statutory_sick_leave**](PayrollUkApi.md#create_employee_statutory_sick_leave) | **POST** /StatutoryLeaves/Sick | creates employee statutory sick leave records
|
19
|
+
[**create_employment**](PayrollUkApi.md#create_employment) | **POST** /Employees/{EmployeeId}/Employment | creates employment
|
20
|
+
[**create_leave_type**](PayrollUkApi.md#create_leave_type) | **POST** /LeaveTypes | create a new leave type
|
21
|
+
[**create_multiple_employee_earnings_template**](PayrollUkApi.md#create_multiple_employee_earnings_template) | **POST** /Employees/{EmployeeId}/paytemplateearnings | creates multiple employee earnings template records
|
22
|
+
[**create_pay_run_calendar**](PayrollUkApi.md#create_pay_run_calendar) | **POST** /PayRunCalendars | create a new payrun calendar
|
23
|
+
[**create_reimbursement**](PayrollUkApi.md#create_reimbursement) | **POST** /Reimbursements | create a new reimbursement
|
24
|
+
[**create_timesheet**](PayrollUkApi.md#create_timesheet) | **POST** /Timesheets | create a new timesheet
|
25
|
+
[**create_timesheet_line**](PayrollUkApi.md#create_timesheet_line) | **POST** /Timesheets/{TimesheetID}/Lines | create a new timesheet line
|
26
|
+
[**delete_employee_earnings_template**](PayrollUkApi.md#delete_employee_earnings_template) | **DELETE** /Employees/{EmployeeId}/PayTemplates/earnings/{PayTemplateEarningID} | deletes an employee earnings template record
|
27
|
+
[**delete_employee_leave**](PayrollUkApi.md#delete_employee_leave) | **DELETE** /Employees/{EmployeeId}/Leave/{LeaveID} | deletes an employee leave record
|
28
|
+
[**delete_employee_salary_and_wage**](PayrollUkApi.md#delete_employee_salary_and_wage) | **DELETE** /Employees/{EmployeeId}/SalaryAndWages/{SalaryAndWagesID} | deletes an employee salary and wages record
|
29
|
+
[**delete_timesheet**](PayrollUkApi.md#delete_timesheet) | **DELETE** /Timesheets/{TimesheetID} | delete a timesheet
|
30
|
+
[**delete_timesheet_line**](PayrollUkApi.md#delete_timesheet_line) | **DELETE** /Timesheets/{TimesheetID}/Lines/{TimesheetLineID} | delete a timesheet line
|
31
|
+
[**get_benefit**](PayrollUkApi.md#get_benefit) | **GET** /Benefits/{id} | retrieve a single benefit by id
|
32
|
+
[**get_benefits**](PayrollUkApi.md#get_benefits) | **GET** /Benefits | searches benefits
|
33
|
+
[**get_deduction**](PayrollUkApi.md#get_deduction) | **GET** /Deductions/{deductionId} | retrieve a single deduction by id
|
34
|
+
[**get_deductions**](PayrollUkApi.md#get_deductions) | **GET** /Deductions | searches deductions
|
35
|
+
[**get_earnings_order**](PayrollUkApi.md#get_earnings_order) | **GET** /EarningsOrders/{id} | retrieve a single deduction by id
|
36
|
+
[**get_earnings_orders**](PayrollUkApi.md#get_earnings_orders) | **GET** /EarningsOrders | searches earnings orders
|
37
|
+
[**get_earnings_rate**](PayrollUkApi.md#get_earnings_rate) | **GET** /EarningsRates/{EarningsRateID} | retrieve a single earnings rates by id
|
38
|
+
[**get_earnings_rates**](PayrollUkApi.md#get_earnings_rates) | **GET** /EarningsRates | searches earnings rates
|
39
|
+
[**get_employee**](PayrollUkApi.md#get_employee) | **GET** /Employees/{EmployeeId} | searches employees
|
40
|
+
[**get_employee_leave**](PayrollUkApi.md#get_employee_leave) | **GET** /Employees/{EmployeeId}/Leave/{LeaveID} | retrieve a single employee leave record
|
41
|
+
[**get_employee_leave_balances**](PayrollUkApi.md#get_employee_leave_balances) | **GET** /Employees/{EmployeeId}/LeaveBalances | search employee leave balances
|
42
|
+
[**get_employee_leave_periods**](PayrollUkApi.md#get_employee_leave_periods) | **GET** /Employees/{EmployeeId}/LeavePeriods | searches employee leave periods
|
43
|
+
[**get_employee_leave_types**](PayrollUkApi.md#get_employee_leave_types) | **GET** /Employees/{EmployeeId}/LeaveTypes | searches employee leave types
|
44
|
+
[**get_employee_leaves**](PayrollUkApi.md#get_employee_leaves) | **GET** /Employees/{EmployeeId}/Leave | search employee leave records
|
45
|
+
[**get_employee_opening_balances**](PayrollUkApi.md#get_employee_opening_balances) | **GET** /Employees/{EmployeeId}/ukopeningbalances | retrieve employee openingbalances
|
46
|
+
[**get_employee_pay_template**](PayrollUkApi.md#get_employee_pay_template) | **GET** /Employees/{EmployeeId}/PayTemplates | searches employee pay templates
|
47
|
+
[**get_employee_payment_method**](PayrollUkApi.md#get_employee_payment_method) | **GET** /Employees/{EmployeeId}/PaymentMethods | retrieves an employee's payment method
|
48
|
+
[**get_employee_salary_and_wage**](PayrollUkApi.md#get_employee_salary_and_wage) | **GET** /Employees/{EmployeeId}/SalaryAndWages/{SalaryAndWagesID} | get employee salary and wages record by id
|
49
|
+
[**get_employee_salary_and_wages**](PayrollUkApi.md#get_employee_salary_and_wages) | **GET** /Employees/{EmployeeId}/SalaryAndWages | retrieves an employee's salary and wages
|
50
|
+
[**get_employee_statutory_leave_balances**](PayrollUkApi.md#get_employee_statutory_leave_balances) | **GET** /Employees/{EmployeeId}/StatutoryLeaveBalance | search employee leave balances
|
51
|
+
[**get_employee_statutory_sick_leave**](PayrollUkApi.md#get_employee_statutory_sick_leave) | **GET** /StatutoryLeaves/Sick/{StatutorySickLeaveID} | retrieve a statutory sick leave for an employee
|
52
|
+
[**get_employee_tax**](PayrollUkApi.md#get_employee_tax) | **GET** /Employees/{EmployeeId}/Tax | searches tax records for an employee
|
53
|
+
[**get_employees**](PayrollUkApi.md#get_employees) | **GET** /Employees | searches employees
|
54
|
+
[**get_leave_type**](PayrollUkApi.md#get_leave_type) | **GET** /LeaveTypes/{LeaveTypeID} | retrieve a single leave type by id
|
55
|
+
[**get_leave_types**](PayrollUkApi.md#get_leave_types) | **GET** /LeaveTypes | searches leave types
|
56
|
+
[**get_pay_run**](PayrollUkApi.md#get_pay_run) | **GET** /PayRuns/{PayRunID} | retrieve a single pay run by id
|
57
|
+
[**get_pay_run_calendar**](PayrollUkApi.md#get_pay_run_calendar) | **GET** /PayRunCalendars/{PayRunCalendarID} | retrieve a single payrun calendar by id
|
58
|
+
[**get_pay_run_calendars**](PayrollUkApi.md#get_pay_run_calendars) | **GET** /PayRunCalendars | searches payrun calendars
|
59
|
+
[**get_pay_runs**](PayrollUkApi.md#get_pay_runs) | **GET** /PayRuns | searches pay runs
|
60
|
+
[**get_pay_slip**](PayrollUkApi.md#get_pay_slip) | **GET** /Payslips/{PayslipID} | retrieve a single payslip by id
|
61
|
+
[**get_pay_slips**](PayrollUkApi.md#get_pay_slips) | **GET** /Payslips | searches payslips
|
62
|
+
[**get_reimbursement**](PayrollUkApi.md#get_reimbursement) | **GET** /Reimbursements/{ReimbursementID} | retrieve a single reimbursement by id
|
63
|
+
[**get_reimbursements**](PayrollUkApi.md#get_reimbursements) | **GET** /Reimbursements | searches reimbursements
|
64
|
+
[**get_settings**](PayrollUkApi.md#get_settings) | **GET** /Settings | searches settings
|
65
|
+
[**get_statutory_leave_summary**](PayrollUkApi.md#get_statutory_leave_summary) | **GET** /statutoryleaves/summary/{EmployeeId} | retrieve a summary of statutory leaves for an employee
|
66
|
+
[**get_timesheet**](PayrollUkApi.md#get_timesheet) | **GET** /Timesheets/{TimesheetID} | retrieve a single timesheet by id
|
67
|
+
[**get_timesheets**](PayrollUkApi.md#get_timesheets) | **GET** /Timesheets | searches timesheets
|
68
|
+
[**get_tracking_categories**](PayrollUkApi.md#get_tracking_categories) | **GET** /settings/trackingCategories | searches tracking categories
|
69
|
+
[**revert_timesheet**](PayrollUkApi.md#revert_timesheet) | **POST** /Timesheets/{TimesheetID}/RevertToDraft | revert a timesheet to draft
|
70
|
+
[**update_employee**](PayrollUkApi.md#update_employee) | **PUT** /Employees/{EmployeeId} | updates employee
|
71
|
+
[**update_employee_earnings_template**](PayrollUkApi.md#update_employee_earnings_template) | **PUT** /Employees/{EmployeeId}/PayTemplates/earnings/{PayTemplateEarningID} | updates employee earnings template records
|
72
|
+
[**update_employee_leave**](PayrollUkApi.md#update_employee_leave) | **PUT** /Employees/{EmployeeId}/Leave/{LeaveID} | updates employee leave records
|
73
|
+
[**update_employee_opening_balances**](PayrollUkApi.md#update_employee_opening_balances) | **PUT** /Employees/{EmployeeId}/ukopeningbalances | updates employee opening balances
|
74
|
+
[**update_employee_salary_and_wage**](PayrollUkApi.md#update_employee_salary_and_wage) | **PUT** /Employees/{EmployeeId}/SalaryAndWages/{SalaryAndWagesID} | updates employee salary and wages record
|
75
|
+
[**update_pay_run**](PayrollUkApi.md#update_pay_run) | **PUT** /PayRuns/{PayRunID} | update a pay run
|
76
|
+
[**update_timesheet_line**](PayrollUkApi.md#update_timesheet_line) | **PUT** /Timesheets/{TimesheetID}/Lines/{TimesheetLineID} | update a timesheet line
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
## approve_timesheet
|
81
|
+
|
82
|
+
> TimesheetObject approve_timesheet(xero_tenant_id, timesheet_id)
|
83
|
+
|
84
|
+
approve a timesheet
|
85
|
+
|
86
|
+
### Example
|
87
|
+
|
88
|
+
```ruby
|
89
|
+
# load the gem
|
90
|
+
require 'xero-ruby'
|
91
|
+
|
92
|
+
creds = {
|
93
|
+
client_id: ENV['CLIENT_ID'],
|
94
|
+
client_secret: ENV['CLIENT_SECRET'],
|
95
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
96
|
+
scopes: ENV['SCOPES']
|
97
|
+
}
|
98
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
99
|
+
|
100
|
+
token_set = fetch_valid_token_set(user) # example
|
101
|
+
|
102
|
+
xero_client.refresh_token_set(token_set)
|
103
|
+
|
104
|
+
# You need to namespace your api method call to one of the following api sets
|
105
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
106
|
+
|
107
|
+
api_instance = xero_client.<api_set>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
112
|
+
timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
|
113
|
+
begin
|
114
|
+
#approve a timesheet
|
115
|
+
result = api_instance.approve_timesheet(xero_tenant_id, timesheet_id)
|
116
|
+
p result
|
117
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
118
|
+
puts "Exception when calling PayrollUkApi->approve_timesheet: #{e}"
|
119
|
+
end
|
120
|
+
```
|
121
|
+
|
122
|
+
### Parameters
|
123
|
+
|
124
|
+
|
125
|
+
Name | Type | Description | Notes
|
126
|
+
------------- | ------------- | ------------- | -------------
|
127
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
128
|
+
**timesheet_id** | [**String**](.md)| Identifier for the timesheet |
|
129
|
+
|
130
|
+
### Return type
|
131
|
+
|
132
|
+
[**TimesheetObject**](TimesheetObject.md)
|
133
|
+
|
134
|
+
### Authorization
|
135
|
+
|
136
|
+
[OAuth2](../README.md#OAuth2)
|
137
|
+
|
138
|
+
### HTTP request headers
|
139
|
+
|
140
|
+
- **Content-Type**: Not defined
|
141
|
+
- **Accept**: application/json
|
142
|
+
|
143
|
+
|
144
|
+
## create_benefit
|
145
|
+
|
146
|
+
> BenefitObject create_benefit(xero_tenant_id, benefit)
|
147
|
+
|
148
|
+
create a new benefit
|
149
|
+
|
150
|
+
### Example
|
151
|
+
|
152
|
+
```ruby
|
153
|
+
# load the gem
|
154
|
+
require 'xero-ruby'
|
155
|
+
|
156
|
+
creds = {
|
157
|
+
client_id: ENV['CLIENT_ID'],
|
158
|
+
client_secret: ENV['CLIENT_SECRET'],
|
159
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
160
|
+
scopes: ENV['SCOPES']
|
161
|
+
}
|
162
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
163
|
+
|
164
|
+
token_set = fetch_valid_token_set(user) # example
|
165
|
+
|
166
|
+
xero_client.refresh_token_set(token_set)
|
167
|
+
|
168
|
+
# You need to namespace your api method call to one of the following api sets
|
169
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
170
|
+
|
171
|
+
api_instance = xero_client.<api_set>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
176
|
+
benefit = { "name": "My Big Bennie", "category": "StakeholderPension", "liabilityAccountId": "e0faa299-ca0d-4b0a-9e32-0dfabdf9179a", "expenseAccountId": "4b03500d-32fd-4616-8d70-e1e56e0519c6", "standardAmount": 50, "percentage": 25, "calculationType": "PercentageOfGross" } # Benefit |
|
177
|
+
begin
|
178
|
+
#create a new benefit
|
179
|
+
result = api_instance.create_benefit(xero_tenant_id, benefit)
|
180
|
+
p result
|
181
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
182
|
+
puts "Exception when calling PayrollUkApi->create_benefit: #{e}"
|
183
|
+
end
|
184
|
+
```
|
185
|
+
|
186
|
+
### Parameters
|
187
|
+
|
188
|
+
|
189
|
+
Name | Type | Description | Notes
|
190
|
+
------------- | ------------- | ------------- | -------------
|
191
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
192
|
+
**benefit** | [**Benefit**](Benefit.md)| |
|
193
|
+
|
194
|
+
### Return type
|
195
|
+
|
196
|
+
[**BenefitObject**](BenefitObject.md)
|
197
|
+
|
198
|
+
### Authorization
|
199
|
+
|
200
|
+
[OAuth2](../README.md#OAuth2)
|
201
|
+
|
202
|
+
### HTTP request headers
|
203
|
+
|
204
|
+
- **Content-Type**: application/json
|
205
|
+
- **Accept**: application/json
|
206
|
+
|
207
|
+
|
208
|
+
## create_deduction
|
209
|
+
|
210
|
+
> DeductionObject create_deduction(xero_tenant_id, deduction)
|
211
|
+
|
212
|
+
create a new deduction
|
213
|
+
|
214
|
+
### Example
|
215
|
+
|
216
|
+
```ruby
|
217
|
+
# load the gem
|
218
|
+
require 'xero-ruby'
|
219
|
+
|
220
|
+
creds = {
|
221
|
+
client_id: ENV['CLIENT_ID'],
|
222
|
+
client_secret: ENV['CLIENT_SECRET'],
|
223
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
224
|
+
scopes: ENV['SCOPES']
|
225
|
+
}
|
226
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
227
|
+
|
228
|
+
token_set = fetch_valid_token_set(user) # example
|
229
|
+
|
230
|
+
xero_client.refresh_token_set(token_set)
|
231
|
+
|
232
|
+
# You need to namespace your api method call to one of the following api sets
|
233
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
234
|
+
|
235
|
+
api_instance = xero_client.<api_set>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
240
|
+
deduction = { "deductionName": "My new deducation", "deductionCategory": "SalarySacrifice", "liabilityAccountId": "e0faa299-ca0d-4b0a-9e32-0dfabdf9179a", "calculationType": "FixedAmount" } # Deduction |
|
241
|
+
begin
|
242
|
+
#create a new deduction
|
243
|
+
result = api_instance.create_deduction(xero_tenant_id, deduction)
|
244
|
+
p result
|
245
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
246
|
+
puts "Exception when calling PayrollUkApi->create_deduction: #{e}"
|
247
|
+
end
|
248
|
+
```
|
249
|
+
|
250
|
+
### Parameters
|
251
|
+
|
252
|
+
|
253
|
+
Name | Type | Description | Notes
|
254
|
+
------------- | ------------- | ------------- | -------------
|
255
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
256
|
+
**deduction** | [**Deduction**](Deduction.md)| |
|
257
|
+
|
258
|
+
### Return type
|
259
|
+
|
260
|
+
[**DeductionObject**](DeductionObject.md)
|
261
|
+
|
262
|
+
### Authorization
|
263
|
+
|
264
|
+
[OAuth2](../README.md#OAuth2)
|
265
|
+
|
266
|
+
### HTTP request headers
|
267
|
+
|
268
|
+
- **Content-Type**: application/json
|
269
|
+
- **Accept**: application/json
|
270
|
+
|
271
|
+
|
272
|
+
## create_earnings_rate
|
273
|
+
|
274
|
+
> EarningsRateObject create_earnings_rate(xero_tenant_id, earnings_rate)
|
275
|
+
|
276
|
+
create a new earnings rate
|
277
|
+
|
278
|
+
### Example
|
279
|
+
|
280
|
+
```ruby
|
281
|
+
# load the gem
|
282
|
+
require 'xero-ruby'
|
283
|
+
|
284
|
+
creds = {
|
285
|
+
client_id: ENV['CLIENT_ID'],
|
286
|
+
client_secret: ENV['CLIENT_SECRET'],
|
287
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
288
|
+
scopes: ENV['SCOPES']
|
289
|
+
}
|
290
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
291
|
+
|
292
|
+
token_set = fetch_valid_token_set(user) # example
|
293
|
+
|
294
|
+
xero_client.refresh_token_set(token_set)
|
295
|
+
|
296
|
+
# You need to namespace your api method call to one of the following api sets
|
297
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
298
|
+
|
299
|
+
api_instance = xero_client.<api_set>
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
304
|
+
earnings_rate = { "name": "My Earnings Rate", "earningsType": "RegularEarnings", "rateType": "RatePerUnit", "typeOfUnits": "hours", "expenseAccountID": "4b03500d-32fd-4616-8d70-e1e56e0519c6" } # EarningsRate |
|
305
|
+
begin
|
306
|
+
#create a new earnings rate
|
307
|
+
result = api_instance.create_earnings_rate(xero_tenant_id, earnings_rate)
|
308
|
+
p result
|
309
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
310
|
+
puts "Exception when calling PayrollUkApi->create_earnings_rate: #{e}"
|
311
|
+
end
|
312
|
+
```
|
313
|
+
|
314
|
+
### Parameters
|
315
|
+
|
316
|
+
|
317
|
+
Name | Type | Description | Notes
|
318
|
+
------------- | ------------- | ------------- | -------------
|
319
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
320
|
+
**earnings_rate** | [**EarningsRate**](EarningsRate.md)| |
|
321
|
+
|
322
|
+
### Return type
|
323
|
+
|
324
|
+
[**EarningsRateObject**](EarningsRateObject.md)
|
325
|
+
|
326
|
+
### Authorization
|
327
|
+
|
328
|
+
[OAuth2](../README.md#OAuth2)
|
329
|
+
|
330
|
+
### HTTP request headers
|
331
|
+
|
332
|
+
- **Content-Type**: application/json
|
333
|
+
- **Accept**: application/json
|
334
|
+
|
335
|
+
|
336
|
+
## create_employee
|
337
|
+
|
338
|
+
> EmployeeObject create_employee(xero_tenant_id, employee)
|
339
|
+
|
340
|
+
creates employees
|
341
|
+
|
342
|
+
### Example
|
343
|
+
|
344
|
+
```ruby
|
345
|
+
# load the gem
|
346
|
+
require 'xero-ruby'
|
347
|
+
|
348
|
+
creds = {
|
349
|
+
client_id: ENV['CLIENT_ID'],
|
350
|
+
client_secret: ENV['CLIENT_SECRET'],
|
351
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
352
|
+
scopes: ENV['SCOPES']
|
353
|
+
}
|
354
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
355
|
+
|
356
|
+
token_set = fetch_valid_token_set(user) # example
|
357
|
+
|
358
|
+
xero_client.refresh_token_set(token_set)
|
359
|
+
|
360
|
+
# You need to namespace your api method call to one of the following api sets
|
361
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
362
|
+
|
363
|
+
api_instance = xero_client.<api_set>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
368
|
+
employee = { "title":"Mr", "firstName":"Mike", "lastName":"Fancy", "dateOfBirth":"1999-01-01", "address":{ "addressLine1":"101 Green St", "city":"San Francisco", "postCode":"6TGR4F", "country":"UK" }, "email":"mike@starkindustries.com", "gender":"M" } # Employee |
|
369
|
+
begin
|
370
|
+
#creates employees
|
371
|
+
result = api_instance.create_employee(xero_tenant_id, employee)
|
372
|
+
p result
|
373
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
374
|
+
puts "Exception when calling PayrollUkApi->create_employee: #{e}"
|
375
|
+
end
|
376
|
+
```
|
377
|
+
|
378
|
+
### Parameters
|
379
|
+
|
380
|
+
|
381
|
+
Name | Type | Description | Notes
|
382
|
+
------------- | ------------- | ------------- | -------------
|
383
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
384
|
+
**employee** | [**Employee**](Employee.md)| |
|
385
|
+
|
386
|
+
### Return type
|
387
|
+
|
388
|
+
[**EmployeeObject**](EmployeeObject.md)
|
389
|
+
|
390
|
+
### Authorization
|
391
|
+
|
392
|
+
[OAuth2](../README.md#OAuth2)
|
393
|
+
|
394
|
+
### HTTP request headers
|
395
|
+
|
396
|
+
- **Content-Type**: application/json
|
397
|
+
- **Accept**: application/json
|
398
|
+
|
399
|
+
|
400
|
+
## create_employee_earnings_template
|
401
|
+
|
402
|
+
> EarningsTemplateObject create_employee_earnings_template(xero_tenant_id, employee_id, earnings_template)
|
403
|
+
|
404
|
+
creates employee earnings template records
|
405
|
+
|
406
|
+
### Example
|
407
|
+
|
408
|
+
```ruby
|
409
|
+
# load the gem
|
410
|
+
require 'xero-ruby'
|
411
|
+
|
412
|
+
creds = {
|
413
|
+
client_id: ENV['CLIENT_ID'],
|
414
|
+
client_secret: ENV['CLIENT_SECRET'],
|
415
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
416
|
+
scopes: ENV['SCOPES']
|
417
|
+
}
|
418
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
419
|
+
|
420
|
+
token_set = fetch_valid_token_set(user) # example
|
421
|
+
|
422
|
+
xero_client.refresh_token_set(token_set)
|
423
|
+
|
424
|
+
# You need to namespace your api method call to one of the following api sets
|
425
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
426
|
+
|
427
|
+
api_instance = xero_client.<api_set>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
432
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
433
|
+
earnings_template = XeroRuby::PayrollUk::EarningsTemplate.new # EarningsTemplate |
|
434
|
+
begin
|
435
|
+
#creates employee earnings template records
|
436
|
+
result = api_instance.create_employee_earnings_template(xero_tenant_id, employee_id, earnings_template)
|
437
|
+
p result
|
438
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
439
|
+
puts "Exception when calling PayrollUkApi->create_employee_earnings_template: #{e}"
|
440
|
+
end
|
441
|
+
```
|
442
|
+
|
443
|
+
### Parameters
|
444
|
+
|
445
|
+
|
446
|
+
Name | Type | Description | Notes
|
447
|
+
------------- | ------------- | ------------- | -------------
|
448
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
449
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
450
|
+
**earnings_template** | [**EarningsTemplate**](EarningsTemplate.md)| |
|
451
|
+
|
452
|
+
### Return type
|
453
|
+
|
454
|
+
[**EarningsTemplateObject**](EarningsTemplateObject.md)
|
455
|
+
|
456
|
+
### Authorization
|
457
|
+
|
458
|
+
[OAuth2](../README.md#OAuth2)
|
459
|
+
|
460
|
+
### HTTP request headers
|
461
|
+
|
462
|
+
- **Content-Type**: application/json
|
463
|
+
- **Accept**: application/json
|
464
|
+
|
465
|
+
|
466
|
+
## create_employee_leave
|
467
|
+
|
468
|
+
> EmployeeLeaveObject create_employee_leave(xero_tenant_id, employee_id, employee_leave)
|
469
|
+
|
470
|
+
creates employee leave records
|
471
|
+
|
472
|
+
### Example
|
473
|
+
|
474
|
+
```ruby
|
475
|
+
# load the gem
|
476
|
+
require 'xero-ruby'
|
477
|
+
|
478
|
+
creds = {
|
479
|
+
client_id: ENV['CLIENT_ID'],
|
480
|
+
client_secret: ENV['CLIENT_SECRET'],
|
481
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
482
|
+
scopes: ENV['SCOPES']
|
483
|
+
}
|
484
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
485
|
+
|
486
|
+
token_set = fetch_valid_token_set(user) # example
|
487
|
+
|
488
|
+
xero_client.refresh_token_set(token_set)
|
489
|
+
|
490
|
+
# You need to namespace your api method call to one of the following api sets
|
491
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
492
|
+
|
493
|
+
api_instance = xero_client.<api_set>
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
498
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
499
|
+
employee_leave = { "leaveTypeID": "1d2778ee-86ea-45c0-bbf8-1045485f6b3f", "description": "Creating a Desription", "startDate": "2020-03-24", "endDate": "2020-03-26" } # EmployeeLeave |
|
500
|
+
begin
|
501
|
+
#creates employee leave records
|
502
|
+
result = api_instance.create_employee_leave(xero_tenant_id, employee_id, employee_leave)
|
503
|
+
p result
|
504
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
505
|
+
puts "Exception when calling PayrollUkApi->create_employee_leave: #{e}"
|
506
|
+
end
|
507
|
+
```
|
508
|
+
|
509
|
+
### Parameters
|
510
|
+
|
511
|
+
|
512
|
+
Name | Type | Description | Notes
|
513
|
+
------------- | ------------- | ------------- | -------------
|
514
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
515
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
516
|
+
**employee_leave** | [**EmployeeLeave**](EmployeeLeave.md)| |
|
517
|
+
|
518
|
+
### Return type
|
519
|
+
|
520
|
+
[**EmployeeLeaveObject**](EmployeeLeaveObject.md)
|
521
|
+
|
522
|
+
### Authorization
|
523
|
+
|
524
|
+
[OAuth2](../README.md#OAuth2)
|
525
|
+
|
526
|
+
### HTTP request headers
|
527
|
+
|
528
|
+
- **Content-Type**: application/json
|
529
|
+
- **Accept**: application/json
|
530
|
+
|
531
|
+
|
532
|
+
## create_employee_leave_type
|
533
|
+
|
534
|
+
> EmployeeLeaveTypeObject create_employee_leave_type(xero_tenant_id, employee_id, employee_leave_type)
|
535
|
+
|
536
|
+
creates employee leave type records
|
537
|
+
|
538
|
+
### Example
|
539
|
+
|
540
|
+
```ruby
|
541
|
+
# load the gem
|
542
|
+
require 'xero-ruby'
|
543
|
+
|
544
|
+
creds = {
|
545
|
+
client_id: ENV['CLIENT_ID'],
|
546
|
+
client_secret: ENV['CLIENT_SECRET'],
|
547
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
548
|
+
scopes: ENV['SCOPES']
|
549
|
+
}
|
550
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
551
|
+
|
552
|
+
token_set = fetch_valid_token_set(user) # example
|
553
|
+
|
554
|
+
xero_client.refresh_token_set(token_set)
|
555
|
+
|
556
|
+
# You need to namespace your api method call to one of the following api sets
|
557
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
558
|
+
|
559
|
+
api_instance = xero_client.<api_set>
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
564
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
565
|
+
employee_leave_type = { "leaveTypeID": "4918f233-bd31-43f9-9633-bcc6de1178f2", "scheduleOfAccrual": "BeginningOfCalendarYear", "hoursAccruedAnnually": 10 } # EmployeeLeaveType |
|
566
|
+
begin
|
567
|
+
#creates employee leave type records
|
568
|
+
result = api_instance.create_employee_leave_type(xero_tenant_id, employee_id, employee_leave_type)
|
569
|
+
p result
|
570
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
571
|
+
puts "Exception when calling PayrollUkApi->create_employee_leave_type: #{e}"
|
572
|
+
end
|
573
|
+
```
|
574
|
+
|
575
|
+
### Parameters
|
576
|
+
|
577
|
+
|
578
|
+
Name | Type | Description | Notes
|
579
|
+
------------- | ------------- | ------------- | -------------
|
580
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
581
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
582
|
+
**employee_leave_type** | [**EmployeeLeaveType**](EmployeeLeaveType.md)| |
|
583
|
+
|
584
|
+
### Return type
|
585
|
+
|
586
|
+
[**EmployeeLeaveTypeObject**](EmployeeLeaveTypeObject.md)
|
587
|
+
|
588
|
+
### Authorization
|
589
|
+
|
590
|
+
[OAuth2](../README.md#OAuth2)
|
591
|
+
|
592
|
+
### HTTP request headers
|
593
|
+
|
594
|
+
- **Content-Type**: application/json
|
595
|
+
- **Accept**: application/json
|
596
|
+
|
597
|
+
|
598
|
+
## create_employee_opening_balances
|
599
|
+
|
600
|
+
> EmployeeOpeningBalancesObject create_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balances)
|
601
|
+
|
602
|
+
creates employee opening balances
|
603
|
+
|
604
|
+
### Example
|
605
|
+
|
606
|
+
```ruby
|
607
|
+
# load the gem
|
608
|
+
require 'xero-ruby'
|
609
|
+
|
610
|
+
creds = {
|
611
|
+
client_id: ENV['CLIENT_ID'],
|
612
|
+
client_secret: ENV['CLIENT_SECRET'],
|
613
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
614
|
+
scopes: ENV['SCOPES']
|
615
|
+
}
|
616
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
617
|
+
|
618
|
+
token_set = fetch_valid_token_set(user) # example
|
619
|
+
|
620
|
+
xero_client.refresh_token_set(token_set)
|
621
|
+
|
622
|
+
# You need to namespace your api method call to one of the following api sets
|
623
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
624
|
+
|
625
|
+
api_instance = xero_client.<api_set>
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
630
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
631
|
+
employee_opening_balances = { "statutoryAdoptionPay": 10, "statutoryMaternityPay": 10, "statutoryPaternityPay": 10, "statutorySharedParentalPay": 10, "statutorySickPay": 10, "priorEmployeeNumber": 10 } # EmployeeOpeningBalances |
|
632
|
+
begin
|
633
|
+
#creates employee opening balances
|
634
|
+
result = api_instance.create_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balances)
|
635
|
+
p result
|
636
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
637
|
+
puts "Exception when calling PayrollUkApi->create_employee_opening_balances: #{e}"
|
638
|
+
end
|
639
|
+
```
|
640
|
+
|
641
|
+
### Parameters
|
642
|
+
|
643
|
+
|
644
|
+
Name | Type | Description | Notes
|
645
|
+
------------- | ------------- | ------------- | -------------
|
646
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
647
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
648
|
+
**employee_opening_balances** | [**EmployeeOpeningBalances**](EmployeeOpeningBalances.md)| |
|
649
|
+
|
650
|
+
### Return type
|
651
|
+
|
652
|
+
[**EmployeeOpeningBalancesObject**](EmployeeOpeningBalancesObject.md)
|
653
|
+
|
654
|
+
### Authorization
|
655
|
+
|
656
|
+
[OAuth2](../README.md#OAuth2)
|
657
|
+
|
658
|
+
### HTTP request headers
|
659
|
+
|
660
|
+
- **Content-Type**: application/json
|
661
|
+
- **Accept**: application/json
|
662
|
+
|
663
|
+
|
664
|
+
## create_employee_payment_method
|
665
|
+
|
666
|
+
> PaymentMethodObject create_employee_payment_method(xero_tenant_id, employee_id, payment_method)
|
667
|
+
|
668
|
+
creates employee payment method
|
669
|
+
|
670
|
+
### Example
|
671
|
+
|
672
|
+
```ruby
|
673
|
+
# load the gem
|
674
|
+
require 'xero-ruby'
|
675
|
+
|
676
|
+
creds = {
|
677
|
+
client_id: ENV['CLIENT_ID'],
|
678
|
+
client_secret: ENV['CLIENT_SECRET'],
|
679
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
680
|
+
scopes: ENV['SCOPES']
|
681
|
+
}
|
682
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
683
|
+
|
684
|
+
token_set = fetch_valid_token_set(user) # example
|
685
|
+
|
686
|
+
xero_client.refresh_token_set(token_set)
|
687
|
+
|
688
|
+
# You need to namespace your api method call to one of the following api sets
|
689
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
690
|
+
|
691
|
+
api_instance = xero_client.<api_set>
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
696
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
697
|
+
payment_method = { "paymentMethod": "Electronically", "bankAccounts": [ { "accountName": "Sid BofA", "accountNumber": "24987654", "sortCode": "287654" } ] } # PaymentMethod |
|
698
|
+
begin
|
699
|
+
#creates employee payment method
|
700
|
+
result = api_instance.create_employee_payment_method(xero_tenant_id, employee_id, payment_method)
|
701
|
+
p result
|
702
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
703
|
+
puts "Exception when calling PayrollUkApi->create_employee_payment_method: #{e}"
|
704
|
+
end
|
705
|
+
```
|
706
|
+
|
707
|
+
### Parameters
|
708
|
+
|
709
|
+
|
710
|
+
Name | Type | Description | Notes
|
711
|
+
------------- | ------------- | ------------- | -------------
|
712
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
713
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
714
|
+
**payment_method** | [**PaymentMethod**](PaymentMethod.md)| |
|
715
|
+
|
716
|
+
### Return type
|
717
|
+
|
718
|
+
[**PaymentMethodObject**](PaymentMethodObject.md)
|
719
|
+
|
720
|
+
### Authorization
|
721
|
+
|
722
|
+
[OAuth2](../README.md#OAuth2)
|
723
|
+
|
724
|
+
### HTTP request headers
|
725
|
+
|
726
|
+
- **Content-Type**: application/json
|
727
|
+
- **Accept**: application/json
|
728
|
+
|
729
|
+
|
730
|
+
## create_employee_salary_and_wage
|
731
|
+
|
732
|
+
> SalaryAndWageObject create_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wage)
|
733
|
+
|
734
|
+
creates employee salary and wage record
|
735
|
+
|
736
|
+
### Example
|
737
|
+
|
738
|
+
```ruby
|
739
|
+
# load the gem
|
740
|
+
require 'xero-ruby'
|
741
|
+
|
742
|
+
creds = {
|
743
|
+
client_id: ENV['CLIENT_ID'],
|
744
|
+
client_secret: ENV['CLIENT_SECRET'],
|
745
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
746
|
+
scopes: ENV['SCOPES']
|
747
|
+
}
|
748
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
749
|
+
|
750
|
+
token_set = fetch_valid_token_set(user) # example
|
751
|
+
|
752
|
+
xero_client.refresh_token_set(token_set)
|
753
|
+
|
754
|
+
# You need to namespace your api method call to one of the following api sets
|
755
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
756
|
+
|
757
|
+
api_instance = xero_client.<api_set>
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
762
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
763
|
+
salary_and_wage = { "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnitsPerWeek": 2, "ratePerUnit": 10, "numberOfUnitsPerDay": 2, "effectiveFrom": "2020-05-01", "annualSalary": 100, "status": "ACTIVE", "paymentType": "Salary" } # SalaryAndWage |
|
764
|
+
begin
|
765
|
+
#creates employee salary and wage record
|
766
|
+
result = api_instance.create_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wage)
|
767
|
+
p result
|
768
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
769
|
+
puts "Exception when calling PayrollUkApi->create_employee_salary_and_wage: #{e}"
|
770
|
+
end
|
771
|
+
```
|
772
|
+
|
773
|
+
### Parameters
|
774
|
+
|
775
|
+
|
776
|
+
Name | Type | Description | Notes
|
777
|
+
------------- | ------------- | ------------- | -------------
|
778
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
779
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
780
|
+
**salary_and_wage** | [**SalaryAndWage**](SalaryAndWage.md)| |
|
781
|
+
|
782
|
+
### Return type
|
783
|
+
|
784
|
+
[**SalaryAndWageObject**](SalaryAndWageObject.md)
|
785
|
+
|
786
|
+
### Authorization
|
787
|
+
|
788
|
+
[OAuth2](../README.md#OAuth2)
|
789
|
+
|
790
|
+
### HTTP request headers
|
791
|
+
|
792
|
+
- **Content-Type**: application/json
|
793
|
+
- **Accept**: application/json
|
794
|
+
|
795
|
+
|
796
|
+
## create_employee_statutory_sick_leave
|
797
|
+
|
798
|
+
> EmployeeStatutorySickLeaveObject create_employee_statutory_sick_leave(xero_tenant_id, employee_statutory_sick_leave)
|
799
|
+
|
800
|
+
creates employee statutory sick leave records
|
801
|
+
|
802
|
+
### Example
|
803
|
+
|
804
|
+
```ruby
|
805
|
+
# load the gem
|
806
|
+
require 'xero-ruby'
|
807
|
+
|
808
|
+
creds = {
|
809
|
+
client_id: ENV['CLIENT_ID'],
|
810
|
+
client_secret: ENV['CLIENT_SECRET'],
|
811
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
812
|
+
scopes: ENV['SCOPES']
|
813
|
+
}
|
814
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
815
|
+
|
816
|
+
token_set = fetch_valid_token_set(user) # example
|
817
|
+
|
818
|
+
xero_client.refresh_token_set(token_set)
|
819
|
+
|
820
|
+
# You need to namespace your api method call to one of the following api sets
|
821
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
822
|
+
|
823
|
+
api_instance = xero_client.<api_set>
|
824
|
+
|
825
|
+
|
826
|
+
|
827
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
828
|
+
employee_statutory_sick_leave = { "employeeID": "aad6b292-7b94-408b-93f6-e489867e3fb0", "leaveTypeID": "aab78802-e9d3-4bbd-bc87-df858054988f", "startDate": "2020-04-21", "endDate": "2020-04-24", "workPattern": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ], "isPregnancyRelated": false, "sufficientNotice": true } # EmployeeStatutorySickLeave |
|
829
|
+
begin
|
830
|
+
#creates employee statutory sick leave records
|
831
|
+
result = api_instance.create_employee_statutory_sick_leave(xero_tenant_id, employee_statutory_sick_leave)
|
832
|
+
p result
|
833
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
834
|
+
puts "Exception when calling PayrollUkApi->create_employee_statutory_sick_leave: #{e}"
|
835
|
+
end
|
836
|
+
```
|
837
|
+
|
838
|
+
### Parameters
|
839
|
+
|
840
|
+
|
841
|
+
Name | Type | Description | Notes
|
842
|
+
------------- | ------------- | ------------- | -------------
|
843
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
844
|
+
**employee_statutory_sick_leave** | [**EmployeeStatutorySickLeave**](EmployeeStatutorySickLeave.md)| |
|
845
|
+
|
846
|
+
### Return type
|
847
|
+
|
848
|
+
[**EmployeeStatutorySickLeaveObject**](EmployeeStatutorySickLeaveObject.md)
|
849
|
+
|
850
|
+
### Authorization
|
851
|
+
|
852
|
+
[OAuth2](../README.md#OAuth2)
|
853
|
+
|
854
|
+
### HTTP request headers
|
855
|
+
|
856
|
+
- **Content-Type**: application/json
|
857
|
+
- **Accept**: application/json
|
858
|
+
|
859
|
+
|
860
|
+
## create_employment
|
861
|
+
|
862
|
+
> EmploymentObject create_employment(xero_tenant_id, employee_id, employment)
|
863
|
+
|
864
|
+
creates employment
|
865
|
+
|
866
|
+
### Example
|
867
|
+
|
868
|
+
```ruby
|
869
|
+
# load the gem
|
870
|
+
require 'xero-ruby'
|
871
|
+
|
872
|
+
creds = {
|
873
|
+
client_id: ENV['CLIENT_ID'],
|
874
|
+
client_secret: ENV['CLIENT_SECRET'],
|
875
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
876
|
+
scopes: ENV['SCOPES']
|
877
|
+
}
|
878
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
879
|
+
|
880
|
+
token_set = fetch_valid_token_set(user) # example
|
881
|
+
|
882
|
+
xero_client.refresh_token_set(token_set)
|
883
|
+
|
884
|
+
# You need to namespace your api method call to one of the following api sets
|
885
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
886
|
+
|
887
|
+
api_instance = xero_client.<api_set>
|
888
|
+
|
889
|
+
|
890
|
+
|
891
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
892
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
893
|
+
employment = { "PayrollCalendarID": "216d80e6-af55-47b1-b718-9457c3f5d2fe", "StartDate": "2020-04-01", "EmployeeNumber": "123ABC", "NICategory": "A" } # Employment |
|
894
|
+
begin
|
895
|
+
#creates employment
|
896
|
+
result = api_instance.create_employment(xero_tenant_id, employee_id, employment)
|
897
|
+
p result
|
898
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
899
|
+
puts "Exception when calling PayrollUkApi->create_employment: #{e}"
|
900
|
+
end
|
901
|
+
```
|
902
|
+
|
903
|
+
### Parameters
|
904
|
+
|
905
|
+
|
906
|
+
Name | Type | Description | Notes
|
907
|
+
------------- | ------------- | ------------- | -------------
|
908
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
909
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
910
|
+
**employment** | [**Employment**](Employment.md)| |
|
911
|
+
|
912
|
+
### Return type
|
913
|
+
|
914
|
+
[**EmploymentObject**](EmploymentObject.md)
|
915
|
+
|
916
|
+
### Authorization
|
917
|
+
|
918
|
+
[OAuth2](../README.md#OAuth2)
|
919
|
+
|
920
|
+
### HTTP request headers
|
921
|
+
|
922
|
+
- **Content-Type**: application/json
|
923
|
+
- **Accept**: application/json
|
924
|
+
|
925
|
+
|
926
|
+
## create_leave_type
|
927
|
+
|
928
|
+
> LeaveTypeObject create_leave_type(xero_tenant_id, leave_type)
|
929
|
+
|
930
|
+
create a new leave type
|
931
|
+
|
932
|
+
### Example
|
933
|
+
|
934
|
+
```ruby
|
935
|
+
# load the gem
|
936
|
+
require 'xero-ruby'
|
937
|
+
|
938
|
+
creds = {
|
939
|
+
client_id: ENV['CLIENT_ID'],
|
940
|
+
client_secret: ENV['CLIENT_SECRET'],
|
941
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
942
|
+
scopes: ENV['SCOPES']
|
943
|
+
}
|
944
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
945
|
+
|
946
|
+
token_set = fetch_valid_token_set(user) # example
|
947
|
+
|
948
|
+
xero_client.refresh_token_set(token_set)
|
949
|
+
|
950
|
+
# You need to namespace your api method call to one of the following api sets
|
951
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
952
|
+
|
953
|
+
api_instance = xero_client.<api_set>
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
958
|
+
leave_type = { "name": "My opebvwbfxf Leave", "isPaidLeave": false, "showOnPayslip": true } # LeaveType |
|
959
|
+
begin
|
960
|
+
#create a new leave type
|
961
|
+
result = api_instance.create_leave_type(xero_tenant_id, leave_type)
|
962
|
+
p result
|
963
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
964
|
+
puts "Exception when calling PayrollUkApi->create_leave_type: #{e}"
|
965
|
+
end
|
966
|
+
```
|
967
|
+
|
968
|
+
### Parameters
|
969
|
+
|
970
|
+
|
971
|
+
Name | Type | Description | Notes
|
972
|
+
------------- | ------------- | ------------- | -------------
|
973
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
974
|
+
**leave_type** | [**LeaveType**](LeaveType.md)| |
|
975
|
+
|
976
|
+
### Return type
|
977
|
+
|
978
|
+
[**LeaveTypeObject**](LeaveTypeObject.md)
|
979
|
+
|
980
|
+
### Authorization
|
981
|
+
|
982
|
+
[OAuth2](../README.md#OAuth2)
|
983
|
+
|
984
|
+
### HTTP request headers
|
985
|
+
|
986
|
+
- **Content-Type**: application/json
|
987
|
+
- **Accept**: application/json
|
988
|
+
|
989
|
+
|
990
|
+
## create_multiple_employee_earnings_template
|
991
|
+
|
992
|
+
> EmployeePayTemplates create_multiple_employee_earnings_template(xero_tenant_id, employee_id, earnings_template)
|
993
|
+
|
994
|
+
creates multiple employee earnings template records
|
995
|
+
|
996
|
+
### Example
|
997
|
+
|
998
|
+
```ruby
|
999
|
+
# load the gem
|
1000
|
+
require 'xero-ruby'
|
1001
|
+
|
1002
|
+
creds = {
|
1003
|
+
client_id: ENV['CLIENT_ID'],
|
1004
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1005
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1006
|
+
scopes: ENV['SCOPES']
|
1007
|
+
}
|
1008
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1009
|
+
|
1010
|
+
token_set = fetch_valid_token_set(user) # example
|
1011
|
+
|
1012
|
+
xero_client.refresh_token_set(token_set)
|
1013
|
+
|
1014
|
+
# You need to namespace your api method call to one of the following api sets
|
1015
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1016
|
+
|
1017
|
+
api_instance = xero_client.<api_set>
|
1018
|
+
|
1019
|
+
|
1020
|
+
|
1021
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1022
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
1023
|
+
earnings_template = [ { "ratePerUnit":20.0, "numberOfUnits":8.0, "earningsRateID":"87f5b43a-cf51-4b74-92de-94c819e82d27" }, { "ratePerUnit":20.0, "numberOfUnits":8.0, "earningsRateID":"973365f3-66b2-4c33-8ae6-14b75f78f68b" } ] # Array<EarningsTemplate> |
|
1024
|
+
begin
|
1025
|
+
#creates multiple employee earnings template records
|
1026
|
+
result = api_instance.create_multiple_employee_earnings_template(xero_tenant_id, employee_id, earnings_template)
|
1027
|
+
p result
|
1028
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1029
|
+
puts "Exception when calling PayrollUkApi->create_multiple_employee_earnings_template: #{e}"
|
1030
|
+
end
|
1031
|
+
```
|
1032
|
+
|
1033
|
+
### Parameters
|
1034
|
+
|
1035
|
+
|
1036
|
+
Name | Type | Description | Notes
|
1037
|
+
------------- | ------------- | ------------- | -------------
|
1038
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1039
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
1040
|
+
**earnings_template** | [**Array<EarningsTemplate>**](EarningsTemplate.md)| |
|
1041
|
+
|
1042
|
+
### Return type
|
1043
|
+
|
1044
|
+
[**EmployeePayTemplates**](EmployeePayTemplates.md)
|
1045
|
+
|
1046
|
+
### Authorization
|
1047
|
+
|
1048
|
+
[OAuth2](../README.md#OAuth2)
|
1049
|
+
|
1050
|
+
### HTTP request headers
|
1051
|
+
|
1052
|
+
- **Content-Type**: application/json
|
1053
|
+
- **Accept**: application/json
|
1054
|
+
|
1055
|
+
|
1056
|
+
## create_pay_run_calendar
|
1057
|
+
|
1058
|
+
> PayRunCalendarObject create_pay_run_calendar(xero_tenant_id, pay_run_calendar)
|
1059
|
+
|
1060
|
+
create a new payrun calendar
|
1061
|
+
|
1062
|
+
### Example
|
1063
|
+
|
1064
|
+
```ruby
|
1065
|
+
# load the gem
|
1066
|
+
require 'xero-ruby'
|
1067
|
+
|
1068
|
+
creds = {
|
1069
|
+
client_id: ENV['CLIENT_ID'],
|
1070
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1071
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1072
|
+
scopes: ENV['SCOPES']
|
1073
|
+
}
|
1074
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1075
|
+
|
1076
|
+
token_set = fetch_valid_token_set(user) # example
|
1077
|
+
|
1078
|
+
xero_client.refresh_token_set(token_set)
|
1079
|
+
|
1080
|
+
# You need to namespace your api method call to one of the following api sets
|
1081
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1082
|
+
|
1083
|
+
api_instance = xero_client.<api_set>
|
1084
|
+
|
1085
|
+
|
1086
|
+
|
1087
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1088
|
+
pay_run_calendar = { "name": "My Weekly Cal", "calendarType": "Weekly", "periodStartDate": "2020-05-01", "paymentDate": "2020-05-15" } # PayRunCalendar |
|
1089
|
+
begin
|
1090
|
+
#create a new payrun calendar
|
1091
|
+
result = api_instance.create_pay_run_calendar(xero_tenant_id, pay_run_calendar)
|
1092
|
+
p result
|
1093
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1094
|
+
puts "Exception when calling PayrollUkApi->create_pay_run_calendar: #{e}"
|
1095
|
+
end
|
1096
|
+
```
|
1097
|
+
|
1098
|
+
### Parameters
|
1099
|
+
|
1100
|
+
|
1101
|
+
Name | Type | Description | Notes
|
1102
|
+
------------- | ------------- | ------------- | -------------
|
1103
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1104
|
+
**pay_run_calendar** | [**PayRunCalendar**](PayRunCalendar.md)| |
|
1105
|
+
|
1106
|
+
### Return type
|
1107
|
+
|
1108
|
+
[**PayRunCalendarObject**](PayRunCalendarObject.md)
|
1109
|
+
|
1110
|
+
### Authorization
|
1111
|
+
|
1112
|
+
[OAuth2](../README.md#OAuth2)
|
1113
|
+
|
1114
|
+
### HTTP request headers
|
1115
|
+
|
1116
|
+
- **Content-Type**: application/json
|
1117
|
+
- **Accept**: application/json
|
1118
|
+
|
1119
|
+
|
1120
|
+
## create_reimbursement
|
1121
|
+
|
1122
|
+
> ReimbursementObject create_reimbursement(xero_tenant_id, reimbursement)
|
1123
|
+
|
1124
|
+
create a new reimbursement
|
1125
|
+
|
1126
|
+
### Example
|
1127
|
+
|
1128
|
+
```ruby
|
1129
|
+
# load the gem
|
1130
|
+
require 'xero-ruby'
|
1131
|
+
|
1132
|
+
creds = {
|
1133
|
+
client_id: ENV['CLIENT_ID'],
|
1134
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1135
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1136
|
+
scopes: ENV['SCOPES']
|
1137
|
+
}
|
1138
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1139
|
+
|
1140
|
+
token_set = fetch_valid_token_set(user) # example
|
1141
|
+
|
1142
|
+
xero_client.refresh_token_set(token_set)
|
1143
|
+
|
1144
|
+
# You need to namespace your api method call to one of the following api sets
|
1145
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1146
|
+
|
1147
|
+
api_instance = xero_client.<api_set>
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
1151
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1152
|
+
reimbursement = { "name": "My new Reimburse", "accountID": "9ee28149-32a9-4661-8eab-a28738696983" } # Reimbursement |
|
1153
|
+
begin
|
1154
|
+
#create a new reimbursement
|
1155
|
+
result = api_instance.create_reimbursement(xero_tenant_id, reimbursement)
|
1156
|
+
p result
|
1157
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1158
|
+
puts "Exception when calling PayrollUkApi->create_reimbursement: #{e}"
|
1159
|
+
end
|
1160
|
+
```
|
1161
|
+
|
1162
|
+
### Parameters
|
1163
|
+
|
1164
|
+
|
1165
|
+
Name | Type | Description | Notes
|
1166
|
+
------------- | ------------- | ------------- | -------------
|
1167
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1168
|
+
**reimbursement** | [**Reimbursement**](Reimbursement.md)| |
|
1169
|
+
|
1170
|
+
### Return type
|
1171
|
+
|
1172
|
+
[**ReimbursementObject**](ReimbursementObject.md)
|
1173
|
+
|
1174
|
+
### Authorization
|
1175
|
+
|
1176
|
+
[OAuth2](../README.md#OAuth2)
|
1177
|
+
|
1178
|
+
### HTTP request headers
|
1179
|
+
|
1180
|
+
- **Content-Type**: application/json
|
1181
|
+
- **Accept**: application/json
|
1182
|
+
|
1183
|
+
|
1184
|
+
## create_timesheet
|
1185
|
+
|
1186
|
+
> TimesheetObject create_timesheet(xero_tenant_id, timesheet)
|
1187
|
+
|
1188
|
+
create a new timesheet
|
1189
|
+
|
1190
|
+
### Example
|
1191
|
+
|
1192
|
+
```ruby
|
1193
|
+
# load the gem
|
1194
|
+
require 'xero-ruby'
|
1195
|
+
|
1196
|
+
creds = {
|
1197
|
+
client_id: ENV['CLIENT_ID'],
|
1198
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1199
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1200
|
+
scopes: ENV['SCOPES']
|
1201
|
+
}
|
1202
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1203
|
+
|
1204
|
+
token_set = fetch_valid_token_set(user) # example
|
1205
|
+
|
1206
|
+
xero_client.refresh_token_set(token_set)
|
1207
|
+
|
1208
|
+
# You need to namespace your api method call to one of the following api sets
|
1209
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1210
|
+
|
1211
|
+
api_instance = xero_client.<api_set>
|
1212
|
+
|
1213
|
+
|
1214
|
+
|
1215
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1216
|
+
timesheet = { "payrollCalendarID": "216d80e6-af55-47b1-b718-9457c3f5d2fe", "employeeID": "aad6b292-7b94-408b-93f6-e489867e3fb0", "startDate": "2020-04-13", "endDate": "2020-04-19", "timesheetLines": [ { "date": "2020-04-13", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 8 }, { "date": "2020-04-15", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 6 } ] } # Timesheet |
|
1217
|
+
begin
|
1218
|
+
#create a new timesheet
|
1219
|
+
result = api_instance.create_timesheet(xero_tenant_id, timesheet)
|
1220
|
+
p result
|
1221
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1222
|
+
puts "Exception when calling PayrollUkApi->create_timesheet: #{e}"
|
1223
|
+
end
|
1224
|
+
```
|
1225
|
+
|
1226
|
+
### Parameters
|
1227
|
+
|
1228
|
+
|
1229
|
+
Name | Type | Description | Notes
|
1230
|
+
------------- | ------------- | ------------- | -------------
|
1231
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1232
|
+
**timesheet** | [**Timesheet**](Timesheet.md)| |
|
1233
|
+
|
1234
|
+
### Return type
|
1235
|
+
|
1236
|
+
[**TimesheetObject**](TimesheetObject.md)
|
1237
|
+
|
1238
|
+
### Authorization
|
1239
|
+
|
1240
|
+
[OAuth2](../README.md#OAuth2)
|
1241
|
+
|
1242
|
+
### HTTP request headers
|
1243
|
+
|
1244
|
+
- **Content-Type**: application/json
|
1245
|
+
- **Accept**: application/json
|
1246
|
+
|
1247
|
+
|
1248
|
+
## create_timesheet_line
|
1249
|
+
|
1250
|
+
> TimesheetLineObject create_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line)
|
1251
|
+
|
1252
|
+
create a new timesheet line
|
1253
|
+
|
1254
|
+
### Example
|
1255
|
+
|
1256
|
+
```ruby
|
1257
|
+
# load the gem
|
1258
|
+
require 'xero-ruby'
|
1259
|
+
|
1260
|
+
creds = {
|
1261
|
+
client_id: ENV['CLIENT_ID'],
|
1262
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1263
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1264
|
+
scopes: ENV['SCOPES']
|
1265
|
+
}
|
1266
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1267
|
+
|
1268
|
+
token_set = fetch_valid_token_set(user) # example
|
1269
|
+
|
1270
|
+
xero_client.refresh_token_set(token_set)
|
1271
|
+
|
1272
|
+
# You need to namespace your api method call to one of the following api sets
|
1273
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1274
|
+
|
1275
|
+
api_instance = xero_client.<api_set>
|
1276
|
+
|
1277
|
+
|
1278
|
+
|
1279
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1280
|
+
timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
|
1281
|
+
timesheet_line = { "date": "2020-04-14", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 1 } # TimesheetLine |
|
1282
|
+
begin
|
1283
|
+
#create a new timesheet line
|
1284
|
+
result = api_instance.create_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line)
|
1285
|
+
p result
|
1286
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1287
|
+
puts "Exception when calling PayrollUkApi->create_timesheet_line: #{e}"
|
1288
|
+
end
|
1289
|
+
```
|
1290
|
+
|
1291
|
+
### Parameters
|
1292
|
+
|
1293
|
+
|
1294
|
+
Name | Type | Description | Notes
|
1295
|
+
------------- | ------------- | ------------- | -------------
|
1296
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1297
|
+
**timesheet_id** | [**String**](.md)| Identifier for the timesheet |
|
1298
|
+
**timesheet_line** | [**TimesheetLine**](TimesheetLine.md)| |
|
1299
|
+
|
1300
|
+
### Return type
|
1301
|
+
|
1302
|
+
[**TimesheetLineObject**](TimesheetLineObject.md)
|
1303
|
+
|
1304
|
+
### Authorization
|
1305
|
+
|
1306
|
+
[OAuth2](../README.md#OAuth2)
|
1307
|
+
|
1308
|
+
### HTTP request headers
|
1309
|
+
|
1310
|
+
- **Content-Type**: application/json
|
1311
|
+
- **Accept**: application/json
|
1312
|
+
|
1313
|
+
|
1314
|
+
## delete_employee_earnings_template
|
1315
|
+
|
1316
|
+
> delete_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id)
|
1317
|
+
|
1318
|
+
deletes an employee earnings template record
|
1319
|
+
|
1320
|
+
### Example
|
1321
|
+
|
1322
|
+
```ruby
|
1323
|
+
# load the gem
|
1324
|
+
require 'xero-ruby'
|
1325
|
+
|
1326
|
+
creds = {
|
1327
|
+
client_id: ENV['CLIENT_ID'],
|
1328
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1329
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1330
|
+
scopes: ENV['SCOPES']
|
1331
|
+
}
|
1332
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1333
|
+
|
1334
|
+
token_set = fetch_valid_token_set(user) # example
|
1335
|
+
|
1336
|
+
xero_client.refresh_token_set(token_set)
|
1337
|
+
|
1338
|
+
# You need to namespace your api method call to one of the following api sets
|
1339
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1340
|
+
|
1341
|
+
api_instance = xero_client.<api_set>
|
1342
|
+
|
1343
|
+
|
1344
|
+
|
1345
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1346
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
1347
|
+
pay_template_earning_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single pay template earnings object
|
1348
|
+
begin
|
1349
|
+
#deletes an employee earnings template record
|
1350
|
+
api_instance.delete_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id)
|
1351
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1352
|
+
puts "Exception when calling PayrollUkApi->delete_employee_earnings_template: #{e}"
|
1353
|
+
end
|
1354
|
+
```
|
1355
|
+
|
1356
|
+
### Parameters
|
1357
|
+
|
1358
|
+
|
1359
|
+
Name | Type | Description | Notes
|
1360
|
+
------------- | ------------- | ------------- | -------------
|
1361
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1362
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
1363
|
+
**pay_template_earning_id** | [**String**](.md)| Id for single pay template earnings object |
|
1364
|
+
|
1365
|
+
### Return type
|
1366
|
+
|
1367
|
+
nil (empty response body)
|
1368
|
+
|
1369
|
+
### Authorization
|
1370
|
+
|
1371
|
+
[OAuth2](../README.md#OAuth2)
|
1372
|
+
|
1373
|
+
### HTTP request headers
|
1374
|
+
|
1375
|
+
- **Content-Type**: Not defined
|
1376
|
+
- **Accept**: Not defined
|
1377
|
+
|
1378
|
+
|
1379
|
+
## delete_employee_leave
|
1380
|
+
|
1381
|
+
> EmployeeLeaveObject delete_employee_leave(xero_tenant_id, employee_id, leave_id)
|
1382
|
+
|
1383
|
+
deletes an employee leave record
|
1384
|
+
|
1385
|
+
### Example
|
1386
|
+
|
1387
|
+
```ruby
|
1388
|
+
# load the gem
|
1389
|
+
require 'xero-ruby'
|
1390
|
+
|
1391
|
+
creds = {
|
1392
|
+
client_id: ENV['CLIENT_ID'],
|
1393
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1394
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1395
|
+
scopes: ENV['SCOPES']
|
1396
|
+
}
|
1397
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1398
|
+
|
1399
|
+
token_set = fetch_valid_token_set(user) # example
|
1400
|
+
|
1401
|
+
xero_client.refresh_token_set(token_set)
|
1402
|
+
|
1403
|
+
# You need to namespace your api method call to one of the following api sets
|
1404
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1405
|
+
|
1406
|
+
api_instance = xero_client.<api_set>
|
1407
|
+
|
1408
|
+
|
1409
|
+
|
1410
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1411
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
1412
|
+
leave_id = 'c4be24e5-e840-4c92-9eaa-2d86cd596314' # String | Leave id for single object
|
1413
|
+
begin
|
1414
|
+
#deletes an employee leave record
|
1415
|
+
result = api_instance.delete_employee_leave(xero_tenant_id, employee_id, leave_id)
|
1416
|
+
p result
|
1417
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1418
|
+
puts "Exception when calling PayrollUkApi->delete_employee_leave: #{e}"
|
1419
|
+
end
|
1420
|
+
```
|
1421
|
+
|
1422
|
+
### Parameters
|
1423
|
+
|
1424
|
+
|
1425
|
+
Name | Type | Description | Notes
|
1426
|
+
------------- | ------------- | ------------- | -------------
|
1427
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1428
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
1429
|
+
**leave_id** | [**String**](.md)| Leave id for single object |
|
1430
|
+
|
1431
|
+
### Return type
|
1432
|
+
|
1433
|
+
[**EmployeeLeaveObject**](EmployeeLeaveObject.md)
|
1434
|
+
|
1435
|
+
### Authorization
|
1436
|
+
|
1437
|
+
[OAuth2](../README.md#OAuth2)
|
1438
|
+
|
1439
|
+
### HTTP request headers
|
1440
|
+
|
1441
|
+
- **Content-Type**: Not defined
|
1442
|
+
- **Accept**: application/json
|
1443
|
+
|
1444
|
+
|
1445
|
+
## delete_employee_salary_and_wage
|
1446
|
+
|
1447
|
+
> delete_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id)
|
1448
|
+
|
1449
|
+
deletes an employee salary and wages record
|
1450
|
+
|
1451
|
+
### Example
|
1452
|
+
|
1453
|
+
```ruby
|
1454
|
+
# load the gem
|
1455
|
+
require 'xero-ruby'
|
1456
|
+
|
1457
|
+
creds = {
|
1458
|
+
client_id: ENV['CLIENT_ID'],
|
1459
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1460
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1461
|
+
scopes: ENV['SCOPES']
|
1462
|
+
}
|
1463
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1464
|
+
|
1465
|
+
token_set = fetch_valid_token_set(user) # example
|
1466
|
+
|
1467
|
+
xero_client.refresh_token_set(token_set)
|
1468
|
+
|
1469
|
+
# You need to namespace your api method call to one of the following api sets
|
1470
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1471
|
+
|
1472
|
+
api_instance = xero_client.<api_set>
|
1473
|
+
|
1474
|
+
|
1475
|
+
|
1476
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1477
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
1478
|
+
salary_and_wages_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single salary and wages object
|
1479
|
+
begin
|
1480
|
+
#deletes an employee salary and wages record
|
1481
|
+
api_instance.delete_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id)
|
1482
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1483
|
+
puts "Exception when calling PayrollUkApi->delete_employee_salary_and_wage: #{e}"
|
1484
|
+
end
|
1485
|
+
```
|
1486
|
+
|
1487
|
+
### Parameters
|
1488
|
+
|
1489
|
+
|
1490
|
+
Name | Type | Description | Notes
|
1491
|
+
------------- | ------------- | ------------- | -------------
|
1492
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1493
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
1494
|
+
**salary_and_wages_id** | [**String**](.md)| Id for single salary and wages object |
|
1495
|
+
|
1496
|
+
### Return type
|
1497
|
+
|
1498
|
+
nil (empty response body)
|
1499
|
+
|
1500
|
+
### Authorization
|
1501
|
+
|
1502
|
+
[OAuth2](../README.md#OAuth2)
|
1503
|
+
|
1504
|
+
### HTTP request headers
|
1505
|
+
|
1506
|
+
- **Content-Type**: Not defined
|
1507
|
+
- **Accept**: Not defined
|
1508
|
+
|
1509
|
+
|
1510
|
+
## delete_timesheet
|
1511
|
+
|
1512
|
+
> TimesheetLine delete_timesheet(xero_tenant_id, timesheet_id)
|
1513
|
+
|
1514
|
+
delete a timesheet
|
1515
|
+
|
1516
|
+
### Example
|
1517
|
+
|
1518
|
+
```ruby
|
1519
|
+
# load the gem
|
1520
|
+
require 'xero-ruby'
|
1521
|
+
|
1522
|
+
creds = {
|
1523
|
+
client_id: ENV['CLIENT_ID'],
|
1524
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1525
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1526
|
+
scopes: ENV['SCOPES']
|
1527
|
+
}
|
1528
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1529
|
+
|
1530
|
+
token_set = fetch_valid_token_set(user) # example
|
1531
|
+
|
1532
|
+
xero_client.refresh_token_set(token_set)
|
1533
|
+
|
1534
|
+
# You need to namespace your api method call to one of the following api sets
|
1535
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1536
|
+
|
1537
|
+
api_instance = xero_client.<api_set>
|
1538
|
+
|
1539
|
+
|
1540
|
+
|
1541
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1542
|
+
timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
|
1543
|
+
begin
|
1544
|
+
#delete a timesheet
|
1545
|
+
result = api_instance.delete_timesheet(xero_tenant_id, timesheet_id)
|
1546
|
+
p result
|
1547
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1548
|
+
puts "Exception when calling PayrollUkApi->delete_timesheet: #{e}"
|
1549
|
+
end
|
1550
|
+
```
|
1551
|
+
|
1552
|
+
### Parameters
|
1553
|
+
|
1554
|
+
|
1555
|
+
Name | Type | Description | Notes
|
1556
|
+
------------- | ------------- | ------------- | -------------
|
1557
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1558
|
+
**timesheet_id** | [**String**](.md)| Identifier for the timesheet |
|
1559
|
+
|
1560
|
+
### Return type
|
1561
|
+
|
1562
|
+
[**TimesheetLine**](TimesheetLine.md)
|
1563
|
+
|
1564
|
+
### Authorization
|
1565
|
+
|
1566
|
+
[OAuth2](../README.md#OAuth2)
|
1567
|
+
|
1568
|
+
### HTTP request headers
|
1569
|
+
|
1570
|
+
- **Content-Type**: Not defined
|
1571
|
+
- **Accept**: application/json
|
1572
|
+
|
1573
|
+
|
1574
|
+
## delete_timesheet_line
|
1575
|
+
|
1576
|
+
> TimesheetLine delete_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id)
|
1577
|
+
|
1578
|
+
delete a timesheet line
|
1579
|
+
|
1580
|
+
### Example
|
1581
|
+
|
1582
|
+
```ruby
|
1583
|
+
# load the gem
|
1584
|
+
require 'xero-ruby'
|
1585
|
+
|
1586
|
+
creds = {
|
1587
|
+
client_id: ENV['CLIENT_ID'],
|
1588
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1589
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1590
|
+
scopes: ENV['SCOPES']
|
1591
|
+
}
|
1592
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1593
|
+
|
1594
|
+
token_set = fetch_valid_token_set(user) # example
|
1595
|
+
|
1596
|
+
xero_client.refresh_token_set(token_set)
|
1597
|
+
|
1598
|
+
# You need to namespace your api method call to one of the following api sets
|
1599
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1600
|
+
|
1601
|
+
api_instance = xero_client.<api_set>
|
1602
|
+
|
1603
|
+
|
1604
|
+
|
1605
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1606
|
+
timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
|
1607
|
+
timesheet_line_id = 'timesheet_line_id_example' # String | Identifier for the timesheet line
|
1608
|
+
begin
|
1609
|
+
#delete a timesheet line
|
1610
|
+
result = api_instance.delete_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id)
|
1611
|
+
p result
|
1612
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1613
|
+
puts "Exception when calling PayrollUkApi->delete_timesheet_line: #{e}"
|
1614
|
+
end
|
1615
|
+
```
|
1616
|
+
|
1617
|
+
### Parameters
|
1618
|
+
|
1619
|
+
|
1620
|
+
Name | Type | Description | Notes
|
1621
|
+
------------- | ------------- | ------------- | -------------
|
1622
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1623
|
+
**timesheet_id** | [**String**](.md)| Identifier for the timesheet |
|
1624
|
+
**timesheet_line_id** | [**String**](.md)| Identifier for the timesheet line |
|
1625
|
+
|
1626
|
+
### Return type
|
1627
|
+
|
1628
|
+
[**TimesheetLine**](TimesheetLine.md)
|
1629
|
+
|
1630
|
+
### Authorization
|
1631
|
+
|
1632
|
+
[OAuth2](../README.md#OAuth2)
|
1633
|
+
|
1634
|
+
### HTTP request headers
|
1635
|
+
|
1636
|
+
- **Content-Type**: Not defined
|
1637
|
+
- **Accept**: application/json
|
1638
|
+
|
1639
|
+
|
1640
|
+
## get_benefit
|
1641
|
+
|
1642
|
+
> BenefitObject get_benefit(xero_tenant_id, id)
|
1643
|
+
|
1644
|
+
retrieve a single benefit by id
|
1645
|
+
|
1646
|
+
### Example
|
1647
|
+
|
1648
|
+
```ruby
|
1649
|
+
# load the gem
|
1650
|
+
require 'xero-ruby'
|
1651
|
+
|
1652
|
+
creds = {
|
1653
|
+
client_id: ENV['CLIENT_ID'],
|
1654
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1655
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1656
|
+
scopes: ENV['SCOPES']
|
1657
|
+
}
|
1658
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1659
|
+
|
1660
|
+
token_set = fetch_valid_token_set(user) # example
|
1661
|
+
|
1662
|
+
xero_client.refresh_token_set(token_set)
|
1663
|
+
|
1664
|
+
# You need to namespace your api method call to one of the following api sets
|
1665
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1666
|
+
|
1667
|
+
api_instance = xero_client.<api_set>
|
1668
|
+
|
1669
|
+
|
1670
|
+
|
1671
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1672
|
+
id = 'id_example' # String | Identifier for the benefit
|
1673
|
+
begin
|
1674
|
+
#retrieve a single benefit by id
|
1675
|
+
result = api_instance.get_benefit(xero_tenant_id, id)
|
1676
|
+
p result
|
1677
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1678
|
+
puts "Exception when calling PayrollUkApi->get_benefit: #{e}"
|
1679
|
+
end
|
1680
|
+
```
|
1681
|
+
|
1682
|
+
### Parameters
|
1683
|
+
|
1684
|
+
|
1685
|
+
Name | Type | Description | Notes
|
1686
|
+
------------- | ------------- | ------------- | -------------
|
1687
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1688
|
+
**id** | [**String**](.md)| Identifier for the benefit |
|
1689
|
+
|
1690
|
+
### Return type
|
1691
|
+
|
1692
|
+
[**BenefitObject**](BenefitObject.md)
|
1693
|
+
|
1694
|
+
### Authorization
|
1695
|
+
|
1696
|
+
[OAuth2](../README.md#OAuth2)
|
1697
|
+
|
1698
|
+
### HTTP request headers
|
1699
|
+
|
1700
|
+
- **Content-Type**: Not defined
|
1701
|
+
- **Accept**: application/json
|
1702
|
+
|
1703
|
+
|
1704
|
+
## get_benefits
|
1705
|
+
|
1706
|
+
> Benefits get_benefits(xero_tenant_id, opts)
|
1707
|
+
|
1708
|
+
searches benefits
|
1709
|
+
|
1710
|
+
### Example
|
1711
|
+
|
1712
|
+
```ruby
|
1713
|
+
# load the gem
|
1714
|
+
require 'xero-ruby'
|
1715
|
+
|
1716
|
+
creds = {
|
1717
|
+
client_id: ENV['CLIENT_ID'],
|
1718
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1719
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1720
|
+
scopes: ENV['SCOPES']
|
1721
|
+
}
|
1722
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1723
|
+
|
1724
|
+
token_set = fetch_valid_token_set(user) # example
|
1725
|
+
|
1726
|
+
xero_client.refresh_token_set(token_set)
|
1727
|
+
|
1728
|
+
# You need to namespace your api method call to one of the following api sets
|
1729
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1730
|
+
|
1731
|
+
api_instance = xero_client.<api_set>
|
1732
|
+
|
1733
|
+
|
1734
|
+
|
1735
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1736
|
+
opts = {
|
1737
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
1738
|
+
}
|
1739
|
+
|
1740
|
+
begin
|
1741
|
+
#searches benefits
|
1742
|
+
result = api_instance.get_benefits(xero_tenant_id, opts)
|
1743
|
+
p result
|
1744
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1745
|
+
puts "Exception when calling PayrollUkApi->get_benefits: #{e}"
|
1746
|
+
end
|
1747
|
+
```
|
1748
|
+
|
1749
|
+
### Parameters
|
1750
|
+
|
1751
|
+
|
1752
|
+
Name | Type | Description | Notes
|
1753
|
+
------------- | ------------- | ------------- | -------------
|
1754
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1755
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
1756
|
+
|
1757
|
+
### Return type
|
1758
|
+
|
1759
|
+
[**Benefits**](Benefits.md)
|
1760
|
+
|
1761
|
+
### Authorization
|
1762
|
+
|
1763
|
+
[OAuth2](../README.md#OAuth2)
|
1764
|
+
|
1765
|
+
### HTTP request headers
|
1766
|
+
|
1767
|
+
- **Content-Type**: Not defined
|
1768
|
+
- **Accept**: application/json
|
1769
|
+
|
1770
|
+
|
1771
|
+
## get_deduction
|
1772
|
+
|
1773
|
+
> DeductionObject get_deduction(xero_tenant_id, deduction_id)
|
1774
|
+
|
1775
|
+
retrieve a single deduction by id
|
1776
|
+
|
1777
|
+
### Example
|
1778
|
+
|
1779
|
+
```ruby
|
1780
|
+
# load the gem
|
1781
|
+
require 'xero-ruby'
|
1782
|
+
|
1783
|
+
creds = {
|
1784
|
+
client_id: ENV['CLIENT_ID'],
|
1785
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1786
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1787
|
+
scopes: ENV['SCOPES']
|
1788
|
+
}
|
1789
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1790
|
+
|
1791
|
+
token_set = fetch_valid_token_set(user) # example
|
1792
|
+
|
1793
|
+
xero_client.refresh_token_set(token_set)
|
1794
|
+
|
1795
|
+
# You need to namespace your api method call to one of the following api sets
|
1796
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1797
|
+
|
1798
|
+
api_instance = xero_client.<api_set>
|
1799
|
+
|
1800
|
+
|
1801
|
+
|
1802
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1803
|
+
deduction_id = 'deduction_id_example' # String | Identifier for the deduction
|
1804
|
+
begin
|
1805
|
+
#retrieve a single deduction by id
|
1806
|
+
result = api_instance.get_deduction(xero_tenant_id, deduction_id)
|
1807
|
+
p result
|
1808
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1809
|
+
puts "Exception when calling PayrollUkApi->get_deduction: #{e}"
|
1810
|
+
end
|
1811
|
+
```
|
1812
|
+
|
1813
|
+
### Parameters
|
1814
|
+
|
1815
|
+
|
1816
|
+
Name | Type | Description | Notes
|
1817
|
+
------------- | ------------- | ------------- | -------------
|
1818
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1819
|
+
**deduction_id** | [**String**](.md)| Identifier for the deduction |
|
1820
|
+
|
1821
|
+
### Return type
|
1822
|
+
|
1823
|
+
[**DeductionObject**](DeductionObject.md)
|
1824
|
+
|
1825
|
+
### Authorization
|
1826
|
+
|
1827
|
+
[OAuth2](../README.md#OAuth2)
|
1828
|
+
|
1829
|
+
### HTTP request headers
|
1830
|
+
|
1831
|
+
- **Content-Type**: Not defined
|
1832
|
+
- **Accept**: application/json
|
1833
|
+
|
1834
|
+
|
1835
|
+
## get_deductions
|
1836
|
+
|
1837
|
+
> Deductions get_deductions(xero_tenant_id, opts)
|
1838
|
+
|
1839
|
+
searches deductions
|
1840
|
+
|
1841
|
+
### Example
|
1842
|
+
|
1843
|
+
```ruby
|
1844
|
+
# load the gem
|
1845
|
+
require 'xero-ruby'
|
1846
|
+
|
1847
|
+
creds = {
|
1848
|
+
client_id: ENV['CLIENT_ID'],
|
1849
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1850
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1851
|
+
scopes: ENV['SCOPES']
|
1852
|
+
}
|
1853
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1854
|
+
|
1855
|
+
token_set = fetch_valid_token_set(user) # example
|
1856
|
+
|
1857
|
+
xero_client.refresh_token_set(token_set)
|
1858
|
+
|
1859
|
+
# You need to namespace your api method call to one of the following api sets
|
1860
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1861
|
+
|
1862
|
+
api_instance = xero_client.<api_set>
|
1863
|
+
|
1864
|
+
|
1865
|
+
|
1866
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1867
|
+
opts = {
|
1868
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
1869
|
+
}
|
1870
|
+
|
1871
|
+
begin
|
1872
|
+
#searches deductions
|
1873
|
+
result = api_instance.get_deductions(xero_tenant_id, opts)
|
1874
|
+
p result
|
1875
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1876
|
+
puts "Exception when calling PayrollUkApi->get_deductions: #{e}"
|
1877
|
+
end
|
1878
|
+
```
|
1879
|
+
|
1880
|
+
### Parameters
|
1881
|
+
|
1882
|
+
|
1883
|
+
Name | Type | Description | Notes
|
1884
|
+
------------- | ------------- | ------------- | -------------
|
1885
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1886
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
1887
|
+
|
1888
|
+
### Return type
|
1889
|
+
|
1890
|
+
[**Deductions**](Deductions.md)
|
1891
|
+
|
1892
|
+
### Authorization
|
1893
|
+
|
1894
|
+
[OAuth2](../README.md#OAuth2)
|
1895
|
+
|
1896
|
+
### HTTP request headers
|
1897
|
+
|
1898
|
+
- **Content-Type**: Not defined
|
1899
|
+
- **Accept**: application/json
|
1900
|
+
|
1901
|
+
|
1902
|
+
## get_earnings_order
|
1903
|
+
|
1904
|
+
> EarningsOrderObject get_earnings_order(xero_tenant_id, id)
|
1905
|
+
|
1906
|
+
retrieve a single deduction by id
|
1907
|
+
|
1908
|
+
### Example
|
1909
|
+
|
1910
|
+
```ruby
|
1911
|
+
# load the gem
|
1912
|
+
require 'xero-ruby'
|
1913
|
+
|
1914
|
+
creds = {
|
1915
|
+
client_id: ENV['CLIENT_ID'],
|
1916
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1917
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1918
|
+
scopes: ENV['SCOPES']
|
1919
|
+
}
|
1920
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1921
|
+
|
1922
|
+
token_set = fetch_valid_token_set(user) # example
|
1923
|
+
|
1924
|
+
xero_client.refresh_token_set(token_set)
|
1925
|
+
|
1926
|
+
# You need to namespace your api method call to one of the following api sets
|
1927
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1928
|
+
|
1929
|
+
api_instance = xero_client.<api_set>
|
1930
|
+
|
1931
|
+
|
1932
|
+
|
1933
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1934
|
+
id = 'id_example' # String | Identifier for the deduction
|
1935
|
+
begin
|
1936
|
+
#retrieve a single deduction by id
|
1937
|
+
result = api_instance.get_earnings_order(xero_tenant_id, id)
|
1938
|
+
p result
|
1939
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
1940
|
+
puts "Exception when calling PayrollUkApi->get_earnings_order: #{e}"
|
1941
|
+
end
|
1942
|
+
```
|
1943
|
+
|
1944
|
+
### Parameters
|
1945
|
+
|
1946
|
+
|
1947
|
+
Name | Type | Description | Notes
|
1948
|
+
------------- | ------------- | ------------- | -------------
|
1949
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
1950
|
+
**id** | [**String**](.md)| Identifier for the deduction |
|
1951
|
+
|
1952
|
+
### Return type
|
1953
|
+
|
1954
|
+
[**EarningsOrderObject**](EarningsOrderObject.md)
|
1955
|
+
|
1956
|
+
### Authorization
|
1957
|
+
|
1958
|
+
[OAuth2](../README.md#OAuth2)
|
1959
|
+
|
1960
|
+
### HTTP request headers
|
1961
|
+
|
1962
|
+
- **Content-Type**: Not defined
|
1963
|
+
- **Accept**: application/json
|
1964
|
+
|
1965
|
+
|
1966
|
+
## get_earnings_orders
|
1967
|
+
|
1968
|
+
> EarningsOrders get_earnings_orders(xero_tenant_id, opts)
|
1969
|
+
|
1970
|
+
searches earnings orders
|
1971
|
+
|
1972
|
+
### Example
|
1973
|
+
|
1974
|
+
```ruby
|
1975
|
+
# load the gem
|
1976
|
+
require 'xero-ruby'
|
1977
|
+
|
1978
|
+
creds = {
|
1979
|
+
client_id: ENV['CLIENT_ID'],
|
1980
|
+
client_secret: ENV['CLIENT_SECRET'],
|
1981
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
1982
|
+
scopes: ENV['SCOPES']
|
1983
|
+
}
|
1984
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
1985
|
+
|
1986
|
+
token_set = fetch_valid_token_set(user) # example
|
1987
|
+
|
1988
|
+
xero_client.refresh_token_set(token_set)
|
1989
|
+
|
1990
|
+
# You need to namespace your api method call to one of the following api sets
|
1991
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
1992
|
+
|
1993
|
+
api_instance = xero_client.<api_set>
|
1994
|
+
|
1995
|
+
|
1996
|
+
|
1997
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
1998
|
+
opts = {
|
1999
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
2000
|
+
}
|
2001
|
+
|
2002
|
+
begin
|
2003
|
+
#searches earnings orders
|
2004
|
+
result = api_instance.get_earnings_orders(xero_tenant_id, opts)
|
2005
|
+
p result
|
2006
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2007
|
+
puts "Exception when calling PayrollUkApi->get_earnings_orders: #{e}"
|
2008
|
+
end
|
2009
|
+
```
|
2010
|
+
|
2011
|
+
### Parameters
|
2012
|
+
|
2013
|
+
|
2014
|
+
Name | Type | Description | Notes
|
2015
|
+
------------- | ------------- | ------------- | -------------
|
2016
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2017
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
2018
|
+
|
2019
|
+
### Return type
|
2020
|
+
|
2021
|
+
[**EarningsOrders**](EarningsOrders.md)
|
2022
|
+
|
2023
|
+
### Authorization
|
2024
|
+
|
2025
|
+
[OAuth2](../README.md#OAuth2)
|
2026
|
+
|
2027
|
+
### HTTP request headers
|
2028
|
+
|
2029
|
+
- **Content-Type**: Not defined
|
2030
|
+
- **Accept**: application/json
|
2031
|
+
|
2032
|
+
|
2033
|
+
## get_earnings_rate
|
2034
|
+
|
2035
|
+
> EarningsRateObject get_earnings_rate(xero_tenant_id, earnings_rate_id)
|
2036
|
+
|
2037
|
+
retrieve a single earnings rates by id
|
2038
|
+
|
2039
|
+
### Example
|
2040
|
+
|
2041
|
+
```ruby
|
2042
|
+
# load the gem
|
2043
|
+
require 'xero-ruby'
|
2044
|
+
|
2045
|
+
creds = {
|
2046
|
+
client_id: ENV['CLIENT_ID'],
|
2047
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2048
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2049
|
+
scopes: ENV['SCOPES']
|
2050
|
+
}
|
2051
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2052
|
+
|
2053
|
+
token_set = fetch_valid_token_set(user) # example
|
2054
|
+
|
2055
|
+
xero_client.refresh_token_set(token_set)
|
2056
|
+
|
2057
|
+
# You need to namespace your api method call to one of the following api sets
|
2058
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2059
|
+
|
2060
|
+
api_instance = xero_client.<api_set>
|
2061
|
+
|
2062
|
+
|
2063
|
+
|
2064
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2065
|
+
earnings_rate_id = 'earnings_rate_id_example' # String | Identifier for the earnings rate
|
2066
|
+
begin
|
2067
|
+
#retrieve a single earnings rates by id
|
2068
|
+
result = api_instance.get_earnings_rate(xero_tenant_id, earnings_rate_id)
|
2069
|
+
p result
|
2070
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2071
|
+
puts "Exception when calling PayrollUkApi->get_earnings_rate: #{e}"
|
2072
|
+
end
|
2073
|
+
```
|
2074
|
+
|
2075
|
+
### Parameters
|
2076
|
+
|
2077
|
+
|
2078
|
+
Name | Type | Description | Notes
|
2079
|
+
------------- | ------------- | ------------- | -------------
|
2080
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2081
|
+
**earnings_rate_id** | [**String**](.md)| Identifier for the earnings rate |
|
2082
|
+
|
2083
|
+
### Return type
|
2084
|
+
|
2085
|
+
[**EarningsRateObject**](EarningsRateObject.md)
|
2086
|
+
|
2087
|
+
### Authorization
|
2088
|
+
|
2089
|
+
[OAuth2](../README.md#OAuth2)
|
2090
|
+
|
2091
|
+
### HTTP request headers
|
2092
|
+
|
2093
|
+
- **Content-Type**: Not defined
|
2094
|
+
- **Accept**: application/json
|
2095
|
+
|
2096
|
+
|
2097
|
+
## get_earnings_rates
|
2098
|
+
|
2099
|
+
> EarningsRates get_earnings_rates(xero_tenant_id, opts)
|
2100
|
+
|
2101
|
+
searches earnings rates
|
2102
|
+
|
2103
|
+
### Example
|
2104
|
+
|
2105
|
+
```ruby
|
2106
|
+
# load the gem
|
2107
|
+
require 'xero-ruby'
|
2108
|
+
|
2109
|
+
creds = {
|
2110
|
+
client_id: ENV['CLIENT_ID'],
|
2111
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2112
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2113
|
+
scopes: ENV['SCOPES']
|
2114
|
+
}
|
2115
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2116
|
+
|
2117
|
+
token_set = fetch_valid_token_set(user) # example
|
2118
|
+
|
2119
|
+
xero_client.refresh_token_set(token_set)
|
2120
|
+
|
2121
|
+
# You need to namespace your api method call to one of the following api sets
|
2122
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2123
|
+
|
2124
|
+
api_instance = xero_client.<api_set>
|
2125
|
+
|
2126
|
+
|
2127
|
+
|
2128
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2129
|
+
opts = {
|
2130
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
2131
|
+
}
|
2132
|
+
|
2133
|
+
begin
|
2134
|
+
#searches earnings rates
|
2135
|
+
result = api_instance.get_earnings_rates(xero_tenant_id, opts)
|
2136
|
+
p result
|
2137
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2138
|
+
puts "Exception when calling PayrollUkApi->get_earnings_rates: #{e}"
|
2139
|
+
end
|
2140
|
+
```
|
2141
|
+
|
2142
|
+
### Parameters
|
2143
|
+
|
2144
|
+
|
2145
|
+
Name | Type | Description | Notes
|
2146
|
+
------------- | ------------- | ------------- | -------------
|
2147
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2148
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
2149
|
+
|
2150
|
+
### Return type
|
2151
|
+
|
2152
|
+
[**EarningsRates**](EarningsRates.md)
|
2153
|
+
|
2154
|
+
### Authorization
|
2155
|
+
|
2156
|
+
[OAuth2](../README.md#OAuth2)
|
2157
|
+
|
2158
|
+
### HTTP request headers
|
2159
|
+
|
2160
|
+
- **Content-Type**: Not defined
|
2161
|
+
- **Accept**: application/json
|
2162
|
+
|
2163
|
+
|
2164
|
+
## get_employee
|
2165
|
+
|
2166
|
+
> EmployeeObject get_employee(xero_tenant_id, employee_id)
|
2167
|
+
|
2168
|
+
searches employees
|
2169
|
+
|
2170
|
+
### Example
|
2171
|
+
|
2172
|
+
```ruby
|
2173
|
+
# load the gem
|
2174
|
+
require 'xero-ruby'
|
2175
|
+
|
2176
|
+
creds = {
|
2177
|
+
client_id: ENV['CLIENT_ID'],
|
2178
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2179
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2180
|
+
scopes: ENV['SCOPES']
|
2181
|
+
}
|
2182
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2183
|
+
|
2184
|
+
token_set = fetch_valid_token_set(user) # example
|
2185
|
+
|
2186
|
+
xero_client.refresh_token_set(token_set)
|
2187
|
+
|
2188
|
+
# You need to namespace your api method call to one of the following api sets
|
2189
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2190
|
+
|
2191
|
+
api_instance = xero_client.<api_set>
|
2192
|
+
|
2193
|
+
|
2194
|
+
|
2195
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2196
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2197
|
+
begin
|
2198
|
+
#searches employees
|
2199
|
+
result = api_instance.get_employee(xero_tenant_id, employee_id)
|
2200
|
+
p result
|
2201
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2202
|
+
puts "Exception when calling PayrollUkApi->get_employee: #{e}"
|
2203
|
+
end
|
2204
|
+
```
|
2205
|
+
|
2206
|
+
### Parameters
|
2207
|
+
|
2208
|
+
|
2209
|
+
Name | Type | Description | Notes
|
2210
|
+
------------- | ------------- | ------------- | -------------
|
2211
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2212
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2213
|
+
|
2214
|
+
### Return type
|
2215
|
+
|
2216
|
+
[**EmployeeObject**](EmployeeObject.md)
|
2217
|
+
|
2218
|
+
### Authorization
|
2219
|
+
|
2220
|
+
[OAuth2](../README.md#OAuth2)
|
2221
|
+
|
2222
|
+
### HTTP request headers
|
2223
|
+
|
2224
|
+
- **Content-Type**: Not defined
|
2225
|
+
- **Accept**: application/json
|
2226
|
+
|
2227
|
+
|
2228
|
+
## get_employee_leave
|
2229
|
+
|
2230
|
+
> EmployeeLeaveObject get_employee_leave(xero_tenant_id, employee_id, leave_id)
|
2231
|
+
|
2232
|
+
retrieve a single employee leave record
|
2233
|
+
|
2234
|
+
### Example
|
2235
|
+
|
2236
|
+
```ruby
|
2237
|
+
# load the gem
|
2238
|
+
require 'xero-ruby'
|
2239
|
+
|
2240
|
+
creds = {
|
2241
|
+
client_id: ENV['CLIENT_ID'],
|
2242
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2243
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2244
|
+
scopes: ENV['SCOPES']
|
2245
|
+
}
|
2246
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2247
|
+
|
2248
|
+
token_set = fetch_valid_token_set(user) # example
|
2249
|
+
|
2250
|
+
xero_client.refresh_token_set(token_set)
|
2251
|
+
|
2252
|
+
# You need to namespace your api method call to one of the following api sets
|
2253
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2254
|
+
|
2255
|
+
api_instance = xero_client.<api_set>
|
2256
|
+
|
2257
|
+
|
2258
|
+
|
2259
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2260
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2261
|
+
leave_id = 'c4be24e5-e840-4c92-9eaa-2d86cd596314' # String | Leave id for single object
|
2262
|
+
begin
|
2263
|
+
#retrieve a single employee leave record
|
2264
|
+
result = api_instance.get_employee_leave(xero_tenant_id, employee_id, leave_id)
|
2265
|
+
p result
|
2266
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2267
|
+
puts "Exception when calling PayrollUkApi->get_employee_leave: #{e}"
|
2268
|
+
end
|
2269
|
+
```
|
2270
|
+
|
2271
|
+
### Parameters
|
2272
|
+
|
2273
|
+
|
2274
|
+
Name | Type | Description | Notes
|
2275
|
+
------------- | ------------- | ------------- | -------------
|
2276
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2277
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2278
|
+
**leave_id** | [**String**](.md)| Leave id for single object |
|
2279
|
+
|
2280
|
+
### Return type
|
2281
|
+
|
2282
|
+
[**EmployeeLeaveObject**](EmployeeLeaveObject.md)
|
2283
|
+
|
2284
|
+
### Authorization
|
2285
|
+
|
2286
|
+
[OAuth2](../README.md#OAuth2)
|
2287
|
+
|
2288
|
+
### HTTP request headers
|
2289
|
+
|
2290
|
+
- **Content-Type**: Not defined
|
2291
|
+
- **Accept**: application/json
|
2292
|
+
|
2293
|
+
|
2294
|
+
## get_employee_leave_balances
|
2295
|
+
|
2296
|
+
> EmployeeLeaveBalances get_employee_leave_balances(xero_tenant_id, employee_id)
|
2297
|
+
|
2298
|
+
search employee leave balances
|
2299
|
+
|
2300
|
+
### Example
|
2301
|
+
|
2302
|
+
```ruby
|
2303
|
+
# load the gem
|
2304
|
+
require 'xero-ruby'
|
2305
|
+
|
2306
|
+
creds = {
|
2307
|
+
client_id: ENV['CLIENT_ID'],
|
2308
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2309
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2310
|
+
scopes: ENV['SCOPES']
|
2311
|
+
}
|
2312
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2313
|
+
|
2314
|
+
token_set = fetch_valid_token_set(user) # example
|
2315
|
+
|
2316
|
+
xero_client.refresh_token_set(token_set)
|
2317
|
+
|
2318
|
+
# You need to namespace your api method call to one of the following api sets
|
2319
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2320
|
+
|
2321
|
+
api_instance = xero_client.<api_set>
|
2322
|
+
|
2323
|
+
|
2324
|
+
|
2325
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2326
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2327
|
+
begin
|
2328
|
+
#search employee leave balances
|
2329
|
+
result = api_instance.get_employee_leave_balances(xero_tenant_id, employee_id)
|
2330
|
+
p result
|
2331
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2332
|
+
puts "Exception when calling PayrollUkApi->get_employee_leave_balances: #{e}"
|
2333
|
+
end
|
2334
|
+
```
|
2335
|
+
|
2336
|
+
### Parameters
|
2337
|
+
|
2338
|
+
|
2339
|
+
Name | Type | Description | Notes
|
2340
|
+
------------- | ------------- | ------------- | -------------
|
2341
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2342
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2343
|
+
|
2344
|
+
### Return type
|
2345
|
+
|
2346
|
+
[**EmployeeLeaveBalances**](EmployeeLeaveBalances.md)
|
2347
|
+
|
2348
|
+
### Authorization
|
2349
|
+
|
2350
|
+
[OAuth2](../README.md#OAuth2)
|
2351
|
+
|
2352
|
+
### HTTP request headers
|
2353
|
+
|
2354
|
+
- **Content-Type**: Not defined
|
2355
|
+
- **Accept**: application/json
|
2356
|
+
|
2357
|
+
|
2358
|
+
## get_employee_leave_periods
|
2359
|
+
|
2360
|
+
> LeavePeriods get_employee_leave_periods(xero_tenant_id, employee_id, opts)
|
2361
|
+
|
2362
|
+
searches employee leave periods
|
2363
|
+
|
2364
|
+
### Example
|
2365
|
+
|
2366
|
+
```ruby
|
2367
|
+
# load the gem
|
2368
|
+
require 'xero-ruby'
|
2369
|
+
|
2370
|
+
creds = {
|
2371
|
+
client_id: ENV['CLIENT_ID'],
|
2372
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2373
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2374
|
+
scopes: ENV['SCOPES']
|
2375
|
+
}
|
2376
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2377
|
+
|
2378
|
+
token_set = fetch_valid_token_set(user) # example
|
2379
|
+
|
2380
|
+
xero_client.refresh_token_set(token_set)
|
2381
|
+
|
2382
|
+
# You need to namespace your api method call to one of the following api sets
|
2383
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2384
|
+
|
2385
|
+
api_instance = xero_client.<api_set>
|
2386
|
+
|
2387
|
+
|
2388
|
+
|
2389
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2390
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2391
|
+
opts = {
|
2392
|
+
start_date: Date.parse('2013-10-20'), # Date | Filter by start date
|
2393
|
+
|
2394
|
+
end_date: Date.parse('Johnson') # Date | Filter by end date
|
2395
|
+
}
|
2396
|
+
|
2397
|
+
begin
|
2398
|
+
#searches employee leave periods
|
2399
|
+
result = api_instance.get_employee_leave_periods(xero_tenant_id, employee_id, opts)
|
2400
|
+
p result
|
2401
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2402
|
+
puts "Exception when calling PayrollUkApi->get_employee_leave_periods: #{e}"
|
2403
|
+
end
|
2404
|
+
```
|
2405
|
+
|
2406
|
+
### Parameters
|
2407
|
+
|
2408
|
+
|
2409
|
+
Name | Type | Description | Notes
|
2410
|
+
------------- | ------------- | ------------- | -------------
|
2411
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2412
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2413
|
+
**start_date** | **Date**| Filter by start date | [optional]
|
2414
|
+
**end_date** | **Date**| Filter by end date | [optional]
|
2415
|
+
|
2416
|
+
### Return type
|
2417
|
+
|
2418
|
+
[**LeavePeriods**](LeavePeriods.md)
|
2419
|
+
|
2420
|
+
### Authorization
|
2421
|
+
|
2422
|
+
[OAuth2](../README.md#OAuth2)
|
2423
|
+
|
2424
|
+
### HTTP request headers
|
2425
|
+
|
2426
|
+
- **Content-Type**: Not defined
|
2427
|
+
- **Accept**: application/json
|
2428
|
+
|
2429
|
+
|
2430
|
+
## get_employee_leave_types
|
2431
|
+
|
2432
|
+
> EmployeeLeaveTypes get_employee_leave_types(xero_tenant_id, employee_id)
|
2433
|
+
|
2434
|
+
searches employee leave types
|
2435
|
+
|
2436
|
+
### Example
|
2437
|
+
|
2438
|
+
```ruby
|
2439
|
+
# load the gem
|
2440
|
+
require 'xero-ruby'
|
2441
|
+
|
2442
|
+
creds = {
|
2443
|
+
client_id: ENV['CLIENT_ID'],
|
2444
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2445
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2446
|
+
scopes: ENV['SCOPES']
|
2447
|
+
}
|
2448
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2449
|
+
|
2450
|
+
token_set = fetch_valid_token_set(user) # example
|
2451
|
+
|
2452
|
+
xero_client.refresh_token_set(token_set)
|
2453
|
+
|
2454
|
+
# You need to namespace your api method call to one of the following api sets
|
2455
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2456
|
+
|
2457
|
+
api_instance = xero_client.<api_set>
|
2458
|
+
|
2459
|
+
|
2460
|
+
|
2461
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2462
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2463
|
+
begin
|
2464
|
+
#searches employee leave types
|
2465
|
+
result = api_instance.get_employee_leave_types(xero_tenant_id, employee_id)
|
2466
|
+
p result
|
2467
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2468
|
+
puts "Exception when calling PayrollUkApi->get_employee_leave_types: #{e}"
|
2469
|
+
end
|
2470
|
+
```
|
2471
|
+
|
2472
|
+
### Parameters
|
2473
|
+
|
2474
|
+
|
2475
|
+
Name | Type | Description | Notes
|
2476
|
+
------------- | ------------- | ------------- | -------------
|
2477
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2478
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2479
|
+
|
2480
|
+
### Return type
|
2481
|
+
|
2482
|
+
[**EmployeeLeaveTypes**](EmployeeLeaveTypes.md)
|
2483
|
+
|
2484
|
+
### Authorization
|
2485
|
+
|
2486
|
+
[OAuth2](../README.md#OAuth2)
|
2487
|
+
|
2488
|
+
### HTTP request headers
|
2489
|
+
|
2490
|
+
- **Content-Type**: Not defined
|
2491
|
+
- **Accept**: application/json
|
2492
|
+
|
2493
|
+
|
2494
|
+
## get_employee_leaves
|
2495
|
+
|
2496
|
+
> EmployeeLeaves get_employee_leaves(xero_tenant_id, employee_id)
|
2497
|
+
|
2498
|
+
search employee leave records
|
2499
|
+
|
2500
|
+
### Example
|
2501
|
+
|
2502
|
+
```ruby
|
2503
|
+
# load the gem
|
2504
|
+
require 'xero-ruby'
|
2505
|
+
|
2506
|
+
creds = {
|
2507
|
+
client_id: ENV['CLIENT_ID'],
|
2508
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2509
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2510
|
+
scopes: ENV['SCOPES']
|
2511
|
+
}
|
2512
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2513
|
+
|
2514
|
+
token_set = fetch_valid_token_set(user) # example
|
2515
|
+
|
2516
|
+
xero_client.refresh_token_set(token_set)
|
2517
|
+
|
2518
|
+
# You need to namespace your api method call to one of the following api sets
|
2519
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2520
|
+
|
2521
|
+
api_instance = xero_client.<api_set>
|
2522
|
+
|
2523
|
+
|
2524
|
+
|
2525
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2526
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2527
|
+
begin
|
2528
|
+
#search employee leave records
|
2529
|
+
result = api_instance.get_employee_leaves(xero_tenant_id, employee_id)
|
2530
|
+
p result
|
2531
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2532
|
+
puts "Exception when calling PayrollUkApi->get_employee_leaves: #{e}"
|
2533
|
+
end
|
2534
|
+
```
|
2535
|
+
|
2536
|
+
### Parameters
|
2537
|
+
|
2538
|
+
|
2539
|
+
Name | Type | Description | Notes
|
2540
|
+
------------- | ------------- | ------------- | -------------
|
2541
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2542
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2543
|
+
|
2544
|
+
### Return type
|
2545
|
+
|
2546
|
+
[**EmployeeLeaves**](EmployeeLeaves.md)
|
2547
|
+
|
2548
|
+
### Authorization
|
2549
|
+
|
2550
|
+
[OAuth2](../README.md#OAuth2)
|
2551
|
+
|
2552
|
+
### HTTP request headers
|
2553
|
+
|
2554
|
+
- **Content-Type**: Not defined
|
2555
|
+
- **Accept**: application/json
|
2556
|
+
|
2557
|
+
|
2558
|
+
## get_employee_opening_balances
|
2559
|
+
|
2560
|
+
> EmployeeOpeningBalancesObject get_employee_opening_balances(xero_tenant_id, employee_id)
|
2561
|
+
|
2562
|
+
retrieve employee openingbalances
|
2563
|
+
|
2564
|
+
### Example
|
2565
|
+
|
2566
|
+
```ruby
|
2567
|
+
# load the gem
|
2568
|
+
require 'xero-ruby'
|
2569
|
+
|
2570
|
+
creds = {
|
2571
|
+
client_id: ENV['CLIENT_ID'],
|
2572
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2573
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2574
|
+
scopes: ENV['SCOPES']
|
2575
|
+
}
|
2576
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2577
|
+
|
2578
|
+
token_set = fetch_valid_token_set(user) # example
|
2579
|
+
|
2580
|
+
xero_client.refresh_token_set(token_set)
|
2581
|
+
|
2582
|
+
# You need to namespace your api method call to one of the following api sets
|
2583
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2584
|
+
|
2585
|
+
api_instance = xero_client.<api_set>
|
2586
|
+
|
2587
|
+
|
2588
|
+
|
2589
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2590
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2591
|
+
begin
|
2592
|
+
#retrieve employee openingbalances
|
2593
|
+
result = api_instance.get_employee_opening_balances(xero_tenant_id, employee_id)
|
2594
|
+
p result
|
2595
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2596
|
+
puts "Exception when calling PayrollUkApi->get_employee_opening_balances: #{e}"
|
2597
|
+
end
|
2598
|
+
```
|
2599
|
+
|
2600
|
+
### Parameters
|
2601
|
+
|
2602
|
+
|
2603
|
+
Name | Type | Description | Notes
|
2604
|
+
------------- | ------------- | ------------- | -------------
|
2605
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2606
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2607
|
+
|
2608
|
+
### Return type
|
2609
|
+
|
2610
|
+
[**EmployeeOpeningBalancesObject**](EmployeeOpeningBalancesObject.md)
|
2611
|
+
|
2612
|
+
### Authorization
|
2613
|
+
|
2614
|
+
[OAuth2](../README.md#OAuth2)
|
2615
|
+
|
2616
|
+
### HTTP request headers
|
2617
|
+
|
2618
|
+
- **Content-Type**: Not defined
|
2619
|
+
- **Accept**: application/json
|
2620
|
+
|
2621
|
+
|
2622
|
+
## get_employee_pay_template
|
2623
|
+
|
2624
|
+
> EmployeePayTemplateObject get_employee_pay_template(xero_tenant_id, employee_id)
|
2625
|
+
|
2626
|
+
searches employee pay templates
|
2627
|
+
|
2628
|
+
### Example
|
2629
|
+
|
2630
|
+
```ruby
|
2631
|
+
# load the gem
|
2632
|
+
require 'xero-ruby'
|
2633
|
+
|
2634
|
+
creds = {
|
2635
|
+
client_id: ENV['CLIENT_ID'],
|
2636
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2637
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2638
|
+
scopes: ENV['SCOPES']
|
2639
|
+
}
|
2640
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2641
|
+
|
2642
|
+
token_set = fetch_valid_token_set(user) # example
|
2643
|
+
|
2644
|
+
xero_client.refresh_token_set(token_set)
|
2645
|
+
|
2646
|
+
# You need to namespace your api method call to one of the following api sets
|
2647
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2648
|
+
|
2649
|
+
api_instance = xero_client.<api_set>
|
2650
|
+
|
2651
|
+
|
2652
|
+
|
2653
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2654
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2655
|
+
begin
|
2656
|
+
#searches employee pay templates
|
2657
|
+
result = api_instance.get_employee_pay_template(xero_tenant_id, employee_id)
|
2658
|
+
p result
|
2659
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2660
|
+
puts "Exception when calling PayrollUkApi->get_employee_pay_template: #{e}"
|
2661
|
+
end
|
2662
|
+
```
|
2663
|
+
|
2664
|
+
### Parameters
|
2665
|
+
|
2666
|
+
|
2667
|
+
Name | Type | Description | Notes
|
2668
|
+
------------- | ------------- | ------------- | -------------
|
2669
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2670
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2671
|
+
|
2672
|
+
### Return type
|
2673
|
+
|
2674
|
+
[**EmployeePayTemplateObject**](EmployeePayTemplateObject.md)
|
2675
|
+
|
2676
|
+
### Authorization
|
2677
|
+
|
2678
|
+
[OAuth2](../README.md#OAuth2)
|
2679
|
+
|
2680
|
+
### HTTP request headers
|
2681
|
+
|
2682
|
+
- **Content-Type**: Not defined
|
2683
|
+
- **Accept**: application/json
|
2684
|
+
|
2685
|
+
|
2686
|
+
## get_employee_payment_method
|
2687
|
+
|
2688
|
+
> PaymentMethodObject get_employee_payment_method(xero_tenant_id, employee_id)
|
2689
|
+
|
2690
|
+
retrieves an employee's payment method
|
2691
|
+
|
2692
|
+
### Example
|
2693
|
+
|
2694
|
+
```ruby
|
2695
|
+
# load the gem
|
2696
|
+
require 'xero-ruby'
|
2697
|
+
|
2698
|
+
creds = {
|
2699
|
+
client_id: ENV['CLIENT_ID'],
|
2700
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2701
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2702
|
+
scopes: ENV['SCOPES']
|
2703
|
+
}
|
2704
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2705
|
+
|
2706
|
+
token_set = fetch_valid_token_set(user) # example
|
2707
|
+
|
2708
|
+
xero_client.refresh_token_set(token_set)
|
2709
|
+
|
2710
|
+
# You need to namespace your api method call to one of the following api sets
|
2711
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2712
|
+
|
2713
|
+
api_instance = xero_client.<api_set>
|
2714
|
+
|
2715
|
+
|
2716
|
+
|
2717
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2718
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2719
|
+
begin
|
2720
|
+
#retrieves an employee's payment method
|
2721
|
+
result = api_instance.get_employee_payment_method(xero_tenant_id, employee_id)
|
2722
|
+
p result
|
2723
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2724
|
+
puts "Exception when calling PayrollUkApi->get_employee_payment_method: #{e}"
|
2725
|
+
end
|
2726
|
+
```
|
2727
|
+
|
2728
|
+
### Parameters
|
2729
|
+
|
2730
|
+
|
2731
|
+
Name | Type | Description | Notes
|
2732
|
+
------------- | ------------- | ------------- | -------------
|
2733
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2734
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2735
|
+
|
2736
|
+
### Return type
|
2737
|
+
|
2738
|
+
[**PaymentMethodObject**](PaymentMethodObject.md)
|
2739
|
+
|
2740
|
+
### Authorization
|
2741
|
+
|
2742
|
+
[OAuth2](../README.md#OAuth2)
|
2743
|
+
|
2744
|
+
### HTTP request headers
|
2745
|
+
|
2746
|
+
- **Content-Type**: Not defined
|
2747
|
+
- **Accept**: application/json
|
2748
|
+
|
2749
|
+
|
2750
|
+
## get_employee_salary_and_wage
|
2751
|
+
|
2752
|
+
> SalaryAndWages get_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id)
|
2753
|
+
|
2754
|
+
get employee salary and wages record by id
|
2755
|
+
|
2756
|
+
### Example
|
2757
|
+
|
2758
|
+
```ruby
|
2759
|
+
# load the gem
|
2760
|
+
require 'xero-ruby'
|
2761
|
+
|
2762
|
+
creds = {
|
2763
|
+
client_id: ENV['CLIENT_ID'],
|
2764
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2765
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2766
|
+
scopes: ENV['SCOPES']
|
2767
|
+
}
|
2768
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2769
|
+
|
2770
|
+
token_set = fetch_valid_token_set(user) # example
|
2771
|
+
|
2772
|
+
xero_client.refresh_token_set(token_set)
|
2773
|
+
|
2774
|
+
# You need to namespace your api method call to one of the following api sets
|
2775
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2776
|
+
|
2777
|
+
api_instance = xero_client.<api_set>
|
2778
|
+
|
2779
|
+
|
2780
|
+
|
2781
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2782
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2783
|
+
salary_and_wages_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single pay template earnings object
|
2784
|
+
begin
|
2785
|
+
#get employee salary and wages record by id
|
2786
|
+
result = api_instance.get_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id)
|
2787
|
+
p result
|
2788
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2789
|
+
puts "Exception when calling PayrollUkApi->get_employee_salary_and_wage: #{e}"
|
2790
|
+
end
|
2791
|
+
```
|
2792
|
+
|
2793
|
+
### Parameters
|
2794
|
+
|
2795
|
+
|
2796
|
+
Name | Type | Description | Notes
|
2797
|
+
------------- | ------------- | ------------- | -------------
|
2798
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2799
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2800
|
+
**salary_and_wages_id** | [**String**](.md)| Id for single pay template earnings object |
|
2801
|
+
|
2802
|
+
### Return type
|
2803
|
+
|
2804
|
+
[**SalaryAndWages**](SalaryAndWages.md)
|
2805
|
+
|
2806
|
+
### Authorization
|
2807
|
+
|
2808
|
+
[OAuth2](../README.md#OAuth2)
|
2809
|
+
|
2810
|
+
### HTTP request headers
|
2811
|
+
|
2812
|
+
- **Content-Type**: Not defined
|
2813
|
+
- **Accept**: application/json
|
2814
|
+
|
2815
|
+
|
2816
|
+
## get_employee_salary_and_wages
|
2817
|
+
|
2818
|
+
> SalaryAndWages get_employee_salary_and_wages(xero_tenant_id, employee_id, opts)
|
2819
|
+
|
2820
|
+
retrieves an employee's salary and wages
|
2821
|
+
|
2822
|
+
### Example
|
2823
|
+
|
2824
|
+
```ruby
|
2825
|
+
# load the gem
|
2826
|
+
require 'xero-ruby'
|
2827
|
+
|
2828
|
+
creds = {
|
2829
|
+
client_id: ENV['CLIENT_ID'],
|
2830
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2831
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2832
|
+
scopes: ENV['SCOPES']
|
2833
|
+
}
|
2834
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2835
|
+
|
2836
|
+
token_set = fetch_valid_token_set(user) # example
|
2837
|
+
|
2838
|
+
xero_client.refresh_token_set(token_set)
|
2839
|
+
|
2840
|
+
# You need to namespace your api method call to one of the following api sets
|
2841
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2842
|
+
|
2843
|
+
api_instance = xero_client.<api_set>
|
2844
|
+
|
2845
|
+
|
2846
|
+
|
2847
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2848
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2849
|
+
opts = {
|
2850
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
2851
|
+
}
|
2852
|
+
|
2853
|
+
begin
|
2854
|
+
#retrieves an employee's salary and wages
|
2855
|
+
result = api_instance.get_employee_salary_and_wages(xero_tenant_id, employee_id, opts)
|
2856
|
+
p result
|
2857
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2858
|
+
puts "Exception when calling PayrollUkApi->get_employee_salary_and_wages: #{e}"
|
2859
|
+
end
|
2860
|
+
```
|
2861
|
+
|
2862
|
+
### Parameters
|
2863
|
+
|
2864
|
+
|
2865
|
+
Name | Type | Description | Notes
|
2866
|
+
------------- | ------------- | ------------- | -------------
|
2867
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2868
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2869
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
2870
|
+
|
2871
|
+
### Return type
|
2872
|
+
|
2873
|
+
[**SalaryAndWages**](SalaryAndWages.md)
|
2874
|
+
|
2875
|
+
### Authorization
|
2876
|
+
|
2877
|
+
[OAuth2](../README.md#OAuth2)
|
2878
|
+
|
2879
|
+
### HTTP request headers
|
2880
|
+
|
2881
|
+
- **Content-Type**: Not defined
|
2882
|
+
- **Accept**: application/json
|
2883
|
+
|
2884
|
+
|
2885
|
+
## get_employee_statutory_leave_balances
|
2886
|
+
|
2887
|
+
> EmployeeStatutoryLeaveBalanceObject get_employee_statutory_leave_balances(xero_tenant_id, employee_id, opts)
|
2888
|
+
|
2889
|
+
search employee leave balances
|
2890
|
+
|
2891
|
+
### Example
|
2892
|
+
|
2893
|
+
```ruby
|
2894
|
+
# load the gem
|
2895
|
+
require 'xero-ruby'
|
2896
|
+
|
2897
|
+
creds = {
|
2898
|
+
client_id: ENV['CLIENT_ID'],
|
2899
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2900
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2901
|
+
scopes: ENV['SCOPES']
|
2902
|
+
}
|
2903
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2904
|
+
|
2905
|
+
token_set = fetch_valid_token_set(user) # example
|
2906
|
+
|
2907
|
+
xero_client.refresh_token_set(token_set)
|
2908
|
+
|
2909
|
+
# You need to namespace your api method call to one of the following api sets
|
2910
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2911
|
+
|
2912
|
+
api_instance = xero_client.<api_set>
|
2913
|
+
|
2914
|
+
|
2915
|
+
|
2916
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2917
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
2918
|
+
opts = {
|
2919
|
+
leave_type: 'sick', # String | Filter by the type of statutory leave
|
2920
|
+
|
2921
|
+
as_of_date: Date.parse('2013-10-20') # Date | The date from which to calculate balance remaining. If not specified, current date UTC is used.
|
2922
|
+
}
|
2923
|
+
|
2924
|
+
begin
|
2925
|
+
#search employee leave balances
|
2926
|
+
result = api_instance.get_employee_statutory_leave_balances(xero_tenant_id, employee_id, opts)
|
2927
|
+
p result
|
2928
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2929
|
+
puts "Exception when calling PayrollUkApi->get_employee_statutory_leave_balances: #{e}"
|
2930
|
+
end
|
2931
|
+
```
|
2932
|
+
|
2933
|
+
### Parameters
|
2934
|
+
|
2935
|
+
|
2936
|
+
Name | Type | Description | Notes
|
2937
|
+
------------- | ------------- | ------------- | -------------
|
2938
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
2939
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
2940
|
+
**leave_type** | **String**| Filter by the type of statutory leave | [optional]
|
2941
|
+
**as_of_date** | **Date**| The date from which to calculate balance remaining. If not specified, current date UTC is used. | [optional]
|
2942
|
+
|
2943
|
+
### Return type
|
2944
|
+
|
2945
|
+
[**EmployeeStatutoryLeaveBalanceObject**](EmployeeStatutoryLeaveBalanceObject.md)
|
2946
|
+
|
2947
|
+
### Authorization
|
2948
|
+
|
2949
|
+
[OAuth2](../README.md#OAuth2)
|
2950
|
+
|
2951
|
+
### HTTP request headers
|
2952
|
+
|
2953
|
+
- **Content-Type**: Not defined
|
2954
|
+
- **Accept**: application/json
|
2955
|
+
|
2956
|
+
|
2957
|
+
## get_employee_statutory_sick_leave
|
2958
|
+
|
2959
|
+
> EmployeeStatutorySickLeaveObject get_employee_statutory_sick_leave(xero_tenant_id, statutory_sick_leave_id)
|
2960
|
+
|
2961
|
+
retrieve a statutory sick leave for an employee
|
2962
|
+
|
2963
|
+
### Example
|
2964
|
+
|
2965
|
+
```ruby
|
2966
|
+
# load the gem
|
2967
|
+
require 'xero-ruby'
|
2968
|
+
|
2969
|
+
creds = {
|
2970
|
+
client_id: ENV['CLIENT_ID'],
|
2971
|
+
client_secret: ENV['CLIENT_SECRET'],
|
2972
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
2973
|
+
scopes: ENV['SCOPES']
|
2974
|
+
}
|
2975
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
2976
|
+
|
2977
|
+
token_set = fetch_valid_token_set(user) # example
|
2978
|
+
|
2979
|
+
xero_client.refresh_token_set(token_set)
|
2980
|
+
|
2981
|
+
# You need to namespace your api method call to one of the following api sets
|
2982
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
2983
|
+
|
2984
|
+
api_instance = xero_client.<api_set>
|
2985
|
+
|
2986
|
+
|
2987
|
+
|
2988
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
2989
|
+
statutory_sick_leave_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Statutory sick leave id for single object
|
2990
|
+
begin
|
2991
|
+
#retrieve a statutory sick leave for an employee
|
2992
|
+
result = api_instance.get_employee_statutory_sick_leave(xero_tenant_id, statutory_sick_leave_id)
|
2993
|
+
p result
|
2994
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
2995
|
+
puts "Exception when calling PayrollUkApi->get_employee_statutory_sick_leave: #{e}"
|
2996
|
+
end
|
2997
|
+
```
|
2998
|
+
|
2999
|
+
### Parameters
|
3000
|
+
|
3001
|
+
|
3002
|
+
Name | Type | Description | Notes
|
3003
|
+
------------- | ------------- | ------------- | -------------
|
3004
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3005
|
+
**statutory_sick_leave_id** | [**String**](.md)| Statutory sick leave id for single object |
|
3006
|
+
|
3007
|
+
### Return type
|
3008
|
+
|
3009
|
+
[**EmployeeStatutorySickLeaveObject**](EmployeeStatutorySickLeaveObject.md)
|
3010
|
+
|
3011
|
+
### Authorization
|
3012
|
+
|
3013
|
+
[OAuth2](../README.md#OAuth2)
|
3014
|
+
|
3015
|
+
### HTTP request headers
|
3016
|
+
|
3017
|
+
- **Content-Type**: Not defined
|
3018
|
+
- **Accept**: application/json
|
3019
|
+
|
3020
|
+
|
3021
|
+
## get_employee_tax
|
3022
|
+
|
3023
|
+
> EmployeeTaxObject get_employee_tax(xero_tenant_id, employee_id)
|
3024
|
+
|
3025
|
+
searches tax records for an employee
|
3026
|
+
|
3027
|
+
### Example
|
3028
|
+
|
3029
|
+
```ruby
|
3030
|
+
# load the gem
|
3031
|
+
require 'xero-ruby'
|
3032
|
+
|
3033
|
+
creds = {
|
3034
|
+
client_id: ENV['CLIENT_ID'],
|
3035
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3036
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3037
|
+
scopes: ENV['SCOPES']
|
3038
|
+
}
|
3039
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3040
|
+
|
3041
|
+
token_set = fetch_valid_token_set(user) # example
|
3042
|
+
|
3043
|
+
xero_client.refresh_token_set(token_set)
|
3044
|
+
|
3045
|
+
# You need to namespace your api method call to one of the following api sets
|
3046
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3047
|
+
|
3048
|
+
api_instance = xero_client.<api_set>
|
3049
|
+
|
3050
|
+
|
3051
|
+
|
3052
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3053
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
3054
|
+
begin
|
3055
|
+
#searches tax records for an employee
|
3056
|
+
result = api_instance.get_employee_tax(xero_tenant_id, employee_id)
|
3057
|
+
p result
|
3058
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3059
|
+
puts "Exception when calling PayrollUkApi->get_employee_tax: #{e}"
|
3060
|
+
end
|
3061
|
+
```
|
3062
|
+
|
3063
|
+
### Parameters
|
3064
|
+
|
3065
|
+
|
3066
|
+
Name | Type | Description | Notes
|
3067
|
+
------------- | ------------- | ------------- | -------------
|
3068
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3069
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
3070
|
+
|
3071
|
+
### Return type
|
3072
|
+
|
3073
|
+
[**EmployeeTaxObject**](EmployeeTaxObject.md)
|
3074
|
+
|
3075
|
+
### Authorization
|
3076
|
+
|
3077
|
+
[OAuth2](../README.md#OAuth2)
|
3078
|
+
|
3079
|
+
### HTTP request headers
|
3080
|
+
|
3081
|
+
- **Content-Type**: Not defined
|
3082
|
+
- **Accept**: application/json
|
3083
|
+
|
3084
|
+
|
3085
|
+
## get_employees
|
3086
|
+
|
3087
|
+
> Employees get_employees(xero_tenant_id, opts)
|
3088
|
+
|
3089
|
+
searches employees
|
3090
|
+
|
3091
|
+
### Example
|
3092
|
+
|
3093
|
+
```ruby
|
3094
|
+
# load the gem
|
3095
|
+
require 'xero-ruby'
|
3096
|
+
|
3097
|
+
creds = {
|
3098
|
+
client_id: ENV['CLIENT_ID'],
|
3099
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3100
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3101
|
+
scopes: ENV['SCOPES']
|
3102
|
+
}
|
3103
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3104
|
+
|
3105
|
+
token_set = fetch_valid_token_set(user) # example
|
3106
|
+
|
3107
|
+
xero_client.refresh_token_set(token_set)
|
3108
|
+
|
3109
|
+
# You need to namespace your api method call to one of the following api sets
|
3110
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3111
|
+
|
3112
|
+
api_instance = xero_client.<api_set>
|
3113
|
+
|
3114
|
+
|
3115
|
+
|
3116
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3117
|
+
opts = {
|
3118
|
+
first_name: 'John', # String | Filter by first name
|
3119
|
+
|
3120
|
+
last_name: 'Johnson', # String | Filter by last name
|
3121
|
+
|
3122
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
3123
|
+
}
|
3124
|
+
|
3125
|
+
begin
|
3126
|
+
#searches employees
|
3127
|
+
result = api_instance.get_employees(xero_tenant_id, opts)
|
3128
|
+
p result
|
3129
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3130
|
+
puts "Exception when calling PayrollUkApi->get_employees: #{e}"
|
3131
|
+
end
|
3132
|
+
```
|
3133
|
+
|
3134
|
+
### Parameters
|
3135
|
+
|
3136
|
+
|
3137
|
+
Name | Type | Description | Notes
|
3138
|
+
------------- | ------------- | ------------- | -------------
|
3139
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3140
|
+
**first_name** | **String**| Filter by first name | [optional]
|
3141
|
+
**last_name** | **String**| Filter by last name | [optional]
|
3142
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
3143
|
+
|
3144
|
+
### Return type
|
3145
|
+
|
3146
|
+
[**Employees**](Employees.md)
|
3147
|
+
|
3148
|
+
### Authorization
|
3149
|
+
|
3150
|
+
[OAuth2](../README.md#OAuth2)
|
3151
|
+
|
3152
|
+
### HTTP request headers
|
3153
|
+
|
3154
|
+
- **Content-Type**: Not defined
|
3155
|
+
- **Accept**: application/json
|
3156
|
+
|
3157
|
+
|
3158
|
+
## get_leave_type
|
3159
|
+
|
3160
|
+
> LeaveTypeObject get_leave_type(xero_tenant_id, leave_type_id)
|
3161
|
+
|
3162
|
+
retrieve a single leave type by id
|
3163
|
+
|
3164
|
+
### Example
|
3165
|
+
|
3166
|
+
```ruby
|
3167
|
+
# load the gem
|
3168
|
+
require 'xero-ruby'
|
3169
|
+
|
3170
|
+
creds = {
|
3171
|
+
client_id: ENV['CLIENT_ID'],
|
3172
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3173
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3174
|
+
scopes: ENV['SCOPES']
|
3175
|
+
}
|
3176
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3177
|
+
|
3178
|
+
token_set = fetch_valid_token_set(user) # example
|
3179
|
+
|
3180
|
+
xero_client.refresh_token_set(token_set)
|
3181
|
+
|
3182
|
+
# You need to namespace your api method call to one of the following api sets
|
3183
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3184
|
+
|
3185
|
+
api_instance = xero_client.<api_set>
|
3186
|
+
|
3187
|
+
|
3188
|
+
|
3189
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3190
|
+
leave_type_id = 'leave_type_id_example' # String | Identifier for the leave type
|
3191
|
+
begin
|
3192
|
+
#retrieve a single leave type by id
|
3193
|
+
result = api_instance.get_leave_type(xero_tenant_id, leave_type_id)
|
3194
|
+
p result
|
3195
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3196
|
+
puts "Exception when calling PayrollUkApi->get_leave_type: #{e}"
|
3197
|
+
end
|
3198
|
+
```
|
3199
|
+
|
3200
|
+
### Parameters
|
3201
|
+
|
3202
|
+
|
3203
|
+
Name | Type | Description | Notes
|
3204
|
+
------------- | ------------- | ------------- | -------------
|
3205
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3206
|
+
**leave_type_id** | [**String**](.md)| Identifier for the leave type |
|
3207
|
+
|
3208
|
+
### Return type
|
3209
|
+
|
3210
|
+
[**LeaveTypeObject**](LeaveTypeObject.md)
|
3211
|
+
|
3212
|
+
### Authorization
|
3213
|
+
|
3214
|
+
[OAuth2](../README.md#OAuth2)
|
3215
|
+
|
3216
|
+
### HTTP request headers
|
3217
|
+
|
3218
|
+
- **Content-Type**: Not defined
|
3219
|
+
- **Accept**: application/json
|
3220
|
+
|
3221
|
+
|
3222
|
+
## get_leave_types
|
3223
|
+
|
3224
|
+
> LeaveTypes get_leave_types(xero_tenant_id, opts)
|
3225
|
+
|
3226
|
+
searches leave types
|
3227
|
+
|
3228
|
+
### Example
|
3229
|
+
|
3230
|
+
```ruby
|
3231
|
+
# load the gem
|
3232
|
+
require 'xero-ruby'
|
3233
|
+
|
3234
|
+
creds = {
|
3235
|
+
client_id: ENV['CLIENT_ID'],
|
3236
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3237
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3238
|
+
scopes: ENV['SCOPES']
|
3239
|
+
}
|
3240
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3241
|
+
|
3242
|
+
token_set = fetch_valid_token_set(user) # example
|
3243
|
+
|
3244
|
+
xero_client.refresh_token_set(token_set)
|
3245
|
+
|
3246
|
+
# You need to namespace your api method call to one of the following api sets
|
3247
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3248
|
+
|
3249
|
+
api_instance = xero_client.<api_set>
|
3250
|
+
|
3251
|
+
|
3252
|
+
|
3253
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3254
|
+
opts = {
|
3255
|
+
page: 56, # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
3256
|
+
|
3257
|
+
active_only: true # Boolean | Filters leave types by active status. By default the API returns all leave types.
|
3258
|
+
}
|
3259
|
+
|
3260
|
+
begin
|
3261
|
+
#searches leave types
|
3262
|
+
result = api_instance.get_leave_types(xero_tenant_id, opts)
|
3263
|
+
p result
|
3264
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3265
|
+
puts "Exception when calling PayrollUkApi->get_leave_types: #{e}"
|
3266
|
+
end
|
3267
|
+
```
|
3268
|
+
|
3269
|
+
### Parameters
|
3270
|
+
|
3271
|
+
|
3272
|
+
Name | Type | Description | Notes
|
3273
|
+
------------- | ------------- | ------------- | -------------
|
3274
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3275
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
3276
|
+
**active_only** | **Boolean**| Filters leave types by active status. By default the API returns all leave types. | [optional]
|
3277
|
+
|
3278
|
+
### Return type
|
3279
|
+
|
3280
|
+
[**LeaveTypes**](LeaveTypes.md)
|
3281
|
+
|
3282
|
+
### Authorization
|
3283
|
+
|
3284
|
+
[OAuth2](../README.md#OAuth2)
|
3285
|
+
|
3286
|
+
### HTTP request headers
|
3287
|
+
|
3288
|
+
- **Content-Type**: Not defined
|
3289
|
+
- **Accept**: application/json
|
3290
|
+
|
3291
|
+
|
3292
|
+
## get_pay_run
|
3293
|
+
|
3294
|
+
> PayRunObject get_pay_run(xero_tenant_id, pay_run_id)
|
3295
|
+
|
3296
|
+
retrieve a single pay run by id
|
3297
|
+
|
3298
|
+
### Example
|
3299
|
+
|
3300
|
+
```ruby
|
3301
|
+
# load the gem
|
3302
|
+
require 'xero-ruby'
|
3303
|
+
|
3304
|
+
creds = {
|
3305
|
+
client_id: ENV['CLIENT_ID'],
|
3306
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3307
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3308
|
+
scopes: ENV['SCOPES']
|
3309
|
+
}
|
3310
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3311
|
+
|
3312
|
+
token_set = fetch_valid_token_set(user) # example
|
3313
|
+
|
3314
|
+
xero_client.refresh_token_set(token_set)
|
3315
|
+
|
3316
|
+
# You need to namespace your api method call to one of the following api sets
|
3317
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3318
|
+
|
3319
|
+
api_instance = xero_client.<api_set>
|
3320
|
+
|
3321
|
+
|
3322
|
+
|
3323
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3324
|
+
pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run
|
3325
|
+
begin
|
3326
|
+
#retrieve a single pay run by id
|
3327
|
+
result = api_instance.get_pay_run(xero_tenant_id, pay_run_id)
|
3328
|
+
p result
|
3329
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3330
|
+
puts "Exception when calling PayrollUkApi->get_pay_run: #{e}"
|
3331
|
+
end
|
3332
|
+
```
|
3333
|
+
|
3334
|
+
### Parameters
|
3335
|
+
|
3336
|
+
|
3337
|
+
Name | Type | Description | Notes
|
3338
|
+
------------- | ------------- | ------------- | -------------
|
3339
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3340
|
+
**pay_run_id** | [**String**](.md)| Identifier for the pay run |
|
3341
|
+
|
3342
|
+
### Return type
|
3343
|
+
|
3344
|
+
[**PayRunObject**](PayRunObject.md)
|
3345
|
+
|
3346
|
+
### Authorization
|
3347
|
+
|
3348
|
+
[OAuth2](../README.md#OAuth2)
|
3349
|
+
|
3350
|
+
### HTTP request headers
|
3351
|
+
|
3352
|
+
- **Content-Type**: Not defined
|
3353
|
+
- **Accept**: application/json
|
3354
|
+
|
3355
|
+
|
3356
|
+
## get_pay_run_calendar
|
3357
|
+
|
3358
|
+
> PayRunCalendarObject get_pay_run_calendar(xero_tenant_id, pay_run_calendar_id)
|
3359
|
+
|
3360
|
+
retrieve a single payrun calendar by id
|
3361
|
+
|
3362
|
+
### Example
|
3363
|
+
|
3364
|
+
```ruby
|
3365
|
+
# load the gem
|
3366
|
+
require 'xero-ruby'
|
3367
|
+
|
3368
|
+
creds = {
|
3369
|
+
client_id: ENV['CLIENT_ID'],
|
3370
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3371
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3372
|
+
scopes: ENV['SCOPES']
|
3373
|
+
}
|
3374
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3375
|
+
|
3376
|
+
token_set = fetch_valid_token_set(user) # example
|
3377
|
+
|
3378
|
+
xero_client.refresh_token_set(token_set)
|
3379
|
+
|
3380
|
+
# You need to namespace your api method call to one of the following api sets
|
3381
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3382
|
+
|
3383
|
+
api_instance = xero_client.<api_set>
|
3384
|
+
|
3385
|
+
|
3386
|
+
|
3387
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3388
|
+
pay_run_calendar_id = 'pay_run_calendar_id_example' # String | Identifier for the payrun calendars
|
3389
|
+
begin
|
3390
|
+
#retrieve a single payrun calendar by id
|
3391
|
+
result = api_instance.get_pay_run_calendar(xero_tenant_id, pay_run_calendar_id)
|
3392
|
+
p result
|
3393
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3394
|
+
puts "Exception when calling PayrollUkApi->get_pay_run_calendar: #{e}"
|
3395
|
+
end
|
3396
|
+
```
|
3397
|
+
|
3398
|
+
### Parameters
|
3399
|
+
|
3400
|
+
|
3401
|
+
Name | Type | Description | Notes
|
3402
|
+
------------- | ------------- | ------------- | -------------
|
3403
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3404
|
+
**pay_run_calendar_id** | [**String**](.md)| Identifier for the payrun calendars |
|
3405
|
+
|
3406
|
+
### Return type
|
3407
|
+
|
3408
|
+
[**PayRunCalendarObject**](PayRunCalendarObject.md)
|
3409
|
+
|
3410
|
+
### Authorization
|
3411
|
+
|
3412
|
+
[OAuth2](../README.md#OAuth2)
|
3413
|
+
|
3414
|
+
### HTTP request headers
|
3415
|
+
|
3416
|
+
- **Content-Type**: Not defined
|
3417
|
+
- **Accept**: application/json
|
3418
|
+
|
3419
|
+
|
3420
|
+
## get_pay_run_calendars
|
3421
|
+
|
3422
|
+
> PayRunCalendars get_pay_run_calendars(xero_tenant_id, opts)
|
3423
|
+
|
3424
|
+
searches payrun calendars
|
3425
|
+
|
3426
|
+
### Example
|
3427
|
+
|
3428
|
+
```ruby
|
3429
|
+
# load the gem
|
3430
|
+
require 'xero-ruby'
|
3431
|
+
|
3432
|
+
creds = {
|
3433
|
+
client_id: ENV['CLIENT_ID'],
|
3434
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3435
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3436
|
+
scopes: ENV['SCOPES']
|
3437
|
+
}
|
3438
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3439
|
+
|
3440
|
+
token_set = fetch_valid_token_set(user) # example
|
3441
|
+
|
3442
|
+
xero_client.refresh_token_set(token_set)
|
3443
|
+
|
3444
|
+
# You need to namespace your api method call to one of the following api sets
|
3445
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3446
|
+
|
3447
|
+
api_instance = xero_client.<api_set>
|
3448
|
+
|
3449
|
+
|
3450
|
+
|
3451
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3452
|
+
opts = {
|
3453
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
3454
|
+
}
|
3455
|
+
|
3456
|
+
begin
|
3457
|
+
#searches payrun calendars
|
3458
|
+
result = api_instance.get_pay_run_calendars(xero_tenant_id, opts)
|
3459
|
+
p result
|
3460
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3461
|
+
puts "Exception when calling PayrollUkApi->get_pay_run_calendars: #{e}"
|
3462
|
+
end
|
3463
|
+
```
|
3464
|
+
|
3465
|
+
### Parameters
|
3466
|
+
|
3467
|
+
|
3468
|
+
Name | Type | Description | Notes
|
3469
|
+
------------- | ------------- | ------------- | -------------
|
3470
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3471
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
3472
|
+
|
3473
|
+
### Return type
|
3474
|
+
|
3475
|
+
[**PayRunCalendars**](PayRunCalendars.md)
|
3476
|
+
|
3477
|
+
### Authorization
|
3478
|
+
|
3479
|
+
[OAuth2](../README.md#OAuth2)
|
3480
|
+
|
3481
|
+
### HTTP request headers
|
3482
|
+
|
3483
|
+
- **Content-Type**: Not defined
|
3484
|
+
- **Accept**: application/json
|
3485
|
+
|
3486
|
+
|
3487
|
+
## get_pay_runs
|
3488
|
+
|
3489
|
+
> PayRuns get_pay_runs(xero_tenant_id, opts)
|
3490
|
+
|
3491
|
+
searches pay runs
|
3492
|
+
|
3493
|
+
### Example
|
3494
|
+
|
3495
|
+
```ruby
|
3496
|
+
# load the gem
|
3497
|
+
require 'xero-ruby'
|
3498
|
+
|
3499
|
+
creds = {
|
3500
|
+
client_id: ENV['CLIENT_ID'],
|
3501
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3502
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3503
|
+
scopes: ENV['SCOPES']
|
3504
|
+
}
|
3505
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3506
|
+
|
3507
|
+
token_set = fetch_valid_token_set(user) # example
|
3508
|
+
|
3509
|
+
xero_client.refresh_token_set(token_set)
|
3510
|
+
|
3511
|
+
# You need to namespace your api method call to one of the following api sets
|
3512
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3513
|
+
|
3514
|
+
api_instance = xero_client.<api_set>
|
3515
|
+
|
3516
|
+
|
3517
|
+
|
3518
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3519
|
+
opts = {
|
3520
|
+
page: 56, # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
3521
|
+
|
3522
|
+
status: 'status_example' # String | By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status.
|
3523
|
+
}
|
3524
|
+
|
3525
|
+
begin
|
3526
|
+
#searches pay runs
|
3527
|
+
result = api_instance.get_pay_runs(xero_tenant_id, opts)
|
3528
|
+
p result
|
3529
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3530
|
+
puts "Exception when calling PayrollUkApi->get_pay_runs: #{e}"
|
3531
|
+
end
|
3532
|
+
```
|
3533
|
+
|
3534
|
+
### Parameters
|
3535
|
+
|
3536
|
+
|
3537
|
+
Name | Type | Description | Notes
|
3538
|
+
------------- | ------------- | ------------- | -------------
|
3539
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3540
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
3541
|
+
**status** | **String**| By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status. | [optional]
|
3542
|
+
|
3543
|
+
### Return type
|
3544
|
+
|
3545
|
+
[**PayRuns**](PayRuns.md)
|
3546
|
+
|
3547
|
+
### Authorization
|
3548
|
+
|
3549
|
+
[OAuth2](../README.md#OAuth2)
|
3550
|
+
|
3551
|
+
### HTTP request headers
|
3552
|
+
|
3553
|
+
- **Content-Type**: Not defined
|
3554
|
+
- **Accept**: application/json
|
3555
|
+
|
3556
|
+
|
3557
|
+
## get_pay_slip
|
3558
|
+
|
3559
|
+
> PayslipObject get_pay_slip(xero_tenant_id, payslip_id)
|
3560
|
+
|
3561
|
+
retrieve a single payslip by id
|
3562
|
+
|
3563
|
+
### Example
|
3564
|
+
|
3565
|
+
```ruby
|
3566
|
+
# load the gem
|
3567
|
+
require 'xero-ruby'
|
3568
|
+
|
3569
|
+
creds = {
|
3570
|
+
client_id: ENV['CLIENT_ID'],
|
3571
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3572
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3573
|
+
scopes: ENV['SCOPES']
|
3574
|
+
}
|
3575
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3576
|
+
|
3577
|
+
token_set = fetch_valid_token_set(user) # example
|
3578
|
+
|
3579
|
+
xero_client.refresh_token_set(token_set)
|
3580
|
+
|
3581
|
+
# You need to namespace your api method call to one of the following api sets
|
3582
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3583
|
+
|
3584
|
+
api_instance = xero_client.<api_set>
|
3585
|
+
|
3586
|
+
|
3587
|
+
|
3588
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3589
|
+
payslip_id = 'payslip_id_example' # String | Identifier for the payslip
|
3590
|
+
begin
|
3591
|
+
#retrieve a single payslip by id
|
3592
|
+
result = api_instance.get_pay_slip(xero_tenant_id, payslip_id)
|
3593
|
+
p result
|
3594
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3595
|
+
puts "Exception when calling PayrollUkApi->get_pay_slip: #{e}"
|
3596
|
+
end
|
3597
|
+
```
|
3598
|
+
|
3599
|
+
### Parameters
|
3600
|
+
|
3601
|
+
|
3602
|
+
Name | Type | Description | Notes
|
3603
|
+
------------- | ------------- | ------------- | -------------
|
3604
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3605
|
+
**payslip_id** | [**String**](.md)| Identifier for the payslip |
|
3606
|
+
|
3607
|
+
### Return type
|
3608
|
+
|
3609
|
+
[**PayslipObject**](PayslipObject.md)
|
3610
|
+
|
3611
|
+
### Authorization
|
3612
|
+
|
3613
|
+
[OAuth2](../README.md#OAuth2)
|
3614
|
+
|
3615
|
+
### HTTP request headers
|
3616
|
+
|
3617
|
+
- **Content-Type**: Not defined
|
3618
|
+
- **Accept**: application/json
|
3619
|
+
|
3620
|
+
|
3621
|
+
## get_pay_slips
|
3622
|
+
|
3623
|
+
> Payslips get_pay_slips(xero_tenant_id, pay_run_id, opts)
|
3624
|
+
|
3625
|
+
searches payslips
|
3626
|
+
|
3627
|
+
### Example
|
3628
|
+
|
3629
|
+
```ruby
|
3630
|
+
# load the gem
|
3631
|
+
require 'xero-ruby'
|
3632
|
+
|
3633
|
+
creds = {
|
3634
|
+
client_id: ENV['CLIENT_ID'],
|
3635
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3636
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3637
|
+
scopes: ENV['SCOPES']
|
3638
|
+
}
|
3639
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3640
|
+
|
3641
|
+
token_set = fetch_valid_token_set(user) # example
|
3642
|
+
|
3643
|
+
xero_client.refresh_token_set(token_set)
|
3644
|
+
|
3645
|
+
# You need to namespace your api method call to one of the following api sets
|
3646
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3647
|
+
|
3648
|
+
api_instance = xero_client.<api_set>
|
3649
|
+
|
3650
|
+
|
3651
|
+
|
3652
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3653
|
+
pay_run_id = 'pay_run_id_example' # String | PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.
|
3654
|
+
opts = {
|
3655
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
3656
|
+
}
|
3657
|
+
|
3658
|
+
begin
|
3659
|
+
#searches payslips
|
3660
|
+
result = api_instance.get_pay_slips(xero_tenant_id, pay_run_id, opts)
|
3661
|
+
p result
|
3662
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3663
|
+
puts "Exception when calling PayrollUkApi->get_pay_slips: #{e}"
|
3664
|
+
end
|
3665
|
+
```
|
3666
|
+
|
3667
|
+
### Parameters
|
3668
|
+
|
3669
|
+
|
3670
|
+
Name | Type | Description | Notes
|
3671
|
+
------------- | ------------- | ------------- | -------------
|
3672
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3673
|
+
**pay_run_id** | [**String**](.md)| PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. |
|
3674
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
3675
|
+
|
3676
|
+
### Return type
|
3677
|
+
|
3678
|
+
[**Payslips**](Payslips.md)
|
3679
|
+
|
3680
|
+
### Authorization
|
3681
|
+
|
3682
|
+
[OAuth2](../README.md#OAuth2)
|
3683
|
+
|
3684
|
+
### HTTP request headers
|
3685
|
+
|
3686
|
+
- **Content-Type**: Not defined
|
3687
|
+
- **Accept**: application/json
|
3688
|
+
|
3689
|
+
|
3690
|
+
## get_reimbursement
|
3691
|
+
|
3692
|
+
> ReimbursementObject get_reimbursement(xero_tenant_id, reimbursement_id)
|
3693
|
+
|
3694
|
+
retrieve a single reimbursement by id
|
3695
|
+
|
3696
|
+
### Example
|
3697
|
+
|
3698
|
+
```ruby
|
3699
|
+
# load the gem
|
3700
|
+
require 'xero-ruby'
|
3701
|
+
|
3702
|
+
creds = {
|
3703
|
+
client_id: ENV['CLIENT_ID'],
|
3704
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3705
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3706
|
+
scopes: ENV['SCOPES']
|
3707
|
+
}
|
3708
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3709
|
+
|
3710
|
+
token_set = fetch_valid_token_set(user) # example
|
3711
|
+
|
3712
|
+
xero_client.refresh_token_set(token_set)
|
3713
|
+
|
3714
|
+
# You need to namespace your api method call to one of the following api sets
|
3715
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3716
|
+
|
3717
|
+
api_instance = xero_client.<api_set>
|
3718
|
+
|
3719
|
+
|
3720
|
+
|
3721
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3722
|
+
reimbursement_id = 'reimbursement_id_example' # String | Identifier for the reimbursement
|
3723
|
+
begin
|
3724
|
+
#retrieve a single reimbursement by id
|
3725
|
+
result = api_instance.get_reimbursement(xero_tenant_id, reimbursement_id)
|
3726
|
+
p result
|
3727
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3728
|
+
puts "Exception when calling PayrollUkApi->get_reimbursement: #{e}"
|
3729
|
+
end
|
3730
|
+
```
|
3731
|
+
|
3732
|
+
### Parameters
|
3733
|
+
|
3734
|
+
|
3735
|
+
Name | Type | Description | Notes
|
3736
|
+
------------- | ------------- | ------------- | -------------
|
3737
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3738
|
+
**reimbursement_id** | [**String**](.md)| Identifier for the reimbursement |
|
3739
|
+
|
3740
|
+
### Return type
|
3741
|
+
|
3742
|
+
[**ReimbursementObject**](ReimbursementObject.md)
|
3743
|
+
|
3744
|
+
### Authorization
|
3745
|
+
|
3746
|
+
[OAuth2](../README.md#OAuth2)
|
3747
|
+
|
3748
|
+
### HTTP request headers
|
3749
|
+
|
3750
|
+
- **Content-Type**: Not defined
|
3751
|
+
- **Accept**: application/json
|
3752
|
+
|
3753
|
+
|
3754
|
+
## get_reimbursements
|
3755
|
+
|
3756
|
+
> Reimbursements get_reimbursements(xero_tenant_id, opts)
|
3757
|
+
|
3758
|
+
searches reimbursements
|
3759
|
+
|
3760
|
+
### Example
|
3761
|
+
|
3762
|
+
```ruby
|
3763
|
+
# load the gem
|
3764
|
+
require 'xero-ruby'
|
3765
|
+
|
3766
|
+
creds = {
|
3767
|
+
client_id: ENV['CLIENT_ID'],
|
3768
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3769
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3770
|
+
scopes: ENV['SCOPES']
|
3771
|
+
}
|
3772
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3773
|
+
|
3774
|
+
token_set = fetch_valid_token_set(user) # example
|
3775
|
+
|
3776
|
+
xero_client.refresh_token_set(token_set)
|
3777
|
+
|
3778
|
+
# You need to namespace your api method call to one of the following api sets
|
3779
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3780
|
+
|
3781
|
+
api_instance = xero_client.<api_set>
|
3782
|
+
|
3783
|
+
|
3784
|
+
|
3785
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3786
|
+
opts = {
|
3787
|
+
page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
3788
|
+
}
|
3789
|
+
|
3790
|
+
begin
|
3791
|
+
#searches reimbursements
|
3792
|
+
result = api_instance.get_reimbursements(xero_tenant_id, opts)
|
3793
|
+
p result
|
3794
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3795
|
+
puts "Exception when calling PayrollUkApi->get_reimbursements: #{e}"
|
3796
|
+
end
|
3797
|
+
```
|
3798
|
+
|
3799
|
+
### Parameters
|
3800
|
+
|
3801
|
+
|
3802
|
+
Name | Type | Description | Notes
|
3803
|
+
------------- | ------------- | ------------- | -------------
|
3804
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3805
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
3806
|
+
|
3807
|
+
### Return type
|
3808
|
+
|
3809
|
+
[**Reimbursements**](Reimbursements.md)
|
3810
|
+
|
3811
|
+
### Authorization
|
3812
|
+
|
3813
|
+
[OAuth2](../README.md#OAuth2)
|
3814
|
+
|
3815
|
+
### HTTP request headers
|
3816
|
+
|
3817
|
+
- **Content-Type**: Not defined
|
3818
|
+
- **Accept**: application/json
|
3819
|
+
|
3820
|
+
|
3821
|
+
## get_settings
|
3822
|
+
|
3823
|
+
> Settings get_settings(xero_tenant_id)
|
3824
|
+
|
3825
|
+
searches settings
|
3826
|
+
|
3827
|
+
### Example
|
3828
|
+
|
3829
|
+
```ruby
|
3830
|
+
# load the gem
|
3831
|
+
require 'xero-ruby'
|
3832
|
+
|
3833
|
+
creds = {
|
3834
|
+
client_id: ENV['CLIENT_ID'],
|
3835
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3836
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3837
|
+
scopes: ENV['SCOPES']
|
3838
|
+
}
|
3839
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3840
|
+
|
3841
|
+
token_set = fetch_valid_token_set(user) # example
|
3842
|
+
|
3843
|
+
xero_client.refresh_token_set(token_set)
|
3844
|
+
|
3845
|
+
# You need to namespace your api method call to one of the following api sets
|
3846
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3847
|
+
|
3848
|
+
api_instance = xero_client.<api_set>
|
3849
|
+
|
3850
|
+
|
3851
|
+
|
3852
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3853
|
+
begin
|
3854
|
+
#searches settings
|
3855
|
+
result = api_instance.get_settings(xero_tenant_id)
|
3856
|
+
p result
|
3857
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3858
|
+
puts "Exception when calling PayrollUkApi->get_settings: #{e}"
|
3859
|
+
end
|
3860
|
+
```
|
3861
|
+
|
3862
|
+
### Parameters
|
3863
|
+
|
3864
|
+
|
3865
|
+
Name | Type | Description | Notes
|
3866
|
+
------------- | ------------- | ------------- | -------------
|
3867
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3868
|
+
|
3869
|
+
### Return type
|
3870
|
+
|
3871
|
+
[**Settings**](Settings.md)
|
3872
|
+
|
3873
|
+
### Authorization
|
3874
|
+
|
3875
|
+
[OAuth2](../README.md#OAuth2)
|
3876
|
+
|
3877
|
+
### HTTP request headers
|
3878
|
+
|
3879
|
+
- **Content-Type**: Not defined
|
3880
|
+
- **Accept**: application/json
|
3881
|
+
|
3882
|
+
|
3883
|
+
## get_statutory_leave_summary
|
3884
|
+
|
3885
|
+
> EmployeeStatutoryLeavesSummaries get_statutory_leave_summary(xero_tenant_id, employee_id, opts)
|
3886
|
+
|
3887
|
+
retrieve a summary of statutory leaves for an employee
|
3888
|
+
|
3889
|
+
### Example
|
3890
|
+
|
3891
|
+
```ruby
|
3892
|
+
# load the gem
|
3893
|
+
require 'xero-ruby'
|
3894
|
+
|
3895
|
+
creds = {
|
3896
|
+
client_id: ENV['CLIENT_ID'],
|
3897
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3898
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3899
|
+
scopes: ENV['SCOPES']
|
3900
|
+
}
|
3901
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3902
|
+
|
3903
|
+
token_set = fetch_valid_token_set(user) # example
|
3904
|
+
|
3905
|
+
xero_client.refresh_token_set(token_set)
|
3906
|
+
|
3907
|
+
# You need to namespace your api method call to one of the following api sets
|
3908
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3909
|
+
|
3910
|
+
api_instance = xero_client.<api_set>
|
3911
|
+
|
3912
|
+
|
3913
|
+
|
3914
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3915
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
3916
|
+
opts = {
|
3917
|
+
active_only: true # Boolean | Filter response with leaves that are currently active or yet to be taken. If not specified, all leaves (past, current, and future scheduled) are returned
|
3918
|
+
}
|
3919
|
+
|
3920
|
+
begin
|
3921
|
+
#retrieve a summary of statutory leaves for an employee
|
3922
|
+
result = api_instance.get_statutory_leave_summary(xero_tenant_id, employee_id, opts)
|
3923
|
+
p result
|
3924
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3925
|
+
puts "Exception when calling PayrollUkApi->get_statutory_leave_summary: #{e}"
|
3926
|
+
end
|
3927
|
+
```
|
3928
|
+
|
3929
|
+
### Parameters
|
3930
|
+
|
3931
|
+
|
3932
|
+
Name | Type | Description | Notes
|
3933
|
+
------------- | ------------- | ------------- | -------------
|
3934
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
3935
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
3936
|
+
**active_only** | **Boolean**| Filter response with leaves that are currently active or yet to be taken. If not specified, all leaves (past, current, and future scheduled) are returned | [optional]
|
3937
|
+
|
3938
|
+
### Return type
|
3939
|
+
|
3940
|
+
[**EmployeeStatutoryLeavesSummaries**](EmployeeStatutoryLeavesSummaries.md)
|
3941
|
+
|
3942
|
+
### Authorization
|
3943
|
+
|
3944
|
+
[OAuth2](../README.md#OAuth2)
|
3945
|
+
|
3946
|
+
### HTTP request headers
|
3947
|
+
|
3948
|
+
- **Content-Type**: Not defined
|
3949
|
+
- **Accept**: application/json
|
3950
|
+
|
3951
|
+
|
3952
|
+
## get_timesheet
|
3953
|
+
|
3954
|
+
> TimesheetObject get_timesheet(xero_tenant_id, timesheet_id)
|
3955
|
+
|
3956
|
+
retrieve a single timesheet by id
|
3957
|
+
|
3958
|
+
### Example
|
3959
|
+
|
3960
|
+
```ruby
|
3961
|
+
# load the gem
|
3962
|
+
require 'xero-ruby'
|
3963
|
+
|
3964
|
+
creds = {
|
3965
|
+
client_id: ENV['CLIENT_ID'],
|
3966
|
+
client_secret: ENV['CLIENT_SECRET'],
|
3967
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
3968
|
+
scopes: ENV['SCOPES']
|
3969
|
+
}
|
3970
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
3971
|
+
|
3972
|
+
token_set = fetch_valid_token_set(user) # example
|
3973
|
+
|
3974
|
+
xero_client.refresh_token_set(token_set)
|
3975
|
+
|
3976
|
+
# You need to namespace your api method call to one of the following api sets
|
3977
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
3978
|
+
|
3979
|
+
api_instance = xero_client.<api_set>
|
3980
|
+
|
3981
|
+
|
3982
|
+
|
3983
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
3984
|
+
timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
|
3985
|
+
begin
|
3986
|
+
#retrieve a single timesheet by id
|
3987
|
+
result = api_instance.get_timesheet(xero_tenant_id, timesheet_id)
|
3988
|
+
p result
|
3989
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
3990
|
+
puts "Exception when calling PayrollUkApi->get_timesheet: #{e}"
|
3991
|
+
end
|
3992
|
+
```
|
3993
|
+
|
3994
|
+
### Parameters
|
3995
|
+
|
3996
|
+
|
3997
|
+
Name | Type | Description | Notes
|
3998
|
+
------------- | ------------- | ------------- | -------------
|
3999
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4000
|
+
**timesheet_id** | [**String**](.md)| Identifier for the timesheet |
|
4001
|
+
|
4002
|
+
### Return type
|
4003
|
+
|
4004
|
+
[**TimesheetObject**](TimesheetObject.md)
|
4005
|
+
|
4006
|
+
### Authorization
|
4007
|
+
|
4008
|
+
[OAuth2](../README.md#OAuth2)
|
4009
|
+
|
4010
|
+
### HTTP request headers
|
4011
|
+
|
4012
|
+
- **Content-Type**: Not defined
|
4013
|
+
- **Accept**: application/json
|
4014
|
+
|
4015
|
+
|
4016
|
+
## get_timesheets
|
4017
|
+
|
4018
|
+
> Timesheets get_timesheets(xero_tenant_id, opts)
|
4019
|
+
|
4020
|
+
searches timesheets
|
4021
|
+
|
4022
|
+
### Example
|
4023
|
+
|
4024
|
+
```ruby
|
4025
|
+
# load the gem
|
4026
|
+
require 'xero-ruby'
|
4027
|
+
|
4028
|
+
creds = {
|
4029
|
+
client_id: ENV['CLIENT_ID'],
|
4030
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4031
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4032
|
+
scopes: ENV['SCOPES']
|
4033
|
+
}
|
4034
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4035
|
+
|
4036
|
+
token_set = fetch_valid_token_set(user) # example
|
4037
|
+
|
4038
|
+
xero_client.refresh_token_set(token_set)
|
4039
|
+
|
4040
|
+
# You need to namespace your api method call to one of the following api sets
|
4041
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4042
|
+
|
4043
|
+
api_instance = xero_client.<api_set>
|
4044
|
+
|
4045
|
+
|
4046
|
+
|
4047
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4048
|
+
opts = {
|
4049
|
+
page: 56, # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
4050
|
+
|
4051
|
+
employee_id: 'employee_id_example', # String | By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter=employeeId=={EmployeeId} to get only the timesheets of a particular employee.
|
4052
|
+
|
4053
|
+
payroll_calendar_id: 'payroll_calendar_id_example' # String | By default get Timesheets will return all the timesheets for an organization. You can add GET https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter the timesheets by payroll calendar id
|
4054
|
+
}
|
4055
|
+
|
4056
|
+
begin
|
4057
|
+
#searches timesheets
|
4058
|
+
result = api_instance.get_timesheets(xero_tenant_id, opts)
|
4059
|
+
p result
|
4060
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4061
|
+
puts "Exception when calling PayrollUkApi->get_timesheets: #{e}"
|
4062
|
+
end
|
4063
|
+
```
|
4064
|
+
|
4065
|
+
### Parameters
|
4066
|
+
|
4067
|
+
|
4068
|
+
Name | Type | Description | Notes
|
4069
|
+
------------- | ------------- | ------------- | -------------
|
4070
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4071
|
+
**page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
|
4072
|
+
**employee_id** | [**String**](.md)| By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter=employeeId=={EmployeeId} to get only the timesheets of a particular employee. | [optional]
|
4073
|
+
**payroll_calendar_id** | [**String**](.md)| By default get Timesheets will return all the timesheets for an organization. You can add GET https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter the timesheets by payroll calendar id | [optional]
|
4074
|
+
|
4075
|
+
### Return type
|
4076
|
+
|
4077
|
+
[**Timesheets**](Timesheets.md)
|
4078
|
+
|
4079
|
+
### Authorization
|
4080
|
+
|
4081
|
+
[OAuth2](../README.md#OAuth2)
|
4082
|
+
|
4083
|
+
### HTTP request headers
|
4084
|
+
|
4085
|
+
- **Content-Type**: Not defined
|
4086
|
+
- **Accept**: application/json
|
4087
|
+
|
4088
|
+
|
4089
|
+
## get_tracking_categories
|
4090
|
+
|
4091
|
+
> TrackingCategories get_tracking_categories(xero_tenant_id)
|
4092
|
+
|
4093
|
+
searches tracking categories
|
4094
|
+
|
4095
|
+
### Example
|
4096
|
+
|
4097
|
+
```ruby
|
4098
|
+
# load the gem
|
4099
|
+
require 'xero-ruby'
|
4100
|
+
|
4101
|
+
creds = {
|
4102
|
+
client_id: ENV['CLIENT_ID'],
|
4103
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4104
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4105
|
+
scopes: ENV['SCOPES']
|
4106
|
+
}
|
4107
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4108
|
+
|
4109
|
+
token_set = fetch_valid_token_set(user) # example
|
4110
|
+
|
4111
|
+
xero_client.refresh_token_set(token_set)
|
4112
|
+
|
4113
|
+
# You need to namespace your api method call to one of the following api sets
|
4114
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4115
|
+
|
4116
|
+
api_instance = xero_client.<api_set>
|
4117
|
+
|
4118
|
+
|
4119
|
+
|
4120
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4121
|
+
begin
|
4122
|
+
#searches tracking categories
|
4123
|
+
result = api_instance.get_tracking_categories(xero_tenant_id)
|
4124
|
+
p result
|
4125
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4126
|
+
puts "Exception when calling PayrollUkApi->get_tracking_categories: #{e}"
|
4127
|
+
end
|
4128
|
+
```
|
4129
|
+
|
4130
|
+
### Parameters
|
4131
|
+
|
4132
|
+
|
4133
|
+
Name | Type | Description | Notes
|
4134
|
+
------------- | ------------- | ------------- | -------------
|
4135
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4136
|
+
|
4137
|
+
### Return type
|
4138
|
+
|
4139
|
+
[**TrackingCategories**](TrackingCategories.md)
|
4140
|
+
|
4141
|
+
### Authorization
|
4142
|
+
|
4143
|
+
[OAuth2](../README.md#OAuth2)
|
4144
|
+
|
4145
|
+
### HTTP request headers
|
4146
|
+
|
4147
|
+
- **Content-Type**: Not defined
|
4148
|
+
- **Accept**: application/json
|
4149
|
+
|
4150
|
+
|
4151
|
+
## revert_timesheet
|
4152
|
+
|
4153
|
+
> TimesheetObject revert_timesheet(xero_tenant_id, timesheet_id)
|
4154
|
+
|
4155
|
+
revert a timesheet to draft
|
4156
|
+
|
4157
|
+
### Example
|
4158
|
+
|
4159
|
+
```ruby
|
4160
|
+
# load the gem
|
4161
|
+
require 'xero-ruby'
|
4162
|
+
|
4163
|
+
creds = {
|
4164
|
+
client_id: ENV['CLIENT_ID'],
|
4165
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4166
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4167
|
+
scopes: ENV['SCOPES']
|
4168
|
+
}
|
4169
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4170
|
+
|
4171
|
+
token_set = fetch_valid_token_set(user) # example
|
4172
|
+
|
4173
|
+
xero_client.refresh_token_set(token_set)
|
4174
|
+
|
4175
|
+
# You need to namespace your api method call to one of the following api sets
|
4176
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4177
|
+
|
4178
|
+
api_instance = xero_client.<api_set>
|
4179
|
+
|
4180
|
+
|
4181
|
+
|
4182
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4183
|
+
timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
|
4184
|
+
begin
|
4185
|
+
#revert a timesheet to draft
|
4186
|
+
result = api_instance.revert_timesheet(xero_tenant_id, timesheet_id)
|
4187
|
+
p result
|
4188
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4189
|
+
puts "Exception when calling PayrollUkApi->revert_timesheet: #{e}"
|
4190
|
+
end
|
4191
|
+
```
|
4192
|
+
|
4193
|
+
### Parameters
|
4194
|
+
|
4195
|
+
|
4196
|
+
Name | Type | Description | Notes
|
4197
|
+
------------- | ------------- | ------------- | -------------
|
4198
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4199
|
+
**timesheet_id** | [**String**](.md)| Identifier for the timesheet |
|
4200
|
+
|
4201
|
+
### Return type
|
4202
|
+
|
4203
|
+
[**TimesheetObject**](TimesheetObject.md)
|
4204
|
+
|
4205
|
+
### Authorization
|
4206
|
+
|
4207
|
+
[OAuth2](../README.md#OAuth2)
|
4208
|
+
|
4209
|
+
### HTTP request headers
|
4210
|
+
|
4211
|
+
- **Content-Type**: Not defined
|
4212
|
+
- **Accept**: application/json
|
4213
|
+
|
4214
|
+
|
4215
|
+
## update_employee
|
4216
|
+
|
4217
|
+
> EmployeeObject update_employee(xero_tenant_id, employee_id, employee)
|
4218
|
+
|
4219
|
+
updates employee
|
4220
|
+
|
4221
|
+
### Example
|
4222
|
+
|
4223
|
+
```ruby
|
4224
|
+
# load the gem
|
4225
|
+
require 'xero-ruby'
|
4226
|
+
|
4227
|
+
creds = {
|
4228
|
+
client_id: ENV['CLIENT_ID'],
|
4229
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4230
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4231
|
+
scopes: ENV['SCOPES']
|
4232
|
+
}
|
4233
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4234
|
+
|
4235
|
+
token_set = fetch_valid_token_set(user) # example
|
4236
|
+
|
4237
|
+
xero_client.refresh_token_set(token_set)
|
4238
|
+
|
4239
|
+
# You need to namespace your api method call to one of the following api sets
|
4240
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4241
|
+
|
4242
|
+
api_instance = xero_client.<api_set>
|
4243
|
+
|
4244
|
+
|
4245
|
+
|
4246
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4247
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
4248
|
+
employee = { "title":"Mr", "firstName":"Mike", "lastName":"Johnllsbkrhwopson", "dateOfBirth":"1999-01-01", "address":{ "addressLine1":"101 Green St", "city":"San Francisco", "postCode":"6TGR4F", "country":"UK" }, "email":"84044@starkindustries.com", "gender":"M" } # Employee |
|
4249
|
+
begin
|
4250
|
+
#updates employee
|
4251
|
+
result = api_instance.update_employee(xero_tenant_id, employee_id, employee)
|
4252
|
+
p result
|
4253
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4254
|
+
puts "Exception when calling PayrollUkApi->update_employee: #{e}"
|
4255
|
+
end
|
4256
|
+
```
|
4257
|
+
|
4258
|
+
### Parameters
|
4259
|
+
|
4260
|
+
|
4261
|
+
Name | Type | Description | Notes
|
4262
|
+
------------- | ------------- | ------------- | -------------
|
4263
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4264
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
4265
|
+
**employee** | [**Employee**](Employee.md)| |
|
4266
|
+
|
4267
|
+
### Return type
|
4268
|
+
|
4269
|
+
[**EmployeeObject**](EmployeeObject.md)
|
4270
|
+
|
4271
|
+
### Authorization
|
4272
|
+
|
4273
|
+
[OAuth2](../README.md#OAuth2)
|
4274
|
+
|
4275
|
+
### HTTP request headers
|
4276
|
+
|
4277
|
+
- **Content-Type**: application/json
|
4278
|
+
- **Accept**: application/json
|
4279
|
+
|
4280
|
+
|
4281
|
+
## update_employee_earnings_template
|
4282
|
+
|
4283
|
+
> EarningsTemplateObject update_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id, earnings_template)
|
4284
|
+
|
4285
|
+
updates employee earnings template records
|
4286
|
+
|
4287
|
+
### Example
|
4288
|
+
|
4289
|
+
```ruby
|
4290
|
+
# load the gem
|
4291
|
+
require 'xero-ruby'
|
4292
|
+
|
4293
|
+
creds = {
|
4294
|
+
client_id: ENV['CLIENT_ID'],
|
4295
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4296
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4297
|
+
scopes: ENV['SCOPES']
|
4298
|
+
}
|
4299
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4300
|
+
|
4301
|
+
token_set = fetch_valid_token_set(user) # example
|
4302
|
+
|
4303
|
+
xero_client.refresh_token_set(token_set)
|
4304
|
+
|
4305
|
+
# You need to namespace your api method call to one of the following api sets
|
4306
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4307
|
+
|
4308
|
+
api_instance = xero_client.<api_set>
|
4309
|
+
|
4310
|
+
|
4311
|
+
|
4312
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4313
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
4314
|
+
pay_template_earning_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single pay template earnings object
|
4315
|
+
earnings_template = { "ratePerUnit": 30, "numberOfUnits": 4, "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27" } # EarningsTemplate |
|
4316
|
+
begin
|
4317
|
+
#updates employee earnings template records
|
4318
|
+
result = api_instance.update_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id, earnings_template)
|
4319
|
+
p result
|
4320
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4321
|
+
puts "Exception when calling PayrollUkApi->update_employee_earnings_template: #{e}"
|
4322
|
+
end
|
4323
|
+
```
|
4324
|
+
|
4325
|
+
### Parameters
|
4326
|
+
|
4327
|
+
|
4328
|
+
Name | Type | Description | Notes
|
4329
|
+
------------- | ------------- | ------------- | -------------
|
4330
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4331
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
4332
|
+
**pay_template_earning_id** | [**String**](.md)| Id for single pay template earnings object |
|
4333
|
+
**earnings_template** | [**EarningsTemplate**](EarningsTemplate.md)| |
|
4334
|
+
|
4335
|
+
### Return type
|
4336
|
+
|
4337
|
+
[**EarningsTemplateObject**](EarningsTemplateObject.md)
|
4338
|
+
|
4339
|
+
### Authorization
|
4340
|
+
|
4341
|
+
[OAuth2](../README.md#OAuth2)
|
4342
|
+
|
4343
|
+
### HTTP request headers
|
4344
|
+
|
4345
|
+
- **Content-Type**: application/json
|
4346
|
+
- **Accept**: application/json
|
4347
|
+
|
4348
|
+
|
4349
|
+
## update_employee_leave
|
4350
|
+
|
4351
|
+
> EmployeeLeaveObject update_employee_leave(xero_tenant_id, employee_id, leave_id, employee_leave)
|
4352
|
+
|
4353
|
+
updates employee leave records
|
4354
|
+
|
4355
|
+
### Example
|
4356
|
+
|
4357
|
+
```ruby
|
4358
|
+
# load the gem
|
4359
|
+
require 'xero-ruby'
|
4360
|
+
|
4361
|
+
creds = {
|
4362
|
+
client_id: ENV['CLIENT_ID'],
|
4363
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4364
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4365
|
+
scopes: ENV['SCOPES']
|
4366
|
+
}
|
4367
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4368
|
+
|
4369
|
+
token_set = fetch_valid_token_set(user) # example
|
4370
|
+
|
4371
|
+
xero_client.refresh_token_set(token_set)
|
4372
|
+
|
4373
|
+
# You need to namespace your api method call to one of the following api sets
|
4374
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4375
|
+
|
4376
|
+
api_instance = xero_client.<api_set>
|
4377
|
+
|
4378
|
+
|
4379
|
+
|
4380
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4381
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
4382
|
+
leave_id = 'c4be24e5-e840-4c92-9eaa-2d86cd596314' # String | Leave id for single object
|
4383
|
+
employee_leave = { "leaveTypeID": "ed08dffe-788e-4b24-9630-f0fa2f4d164c", "description": "Creating a Description", "startDate": "2020-04-24", "endDate": "2020-04-26", "periods": [ { "periodStartDate": "2020-04-20", "periodEndDate": "2020-04-26", "numberOfUnits": 1, "periodStatus": "Approved" } ] } # EmployeeLeave |
|
4384
|
+
begin
|
4385
|
+
#updates employee leave records
|
4386
|
+
result = api_instance.update_employee_leave(xero_tenant_id, employee_id, leave_id, employee_leave)
|
4387
|
+
p result
|
4388
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4389
|
+
puts "Exception when calling PayrollUkApi->update_employee_leave: #{e}"
|
4390
|
+
end
|
4391
|
+
```
|
4392
|
+
|
4393
|
+
### Parameters
|
4394
|
+
|
4395
|
+
|
4396
|
+
Name | Type | Description | Notes
|
4397
|
+
------------- | ------------- | ------------- | -------------
|
4398
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4399
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
4400
|
+
**leave_id** | [**String**](.md)| Leave id for single object |
|
4401
|
+
**employee_leave** | [**EmployeeLeave**](EmployeeLeave.md)| |
|
4402
|
+
|
4403
|
+
### Return type
|
4404
|
+
|
4405
|
+
[**EmployeeLeaveObject**](EmployeeLeaveObject.md)
|
4406
|
+
|
4407
|
+
### Authorization
|
4408
|
+
|
4409
|
+
[OAuth2](../README.md#OAuth2)
|
4410
|
+
|
4411
|
+
### HTTP request headers
|
4412
|
+
|
4413
|
+
- **Content-Type**: application/json
|
4414
|
+
- **Accept**: application/json
|
4415
|
+
|
4416
|
+
|
4417
|
+
## update_employee_opening_balances
|
4418
|
+
|
4419
|
+
> EmployeeOpeningBalancesObject update_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balances)
|
4420
|
+
|
4421
|
+
updates employee opening balances
|
4422
|
+
|
4423
|
+
### Example
|
4424
|
+
|
4425
|
+
```ruby
|
4426
|
+
# load the gem
|
4427
|
+
require 'xero-ruby'
|
4428
|
+
|
4429
|
+
creds = {
|
4430
|
+
client_id: ENV['CLIENT_ID'],
|
4431
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4432
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4433
|
+
scopes: ENV['SCOPES']
|
4434
|
+
}
|
4435
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4436
|
+
|
4437
|
+
token_set = fetch_valid_token_set(user) # example
|
4438
|
+
|
4439
|
+
xero_client.refresh_token_set(token_set)
|
4440
|
+
|
4441
|
+
# You need to namespace your api method call to one of the following api sets
|
4442
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4443
|
+
|
4444
|
+
api_instance = xero_client.<api_set>
|
4445
|
+
|
4446
|
+
|
4447
|
+
|
4448
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4449
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
4450
|
+
employee_opening_balances = { "statutoryAdoptionPay": 20, "statutoryMaternityPay": 20, "statutoryPaternityPay": 20, "statutorySharedParentalPay": 20, "statutorySickPay": 20, "priorEmployeeNumber": 20 } # EmployeeOpeningBalances |
|
4451
|
+
begin
|
4452
|
+
#updates employee opening balances
|
4453
|
+
result = api_instance.update_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balances)
|
4454
|
+
p result
|
4455
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4456
|
+
puts "Exception when calling PayrollUkApi->update_employee_opening_balances: #{e}"
|
4457
|
+
end
|
4458
|
+
```
|
4459
|
+
|
4460
|
+
### Parameters
|
4461
|
+
|
4462
|
+
|
4463
|
+
Name | Type | Description | Notes
|
4464
|
+
------------- | ------------- | ------------- | -------------
|
4465
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4466
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
4467
|
+
**employee_opening_balances** | [**EmployeeOpeningBalances**](EmployeeOpeningBalances.md)| |
|
4468
|
+
|
4469
|
+
### Return type
|
4470
|
+
|
4471
|
+
[**EmployeeOpeningBalancesObject**](EmployeeOpeningBalancesObject.md)
|
4472
|
+
|
4473
|
+
### Authorization
|
4474
|
+
|
4475
|
+
[OAuth2](../README.md#OAuth2)
|
4476
|
+
|
4477
|
+
### HTTP request headers
|
4478
|
+
|
4479
|
+
- **Content-Type**: application/json
|
4480
|
+
- **Accept**: application/json
|
4481
|
+
|
4482
|
+
|
4483
|
+
## update_employee_salary_and_wage
|
4484
|
+
|
4485
|
+
> SalaryAndWageObject update_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id, salary_and_wage)
|
4486
|
+
|
4487
|
+
updates employee salary and wages record
|
4488
|
+
|
4489
|
+
### Example
|
4490
|
+
|
4491
|
+
```ruby
|
4492
|
+
# load the gem
|
4493
|
+
require 'xero-ruby'
|
4494
|
+
|
4495
|
+
creds = {
|
4496
|
+
client_id: ENV['CLIENT_ID'],
|
4497
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4498
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4499
|
+
scopes: ENV['SCOPES']
|
4500
|
+
}
|
4501
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4502
|
+
|
4503
|
+
token_set = fetch_valid_token_set(user) # example
|
4504
|
+
|
4505
|
+
xero_client.refresh_token_set(token_set)
|
4506
|
+
|
4507
|
+
# You need to namespace your api method call to one of the following api sets
|
4508
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4509
|
+
|
4510
|
+
api_instance = xero_client.<api_set>
|
4511
|
+
|
4512
|
+
|
4513
|
+
|
4514
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4515
|
+
employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
|
4516
|
+
salary_and_wages_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single pay template earnings object
|
4517
|
+
salary_and_wage = { "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnitsPerWeek": 3, "ratePerUnit": 11, "effectiveFrom": "2020-05-15", "annualSalary": 101, "status": "ACTIVE", "paymentType": "Salary" } # SalaryAndWage |
|
4518
|
+
begin
|
4519
|
+
#updates employee salary and wages record
|
4520
|
+
result = api_instance.update_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id, salary_and_wage)
|
4521
|
+
p result
|
4522
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4523
|
+
puts "Exception when calling PayrollUkApi->update_employee_salary_and_wage: #{e}"
|
4524
|
+
end
|
4525
|
+
```
|
4526
|
+
|
4527
|
+
### Parameters
|
4528
|
+
|
4529
|
+
|
4530
|
+
Name | Type | Description | Notes
|
4531
|
+
------------- | ------------- | ------------- | -------------
|
4532
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4533
|
+
**employee_id** | [**String**](.md)| Employee id for single object |
|
4534
|
+
**salary_and_wages_id** | [**String**](.md)| Id for single pay template earnings object |
|
4535
|
+
**salary_and_wage** | [**SalaryAndWage**](SalaryAndWage.md)| |
|
4536
|
+
|
4537
|
+
### Return type
|
4538
|
+
|
4539
|
+
[**SalaryAndWageObject**](SalaryAndWageObject.md)
|
4540
|
+
|
4541
|
+
### Authorization
|
4542
|
+
|
4543
|
+
[OAuth2](../README.md#OAuth2)
|
4544
|
+
|
4545
|
+
### HTTP request headers
|
4546
|
+
|
4547
|
+
- **Content-Type**: application/json
|
4548
|
+
- **Accept**: application/json
|
4549
|
+
|
4550
|
+
|
4551
|
+
## update_pay_run
|
4552
|
+
|
4553
|
+
> PayRunObject update_pay_run(xero_tenant_id, pay_run_id, pay_run)
|
4554
|
+
|
4555
|
+
update a pay run
|
4556
|
+
|
4557
|
+
### Example
|
4558
|
+
|
4559
|
+
```ruby
|
4560
|
+
# load the gem
|
4561
|
+
require 'xero-ruby'
|
4562
|
+
|
4563
|
+
creds = {
|
4564
|
+
client_id: ENV['CLIENT_ID'],
|
4565
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4566
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4567
|
+
scopes: ENV['SCOPES']
|
4568
|
+
}
|
4569
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4570
|
+
|
4571
|
+
token_set = fetch_valid_token_set(user) # example
|
4572
|
+
|
4573
|
+
xero_client.refresh_token_set(token_set)
|
4574
|
+
|
4575
|
+
# You need to namespace your api method call to one of the following api sets
|
4576
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4577
|
+
|
4578
|
+
api_instance = xero_client.<api_set>
|
4579
|
+
|
4580
|
+
|
4581
|
+
|
4582
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4583
|
+
pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run
|
4584
|
+
pay_run = { "paymentDate": "2020-05-01" } # PayRun |
|
4585
|
+
begin
|
4586
|
+
#update a pay run
|
4587
|
+
result = api_instance.update_pay_run(xero_tenant_id, pay_run_id, pay_run)
|
4588
|
+
p result
|
4589
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4590
|
+
puts "Exception when calling PayrollUkApi->update_pay_run: #{e}"
|
4591
|
+
end
|
4592
|
+
```
|
4593
|
+
|
4594
|
+
### Parameters
|
4595
|
+
|
4596
|
+
|
4597
|
+
Name | Type | Description | Notes
|
4598
|
+
------------- | ------------- | ------------- | -------------
|
4599
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4600
|
+
**pay_run_id** | [**String**](.md)| Identifier for the pay run |
|
4601
|
+
**pay_run** | [**PayRun**](PayRun.md)| |
|
4602
|
+
|
4603
|
+
### Return type
|
4604
|
+
|
4605
|
+
[**PayRunObject**](PayRunObject.md)
|
4606
|
+
|
4607
|
+
### Authorization
|
4608
|
+
|
4609
|
+
[OAuth2](../README.md#OAuth2)
|
4610
|
+
|
4611
|
+
### HTTP request headers
|
4612
|
+
|
4613
|
+
- **Content-Type**: application/json
|
4614
|
+
- **Accept**: application/json
|
4615
|
+
|
4616
|
+
|
4617
|
+
## update_timesheet_line
|
4618
|
+
|
4619
|
+
> TimesheetLineObject update_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id, timesheet_line)
|
4620
|
+
|
4621
|
+
update a timesheet line
|
4622
|
+
|
4623
|
+
### Example
|
4624
|
+
|
4625
|
+
```ruby
|
4626
|
+
# load the gem
|
4627
|
+
require 'xero-ruby'
|
4628
|
+
|
4629
|
+
creds = {
|
4630
|
+
client_id: ENV['CLIENT_ID'],
|
4631
|
+
client_secret: ENV['CLIENT_SECRET'],
|
4632
|
+
redirect_uri: ENV['REDIRECT_URI'],
|
4633
|
+
scopes: ENV['SCOPES']
|
4634
|
+
}
|
4635
|
+
xero_client = XeroRuby::ApiClient.new(credentials: creds)
|
4636
|
+
|
4637
|
+
token_set = fetch_valid_token_set(user) # example
|
4638
|
+
|
4639
|
+
xero_client.refresh_token_set(token_set)
|
4640
|
+
|
4641
|
+
# You need to namespace your api method call to one of the following api sets
|
4642
|
+
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
|
4643
|
+
|
4644
|
+
api_instance = xero_client.<api_set>
|
4645
|
+
|
4646
|
+
|
4647
|
+
|
4648
|
+
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
|
4649
|
+
timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
|
4650
|
+
timesheet_line_id = 'timesheet_line_id_example' # String | Identifier for the timesheet line
|
4651
|
+
timesheet_line = { "date": "2020-04-14", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 2 } # TimesheetLine |
|
4652
|
+
begin
|
4653
|
+
#update a timesheet line
|
4654
|
+
result = api_instance.update_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id, timesheet_line)
|
4655
|
+
p result
|
4656
|
+
rescue XeroRuby::PayrollUk::ApiError => e
|
4657
|
+
puts "Exception when calling PayrollUkApi->update_timesheet_line: #{e}"
|
4658
|
+
end
|
4659
|
+
```
|
4660
|
+
|
4661
|
+
### Parameters
|
4662
|
+
|
4663
|
+
|
4664
|
+
Name | Type | Description | Notes
|
4665
|
+
------------- | ------------- | ------------- | -------------
|
4666
|
+
**xero_tenant_id** | **String**| Xero identifier for Tenant |
|
4667
|
+
**timesheet_id** | [**String**](.md)| Identifier for the timesheet |
|
4668
|
+
**timesheet_line_id** | [**String**](.md)| Identifier for the timesheet line |
|
4669
|
+
**timesheet_line** | [**TimesheetLine**](TimesheetLine.md)| |
|
4670
|
+
|
4671
|
+
### Return type
|
4672
|
+
|
4673
|
+
[**TimesheetLineObject**](TimesheetLineObject.md)
|
4674
|
+
|
4675
|
+
### Authorization
|
4676
|
+
|
4677
|
+
[OAuth2](../README.md#OAuth2)
|
4678
|
+
|
4679
|
+
### HTTP request headers
|
4680
|
+
|
4681
|
+
- **Content-Type**: application/json
|
4682
|
+
- **Accept**: application/json
|
4683
|
+
|