xero-ruby 2.2.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +93 -49
- data/docs/accounting/AccountingApi.md +1752 -1590
- data/docs/accounting/Action.md +19 -0
- data/docs/accounting/Actions.md +17 -0
- data/docs/accounting/BalanceDetails.md +21 -0
- data/docs/accounting/ConversionBalances.md +21 -0
- data/docs/accounting/ConversionDate.md +19 -0
- data/docs/accounting/CreditNote.md +2 -0
- data/docs/accounting/ExpenseClaim.md +1 -1
- 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 +2 -0
- data/docs/accounting/Setup.md +21 -0
- data/docs/accounting/TrackingOption.md +3 -3
- data/docs/assets/Asset.md +2 -0
- data/docs/assets/AssetApi.md +30 -42
- 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/ProjectApi.md +69 -92
- data/lib/xero-ruby.rb +292 -1
- data/lib/xero-ruby/api/accounting_api.rb +1061 -336
- data/lib/xero-ruby/api/asset_api.rb +7 -9
- data/lib/xero-ruby/api/files_api.rb +1271 -0
- data/lib/xero-ruby/api/payroll_au_api.rb +2254 -0
- data/lib/xero-ruby/api/payroll_nz_api.rb +5261 -0
- data/lib/xero-ruby/api/payroll_uk_api.rb +5404 -0
- data/lib/xero-ruby/api/project_api.rb +17 -16
- data/lib/xero-ruby/api_client.rb +41 -31
- data/lib/xero-ruby/api_error.rb +1 -1
- data/lib/xero-ruby/configuration.rb +9 -1
- data/lib/xero-ruby/models/accounting/account.rb +3 -2
- data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts.rb +2 -2
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +2 -2
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +2 -2
- data/lib/xero-ruby/models/accounting/action.rb +254 -0
- data/lib/xero-ruby/models/accounting/actions.rb +210 -0
- data/lib/xero-ruby/models/accounting/address.rb +2 -2
- data/lib/xero-ruby/models/accounting/allocation.rb +2 -2
- data/lib/xero-ruby/models/accounting/allocations.rb +2 -2
- data/lib/xero-ruby/models/accounting/attachment.rb +2 -2
- data/lib/xero-ruby/models/accounting/attachments.rb +2 -2
- data/lib/xero-ruby/models/accounting/balance_details.rb +229 -0
- data/lib/xero-ruby/models/accounting/balances.rb +2 -2
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +2 -2
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +2 -2
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +2 -2
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +2 -2
- data/lib/xero-ruby/models/accounting/batch_payment.rb +7 -7
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +2 -17
- data/lib/xero-ruby/models/accounting/batch_payments.rb +2 -2
- data/lib/xero-ruby/models/accounting/bill.rb +2 -2
- data/lib/xero-ruby/models/accounting/branding_theme.rb +2 -2
- data/lib/xero-ruby/models/accounting/branding_themes.rb +2 -2
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +2 -2
- data/lib/xero-ruby/models/accounting/cis_setting.rb +2 -2
- data/lib/xero-ruby/models/accounting/cis_settings.rb +2 -2
- data/lib/xero-ruby/models/accounting/contact.rb +2 -2
- data/lib/xero-ruby/models/accounting/contact_group.rb +2 -2
- data/lib/xero-ruby/models/accounting/contact_groups.rb +2 -2
- data/lib/xero-ruby/models/accounting/contact_person.rb +2 -2
- data/lib/xero-ruby/models/accounting/contacts.rb +2 -2
- 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 +13 -3
- data/lib/xero-ruby/models/accounting/credit_notes.rb +2 -2
- data/lib/xero-ruby/models/accounting/currencies.rb +2 -2
- data/lib/xero-ruby/models/accounting/currency.rb +2 -2
- data/lib/xero-ruby/models/accounting/currency_code.rb +5 -3
- data/lib/xero-ruby/models/accounting/element.rb +2 -2
- data/lib/xero-ruby/models/accounting/employee.rb +2 -2
- data/lib/xero-ruby/models/accounting/employees.rb +2 -2
- data/lib/xero-ruby/models/accounting/error.rb +2 -2
- data/lib/xero-ruby/models/accounting/expense_claim.rb +3 -3
- data/lib/xero-ruby/models/accounting/expense_claims.rb +2 -2
- data/lib/xero-ruby/models/accounting/external_link.rb +2 -2
- data/lib/xero-ruby/models/accounting/history_record.rb +2 -2
- data/lib/xero-ruby/models/accounting/history_records.rb +2 -2
- 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 +13 -3
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +2 -2
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +2 -2
- data/lib/xero-ruby/models/accounting/invoices.rb +2 -2
- data/lib/xero-ruby/models/accounting/item.rb +2 -2
- data/lib/xero-ruby/models/accounting/items.rb +2 -2
- data/lib/xero-ruby/models/accounting/journal.rb +2 -2
- data/lib/xero-ruby/models/accounting/journal_line.rb +2 -2
- data/lib/xero-ruby/models/accounting/journals.rb +2 -2
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_item.rb +2 -2
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +2 -2
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +2 -2
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +2 -2
- data/lib/xero-ruby/models/accounting/manual_journal.rb +2 -2
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +2 -2
- data/lib/xero-ruby/models/accounting/manual_journals.rb +2 -2
- data/lib/xero-ruby/models/accounting/online_invoice.rb +2 -2
- data/lib/xero-ruby/models/accounting/online_invoices.rb +2 -2
- data/lib/xero-ruby/models/accounting/organisation.rb +4 -2
- data/lib/xero-ruby/models/accounting/organisations.rb +2 -2
- data/lib/xero-ruby/models/accounting/overpayment.rb +2 -2
- data/lib/xero-ruby/models/accounting/overpayments.rb +2 -2
- data/lib/xero-ruby/models/accounting/payment.rb +2 -2
- data/lib/xero-ruby/models/accounting/payment_delete.rb +2 -2
- data/lib/xero-ruby/models/accounting/payment_service.rb +2 -2
- data/lib/xero-ruby/models/accounting/payment_services.rb +2 -2
- data/lib/xero-ruby/models/accounting/payment_term.rb +2 -2
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/payments.rb +2 -2
- data/lib/xero-ruby/models/accounting/phone.rb +2 -2
- data/lib/xero-ruby/models/accounting/prepayment.rb +2 -2
- data/lib/xero-ruby/models/accounting/prepayments.rb +2 -2
- data/lib/xero-ruby/models/accounting/purchase.rb +2 -2
- data/lib/xero-ruby/models/accounting/purchase_order.rb +2 -2
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +2 -2
- data/lib/xero-ruby/models/accounting/quote.rb +2 -2
- 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 +2 -2
- data/lib/xero-ruby/models/accounting/receipt.rb +2 -2
- data/lib/xero-ruby/models/accounting/receipts.rb +2 -2
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +2 -2
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +2 -2
- data/lib/xero-ruby/models/accounting/report.rb +2 -2
- data/lib/xero-ruby/models/accounting/report_attribute.rb +2 -2
- data/lib/xero-ruby/models/accounting/report_cell.rb +2 -2
- data/lib/xero-ruby/models/accounting/report_fields.rb +2 -2
- data/lib/xero-ruby/models/accounting/report_row.rb +2 -2
- data/lib/xero-ruby/models/accounting/report_rows.rb +2 -2
- data/lib/xero-ruby/models/accounting/report_with_row.rb +2 -2
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +2 -2
- data/lib/xero-ruby/models/accounting/reports.rb +2 -2
- data/lib/xero-ruby/models/accounting/request_empty.rb +2 -2
- data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +2 -2
- data/lib/xero-ruby/models/accounting/schedule.rb +2 -2
- data/lib/xero-ruby/models/accounting/setup.rb +232 -0
- data/lib/xero-ruby/models/accounting/tax_component.rb +2 -2
- data/lib/xero-ruby/models/accounting/tax_rate.rb +2 -2
- data/lib/xero-ruby/models/accounting/tax_rates.rb +2 -2
- data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +2 -2
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +2 -2
- data/lib/xero-ruby/models/accounting/tracking_category.rb +2 -2
- data/lib/xero-ruby/models/accounting/tracking_option.rb +10 -10
- data/lib/xero-ruby/models/accounting/tracking_options.rb +2 -2
- data/lib/xero-ruby/models/accounting/user.rb +2 -2
- data/lib/xero-ruby/models/accounting/users.rb +2 -2
- data/lib/xero-ruby/models/accounting/validation_error.rb +2 -2
- data/lib/xero-ruby/models/assets/asset.rb +13 -3
- 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 +2 -2
- data/lib/xero-ruby/models/assets/assets.rb +2 -2
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +2 -2
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +2 -2
- data/lib/xero-ruby/models/assets/error.rb +2 -2
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +2 -2
- data/lib/xero-ruby/models/assets/pagination.rb +2 -2
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +2 -2
- data/lib/xero-ruby/models/assets/setting.rb +2 -2
- data/lib/xero-ruby/models/files/association.rb +238 -0
- data/lib/xero-ruby/models/files/file_object.rb +278 -0
- data/lib/xero-ruby/models/files/file_response204.rb +208 -0
- data/lib/xero-ruby/models/files/files.rb +240 -0
- data/lib/xero-ruby/models/files/folder.rb +248 -0
- data/lib/xero-ruby/models/files/folders.rb +210 -0
- data/lib/xero-ruby/models/files/inline_object.rb +238 -0
- data/lib/xero-ruby/models/files/object_group.rb +46 -0
- data/lib/xero-ruby/models/files/object_type.rb +90 -0
- data/lib/xero-ruby/models/files/user.rb +253 -0
- data/lib/xero-ruby/models/payroll_au/account.rb +238 -0
- data/lib/xero-ruby/models/payroll_au/account_type.rb +58 -0
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +42 -0
- data/lib/xero-ruby/models/payroll_au/api_exception.rb +229 -0
- data/lib/xero-ruby/models/payroll_au/bank_account.rb +258 -0
- data/lib/xero-ruby/models/payroll_au/calendar_type.rb +41 -0
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +258 -0
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +340 -0
- data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +38 -0
- data/lib/xero-ruby/models/payroll_au/earnings_line.rb +293 -0
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +398 -0
- data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +38 -0
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +44 -0
- data/lib/xero-ruby/models/payroll_au/employee.rb +571 -0
- data/lib/xero-ruby/models/payroll_au/employee_status.rb +37 -0
- data/lib/xero-ruby/models/payroll_au/employees.rb +210 -0
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +40 -0
- data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +37 -0
- data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +37 -0
- data/lib/xero-ruby/models/payroll_au/home_address.rb +263 -0
- data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +228 -0
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +302 -0
- data/lib/xero-ruby/models/payroll_au/leave_applications.rb +210 -0
- data/lib/xero-ruby/models/payroll_au/leave_balance.rb +238 -0
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +228 -0
- data/lib/xero-ruby/models/payroll_au/leave_line.rb +278 -0
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +40 -0
- data/lib/xero-ruby/models/payroll_au/leave_lines.rb +211 -0
- data/lib/xero-ruby/models/payroll_au/leave_period.rb +238 -0
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +37 -0
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +303 -0
- data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +39 -0
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +40 -0
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +278 -0
- data/lib/xero-ruby/models/payroll_au/pay_item.rb +246 -0
- data/lib/xero-ruby/models/payroll_au/pay_items.rb +208 -0
- data/lib/xero-ruby/models/payroll_au/pay_run.rb +367 -0
- data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +37 -0
- data/lib/xero-ruby/models/payroll_au/pay_runs.rb +210 -0
- data/lib/xero-ruby/models/payroll_au/pay_template.rb +258 -0
- data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +42 -0
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +270 -0
- data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +210 -0
- data/lib/xero-ruby/models/payroll_au/payslip.rb +404 -0
- data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +294 -0
- data/lib/xero-ruby/models/payroll_au/payslip_object.rb +208 -0
- data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +318 -0
- data/lib/xero-ruby/models/payroll_au/payslips.rb +210 -0
- data/lib/xero-ruby/models/payroll_au/rate_type.rb +38 -0
- data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +253 -0
- data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +211 -0
- data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +263 -0
- data/lib/xero-ruby/models/payroll_au/residency_status.rb +38 -0
- data/lib/xero-ruby/models/payroll_au/settings.rb +230 -0
- data/lib/xero-ruby/models/payroll_au/settings_object.rb +208 -0
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +219 -0
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +219 -0
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +219 -0
- data/lib/xero-ruby/models/payroll_au/state.rb +43 -0
- data/lib/xero-ruby/models/payroll_au/super_fund.rb +335 -0
- data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +238 -0
- data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +210 -0
- data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +37 -0
- data/lib/xero-ruby/models/payroll_au/super_funds.rb +210 -0
- data/lib/xero-ruby/models/payroll_au/super_line.rb +278 -0
- data/lib/xero-ruby/models/payroll_au/super_membership.rb +238 -0
- data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +38 -0
- data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +39 -0
- data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +288 -0
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +358 -0
- data/lib/xero-ruby/models/payroll_au/tax_line.rb +258 -0
- data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +39 -0
- data/lib/xero-ruby/models/payroll_au/timesheet.rb +307 -0
- data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +240 -0
- data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +208 -0
- data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +40 -0
- data/lib/xero-ruby/models/payroll_au/timesheets.rb +210 -0
- data/lib/xero-ruby/models/payroll_au/validation_error.rb +208 -0
- data/lib/xero-ruby/models/payroll_nz/account.rb +276 -0
- data/lib/xero-ruby/models/payroll_nz/accounts.rb +210 -0
- data/lib/xero-ruby/models/payroll_nz/address.rb +273 -0
- data/lib/xero-ruby/models/payroll_nz/bank_account.rb +329 -0
- data/lib/xero-ruby/models/payroll_nz/benefit.rb +369 -0
- data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +42 -0
- data/lib/xero-ruby/models/payroll_nz/deduction.rb +311 -0
- data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +248 -0
- data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/deductions.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +298 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +255 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +387 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +258 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee.rb +374 -0
- data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +290 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +238 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +268 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +336 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/employee_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +238 -0
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +220 -0
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +280 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +322 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +419 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +397 -0
- data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employees.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/employment.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/employment_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +218 -0
- data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +218 -0
- data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +218 -0
- data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +298 -0
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +274 -0
- data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +273 -0
- data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/leave_types.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/pagination.rb +238 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run.rb +371 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +288 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +557 -0
- data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/payment_line.rb +248 -0
- data/lib/xero-ruby/models/payroll_nz/payment_method.rb +257 -0
- data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/problem.rb +261 -0
- data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +364 -0
- data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +248 -0
- data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +383 -0
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/settings.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +248 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +46 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +238 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +258 -0
- data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/superannuations.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/tax_code.rb +54 -0
- data/lib/xero-ruby/models/payroll_nz/tax_line.rb +248 -0
- data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +294 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +347 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +298 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +263 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/timesheets.rb +230 -0
- data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +228 -0
- data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +218 -0
- data/lib/xero-ruby/models/payroll_uk/account.rb +279 -0
- data/lib/xero-ruby/models/payroll_uk/accounts.rb +210 -0
- data/lib/xero-ruby/models/payroll_uk/address.rb +263 -0
- data/lib/xero-ruby/models/payroll_uk/bank_account.rb +243 -0
- data/lib/xero-ruby/models/payroll_uk/benefit.rb +418 -0
- data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +248 -0
- data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/benefits.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +218 -0
- data/lib/xero-ruby/models/payroll_uk/deduction.rb +426 -0
- data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +238 -0
- data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/deductions.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +288 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +255 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +387 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +258 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employee.rb +384 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +290 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +238 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +306 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/employee_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +258 -0
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +220 -0
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +280 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +322 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +419 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +308 -0
- data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/employees.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/employment.rb +280 -0
- data/lib/xero-ruby/models/payroll_uk/employment_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +218 -0
- data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +218 -0
- data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +258 -0
- data/lib/xero-ruby/models/payroll_uk/leave_period.rb +274 -0
- data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/leave_type.rb +293 -0
- data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/leave_types.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/pagination.rb +238 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run.rb +389 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +328 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/payment_line.rb +248 -0
- data/lib/xero-ruby/models/payroll_uk/payment_method.rb +262 -0
- data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/payslip.rb +537 -0
- data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/payslips.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/problem.rb +261 -0
- data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +248 -0
- data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +368 -0
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/settings.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +248 -0
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +49 -0
- data/lib/xero-ruby/models/payroll_uk/tax_line.rb +258 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +347 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +258 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +263 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/timesheets.rb +230 -0
- data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +228 -0
- data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +218 -0
- data/lib/xero-ruby/models/projects/amount.rb +2 -2
- 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 +2 -2
- data/lib/xero-ruby/models/projects/pagination.rb +2 -2
- data/lib/xero-ruby/models/projects/project.rb +2 -2
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +2 -2
- data/lib/xero-ruby/models/projects/project_patch.rb +2 -2
- data/lib/xero-ruby/models/projects/project_status.rb +1 -1
- data/lib/xero-ruby/models/projects/project_user.rb +2 -2
- data/lib/xero-ruby/models/projects/project_users.rb +2 -2
- data/lib/xero-ruby/models/projects/projects.rb +2 -2
- data/lib/xero-ruby/models/projects/task.rb +2 -2
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +2 -2
- data/lib/xero-ruby/models/projects/tasks.rb +2 -2
- data/lib/xero-ruby/models/projects/time_entries.rb +2 -2
- data/lib/xero-ruby/models/projects/time_entry.rb +2 -2
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +2 -2
- data/lib/xero-ruby/version.rb +2 -2
- data/spec/api_client_spec.rb +3 -3
- data/spec/files/api/files_api_spec.rb +249 -0
- data/spec/files/models/association_spec.rb +59 -0
- data/spec/files/models/file_object_spec.rb +83 -0
- data/spec/files/models/file_response204_spec.rb +41 -0
- data/spec/files/models/files_spec.rb +59 -0
- data/spec/files/models/folder_spec.rb +65 -0
- data/spec/files/models/folders_spec.rb +41 -0
- data/spec/files/models/inline_object_spec.rb +59 -0
- data/spec/files/models/object_group_spec.rb +35 -0
- data/spec/files/models/object_type_spec.rb +35 -0
- data/spec/files/models/user_spec.rb +81 -0
- data/spec/payroll_au/api/payroll_au_api_spec.rb +415 -0
- data/spec/payroll_au/models/account_spec.rb +59 -0
- data/spec/payroll_au/models/account_type_spec.rb +35 -0
- data/spec/payroll_au/models/allowance_type_spec.rb +35 -0
- data/spec/payroll_au/models/api_exception_spec.rb +53 -0
- data/spec/payroll_au/models/bank_account_spec.rb +71 -0
- data/spec/payroll_au/models/calendar_type_spec.rb +35 -0
- data/spec/payroll_au/models/deduction_line_spec.rb +65 -0
- data/spec/payroll_au/models/deduction_type_calculation_type_spec.rb +35 -0
- data/spec/payroll_au/models/deduction_type_spec.rb +93 -0
- data/spec/payroll_au/models/earnings_line_spec.rb +89 -0
- data/spec/payroll_au/models/earnings_rate_calculation_type_spec.rb +35 -0
- data/spec/payroll_au/models/earnings_rate_spec.rb +137 -0
- data/spec/payroll_au/models/earnings_type_spec.rb +35 -0
- data/spec/payroll_au/models/employee_spec.rb +225 -0
- data/spec/payroll_au/models/employee_status_spec.rb +35 -0
- data/spec/payroll_au/models/employees_spec.rb +41 -0
- data/spec/payroll_au/models/employment_basis_spec.rb +35 -0
- data/spec/payroll_au/models/employment_termination_payment_type_spec.rb +35 -0
- data/spec/payroll_au/models/entitlement_final_pay_payout_type_spec.rb +35 -0
- data/spec/payroll_au/models/home_address_spec.rb +71 -0
- data/spec/payroll_au/models/leave_accrual_line_spec.rb +53 -0
- data/spec/payroll_au/models/leave_application_spec.rb +95 -0
- data/spec/payroll_au/models/leave_applications_spec.rb +41 -0
- data/spec/payroll_au/models/leave_balance_spec.rb +59 -0
- data/spec/payroll_au/models/leave_earnings_line_spec.rb +53 -0
- data/spec/payroll_au/models/leave_line_calculation_type_spec.rb +35 -0
- data/spec/payroll_au/models/leave_line_spec.rb +83 -0
- data/spec/payroll_au/models/leave_lines_spec.rb +41 -0
- data/spec/payroll_au/models/leave_period_spec.rb +59 -0
- data/spec/payroll_au/models/leave_period_status_spec.rb +35 -0
- data/spec/payroll_au/models/leave_type_contribution_type_spec.rb +35 -0
- data/spec/payroll_au/models/leave_type_spec.rb +89 -0
- data/spec/payroll_au/models/manual_tax_type_spec.rb +35 -0
- data/spec/payroll_au/models/opening_balances_spec.rb +77 -0
- data/spec/payroll_au/models/pay_item_spec.rb +59 -0
- data/spec/payroll_au/models/pay_items_spec.rb +41 -0
- data/spec/payroll_au/models/pay_run_spec.rb +131 -0
- data/spec/payroll_au/models/pay_run_status_spec.rb +35 -0
- data/spec/payroll_au/models/pay_runs_spec.rb +41 -0
- data/spec/payroll_au/models/pay_template_spec.rb +65 -0
- data/spec/payroll_au/models/payment_frequency_type_spec.rb +35 -0
- data/spec/payroll_au/models/payroll_calendar_spec.rb +77 -0
- data/spec/payroll_au/models/payroll_calendars_spec.rb +41 -0
- data/spec/payroll_au/models/payslip_lines_spec.rb +83 -0
- data/spec/payroll_au/models/payslip_object_spec.rb +41 -0
- data/spec/payroll_au/models/payslip_spec.rb +149 -0
- data/spec/payroll_au/models/payslip_summary_spec.rb +107 -0
- data/spec/payroll_au/models/payslips_spec.rb +41 -0
- data/spec/payroll_au/models/rate_type_spec.rb +35 -0
- data/spec/payroll_au/models/reimbursement_line_spec.rb +59 -0
- data/spec/payroll_au/models/reimbursement_lines_spec.rb +41 -0
- data/spec/payroll_au/models/reimbursement_type_spec.rb +65 -0
- data/spec/payroll_au/models/residency_status_spec.rb +35 -0
- data/spec/payroll_au/models/settings_object_spec.rb +41 -0
- data/spec/payroll_au/models/settings_spec.rb +53 -0
- data/spec/payroll_au/models/settings_tracking_categories_employee_groups_spec.rb +47 -0
- data/spec/payroll_au/models/settings_tracking_categories_spec.rb +47 -0
- data/spec/payroll_au/models/settings_tracking_categories_timesheet_categories_spec.rb +47 -0
- data/spec/payroll_au/models/state_spec.rb +35 -0
- data/spec/payroll_au/models/super_fund_product_spec.rb +59 -0
- data/spec/payroll_au/models/super_fund_products_spec.rb +41 -0
- data/spec/payroll_au/models/super_fund_spec.rb +113 -0
- data/spec/payroll_au/models/super_fund_type_spec.rb +35 -0
- data/spec/payroll_au/models/super_funds_spec.rb +41 -0
- data/spec/payroll_au/models/super_line_spec.rb +83 -0
- data/spec/payroll_au/models/super_membership_spec.rb +53 -0
- data/spec/payroll_au/models/superannuation_calculation_type_spec.rb +35 -0
- data/spec/payroll_au/models/superannuation_contribution_type_spec.rb +35 -0
- data/spec/payroll_au/models/superannuation_line_spec.rb +89 -0
- data/spec/payroll_au/models/tax_declaration_spec.rb +131 -0
- data/spec/payroll_au/models/tax_line_spec.rb +71 -0
- data/spec/payroll_au/models/tfn_exemption_type_spec.rb +35 -0
- data/spec/payroll_au/models/timesheet_line_spec.rb +59 -0
- data/spec/payroll_au/models/timesheet_object_spec.rb +41 -0
- data/spec/payroll_au/models/timesheet_spec.rb +89 -0
- data/spec/payroll_au/models/timesheet_status_spec.rb +35 -0
- data/spec/payroll_au/models/timesheets_spec.rb +41 -0
- data/spec/payroll_au/models/validation_error_spec.rb +41 -0
- data/spec/payroll_nz/api/payroll_nz_api_spec.rb +886 -0
- data/spec/payroll_nz/models/account_spec.rb +63 -0
- data/spec/payroll_nz/models/accounts_spec.rb +41 -0
- data/spec/payroll_nz/models/address_spec.rb +71 -0
- data/spec/payroll_nz/models/bank_account_spec.rb +87 -0
- data/spec/payroll_nz/models/benefit_spec.rb +103 -0
- data/spec/payroll_nz/models/deduction_line_spec.rb +65 -0
- data/spec/payroll_nz/models/deduction_object_spec.rb +53 -0
- data/spec/payroll_nz/models/deduction_spec.rb +75 -0
- data/spec/payroll_nz/models/deductions_spec.rb +53 -0
- data/spec/payroll_nz/models/earnings_line_spec.rb +95 -0
- data/spec/payroll_nz/models/earnings_order_object_spec.rb +53 -0
- data/spec/payroll_nz/models/earnings_order_spec.rb +65 -0
- data/spec/payroll_nz/models/earnings_orders_spec.rb +53 -0
- data/spec/payroll_nz/models/earnings_rate_object_spec.rb +53 -0
- data/spec/payroll_nz/models/earnings_rate_spec.rb +103 -0
- data/spec/payroll_nz/models/earnings_rates_spec.rb +53 -0
- data/spec/payroll_nz/models/earnings_template_object_spec.rb +53 -0
- data/spec/payroll_nz/models/earnings_template_spec.rb +71 -0
- data/spec/payroll_nz/models/employee_earnings_templates_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_leave_balance_spec.rb +59 -0
- data/spec/payroll_nz/models/employee_leave_balances_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_leave_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_leave_setup_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_leave_setup_spec.rb +77 -0
- data/spec/payroll_nz/models/employee_leave_spec.rb +77 -0
- data/spec/payroll_nz/models/employee_leave_type_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_leave_type_spec.rb +99 -0
- data/spec/payroll_nz/models/employee_leave_types_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_leaves_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_opening_balance_spec.rb +59 -0
- data/spec/payroll_nz/models/employee_opening_balances_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_pay_template_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_pay_template_spec.rb +47 -0
- data/spec/payroll_nz/models/employee_pay_templates_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_spec.rb +123 -0
- data/spec/payroll_nz/models/employee_statutory_leave_balance_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_statutory_leave_balance_spec.rb +61 -0
- data/spec/payroll_nz/models/employee_statutory_leave_summary_spec.rb +85 -0
- data/spec/payroll_nz/models/employee_statutory_leaves_summaries_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_statutory_sick_leave_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_statutory_sick_leave_spec.rb +135 -0
- data/spec/payroll_nz/models/employee_statutory_sick_leaves_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_tax_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employee_tax_spec.rb +135 -0
- data/spec/payroll_nz/models/employees_spec.rb +53 -0
- data/spec/payroll_nz/models/employment_object_spec.rb +53 -0
- data/spec/payroll_nz/models/employment_spec.rb +53 -0
- data/spec/payroll_nz/models/gross_earnings_history_spec.rb +47 -0
- data/spec/payroll_nz/models/invalid_field_spec.rb +47 -0
- data/spec/payroll_nz/models/leave_accrual_line_spec.rb +47 -0
- data/spec/payroll_nz/models/leave_earnings_line_spec.rb +95 -0
- data/spec/payroll_nz/models/leave_period_spec.rb +63 -0
- data/spec/payroll_nz/models/leave_periods_spec.rb +53 -0
- data/spec/payroll_nz/models/leave_type_object_spec.rb +53 -0
- data/spec/payroll_nz/models/leave_type_spec.rb +71 -0
- data/spec/payroll_nz/models/leave_types_spec.rb +53 -0
- data/spec/payroll_nz/models/pagination_spec.rb +59 -0
- data/spec/payroll_nz/models/pay_run_calendar_object_spec.rb +53 -0
- data/spec/payroll_nz/models/pay_run_calendar_spec.rb +81 -0
- data/spec/payroll_nz/models/pay_run_calendars_spec.rb +53 -0
- data/spec/payroll_nz/models/pay_run_object_spec.rb +53 -0
- data/spec/payroll_nz/models/pay_run_spec.rb +119 -0
- data/spec/payroll_nz/models/pay_runs_spec.rb +53 -0
- data/spec/payroll_nz/models/pay_slip_object_spec.rb +53 -0
- data/spec/payroll_nz/models/pay_slip_spec.rb +219 -0
- data/spec/payroll_nz/models/pay_slips_spec.rb +53 -0
- data/spec/payroll_nz/models/payment_line_spec.rb +65 -0
- data/spec/payroll_nz/models/payment_method_object_spec.rb +53 -0
- data/spec/payroll_nz/models/payment_method_spec.rb +51 -0
- data/spec/payroll_nz/models/problem_spec.rb +71 -0
- data/spec/payroll_nz/models/reimbursement_line_spec.rb +65 -0
- data/spec/payroll_nz/models/reimbursement_object_spec.rb +53 -0
- data/spec/payroll_nz/models/reimbursement_spec.rb +101 -0
- data/spec/payroll_nz/models/reimbursements_spec.rb +53 -0
- data/spec/payroll_nz/models/salary_and_wage_object_spec.rb +53 -0
- data/spec/payroll_nz/models/salary_and_wage_spec.rb +103 -0
- data/spec/payroll_nz/models/salary_and_wages_spec.rb +53 -0
- data/spec/payroll_nz/models/settings_spec.rb +53 -0
- data/spec/payroll_nz/models/statutory_deduction_category_spec.rb +35 -0
- data/spec/payroll_nz/models/statutory_deduction_line_spec.rb +59 -0
- data/spec/payroll_nz/models/statutory_deduction_object_spec.rb +53 -0
- data/spec/payroll_nz/models/statutory_deduction_spec.rb +65 -0
- data/spec/payroll_nz/models/statutory_deductions_spec.rb +53 -0
- data/spec/payroll_nz/models/superannuation_line_spec.rb +71 -0
- data/spec/payroll_nz/models/superannuation_object_spec.rb +53 -0
- data/spec/payroll_nz/models/superannuations_spec.rb +53 -0
- data/spec/payroll_nz/models/tax_code_spec.rb +35 -0
- data/spec/payroll_nz/models/tax_line_spec.rb +65 -0
- data/spec/payroll_nz/models/tax_settings_spec.rb +75 -0
- data/spec/payroll_nz/models/timesheet_earnings_line_spec.rb +95 -0
- data/spec/payroll_nz/models/timesheet_line_object_spec.rb +53 -0
- data/spec/payroll_nz/models/timesheet_line_spec.rb +65 -0
- data/spec/payroll_nz/models/timesheet_object_spec.rb +53 -0
- data/spec/payroll_nz/models/timesheet_spec.rb +93 -0
- data/spec/payroll_nz/models/timesheets_spec.rb +53 -0
- data/spec/payroll_nz/models/tracking_categories_spec.rb +53 -0
- data/spec/payroll_nz/models/tracking_category_spec.rb +47 -0
- data/spec/payroll_uk/api/payroll_uk_api_spec.rb +912 -0
- data/spec/payroll_uk/models/account_spec.rb +63 -0
- data/spec/payroll_uk/models/accounts_spec.rb +41 -0
- data/spec/payroll_uk/models/address_spec.rb +65 -0
- data/spec/payroll_uk/models/bank_account_spec.rb +53 -0
- data/spec/payroll_uk/models/benefit_line_spec.rb +65 -0
- data/spec/payroll_uk/models/benefit_object_spec.rb +53 -0
- data/spec/payroll_uk/models/benefit_spec.rb +127 -0
- data/spec/payroll_uk/models/benefits_spec.rb +53 -0
- data/spec/payroll_uk/models/court_order_line_spec.rb +47 -0
- data/spec/payroll_uk/models/deduction_line_spec.rb +59 -0
- data/spec/payroll_uk/models/deduction_object_spec.rb +53 -0
- data/spec/payroll_uk/models/deduction_spec.rb +139 -0
- data/spec/payroll_uk/models/deductions_spec.rb +53 -0
- data/spec/payroll_uk/models/earnings_line_spec.rb +89 -0
- data/spec/payroll_uk/models/earnings_order_object_spec.rb +53 -0
- data/spec/payroll_uk/models/earnings_order_spec.rb +65 -0
- data/spec/payroll_uk/models/earnings_orders_spec.rb +53 -0
- data/spec/payroll_uk/models/earnings_rate_object_spec.rb +53 -0
- data/spec/payroll_uk/models/earnings_rate_spec.rb +103 -0
- data/spec/payroll_uk/models/earnings_rates_spec.rb +53 -0
- data/spec/payroll_uk/models/earnings_template_object_spec.rb +53 -0
- data/spec/payroll_uk/models/earnings_template_spec.rb +71 -0
- data/spec/payroll_uk/models/employee_leave_balance_spec.rb +59 -0
- data/spec/payroll_uk/models/employee_leave_balances_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_leave_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_leave_spec.rb +77 -0
- data/spec/payroll_uk/models/employee_leave_type_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_leave_type_spec.rb +75 -0
- data/spec/payroll_uk/models/employee_leave_types_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_leaves_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_opening_balances_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_opening_balances_spec.rb +71 -0
- data/spec/payroll_uk/models/employee_pay_template_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_pay_template_spec.rb +47 -0
- data/spec/payroll_uk/models/employee_pay_templates_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_spec.rb +129 -0
- data/spec/payroll_uk/models/employee_statutory_leave_balance_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_statutory_leave_balance_spec.rb +61 -0
- data/spec/payroll_uk/models/employee_statutory_leave_summary_spec.rb +85 -0
- data/spec/payroll_uk/models/employee_statutory_leaves_summaries_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_statutory_sick_leave_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_statutory_sick_leave_spec.rb +135 -0
- data/spec/payroll_uk/models/employee_statutory_sick_leaves_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_tax_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employee_tax_spec.rb +101 -0
- data/spec/payroll_uk/models/employees_spec.rb +53 -0
- data/spec/payroll_uk/models/employment_object_spec.rb +53 -0
- data/spec/payroll_uk/models/employment_spec.rb +63 -0
- data/spec/payroll_uk/models/invalid_field_spec.rb +47 -0
- data/spec/payroll_uk/models/leave_accrual_line_spec.rb +47 -0
- data/spec/payroll_uk/models/leave_earnings_line_spec.rb +71 -0
- data/spec/payroll_uk/models/leave_period_spec.rb +63 -0
- data/spec/payroll_uk/models/leave_periods_spec.rb +53 -0
- data/spec/payroll_uk/models/leave_type_object_spec.rb +53 -0
- data/spec/payroll_uk/models/leave_type_spec.rb +83 -0
- data/spec/payroll_uk/models/leave_types_spec.rb +53 -0
- data/spec/payroll_uk/models/pagination_spec.rb +59 -0
- data/spec/payroll_uk/models/pay_run_calendar_object_spec.rb +53 -0
- data/spec/payroll_uk/models/pay_run_calendar_spec.rb +81 -0
- data/spec/payroll_uk/models/pay_run_calendars_spec.rb +53 -0
- data/spec/payroll_uk/models/pay_run_object_spec.rb +53 -0
- data/spec/payroll_uk/models/pay_run_spec.rb +119 -0
- data/spec/payroll_uk/models/pay_runs_spec.rb +53 -0
- data/spec/payroll_uk/models/payment_line_spec.rb +65 -0
- data/spec/payroll_uk/models/payment_method_object_spec.rb +53 -0
- data/spec/payroll_uk/models/payment_method_spec.rb +51 -0
- data/spec/payroll_uk/models/payslip_object_spec.rb +53 -0
- data/spec/payroll_uk/models/payslip_spec.rb +201 -0
- data/spec/payroll_uk/models/payslips_spec.rb +53 -0
- data/spec/payroll_uk/models/problem_spec.rb +71 -0
- data/spec/payroll_uk/models/reimbursement_line_spec.rb +53 -0
- data/spec/payroll_uk/models/reimbursement_object_spec.rb +53 -0
- data/spec/payroll_uk/models/reimbursement_spec.rb +59 -0
- data/spec/payroll_uk/models/reimbursements_spec.rb +53 -0
- data/spec/payroll_uk/models/salary_and_wage_object_spec.rb +53 -0
- data/spec/payroll_uk/models/salary_and_wage_spec.rb +97 -0
- data/spec/payroll_uk/models/salary_and_wages_spec.rb +53 -0
- data/spec/payroll_uk/models/settings_spec.rb +53 -0
- data/spec/payroll_uk/models/statutory_deduction_category_spec.rb +35 -0
- data/spec/payroll_uk/models/statutory_deduction_spec.rb +65 -0
- data/spec/payroll_uk/models/tax_line_spec.rb +71 -0
- data/spec/payroll_uk/models/timesheet_earnings_line_spec.rb +71 -0
- data/spec/payroll_uk/models/timesheet_line_object_spec.rb +53 -0
- data/spec/payroll_uk/models/timesheet_line_spec.rb +65 -0
- data/spec/payroll_uk/models/timesheet_object_spec.rb +53 -0
- data/spec/payroll_uk/models/timesheet_spec.rb +93 -0
- data/spec/payroll_uk/models/timesheets_spec.rb +53 -0
- data/spec/payroll_uk/models/tracking_categories_spec.rb +53 -0
- data/spec/payroll_uk/models/tracking_category_spec.rb +47 -0
- data/xero-ruby.gem +0 -0
- data/xero-ruby.gemspec +1 -1
- metadata +1144 -2
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.
|
|
6
|
+
The version of the OpenAPI document: 2.6.0
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require 'cgi'
|
|
14
|
-
|
|
15
13
|
module XeroRuby
|
|
16
14
|
class AccountingApi
|
|
17
15
|
attr_accessor :api_client
|
|
@@ -88,7 +86,7 @@ module XeroRuby
|
|
|
88
86
|
:return_type => return_type
|
|
89
87
|
)
|
|
90
88
|
|
|
91
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
92
90
|
if @api_client.config.debugging
|
|
93
91
|
@api_client.config.logger.debug "API called: AccountingApi#create_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
94
92
|
end
|
|
@@ -176,7 +174,7 @@ module XeroRuby
|
|
|
176
174
|
:return_type => return_type
|
|
177
175
|
)
|
|
178
176
|
|
|
179
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
177
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
180
178
|
if @api_client.config.debugging
|
|
181
179
|
@api_client.config.logger.debug "API called: AccountingApi#create_account_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
182
180
|
end
|
|
@@ -264,7 +262,7 @@ module XeroRuby
|
|
|
264
262
|
:return_type => return_type
|
|
265
263
|
)
|
|
266
264
|
|
|
267
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
265
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
268
266
|
if @api_client.config.debugging
|
|
269
267
|
@api_client.config.logger.debug "API called: AccountingApi#create_bank_transaction_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
270
268
|
end
|
|
@@ -346,7 +344,7 @@ module XeroRuby
|
|
|
346
344
|
:return_type => return_type
|
|
347
345
|
)
|
|
348
346
|
|
|
349
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
347
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
350
348
|
if @api_client.config.debugging
|
|
351
349
|
@api_client.config.logger.debug "API called: AccountingApi#create_bank_transaction_history_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
352
350
|
end
|
|
@@ -357,7 +355,7 @@ module XeroRuby
|
|
|
357
355
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
358
356
|
# @param bank_transactions [BankTransactions] BankTransactions with an array of BankTransaction objects in body of request
|
|
359
357
|
# @param [Hash] opts the optional parameters
|
|
360
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
358
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
361
359
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
362
360
|
# @return [BankTransactions]
|
|
363
361
|
def create_bank_transactions(xero_tenant_id, bank_transactions, opts = {})
|
|
@@ -369,7 +367,7 @@ module XeroRuby
|
|
|
369
367
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
370
368
|
# @param bank_transactions [BankTransactions] BankTransactions with an array of BankTransaction objects in body of request
|
|
371
369
|
# @param [Hash] opts the optional parameters
|
|
372
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
370
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
373
371
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
374
372
|
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
|
375
373
|
def create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts = {})
|
|
@@ -428,7 +426,7 @@ module XeroRuby
|
|
|
428
426
|
:return_type => return_type
|
|
429
427
|
)
|
|
430
428
|
|
|
431
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
429
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
432
430
|
if @api_client.config.debugging
|
|
433
431
|
@api_client.config.logger.debug "API called: AccountingApi#create_bank_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
434
432
|
end
|
|
@@ -504,7 +502,7 @@ module XeroRuby
|
|
|
504
502
|
:return_type => return_type
|
|
505
503
|
)
|
|
506
504
|
|
|
507
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
505
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
508
506
|
if @api_client.config.debugging
|
|
509
507
|
@api_client.config.logger.debug "API called: AccountingApi#create_bank_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
510
508
|
end
|
|
@@ -590,7 +588,7 @@ module XeroRuby
|
|
|
590
588
|
:return_type => return_type
|
|
591
589
|
)
|
|
592
590
|
|
|
593
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
591
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
594
592
|
if @api_client.config.debugging
|
|
595
593
|
@api_client.config.logger.debug "API called: AccountingApi#create_bank_transfer_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
596
594
|
end
|
|
@@ -670,7 +668,7 @@ module XeroRuby
|
|
|
670
668
|
:return_type => return_type
|
|
671
669
|
)
|
|
672
670
|
|
|
673
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
671
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
674
672
|
if @api_client.config.debugging
|
|
675
673
|
@api_client.config.logger.debug "API called: AccountingApi#create_bank_transfer_history_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
676
674
|
end
|
|
@@ -681,7 +679,7 @@ module XeroRuby
|
|
|
681
679
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
682
680
|
# @param batch_payments [BatchPayments] BatchPayments with an array of Payments in body of request
|
|
683
681
|
# @param [Hash] opts the optional parameters
|
|
684
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
682
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
685
683
|
# @return [BatchPayments]
|
|
686
684
|
def create_batch_payment(xero_tenant_id, batch_payments, opts = {})
|
|
687
685
|
data, _status_code, _headers = create_batch_payment_with_http_info(xero_tenant_id, batch_payments, opts)
|
|
@@ -692,7 +690,7 @@ module XeroRuby
|
|
|
692
690
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
693
691
|
# @param batch_payments [BatchPayments] BatchPayments with an array of Payments in body of request
|
|
694
692
|
# @param [Hash] opts the optional parameters
|
|
695
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
693
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
696
694
|
# @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
|
|
697
695
|
def create_batch_payment_with_http_info(xero_tenant_id, batch_payments, opts = {})
|
|
698
696
|
if @api_client.config.debugging
|
|
@@ -749,7 +747,7 @@ module XeroRuby
|
|
|
749
747
|
:return_type => return_type
|
|
750
748
|
)
|
|
751
749
|
|
|
752
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
750
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
753
751
|
if @api_client.config.debugging
|
|
754
752
|
@api_client.config.logger.debug "API called: AccountingApi#create_batch_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
755
753
|
end
|
|
@@ -831,7 +829,7 @@ module XeroRuby
|
|
|
831
829
|
:return_type => return_type
|
|
832
830
|
)
|
|
833
831
|
|
|
834
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
832
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
835
833
|
if @api_client.config.debugging
|
|
836
834
|
@api_client.config.logger.debug "API called: AccountingApi#create_batch_payment_history_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
837
835
|
end
|
|
@@ -913,7 +911,7 @@ module XeroRuby
|
|
|
913
911
|
:return_type => return_type
|
|
914
912
|
)
|
|
915
913
|
|
|
916
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
914
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
917
915
|
if @api_client.config.debugging
|
|
918
916
|
@api_client.config.logger.debug "API called: AccountingApi#create_branding_theme_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
919
917
|
end
|
|
@@ -999,7 +997,7 @@ module XeroRuby
|
|
|
999
997
|
:return_type => return_type
|
|
1000
998
|
)
|
|
1001
999
|
|
|
1002
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1000
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1003
1001
|
if @api_client.config.debugging
|
|
1004
1002
|
@api_client.config.logger.debug "API called: AccountingApi#create_contact_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1005
1003
|
end
|
|
@@ -1075,7 +1073,7 @@ module XeroRuby
|
|
|
1075
1073
|
:return_type => return_type
|
|
1076
1074
|
)
|
|
1077
1075
|
|
|
1078
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1076
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1079
1077
|
if @api_client.config.debugging
|
|
1080
1078
|
@api_client.config.logger.debug "API called: AccountingApi#create_contact_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1081
1079
|
end
|
|
@@ -1157,7 +1155,7 @@ module XeroRuby
|
|
|
1157
1155
|
:return_type => return_type
|
|
1158
1156
|
)
|
|
1159
1157
|
|
|
1160
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1158
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1161
1159
|
if @api_client.config.debugging
|
|
1162
1160
|
@api_client.config.logger.debug "API called: AccountingApi#create_contact_group_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1163
1161
|
end
|
|
@@ -1239,7 +1237,7 @@ module XeroRuby
|
|
|
1239
1237
|
:return_type => return_type
|
|
1240
1238
|
)
|
|
1241
1239
|
|
|
1242
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1240
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1243
1241
|
if @api_client.config.debugging
|
|
1244
1242
|
@api_client.config.logger.debug "API called: AccountingApi#create_contact_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1245
1243
|
end
|
|
@@ -1250,7 +1248,7 @@ module XeroRuby
|
|
|
1250
1248
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1251
1249
|
# @param contacts [Contacts] Contacts with an array of Contact objects to create in body of request
|
|
1252
1250
|
# @param [Hash] opts the optional parameters
|
|
1253
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
1251
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1254
1252
|
# @return [Contacts]
|
|
1255
1253
|
def create_contacts(xero_tenant_id, contacts, opts = {})
|
|
1256
1254
|
data, _status_code, _headers = create_contacts_with_http_info(xero_tenant_id, contacts, opts)
|
|
@@ -1261,7 +1259,7 @@ module XeroRuby
|
|
|
1261
1259
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1262
1260
|
# @param contacts [Contacts] Contacts with an array of Contact objects to create in body of request
|
|
1263
1261
|
# @param [Hash] opts the optional parameters
|
|
1264
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
1262
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1265
1263
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
|
1266
1264
|
def create_contacts_with_http_info(xero_tenant_id, contacts, opts = {})
|
|
1267
1265
|
if @api_client.config.debugging
|
|
@@ -1318,7 +1316,7 @@ module XeroRuby
|
|
|
1318
1316
|
:return_type => return_type
|
|
1319
1317
|
)
|
|
1320
1318
|
|
|
1321
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1319
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1322
1320
|
if @api_client.config.debugging
|
|
1323
1321
|
@api_client.config.logger.debug "API called: AccountingApi#create_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1324
1322
|
end
|
|
@@ -1330,7 +1328,7 @@ module XeroRuby
|
|
|
1330
1328
|
# @param credit_note_id [String] Unique identifier for a Credit Note
|
|
1331
1329
|
# @param allocations [Allocations] Allocations with array of Allocation object in body of request.
|
|
1332
1330
|
# @param [Hash] opts the optional parameters
|
|
1333
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
1331
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1334
1332
|
# @return [Allocations]
|
|
1335
1333
|
def create_credit_note_allocation(xero_tenant_id, credit_note_id, allocations, opts = {})
|
|
1336
1334
|
data, _status_code, _headers = create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, opts)
|
|
@@ -1342,7 +1340,7 @@ module XeroRuby
|
|
|
1342
1340
|
# @param credit_note_id [String] Unique identifier for a Credit Note
|
|
1343
1341
|
# @param allocations [Allocations] Allocations with array of Allocation object in body of request.
|
|
1344
1342
|
# @param [Hash] opts the optional parameters
|
|
1345
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
1343
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1346
1344
|
# @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
|
|
1347
1345
|
def create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, opts = {})
|
|
1348
1346
|
if @api_client.config.debugging
|
|
@@ -1403,7 +1401,7 @@ module XeroRuby
|
|
|
1403
1401
|
:return_type => return_type
|
|
1404
1402
|
)
|
|
1405
1403
|
|
|
1406
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1404
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1407
1405
|
if @api_client.config.debugging
|
|
1408
1406
|
@api_client.config.logger.debug "API called: AccountingApi#create_credit_note_allocation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1409
1407
|
end
|
|
@@ -1494,7 +1492,7 @@ module XeroRuby
|
|
|
1494
1492
|
:return_type => return_type
|
|
1495
1493
|
)
|
|
1496
1494
|
|
|
1497
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1495
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1498
1496
|
if @api_client.config.debugging
|
|
1499
1497
|
@api_client.config.logger.debug "API called: AccountingApi#create_credit_note_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1500
1498
|
end
|
|
@@ -1576,7 +1574,7 @@ module XeroRuby
|
|
|
1576
1574
|
:return_type => return_type
|
|
1577
1575
|
)
|
|
1578
1576
|
|
|
1579
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1577
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1580
1578
|
if @api_client.config.debugging
|
|
1581
1579
|
@api_client.config.logger.debug "API called: AccountingApi#create_credit_note_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1582
1580
|
end
|
|
@@ -1587,7 +1585,7 @@ module XeroRuby
|
|
|
1587
1585
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1588
1586
|
# @param credit_notes [CreditNotes] Credit Notes with array of CreditNote object in body of request
|
|
1589
1587
|
# @param [Hash] opts the optional parameters
|
|
1590
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
1588
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1591
1589
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
1592
1590
|
# @return [CreditNotes]
|
|
1593
1591
|
def create_credit_notes(xero_tenant_id, credit_notes, opts = {})
|
|
@@ -1599,7 +1597,7 @@ module XeroRuby
|
|
|
1599
1597
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1600
1598
|
# @param credit_notes [CreditNotes] Credit Notes with array of CreditNote object in body of request
|
|
1601
1599
|
# @param [Hash] opts the optional parameters
|
|
1602
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
1600
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1603
1601
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
1604
1602
|
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
|
1605
1603
|
def create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts = {})
|
|
@@ -1658,7 +1656,7 @@ module XeroRuby
|
|
|
1658
1656
|
:return_type => return_type
|
|
1659
1657
|
)
|
|
1660
1658
|
|
|
1661
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1659
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1662
1660
|
if @api_client.config.debugging
|
|
1663
1661
|
@api_client.config.logger.debug "API called: AccountingApi#create_credit_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1664
1662
|
end
|
|
@@ -1732,7 +1730,7 @@ module XeroRuby
|
|
|
1732
1730
|
:return_type => return_type
|
|
1733
1731
|
)
|
|
1734
1732
|
|
|
1735
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1733
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1736
1734
|
if @api_client.config.debugging
|
|
1737
1735
|
@api_client.config.logger.debug "API called: AccountingApi#create_currency\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1738
1736
|
end
|
|
@@ -1743,7 +1741,7 @@ module XeroRuby
|
|
|
1743
1741
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1744
1742
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
1745
1743
|
# @param [Hash] opts the optional parameters
|
|
1746
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
1744
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1747
1745
|
# @return [Employees]
|
|
1748
1746
|
def create_employees(xero_tenant_id, employees, opts = {})
|
|
1749
1747
|
data, _status_code, _headers = create_employees_with_http_info(xero_tenant_id, employees, opts)
|
|
@@ -1754,7 +1752,7 @@ module XeroRuby
|
|
|
1754
1752
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1755
1753
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
1756
1754
|
# @param [Hash] opts the optional parameters
|
|
1757
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
1755
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1758
1756
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
|
1759
1757
|
def create_employees_with_http_info(xero_tenant_id, employees, opts = {})
|
|
1760
1758
|
if @api_client.config.debugging
|
|
@@ -1811,7 +1809,7 @@ module XeroRuby
|
|
|
1811
1809
|
:return_type => return_type
|
|
1812
1810
|
)
|
|
1813
1811
|
|
|
1814
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1812
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1815
1813
|
if @api_client.config.debugging
|
|
1816
1814
|
@api_client.config.logger.debug "API called: AccountingApi#create_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1817
1815
|
end
|
|
@@ -1893,7 +1891,7 @@ module XeroRuby
|
|
|
1893
1891
|
:return_type => return_type
|
|
1894
1892
|
)
|
|
1895
1893
|
|
|
1896
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1894
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1897
1895
|
if @api_client.config.debugging
|
|
1898
1896
|
@api_client.config.logger.debug "API called: AccountingApi#create_expense_claim_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1899
1897
|
end
|
|
@@ -1969,7 +1967,7 @@ module XeroRuby
|
|
|
1969
1967
|
:return_type => return_type
|
|
1970
1968
|
)
|
|
1971
1969
|
|
|
1972
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1970
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
1973
1971
|
if @api_client.config.debugging
|
|
1974
1972
|
@api_client.config.logger.debug "API called: AccountingApi#create_expense_claims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1975
1973
|
end
|
|
@@ -2060,7 +2058,7 @@ module XeroRuby
|
|
|
2060
2058
|
:return_type => return_type
|
|
2061
2059
|
)
|
|
2062
2060
|
|
|
2063
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2061
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2064
2062
|
if @api_client.config.debugging
|
|
2065
2063
|
@api_client.config.logger.debug "API called: AccountingApi#create_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2066
2064
|
end
|
|
@@ -2142,7 +2140,7 @@ module XeroRuby
|
|
|
2142
2140
|
:return_type => return_type
|
|
2143
2141
|
)
|
|
2144
2142
|
|
|
2145
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2143
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2146
2144
|
if @api_client.config.debugging
|
|
2147
2145
|
@api_client.config.logger.debug "API called: AccountingApi#create_invoice_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2148
2146
|
end
|
|
@@ -2153,7 +2151,7 @@ module XeroRuby
|
|
|
2153
2151
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2154
2152
|
# @param invoices [Invoices] Invoices with an array of invoice objects in body of request
|
|
2155
2153
|
# @param [Hash] opts the optional parameters
|
|
2156
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
2154
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
2157
2155
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2158
2156
|
# @return [Invoices]
|
|
2159
2157
|
def create_invoices(xero_tenant_id, invoices, opts = {})
|
|
@@ -2165,7 +2163,7 @@ module XeroRuby
|
|
|
2165
2163
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2166
2164
|
# @param invoices [Invoices] Invoices with an array of invoice objects in body of request
|
|
2167
2165
|
# @param [Hash] opts the optional parameters
|
|
2168
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
2166
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2169
2167
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2170
2168
|
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
|
2171
2169
|
def create_invoices_with_http_info(xero_tenant_id, invoices, opts = {})
|
|
@@ -2224,7 +2222,7 @@ module XeroRuby
|
|
|
2224
2222
|
:return_type => return_type
|
|
2225
2223
|
)
|
|
2226
2224
|
|
|
2227
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2225
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2228
2226
|
if @api_client.config.debugging
|
|
2229
2227
|
@api_client.config.logger.debug "API called: AccountingApi#create_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2230
2228
|
end
|
|
@@ -2306,7 +2304,7 @@ module XeroRuby
|
|
|
2306
2304
|
:return_type => return_type
|
|
2307
2305
|
)
|
|
2308
2306
|
|
|
2309
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2307
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2310
2308
|
if @api_client.config.debugging
|
|
2311
2309
|
@api_client.config.logger.debug "API called: AccountingApi#create_item_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2312
2310
|
end
|
|
@@ -2317,7 +2315,7 @@ module XeroRuby
|
|
|
2317
2315
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2318
2316
|
# @param items [Items] Items with an array of Item objects in body of request
|
|
2319
2317
|
# @param [Hash] opts the optional parameters
|
|
2320
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
2318
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
2321
2319
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2322
2320
|
# @return [Items]
|
|
2323
2321
|
def create_items(xero_tenant_id, items, opts = {})
|
|
@@ -2329,7 +2327,7 @@ module XeroRuby
|
|
|
2329
2327
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2330
2328
|
# @param items [Items] Items with an array of Item objects in body of request
|
|
2331
2329
|
# @param [Hash] opts the optional parameters
|
|
2332
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
2330
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2333
2331
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2334
2332
|
# @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
|
|
2335
2333
|
def create_items_with_http_info(xero_tenant_id, items, opts = {})
|
|
@@ -2388,7 +2386,7 @@ module XeroRuby
|
|
|
2388
2386
|
:return_type => return_type
|
|
2389
2387
|
)
|
|
2390
2388
|
|
|
2391
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2389
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2392
2390
|
if @api_client.config.debugging
|
|
2393
2391
|
@api_client.config.logger.debug "API called: AccountingApi#create_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2394
2392
|
end
|
|
@@ -2464,7 +2462,7 @@ module XeroRuby
|
|
|
2464
2462
|
:return_type => return_type
|
|
2465
2463
|
)
|
|
2466
2464
|
|
|
2467
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2465
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2468
2466
|
if @api_client.config.debugging
|
|
2469
2467
|
@api_client.config.logger.debug "API called: AccountingApi#create_linked_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2470
2468
|
end
|
|
@@ -2552,18 +2550,100 @@ module XeroRuby
|
|
|
2552
2550
|
:return_type => return_type
|
|
2553
2551
|
)
|
|
2554
2552
|
|
|
2555
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2553
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2556
2554
|
if @api_client.config.debugging
|
|
2557
2555
|
@api_client.config.logger.debug "API called: AccountingApi#create_manual_journal_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2558
2556
|
end
|
|
2559
2557
|
return data, status_code, headers
|
|
2560
2558
|
end
|
|
2561
2559
|
|
|
2560
|
+
# Allows you to create history record for a manual journal
|
|
2561
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2562
|
+
# @param manual_journal_id [String] Xero generated unique identifier for a manual journal
|
|
2563
|
+
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2564
|
+
# @param [Hash] opts the optional parameters
|
|
2565
|
+
# @return [HistoryRecords]
|
|
2566
|
+
def create_manual_journal_history_record(xero_tenant_id, manual_journal_id, history_records, opts = {})
|
|
2567
|
+
data, _status_code, _headers = create_manual_journal_history_record_with_http_info(xero_tenant_id, manual_journal_id, history_records, opts)
|
|
2568
|
+
data
|
|
2569
|
+
end
|
|
2570
|
+
|
|
2571
|
+
# Allows you to create history record for a manual journal
|
|
2572
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2573
|
+
# @param manual_journal_id [String] Xero generated unique identifier for a manual journal
|
|
2574
|
+
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2575
|
+
# @param [Hash] opts the optional parameters
|
|
2576
|
+
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
2577
|
+
def create_manual_journal_history_record_with_http_info(xero_tenant_id, manual_journal_id, history_records, opts = {})
|
|
2578
|
+
if @api_client.config.debugging
|
|
2579
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.create_manual_journal_history_record ...'
|
|
2580
|
+
end
|
|
2581
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
2582
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
2583
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_manual_journal_history_record"
|
|
2584
|
+
end
|
|
2585
|
+
# verify the required parameter 'manual_journal_id' is set
|
|
2586
|
+
if @api_client.config.client_side_validation && manual_journal_id.nil?
|
|
2587
|
+
fail ArgumentError, "Missing the required parameter 'manual_journal_id' when calling AccountingApi.create_manual_journal_history_record"
|
|
2588
|
+
end
|
|
2589
|
+
# verify the required parameter 'history_records' is set
|
|
2590
|
+
if @api_client.config.client_side_validation && history_records.nil?
|
|
2591
|
+
fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_manual_journal_history_record"
|
|
2592
|
+
end
|
|
2593
|
+
# resource path
|
|
2594
|
+
local_var_path = '/ManualJournals/{ManualJournalID}/History'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
|
|
2595
|
+
|
|
2596
|
+
# camelize keys of incoming `where` opts
|
|
2597
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
2598
|
+
|
|
2599
|
+
# query parameters
|
|
2600
|
+
query_params = opts[:query_params] || {}
|
|
2601
|
+
|
|
2602
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
2603
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
2604
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
2605
|
+
|
|
2606
|
+
# header parameters
|
|
2607
|
+
header_params = opts[:header_params] || {}
|
|
2608
|
+
# HTTP header 'Accept' (if needed)
|
|
2609
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2610
|
+
# HTTP header 'Content-Type'
|
|
2611
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2612
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2613
|
+
|
|
2614
|
+
# form parameters
|
|
2615
|
+
form_params = opts[:form_params] || {}
|
|
2616
|
+
|
|
2617
|
+
# http body (model)
|
|
2618
|
+
post_body = opts[:body] || @api_client.object_to_http_body(history_records)
|
|
2619
|
+
|
|
2620
|
+
# return_type
|
|
2621
|
+
return_type = opts[:return_type] || 'HistoryRecords'
|
|
2622
|
+
|
|
2623
|
+
# auth_names
|
|
2624
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
2625
|
+
|
|
2626
|
+
new_options = opts.merge(
|
|
2627
|
+
:header_params => header_params,
|
|
2628
|
+
:query_params => query_params,
|
|
2629
|
+
:form_params => form_params,
|
|
2630
|
+
:body => post_body,
|
|
2631
|
+
:auth_names => auth_names,
|
|
2632
|
+
:return_type => return_type
|
|
2633
|
+
)
|
|
2634
|
+
|
|
2635
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2636
|
+
if @api_client.config.debugging
|
|
2637
|
+
@api_client.config.logger.debug "API called: AccountingApi#create_manual_journal_history_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2638
|
+
end
|
|
2639
|
+
return data, status_code, headers
|
|
2640
|
+
end
|
|
2641
|
+
|
|
2562
2642
|
# Allows you to create one or more manual journals
|
|
2563
2643
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2564
2644
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
|
2565
2645
|
# @param [Hash] opts the optional parameters
|
|
2566
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
2646
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
2567
2647
|
# @return [ManualJournals]
|
|
2568
2648
|
def create_manual_journals(xero_tenant_id, manual_journals, opts = {})
|
|
2569
2649
|
data, _status_code, _headers = create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts)
|
|
@@ -2574,7 +2654,7 @@ module XeroRuby
|
|
|
2574
2654
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2575
2655
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
|
2576
2656
|
# @param [Hash] opts the optional parameters
|
|
2577
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
2657
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2578
2658
|
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
|
2579
2659
|
def create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts = {})
|
|
2580
2660
|
if @api_client.config.debugging
|
|
@@ -2631,7 +2711,7 @@ module XeroRuby
|
|
|
2631
2711
|
:return_type => return_type
|
|
2632
2712
|
)
|
|
2633
2713
|
|
|
2634
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2714
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2635
2715
|
if @api_client.config.debugging
|
|
2636
2716
|
@api_client.config.logger.debug "API called: AccountingApi#create_manual_journals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2637
2717
|
end
|
|
@@ -2643,7 +2723,7 @@ module XeroRuby
|
|
|
2643
2723
|
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
2644
2724
|
# @param allocations [Allocations] Allocations array with Allocation object in body of request
|
|
2645
2725
|
# @param [Hash] opts the optional parameters
|
|
2646
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
2726
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
2647
2727
|
# @return [Allocations]
|
|
2648
2728
|
def create_overpayment_allocations(xero_tenant_id, overpayment_id, allocations, opts = {})
|
|
2649
2729
|
data, _status_code, _headers = create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocations, opts)
|
|
@@ -2655,7 +2735,7 @@ module XeroRuby
|
|
|
2655
2735
|
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
2656
2736
|
# @param allocations [Allocations] Allocations array with Allocation object in body of request
|
|
2657
2737
|
# @param [Hash] opts the optional parameters
|
|
2658
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
2738
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2659
2739
|
# @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
|
|
2660
2740
|
def create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocations, opts = {})
|
|
2661
2741
|
if @api_client.config.debugging
|
|
@@ -2716,7 +2796,7 @@ module XeroRuby
|
|
|
2716
2796
|
:return_type => return_type
|
|
2717
2797
|
)
|
|
2718
2798
|
|
|
2719
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2799
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2720
2800
|
if @api_client.config.debugging
|
|
2721
2801
|
@api_client.config.logger.debug "API called: AccountingApi#create_overpayment_allocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2722
2802
|
end
|
|
@@ -2798,7 +2878,7 @@ module XeroRuby
|
|
|
2798
2878
|
:return_type => return_type
|
|
2799
2879
|
)
|
|
2800
2880
|
|
|
2801
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2881
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2802
2882
|
if @api_client.config.debugging
|
|
2803
2883
|
@api_client.config.logger.debug "API called: AccountingApi#create_overpayment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2804
2884
|
end
|
|
@@ -2874,7 +2954,7 @@ module XeroRuby
|
|
|
2874
2954
|
:return_type => return_type
|
|
2875
2955
|
)
|
|
2876
2956
|
|
|
2877
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2957
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
2878
2958
|
if @api_client.config.debugging
|
|
2879
2959
|
@api_client.config.logger.debug "API called: AccountingApi#create_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2880
2960
|
end
|
|
@@ -2956,7 +3036,7 @@ module XeroRuby
|
|
|
2956
3036
|
:return_type => return_type
|
|
2957
3037
|
)
|
|
2958
3038
|
|
|
2959
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3039
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
2960
3040
|
if @api_client.config.debugging
|
|
2961
3041
|
@api_client.config.logger.debug "API called: AccountingApi#create_payment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2962
3042
|
end
|
|
@@ -3032,7 +3112,7 @@ module XeroRuby
|
|
|
3032
3112
|
:return_type => return_type
|
|
3033
3113
|
)
|
|
3034
3114
|
|
|
3035
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3115
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3036
3116
|
if @api_client.config.debugging
|
|
3037
3117
|
@api_client.config.logger.debug "API called: AccountingApi#create_payment_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3038
3118
|
end
|
|
@@ -3043,7 +3123,7 @@ module XeroRuby
|
|
|
3043
3123
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3044
3124
|
# @param payments [Payments] Payments array with Payment object in body of request
|
|
3045
3125
|
# @param [Hash] opts the optional parameters
|
|
3046
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
3126
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
3047
3127
|
# @return [Payments]
|
|
3048
3128
|
def create_payments(xero_tenant_id, payments, opts = {})
|
|
3049
3129
|
data, _status_code, _headers = create_payments_with_http_info(xero_tenant_id, payments, opts)
|
|
@@ -3054,7 +3134,7 @@ module XeroRuby
|
|
|
3054
3134
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3055
3135
|
# @param payments [Payments] Payments array with Payment object in body of request
|
|
3056
3136
|
# @param [Hash] opts the optional parameters
|
|
3057
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
3137
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3058
3138
|
# @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
|
|
3059
3139
|
def create_payments_with_http_info(xero_tenant_id, payments, opts = {})
|
|
3060
3140
|
if @api_client.config.debugging
|
|
@@ -3111,7 +3191,7 @@ module XeroRuby
|
|
|
3111
3191
|
:return_type => return_type
|
|
3112
3192
|
)
|
|
3113
3193
|
|
|
3114
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3194
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3115
3195
|
if @api_client.config.debugging
|
|
3116
3196
|
@api_client.config.logger.debug "API called: AccountingApi#create_payments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3117
3197
|
end
|
|
@@ -3123,7 +3203,7 @@ module XeroRuby
|
|
|
3123
3203
|
# @param prepayment_id [String] Unique identifier for Prepayment
|
|
3124
3204
|
# @param allocations [Allocations] Allocations with an array of Allocation object in body of request
|
|
3125
3205
|
# @param [Hash] opts the optional parameters
|
|
3126
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
3206
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
3127
3207
|
# @return [Allocations]
|
|
3128
3208
|
def create_prepayment_allocations(xero_tenant_id, prepayment_id, allocations, opts = {})
|
|
3129
3209
|
data, _status_code, _headers = create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocations, opts)
|
|
@@ -3135,7 +3215,7 @@ module XeroRuby
|
|
|
3135
3215
|
# @param prepayment_id [String] Unique identifier for Prepayment
|
|
3136
3216
|
# @param allocations [Allocations] Allocations with an array of Allocation object in body of request
|
|
3137
3217
|
# @param [Hash] opts the optional parameters
|
|
3138
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
3218
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3139
3219
|
# @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
|
|
3140
3220
|
def create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocations, opts = {})
|
|
3141
3221
|
if @api_client.config.debugging
|
|
@@ -3196,7 +3276,7 @@ module XeroRuby
|
|
|
3196
3276
|
:return_type => return_type
|
|
3197
3277
|
)
|
|
3198
3278
|
|
|
3199
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3279
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3200
3280
|
if @api_client.config.debugging
|
|
3201
3281
|
@api_client.config.logger.debug "API called: AccountingApi#create_prepayment_allocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3202
3282
|
end
|
|
@@ -3278,13 +3358,101 @@ module XeroRuby
|
|
|
3278
3358
|
:return_type => return_type
|
|
3279
3359
|
)
|
|
3280
3360
|
|
|
3281
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3361
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3282
3362
|
if @api_client.config.debugging
|
|
3283
3363
|
@api_client.config.logger.debug "API called: AccountingApi#create_prepayment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3284
3364
|
end
|
|
3285
3365
|
return data, status_code, headers
|
|
3286
3366
|
end
|
|
3287
3367
|
|
|
3368
|
+
# Allows you to create Attachment on Purchase Order
|
|
3369
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3370
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Order object
|
|
3371
|
+
# @param file_name [String] Name of the attachment
|
|
3372
|
+
# @param body [String] Byte array of file in body of request
|
|
3373
|
+
# @param [Hash] opts the optional parameters
|
|
3374
|
+
# @return [Attachments]
|
|
3375
|
+
def create_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
|
|
3376
|
+
data, _status_code, _headers = create_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts)
|
|
3377
|
+
data
|
|
3378
|
+
end
|
|
3379
|
+
|
|
3380
|
+
# Allows you to create Attachment on Purchase Order
|
|
3381
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3382
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Order object
|
|
3383
|
+
# @param file_name [String] Name of the attachment
|
|
3384
|
+
# @param body [String] Byte array of file in body of request
|
|
3385
|
+
# @param [Hash] opts the optional parameters
|
|
3386
|
+
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
3387
|
+
def create_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
|
|
3388
|
+
if @api_client.config.debugging
|
|
3389
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.create_purchase_order_attachment_by_file_name ...'
|
|
3390
|
+
end
|
|
3391
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
3392
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
3393
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_purchase_order_attachment_by_file_name"
|
|
3394
|
+
end
|
|
3395
|
+
# verify the required parameter 'purchase_order_id' is set
|
|
3396
|
+
if @api_client.config.client_side_validation && purchase_order_id.nil?
|
|
3397
|
+
fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.create_purchase_order_attachment_by_file_name"
|
|
3398
|
+
end
|
|
3399
|
+
# verify the required parameter 'file_name' is set
|
|
3400
|
+
if @api_client.config.client_side_validation && file_name.nil?
|
|
3401
|
+
fail ArgumentError, "Missing the required parameter 'file_name' when calling AccountingApi.create_purchase_order_attachment_by_file_name"
|
|
3402
|
+
end
|
|
3403
|
+
# verify the required parameter 'body' is set
|
|
3404
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
3405
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_purchase_order_attachment_by_file_name"
|
|
3406
|
+
end
|
|
3407
|
+
# resource path
|
|
3408
|
+
local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
|
|
3409
|
+
|
|
3410
|
+
# camelize keys of incoming `where` opts
|
|
3411
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
3412
|
+
|
|
3413
|
+
# query parameters
|
|
3414
|
+
query_params = opts[:query_params] || {}
|
|
3415
|
+
|
|
3416
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
3417
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
3418
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
3419
|
+
|
|
3420
|
+
# header parameters
|
|
3421
|
+
header_params = opts[:header_params] || {}
|
|
3422
|
+
# HTTP header 'Accept' (if needed)
|
|
3423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
3424
|
+
# HTTP header 'Content-Type'
|
|
3425
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
3426
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3427
|
+
|
|
3428
|
+
# form parameters
|
|
3429
|
+
form_params = opts[:form_params] || {}
|
|
3430
|
+
|
|
3431
|
+
# http body (model)
|
|
3432
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
3433
|
+
|
|
3434
|
+
# return_type
|
|
3435
|
+
return_type = opts[:return_type] || 'Attachments'
|
|
3436
|
+
|
|
3437
|
+
# auth_names
|
|
3438
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
3439
|
+
|
|
3440
|
+
new_options = opts.merge(
|
|
3441
|
+
:header_params => header_params,
|
|
3442
|
+
:query_params => query_params,
|
|
3443
|
+
:form_params => form_params,
|
|
3444
|
+
:body => post_body,
|
|
3445
|
+
:auth_names => auth_names,
|
|
3446
|
+
:return_type => return_type
|
|
3447
|
+
)
|
|
3448
|
+
|
|
3449
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3450
|
+
if @api_client.config.debugging
|
|
3451
|
+
@api_client.config.logger.debug "API called: AccountingApi#create_purchase_order_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3452
|
+
end
|
|
3453
|
+
return data, status_code, headers
|
|
3454
|
+
end
|
|
3455
|
+
|
|
3288
3456
|
# Allows you to create HistoryRecord for purchase orders
|
|
3289
3457
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3290
3458
|
# @param purchase_order_id [String] Unique identifier for a PurchaseOrder
|
|
@@ -3360,7 +3528,7 @@ module XeroRuby
|
|
|
3360
3528
|
:return_type => return_type
|
|
3361
3529
|
)
|
|
3362
3530
|
|
|
3363
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3531
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3364
3532
|
if @api_client.config.debugging
|
|
3365
3533
|
@api_client.config.logger.debug "API called: AccountingApi#create_purchase_order_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3366
3534
|
end
|
|
@@ -3371,7 +3539,7 @@ module XeroRuby
|
|
|
3371
3539
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3372
3540
|
# @param purchase_orders [PurchaseOrders] PurchaseOrders with an array of PurchaseOrder object in body of request
|
|
3373
3541
|
# @param [Hash] opts the optional parameters
|
|
3374
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
3542
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
3375
3543
|
# @return [PurchaseOrders]
|
|
3376
3544
|
def create_purchase_orders(xero_tenant_id, purchase_orders, opts = {})
|
|
3377
3545
|
data, _status_code, _headers = create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts)
|
|
@@ -3382,7 +3550,7 @@ module XeroRuby
|
|
|
3382
3550
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3383
3551
|
# @param purchase_orders [PurchaseOrders] PurchaseOrders with an array of PurchaseOrder object in body of request
|
|
3384
3552
|
# @param [Hash] opts the optional parameters
|
|
3385
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
3553
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3386
3554
|
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
|
3387
3555
|
def create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts = {})
|
|
3388
3556
|
if @api_client.config.debugging
|
|
@@ -3439,7 +3607,7 @@ module XeroRuby
|
|
|
3439
3607
|
:return_type => return_type
|
|
3440
3608
|
)
|
|
3441
3609
|
|
|
3442
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3610
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3443
3611
|
if @api_client.config.debugging
|
|
3444
3612
|
@api_client.config.logger.debug "API called: AccountingApi#create_purchase_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3445
3613
|
end
|
|
@@ -3527,7 +3695,7 @@ module XeroRuby
|
|
|
3527
3695
|
:return_type => return_type
|
|
3528
3696
|
)
|
|
3529
3697
|
|
|
3530
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3698
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3531
3699
|
if @api_client.config.debugging
|
|
3532
3700
|
@api_client.config.logger.debug "API called: AccountingApi#create_quote_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3533
3701
|
end
|
|
@@ -3609,7 +3777,7 @@ module XeroRuby
|
|
|
3609
3777
|
:return_type => return_type
|
|
3610
3778
|
)
|
|
3611
3779
|
|
|
3612
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3780
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3613
3781
|
if @api_client.config.debugging
|
|
3614
3782
|
@api_client.config.logger.debug "API called: AccountingApi#create_quote_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3615
3783
|
end
|
|
@@ -3620,7 +3788,7 @@ module XeroRuby
|
|
|
3620
3788
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3621
3789
|
# @param quotes [Quotes] Quotes with an array of Quote object in body of request
|
|
3622
3790
|
# @param [Hash] opts the optional parameters
|
|
3623
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
3791
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
3624
3792
|
# @return [Quotes]
|
|
3625
3793
|
def create_quotes(xero_tenant_id, quotes, opts = {})
|
|
3626
3794
|
data, _status_code, _headers = create_quotes_with_http_info(xero_tenant_id, quotes, opts)
|
|
@@ -3631,7 +3799,7 @@ module XeroRuby
|
|
|
3631
3799
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3632
3800
|
# @param quotes [Quotes] Quotes with an array of Quote object in body of request
|
|
3633
3801
|
# @param [Hash] opts the optional parameters
|
|
3634
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
3802
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3635
3803
|
# @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
|
|
3636
3804
|
def create_quotes_with_http_info(xero_tenant_id, quotes, opts = {})
|
|
3637
3805
|
if @api_client.config.debugging
|
|
@@ -3688,7 +3856,7 @@ module XeroRuby
|
|
|
3688
3856
|
:return_type => return_type
|
|
3689
3857
|
)
|
|
3690
3858
|
|
|
3691
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3859
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3692
3860
|
if @api_client.config.debugging
|
|
3693
3861
|
@api_client.config.logger.debug "API called: AccountingApi#create_quotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3694
3862
|
end
|
|
@@ -3767,7 +3935,7 @@ module XeroRuby
|
|
|
3767
3935
|
:return_type => return_type
|
|
3768
3936
|
)
|
|
3769
3937
|
|
|
3770
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3938
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3771
3939
|
if @api_client.config.debugging
|
|
3772
3940
|
@api_client.config.logger.debug "API called: AccountingApi#create_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3773
3941
|
end
|
|
@@ -3855,7 +4023,7 @@ module XeroRuby
|
|
|
3855
4023
|
:return_type => return_type
|
|
3856
4024
|
)
|
|
3857
4025
|
|
|
3858
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
4026
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3859
4027
|
if @api_client.config.debugging
|
|
3860
4028
|
@api_client.config.logger.debug "API called: AccountingApi#create_receipt_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3861
4029
|
end
|
|
@@ -3937,7 +4105,7 @@ module XeroRuby
|
|
|
3937
4105
|
:return_type => return_type
|
|
3938
4106
|
)
|
|
3939
4107
|
|
|
3940
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
4108
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
3941
4109
|
if @api_client.config.debugging
|
|
3942
4110
|
@api_client.config.logger.debug "API called: AccountingApi#create_receipt_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3943
4111
|
end
|
|
@@ -4025,7 +4193,7 @@ module XeroRuby
|
|
|
4025
4193
|
:return_type => return_type
|
|
4026
4194
|
)
|
|
4027
4195
|
|
|
4028
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
4196
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
4029
4197
|
if @api_client.config.debugging
|
|
4030
4198
|
@api_client.config.logger.debug "API called: AccountingApi#create_repeating_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4031
4199
|
end
|
|
@@ -4107,7 +4275,7 @@ module XeroRuby
|
|
|
4107
4275
|
:return_type => return_type
|
|
4108
4276
|
)
|
|
4109
4277
|
|
|
4110
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
4278
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
4111
4279
|
if @api_client.config.debugging
|
|
4112
4280
|
@api_client.config.logger.debug "API called: AccountingApi#create_repeating_invoice_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4113
4281
|
end
|
|
@@ -4183,7 +4351,7 @@ module XeroRuby
|
|
|
4183
4351
|
:return_type => return_type
|
|
4184
4352
|
)
|
|
4185
4353
|
|
|
4186
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
4354
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
4187
4355
|
if @api_client.config.debugging
|
|
4188
4356
|
@api_client.config.logger.debug "API called: AccountingApi#create_tax_rates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4189
4357
|
end
|
|
@@ -4259,7 +4427,7 @@ module XeroRuby
|
|
|
4259
4427
|
:return_type => return_type
|
|
4260
4428
|
)
|
|
4261
4429
|
|
|
4262
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
4430
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
4263
4431
|
if @api_client.config.debugging
|
|
4264
4432
|
@api_client.config.logger.debug "API called: AccountingApi#create_tracking_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4265
4433
|
end
|
|
@@ -4341,7 +4509,7 @@ module XeroRuby
|
|
|
4341
4509
|
:return_type => return_type
|
|
4342
4510
|
)
|
|
4343
4511
|
|
|
4344
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
4512
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
|
|
4345
4513
|
if @api_client.config.debugging
|
|
4346
4514
|
@api_client.config.logger.debug "API called: AccountingApi#create_tracking_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4347
4515
|
end
|
|
@@ -4415,7 +4583,7 @@ module XeroRuby
|
|
|
4415
4583
|
:return_type => return_type
|
|
4416
4584
|
)
|
|
4417
4585
|
|
|
4418
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
4586
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
4419
4587
|
if @api_client.config.debugging
|
|
4420
4588
|
@api_client.config.logger.debug "API called: AccountingApi#delete_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4421
4589
|
end
|
|
@@ -4495,7 +4663,7 @@ module XeroRuby
|
|
|
4495
4663
|
:return_type => return_type
|
|
4496
4664
|
)
|
|
4497
4665
|
|
|
4498
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
4666
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
4499
4667
|
if @api_client.config.debugging
|
|
4500
4668
|
@api_client.config.logger.debug "API called: AccountingApi#delete_contact_group_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4501
4669
|
end
|
|
@@ -4567,7 +4735,7 @@ module XeroRuby
|
|
|
4567
4735
|
:return_type => return_type
|
|
4568
4736
|
)
|
|
4569
4737
|
|
|
4570
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
4738
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
4571
4739
|
if @api_client.config.debugging
|
|
4572
4740
|
@api_client.config.logger.debug "API called: AccountingApi#delete_contact_group_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4573
4741
|
end
|
|
@@ -4641,7 +4809,7 @@ module XeroRuby
|
|
|
4641
4809
|
:return_type => return_type
|
|
4642
4810
|
)
|
|
4643
4811
|
|
|
4644
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
4812
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
4645
4813
|
if @api_client.config.debugging
|
|
4646
4814
|
@api_client.config.logger.debug "API called: AccountingApi#delete_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4647
4815
|
end
|
|
@@ -4715,7 +4883,7 @@ module XeroRuby
|
|
|
4715
4883
|
:return_type => return_type
|
|
4716
4884
|
)
|
|
4717
4885
|
|
|
4718
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
4886
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
4719
4887
|
if @api_client.config.debugging
|
|
4720
4888
|
@api_client.config.logger.debug "API called: AccountingApi#delete_linked_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4721
4889
|
end
|
|
@@ -4797,7 +4965,7 @@ module XeroRuby
|
|
|
4797
4965
|
:return_type => return_type
|
|
4798
4966
|
)
|
|
4799
4967
|
|
|
4800
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4968
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
4801
4969
|
if @api_client.config.debugging
|
|
4802
4970
|
@api_client.config.logger.debug "API called: AccountingApi#delete_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4803
4971
|
end
|
|
@@ -4871,7 +5039,7 @@ module XeroRuby
|
|
|
4871
5039
|
:return_type => return_type
|
|
4872
5040
|
)
|
|
4873
5041
|
|
|
4874
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
5042
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
4875
5043
|
if @api_client.config.debugging
|
|
4876
5044
|
@api_client.config.logger.debug "API called: AccountingApi#delete_tracking_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4877
5045
|
end
|
|
@@ -4951,7 +5119,7 @@ module XeroRuby
|
|
|
4951
5119
|
:return_type => return_type
|
|
4952
5120
|
)
|
|
4953
5121
|
|
|
4954
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
5122
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
4955
5123
|
if @api_client.config.debugging
|
|
4956
5124
|
@api_client.config.logger.debug "API called: AccountingApi#delete_tracking_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4957
5125
|
end
|
|
@@ -5033,7 +5201,7 @@ module XeroRuby
|
|
|
5033
5201
|
:return_type => return_type
|
|
5034
5202
|
)
|
|
5035
5203
|
|
|
5036
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
5204
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
5037
5205
|
if @api_client.config.debugging
|
|
5038
5206
|
@api_client.config.logger.debug "API called: AccountingApi#email_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5039
5207
|
end
|
|
@@ -5107,7 +5275,7 @@ module XeroRuby
|
|
|
5107
5275
|
:return_type => return_type
|
|
5108
5276
|
)
|
|
5109
5277
|
|
|
5110
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5278
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5111
5279
|
if @api_client.config.debugging
|
|
5112
5280
|
@api_client.config.logger.debug "API called: AccountingApi#get_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5113
5281
|
end
|
|
@@ -5194,7 +5362,7 @@ module XeroRuby
|
|
|
5194
5362
|
:return_type => return_type
|
|
5195
5363
|
)
|
|
5196
5364
|
|
|
5197
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5365
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5198
5366
|
if @api_client.config.debugging
|
|
5199
5367
|
@api_client.config.logger.debug "API called: AccountingApi#get_account_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5200
5368
|
end
|
|
@@ -5281,7 +5449,7 @@ module XeroRuby
|
|
|
5281
5449
|
:return_type => return_type
|
|
5282
5450
|
)
|
|
5283
5451
|
|
|
5284
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5452
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5285
5453
|
if @api_client.config.debugging
|
|
5286
5454
|
@api_client.config.logger.debug "API called: AccountingApi#get_account_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5287
5455
|
end
|
|
@@ -5355,7 +5523,7 @@ module XeroRuby
|
|
|
5355
5523
|
:return_type => return_type
|
|
5356
5524
|
)
|
|
5357
5525
|
|
|
5358
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5526
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5359
5527
|
if @api_client.config.debugging
|
|
5360
5528
|
@api_client.config.logger.debug "API called: AccountingApi#get_account_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5361
5529
|
end
|
|
@@ -5432,7 +5600,7 @@ module XeroRuby
|
|
|
5432
5600
|
:return_type => return_type
|
|
5433
5601
|
)
|
|
5434
5602
|
|
|
5435
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5603
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5436
5604
|
if @api_client.config.debugging
|
|
5437
5605
|
@api_client.config.logger.debug "API called: AccountingApi#get_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5438
5606
|
end
|
|
@@ -5509,7 +5677,7 @@ module XeroRuby
|
|
|
5509
5677
|
:return_type => return_type
|
|
5510
5678
|
)
|
|
5511
5679
|
|
|
5512
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5680
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5513
5681
|
if @api_client.config.debugging
|
|
5514
5682
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5515
5683
|
end
|
|
@@ -5596,7 +5764,7 @@ module XeroRuby
|
|
|
5596
5764
|
:return_type => return_type
|
|
5597
5765
|
)
|
|
5598
5766
|
|
|
5599
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5767
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5600
5768
|
if @api_client.config.debugging
|
|
5601
5769
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transaction_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5602
5770
|
end
|
|
@@ -5683,7 +5851,7 @@ module XeroRuby
|
|
|
5683
5851
|
:return_type => return_type
|
|
5684
5852
|
)
|
|
5685
5853
|
|
|
5686
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5854
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5687
5855
|
if @api_client.config.debugging
|
|
5688
5856
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transaction_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5689
5857
|
end
|
|
@@ -5757,7 +5925,7 @@ module XeroRuby
|
|
|
5757
5925
|
:return_type => return_type
|
|
5758
5926
|
)
|
|
5759
5927
|
|
|
5760
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5928
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5761
5929
|
if @api_client.config.debugging
|
|
5762
5930
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transaction_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5763
5931
|
end
|
|
@@ -5840,7 +6008,7 @@ module XeroRuby
|
|
|
5840
6008
|
:return_type => return_type
|
|
5841
6009
|
)
|
|
5842
6010
|
|
|
5843
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6011
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5844
6012
|
if @api_client.config.debugging
|
|
5845
6013
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5846
6014
|
end
|
|
@@ -5914,7 +6082,7 @@ module XeroRuby
|
|
|
5914
6082
|
:return_type => return_type
|
|
5915
6083
|
)
|
|
5916
6084
|
|
|
5917
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6085
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5918
6086
|
if @api_client.config.debugging
|
|
5919
6087
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transactions_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5920
6088
|
end
|
|
@@ -5988,7 +6156,7 @@ module XeroRuby
|
|
|
5988
6156
|
:return_type => return_type
|
|
5989
6157
|
)
|
|
5990
6158
|
|
|
5991
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6159
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
5992
6160
|
if @api_client.config.debugging
|
|
5993
6161
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5994
6162
|
end
|
|
@@ -6075,7 +6243,7 @@ module XeroRuby
|
|
|
6075
6243
|
:return_type => return_type
|
|
6076
6244
|
)
|
|
6077
6245
|
|
|
6078
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6246
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6079
6247
|
if @api_client.config.debugging
|
|
6080
6248
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6081
6249
|
end
|
|
@@ -6162,7 +6330,7 @@ module XeroRuby
|
|
|
6162
6330
|
:return_type => return_type
|
|
6163
6331
|
)
|
|
6164
6332
|
|
|
6165
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6333
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6166
6334
|
if @api_client.config.debugging
|
|
6167
6335
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6168
6336
|
end
|
|
@@ -6236,7 +6404,7 @@ module XeroRuby
|
|
|
6236
6404
|
:return_type => return_type
|
|
6237
6405
|
)
|
|
6238
6406
|
|
|
6239
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6407
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6240
6408
|
if @api_client.config.debugging
|
|
6241
6409
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6242
6410
|
end
|
|
@@ -6310,7 +6478,7 @@ module XeroRuby
|
|
|
6310
6478
|
:return_type => return_type
|
|
6311
6479
|
)
|
|
6312
6480
|
|
|
6313
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6481
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6314
6482
|
if @api_client.config.debugging
|
|
6315
6483
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6316
6484
|
end
|
|
@@ -6387,7 +6555,7 @@ module XeroRuby
|
|
|
6387
6555
|
:return_type => return_type
|
|
6388
6556
|
)
|
|
6389
6557
|
|
|
6390
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6558
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6391
6559
|
if @api_client.config.debugging
|
|
6392
6560
|
@api_client.config.logger.debug "API called: AccountingApi#get_bank_transfers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6393
6561
|
end
|
|
@@ -6461,7 +6629,7 @@ module XeroRuby
|
|
|
6461
6629
|
:return_type => return_type
|
|
6462
6630
|
)
|
|
6463
6631
|
|
|
6464
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6632
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6465
6633
|
if @api_client.config.debugging
|
|
6466
6634
|
@api_client.config.logger.debug "API called: AccountingApi#get_batch_payment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6467
6635
|
end
|
|
@@ -6538,7 +6706,7 @@ module XeroRuby
|
|
|
6538
6706
|
:return_type => return_type
|
|
6539
6707
|
)
|
|
6540
6708
|
|
|
6541
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6709
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6542
6710
|
if @api_client.config.debugging
|
|
6543
6711
|
@api_client.config.logger.debug "API called: AccountingApi#get_batch_payments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6544
6712
|
end
|
|
@@ -6612,7 +6780,7 @@ module XeroRuby
|
|
|
6612
6780
|
:return_type => return_type
|
|
6613
6781
|
)
|
|
6614
6782
|
|
|
6615
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6783
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6616
6784
|
if @api_client.config.debugging
|
|
6617
6785
|
@api_client.config.logger.debug "API called: AccountingApi#get_branding_theme\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6618
6786
|
end
|
|
@@ -6686,7 +6854,7 @@ module XeroRuby
|
|
|
6686
6854
|
:return_type => return_type
|
|
6687
6855
|
)
|
|
6688
6856
|
|
|
6689
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6857
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6690
6858
|
if @api_client.config.debugging
|
|
6691
6859
|
@api_client.config.logger.debug "API called: AccountingApi#get_branding_theme_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6692
6860
|
end
|
|
@@ -6754,7 +6922,7 @@ module XeroRuby
|
|
|
6754
6922
|
:return_type => return_type
|
|
6755
6923
|
)
|
|
6756
6924
|
|
|
6757
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6925
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6758
6926
|
if @api_client.config.debugging
|
|
6759
6927
|
@api_client.config.logger.debug "API called: AccountingApi#get_branding_themes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6760
6928
|
end
|
|
@@ -6828,7 +6996,7 @@ module XeroRuby
|
|
|
6828
6996
|
:return_type => return_type
|
|
6829
6997
|
)
|
|
6830
6998
|
|
|
6831
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
6999
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6832
7000
|
if @api_client.config.debugging
|
|
6833
7001
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6834
7002
|
end
|
|
@@ -6915,7 +7083,7 @@ module XeroRuby
|
|
|
6915
7083
|
:return_type => return_type
|
|
6916
7084
|
)
|
|
6917
7085
|
|
|
6918
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7086
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
6919
7087
|
if @api_client.config.debugging
|
|
6920
7088
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6921
7089
|
end
|
|
@@ -7002,7 +7170,7 @@ module XeroRuby
|
|
|
7002
7170
|
:return_type => return_type
|
|
7003
7171
|
)
|
|
7004
7172
|
|
|
7005
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7173
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7006
7174
|
if @api_client.config.debugging
|
|
7007
7175
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7008
7176
|
end
|
|
@@ -7076,7 +7244,7 @@ module XeroRuby
|
|
|
7076
7244
|
:return_type => return_type
|
|
7077
7245
|
)
|
|
7078
7246
|
|
|
7079
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7247
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7080
7248
|
if @api_client.config.debugging
|
|
7081
7249
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7082
7250
|
end
|
|
@@ -7150,7 +7318,7 @@ module XeroRuby
|
|
|
7150
7318
|
:return_type => return_type
|
|
7151
7319
|
)
|
|
7152
7320
|
|
|
7153
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7321
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7154
7322
|
if @api_client.config.debugging
|
|
7155
7323
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact_by_contact_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7156
7324
|
end
|
|
@@ -7224,7 +7392,7 @@ module XeroRuby
|
|
|
7224
7392
|
:return_type => return_type
|
|
7225
7393
|
)
|
|
7226
7394
|
|
|
7227
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7395
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7228
7396
|
if @api_client.config.debugging
|
|
7229
7397
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact_cis_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7230
7398
|
end
|
|
@@ -7298,7 +7466,7 @@ module XeroRuby
|
|
|
7298
7466
|
:return_type => return_type
|
|
7299
7467
|
)
|
|
7300
7468
|
|
|
7301
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7469
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7302
7470
|
if @api_client.config.debugging
|
|
7303
7471
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7304
7472
|
end
|
|
@@ -7372,7 +7540,7 @@ module XeroRuby
|
|
|
7372
7540
|
:return_type => return_type
|
|
7373
7541
|
)
|
|
7374
7542
|
|
|
7375
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7543
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7376
7544
|
if @api_client.config.debugging
|
|
7377
7545
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7378
7546
|
end
|
|
@@ -7446,7 +7614,7 @@ module XeroRuby
|
|
|
7446
7614
|
:return_type => return_type
|
|
7447
7615
|
)
|
|
7448
7616
|
|
|
7449
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7617
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7450
7618
|
if @api_client.config.debugging
|
|
7451
7619
|
@api_client.config.logger.debug "API called: AccountingApi#get_contact_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7452
7620
|
end
|
|
@@ -7532,7 +7700,7 @@ module XeroRuby
|
|
|
7532
7700
|
:return_type => return_type
|
|
7533
7701
|
)
|
|
7534
7702
|
|
|
7535
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7703
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7536
7704
|
if @api_client.config.debugging
|
|
7537
7705
|
@api_client.config.logger.debug "API called: AccountingApi#get_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7538
7706
|
end
|
|
@@ -7609,7 +7777,7 @@ module XeroRuby
|
|
|
7609
7777
|
:return_type => return_type
|
|
7610
7778
|
)
|
|
7611
7779
|
|
|
7612
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7780
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7613
7781
|
if @api_client.config.debugging
|
|
7614
7782
|
@api_client.config.logger.debug "API called: AccountingApi#get_credit_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7615
7783
|
end
|
|
@@ -7683,7 +7851,7 @@ module XeroRuby
|
|
|
7683
7851
|
:return_type => return_type
|
|
7684
7852
|
)
|
|
7685
7853
|
|
|
7686
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7854
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7687
7855
|
if @api_client.config.debugging
|
|
7688
7856
|
@api_client.config.logger.debug "API called: AccountingApi#get_credit_note_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7689
7857
|
end
|
|
@@ -7770,7 +7938,7 @@ module XeroRuby
|
|
|
7770
7938
|
:return_type => return_type
|
|
7771
7939
|
)
|
|
7772
7940
|
|
|
7773
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
7941
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7774
7942
|
if @api_client.config.debugging
|
|
7775
7943
|
@api_client.config.logger.debug "API called: AccountingApi#get_credit_note_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7776
7944
|
end
|
|
@@ -7857,7 +8025,7 @@ module XeroRuby
|
|
|
7857
8025
|
:return_type => return_type
|
|
7858
8026
|
)
|
|
7859
8027
|
|
|
7860
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8028
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7861
8029
|
if @api_client.config.debugging
|
|
7862
8030
|
@api_client.config.logger.debug "API called: AccountingApi#get_credit_note_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7863
8031
|
end
|
|
@@ -7931,7 +8099,7 @@ module XeroRuby
|
|
|
7931
8099
|
:return_type => return_type
|
|
7932
8100
|
)
|
|
7933
8101
|
|
|
7934
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8102
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
7935
8103
|
if @api_client.config.debugging
|
|
7936
8104
|
@api_client.config.logger.debug "API called: AccountingApi#get_credit_note_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7937
8105
|
end
|
|
@@ -8005,7 +8173,7 @@ module XeroRuby
|
|
|
8005
8173
|
:return_type => return_type
|
|
8006
8174
|
)
|
|
8007
8175
|
|
|
8008
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8176
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8009
8177
|
if @api_client.config.debugging
|
|
8010
8178
|
@api_client.config.logger.debug "API called: AccountingApi#get_credit_note_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8011
8179
|
end
|
|
@@ -8088,7 +8256,7 @@ module XeroRuby
|
|
|
8088
8256
|
:return_type => return_type
|
|
8089
8257
|
)
|
|
8090
8258
|
|
|
8091
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8259
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8092
8260
|
if @api_client.config.debugging
|
|
8093
8261
|
@api_client.config.logger.debug "API called: AccountingApi#get_credit_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8094
8262
|
end
|
|
@@ -8162,7 +8330,7 @@ module XeroRuby
|
|
|
8162
8330
|
:return_type => return_type
|
|
8163
8331
|
)
|
|
8164
8332
|
|
|
8165
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8333
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8166
8334
|
if @api_client.config.debugging
|
|
8167
8335
|
@api_client.config.logger.debug "API called: AccountingApi#get_currencies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8168
8336
|
end
|
|
@@ -8236,7 +8404,7 @@ module XeroRuby
|
|
|
8236
8404
|
:return_type => return_type
|
|
8237
8405
|
)
|
|
8238
8406
|
|
|
8239
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8407
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8240
8408
|
if @api_client.config.debugging
|
|
8241
8409
|
@api_client.config.logger.debug "API called: AccountingApi#get_employee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8242
8410
|
end
|
|
@@ -8313,7 +8481,7 @@ module XeroRuby
|
|
|
8313
8481
|
:return_type => return_type
|
|
8314
8482
|
)
|
|
8315
8483
|
|
|
8316
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8484
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8317
8485
|
if @api_client.config.debugging
|
|
8318
8486
|
@api_client.config.logger.debug "API called: AccountingApi#get_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8319
8487
|
end
|
|
@@ -8387,7 +8555,7 @@ module XeroRuby
|
|
|
8387
8555
|
:return_type => return_type
|
|
8388
8556
|
)
|
|
8389
8557
|
|
|
8390
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8558
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8391
8559
|
if @api_client.config.debugging
|
|
8392
8560
|
@api_client.config.logger.debug "API called: AccountingApi#get_expense_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8393
8561
|
end
|
|
@@ -8461,7 +8629,7 @@ module XeroRuby
|
|
|
8461
8629
|
:return_type => return_type
|
|
8462
8630
|
)
|
|
8463
8631
|
|
|
8464
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8632
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8465
8633
|
if @api_client.config.debugging
|
|
8466
8634
|
@api_client.config.logger.debug "API called: AccountingApi#get_expense_claim_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8467
8635
|
end
|
|
@@ -8538,7 +8706,7 @@ module XeroRuby
|
|
|
8538
8706
|
:return_type => return_type
|
|
8539
8707
|
)
|
|
8540
8708
|
|
|
8541
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8709
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8542
8710
|
if @api_client.config.debugging
|
|
8543
8711
|
@api_client.config.logger.debug "API called: AccountingApi#get_expense_claims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8544
8712
|
end
|
|
@@ -8615,7 +8783,7 @@ module XeroRuby
|
|
|
8615
8783
|
:return_type => return_type
|
|
8616
8784
|
)
|
|
8617
8785
|
|
|
8618
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8786
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8619
8787
|
if @api_client.config.debugging
|
|
8620
8788
|
@api_client.config.logger.debug "API called: AccountingApi#get_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8621
8789
|
end
|
|
@@ -8689,7 +8857,7 @@ module XeroRuby
|
|
|
8689
8857
|
:return_type => return_type
|
|
8690
8858
|
)
|
|
8691
8859
|
|
|
8692
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8860
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8693
8861
|
if @api_client.config.debugging
|
|
8694
8862
|
@api_client.config.logger.debug "API called: AccountingApi#get_invoice_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8695
8863
|
end
|
|
@@ -8776,7 +8944,7 @@ module XeroRuby
|
|
|
8776
8944
|
:return_type => return_type
|
|
8777
8945
|
)
|
|
8778
8946
|
|
|
8779
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
8947
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8780
8948
|
if @api_client.config.debugging
|
|
8781
8949
|
@api_client.config.logger.debug "API called: AccountingApi#get_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8782
8950
|
end
|
|
@@ -8863,7 +9031,7 @@ module XeroRuby
|
|
|
8863
9031
|
:return_type => return_type
|
|
8864
9032
|
)
|
|
8865
9033
|
|
|
8866
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9034
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8867
9035
|
if @api_client.config.debugging
|
|
8868
9036
|
@api_client.config.logger.debug "API called: AccountingApi#get_invoice_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8869
9037
|
end
|
|
@@ -8937,7 +9105,7 @@ module XeroRuby
|
|
|
8937
9105
|
:return_type => return_type
|
|
8938
9106
|
)
|
|
8939
9107
|
|
|
8940
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9108
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
8941
9109
|
if @api_client.config.debugging
|
|
8942
9110
|
@api_client.config.logger.debug "API called: AccountingApi#get_invoice_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8943
9111
|
end
|
|
@@ -9011,7 +9179,7 @@ module XeroRuby
|
|
|
9011
9179
|
:return_type => return_type
|
|
9012
9180
|
)
|
|
9013
9181
|
|
|
9014
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9182
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9015
9183
|
if @api_client.config.debugging
|
|
9016
9184
|
@api_client.config.logger.debug "API called: AccountingApi#get_invoice_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9017
9185
|
end
|
|
@@ -9079,7 +9247,7 @@ module XeroRuby
|
|
|
9079
9247
|
:return_type => return_type
|
|
9080
9248
|
)
|
|
9081
9249
|
|
|
9082
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9250
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9083
9251
|
if @api_client.config.debugging
|
|
9084
9252
|
@api_client.config.logger.debug "API called: AccountingApi#get_invoice_reminders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9085
9253
|
end
|
|
@@ -9180,7 +9348,7 @@ module XeroRuby
|
|
|
9180
9348
|
:return_type => return_type
|
|
9181
9349
|
)
|
|
9182
9350
|
|
|
9183
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9351
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9184
9352
|
if @api_client.config.debugging
|
|
9185
9353
|
@api_client.config.logger.debug "API called: AccountingApi#get_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9186
9354
|
end
|
|
@@ -9257,7 +9425,7 @@ module XeroRuby
|
|
|
9257
9425
|
:return_type => return_type
|
|
9258
9426
|
)
|
|
9259
9427
|
|
|
9260
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9428
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9261
9429
|
if @api_client.config.debugging
|
|
9262
9430
|
@api_client.config.logger.debug "API called: AccountingApi#get_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9263
9431
|
end
|
|
@@ -9331,7 +9499,7 @@ module XeroRuby
|
|
|
9331
9499
|
:return_type => return_type
|
|
9332
9500
|
)
|
|
9333
9501
|
|
|
9334
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9502
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9335
9503
|
if @api_client.config.debugging
|
|
9336
9504
|
@api_client.config.logger.debug "API called: AccountingApi#get_item_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9337
9505
|
end
|
|
@@ -9411,7 +9579,7 @@ module XeroRuby
|
|
|
9411
9579
|
:return_type => return_type
|
|
9412
9580
|
)
|
|
9413
9581
|
|
|
9414
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9582
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9415
9583
|
if @api_client.config.debugging
|
|
9416
9584
|
@api_client.config.logger.debug "API called: AccountingApi#get_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9417
9585
|
end
|
|
@@ -9485,7 +9653,7 @@ module XeroRuby
|
|
|
9485
9653
|
:return_type => return_type
|
|
9486
9654
|
)
|
|
9487
9655
|
|
|
9488
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9656
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9489
9657
|
if @api_client.config.debugging
|
|
9490
9658
|
@api_client.config.logger.debug "API called: AccountingApi#get_journal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9491
9659
|
end
|
|
@@ -9562,7 +9730,7 @@ module XeroRuby
|
|
|
9562
9730
|
:return_type => return_type
|
|
9563
9731
|
)
|
|
9564
9732
|
|
|
9565
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9733
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9566
9734
|
if @api_client.config.debugging
|
|
9567
9735
|
@api_client.config.logger.debug "API called: AccountingApi#get_journals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9568
9736
|
end
|
|
@@ -9636,7 +9804,7 @@ module XeroRuby
|
|
|
9636
9804
|
:return_type => return_type
|
|
9637
9805
|
)
|
|
9638
9806
|
|
|
9639
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9807
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9640
9808
|
if @api_client.config.debugging
|
|
9641
9809
|
@api_client.config.logger.debug "API called: AccountingApi#get_linked_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9642
9810
|
end
|
|
@@ -9722,7 +9890,7 @@ module XeroRuby
|
|
|
9722
9890
|
:return_type => return_type
|
|
9723
9891
|
)
|
|
9724
9892
|
|
|
9725
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9893
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9726
9894
|
if @api_client.config.debugging
|
|
9727
9895
|
@api_client.config.logger.debug "API called: AccountingApi#get_linked_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9728
9896
|
end
|
|
@@ -9796,7 +9964,7 @@ module XeroRuby
|
|
|
9796
9964
|
:return_type => return_type
|
|
9797
9965
|
)
|
|
9798
9966
|
|
|
9799
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
9967
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9800
9968
|
if @api_client.config.debugging
|
|
9801
9969
|
@api_client.config.logger.debug "API called: AccountingApi#get_manual_journal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9802
9970
|
end
|
|
@@ -9883,7 +10051,7 @@ module XeroRuby
|
|
|
9883
10051
|
:return_type => return_type
|
|
9884
10052
|
)
|
|
9885
10053
|
|
|
9886
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10054
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9887
10055
|
if @api_client.config.debugging
|
|
9888
10056
|
@api_client.config.logger.debug "API called: AccountingApi#get_manual_journal_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9889
10057
|
end
|
|
@@ -9970,7 +10138,7 @@ module XeroRuby
|
|
|
9970
10138
|
:return_type => return_type
|
|
9971
10139
|
)
|
|
9972
10140
|
|
|
9973
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10141
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
9974
10142
|
if @api_client.config.debugging
|
|
9975
10143
|
@api_client.config.logger.debug "API called: AccountingApi#get_manual_journal_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9976
10144
|
end
|
|
@@ -10044,7 +10212,7 @@ module XeroRuby
|
|
|
10044
10212
|
:return_type => return_type
|
|
10045
10213
|
)
|
|
10046
10214
|
|
|
10047
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10215
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10048
10216
|
if @api_client.config.debugging
|
|
10049
10217
|
@api_client.config.logger.debug "API called: AccountingApi#get_manual_journal_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10050
10218
|
end
|
|
@@ -10124,42 +10292,42 @@ module XeroRuby
|
|
|
10124
10292
|
:return_type => return_type
|
|
10125
10293
|
)
|
|
10126
10294
|
|
|
10127
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10295
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10128
10296
|
if @api_client.config.debugging
|
|
10129
10297
|
@api_client.config.logger.debug "API called: AccountingApi#get_manual_journals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10130
10298
|
end
|
|
10131
10299
|
return data, status_code, headers
|
|
10132
10300
|
end
|
|
10133
10301
|
|
|
10134
|
-
# Allows you to retrieve
|
|
10302
|
+
# Allows you to retrieve history from a manual journal
|
|
10135
10303
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10136
|
-
# @param
|
|
10304
|
+
# @param manual_journal_id [String] Xero generated unique identifier for a manual journal
|
|
10137
10305
|
# @param [Hash] opts the optional parameters
|
|
10138
|
-
# @return [
|
|
10139
|
-
def
|
|
10140
|
-
data, _status_code, _headers =
|
|
10306
|
+
# @return [HistoryRecords]
|
|
10307
|
+
def get_manual_journals_history(xero_tenant_id, manual_journal_id, opts = {})
|
|
10308
|
+
data, _status_code, _headers = get_manual_journals_history_with_http_info(xero_tenant_id, manual_journal_id, opts)
|
|
10141
10309
|
data
|
|
10142
10310
|
end
|
|
10143
10311
|
|
|
10144
|
-
# Allows you to retrieve
|
|
10312
|
+
# Allows you to retrieve history from a manual journal
|
|
10145
10313
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10146
|
-
# @param
|
|
10314
|
+
# @param manual_journal_id [String] Xero generated unique identifier for a manual journal
|
|
10147
10315
|
# @param [Hash] opts the optional parameters
|
|
10148
|
-
# @return [Array<(
|
|
10149
|
-
def
|
|
10316
|
+
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
10317
|
+
def get_manual_journals_history_with_http_info(xero_tenant_id, manual_journal_id, opts = {})
|
|
10150
10318
|
if @api_client.config.debugging
|
|
10151
|
-
@api_client.config.logger.debug 'Calling API: AccountingApi.
|
|
10319
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_manual_journals_history ...'
|
|
10152
10320
|
end
|
|
10153
10321
|
# verify the required parameter 'xero_tenant_id' is set
|
|
10154
10322
|
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
10155
|
-
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.
|
|
10323
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_manual_journals_history"
|
|
10156
10324
|
end
|
|
10157
|
-
# verify the required parameter '
|
|
10158
|
-
if @api_client.config.client_side_validation &&
|
|
10159
|
-
fail ArgumentError, "Missing the required parameter '
|
|
10325
|
+
# verify the required parameter 'manual_journal_id' is set
|
|
10326
|
+
if @api_client.config.client_side_validation && manual_journal_id.nil?
|
|
10327
|
+
fail ArgumentError, "Missing the required parameter 'manual_journal_id' when calling AccountingApi.get_manual_journals_history"
|
|
10160
10328
|
end
|
|
10161
10329
|
# resource path
|
|
10162
|
-
local_var_path = '/
|
|
10330
|
+
local_var_path = '/ManualJournals/{ManualJournalID}/History'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
|
|
10163
10331
|
|
|
10164
10332
|
# camelize keys of incoming `where` opts
|
|
10165
10333
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -10184,7 +10352,7 @@ module XeroRuby
|
|
|
10184
10352
|
post_body = opts[:body]
|
|
10185
10353
|
|
|
10186
10354
|
# return_type
|
|
10187
|
-
return_type = opts[:return_type] || '
|
|
10355
|
+
return_type = opts[:return_type] || 'HistoryRecords'
|
|
10188
10356
|
|
|
10189
10357
|
# auth_names
|
|
10190
10358
|
auth_names = opts[:auth_names] || ['OAuth2']
|
|
@@ -10198,42 +10366,42 @@ module XeroRuby
|
|
|
10198
10366
|
:return_type => return_type
|
|
10199
10367
|
)
|
|
10200
10368
|
|
|
10201
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10369
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10202
10370
|
if @api_client.config.debugging
|
|
10203
|
-
@api_client.config.logger.debug "API called: AccountingApi#
|
|
10371
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_manual_journals_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10204
10372
|
end
|
|
10205
10373
|
return data, status_code, headers
|
|
10206
10374
|
end
|
|
10207
10375
|
|
|
10208
|
-
# Allows you
|
|
10376
|
+
# Allows you to retrieve a URL to an online invoice
|
|
10209
10377
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10210
|
-
# @param
|
|
10378
|
+
# @param invoice_id [String] Unique identifier for an Invoice
|
|
10211
10379
|
# @param [Hash] opts the optional parameters
|
|
10212
|
-
# @return [
|
|
10213
|
-
def
|
|
10214
|
-
data, _status_code, _headers =
|
|
10380
|
+
# @return [OnlineInvoices]
|
|
10381
|
+
def get_online_invoice(xero_tenant_id, invoice_id, opts = {})
|
|
10382
|
+
data, _status_code, _headers = get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts)
|
|
10215
10383
|
data
|
|
10216
10384
|
end
|
|
10217
10385
|
|
|
10218
|
-
# Allows you
|
|
10386
|
+
# Allows you to retrieve a URL to an online invoice
|
|
10219
10387
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10220
|
-
# @param
|
|
10388
|
+
# @param invoice_id [String] Unique identifier for an Invoice
|
|
10221
10389
|
# @param [Hash] opts the optional parameters
|
|
10222
|
-
# @return [Array<(
|
|
10223
|
-
def
|
|
10390
|
+
# @return [Array<(OnlineInvoices, Integer, Hash)>] OnlineInvoices data, response status code and response headers
|
|
10391
|
+
def get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {})
|
|
10224
10392
|
if @api_client.config.debugging
|
|
10225
|
-
@api_client.config.logger.debug 'Calling API: AccountingApi.
|
|
10393
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_online_invoice ...'
|
|
10226
10394
|
end
|
|
10227
10395
|
# verify the required parameter 'xero_tenant_id' is set
|
|
10228
10396
|
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
10229
|
-
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.
|
|
10397
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_online_invoice"
|
|
10230
10398
|
end
|
|
10231
|
-
# verify the required parameter '
|
|
10232
|
-
if @api_client.config.client_side_validation &&
|
|
10233
|
-
fail ArgumentError, "Missing the required parameter '
|
|
10399
|
+
# verify the required parameter 'invoice_id' is set
|
|
10400
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
10401
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_online_invoice"
|
|
10234
10402
|
end
|
|
10235
10403
|
# resource path
|
|
10236
|
-
local_var_path = '/
|
|
10404
|
+
local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
|
|
10237
10405
|
|
|
10238
10406
|
# camelize keys of incoming `where` opts
|
|
10239
10407
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -10258,7 +10426,7 @@ module XeroRuby
|
|
|
10258
10426
|
post_body = opts[:body]
|
|
10259
10427
|
|
|
10260
10428
|
# return_type
|
|
10261
|
-
return_type = opts[:return_type] || '
|
|
10429
|
+
return_type = opts[:return_type] || 'OnlineInvoices'
|
|
10262
10430
|
|
|
10263
10431
|
# auth_names
|
|
10264
10432
|
auth_names = opts[:auth_names] || ['OAuth2']
|
|
@@ -10272,36 +10440,36 @@ module XeroRuby
|
|
|
10272
10440
|
:return_type => return_type
|
|
10273
10441
|
)
|
|
10274
10442
|
|
|
10275
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10443
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10276
10444
|
if @api_client.config.debugging
|
|
10277
|
-
@api_client.config.logger.debug "API called: AccountingApi#
|
|
10445
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_online_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10278
10446
|
end
|
|
10279
10447
|
return data, status_code, headers
|
|
10280
10448
|
end
|
|
10281
10449
|
|
|
10282
|
-
#
|
|
10450
|
+
# Retrieve a list of the key actions your app has permission to perform in the connected organisation.
|
|
10283
10451
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10284
10452
|
# @param [Hash] opts the optional parameters
|
|
10285
|
-
# @return [
|
|
10286
|
-
def
|
|
10287
|
-
data, _status_code, _headers =
|
|
10453
|
+
# @return [Actions]
|
|
10454
|
+
def get_organisation_actions(xero_tenant_id, opts = {})
|
|
10455
|
+
data, _status_code, _headers = get_organisation_actions_with_http_info(xero_tenant_id, opts)
|
|
10288
10456
|
data
|
|
10289
10457
|
end
|
|
10290
10458
|
|
|
10291
|
-
#
|
|
10459
|
+
# Retrieve a list of the key actions your app has permission to perform in the connected organisation.
|
|
10292
10460
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10293
10461
|
# @param [Hash] opts the optional parameters
|
|
10294
|
-
# @return [Array<(
|
|
10295
|
-
def
|
|
10462
|
+
# @return [Array<(Actions, Integer, Hash)>] Actions data, response status code and response headers
|
|
10463
|
+
def get_organisation_actions_with_http_info(xero_tenant_id, opts = {})
|
|
10296
10464
|
if @api_client.config.debugging
|
|
10297
|
-
@api_client.config.logger.debug 'Calling API: AccountingApi.
|
|
10465
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_organisation_actions ...'
|
|
10298
10466
|
end
|
|
10299
10467
|
# verify the required parameter 'xero_tenant_id' is set
|
|
10300
10468
|
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
10301
|
-
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.
|
|
10469
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_organisation_actions"
|
|
10302
10470
|
end
|
|
10303
10471
|
# resource path
|
|
10304
|
-
local_var_path = '/Organisation'
|
|
10472
|
+
local_var_path = '/Organisation/Actions'
|
|
10305
10473
|
|
|
10306
10474
|
# camelize keys of incoming `where` opts
|
|
10307
10475
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -10326,7 +10494,7 @@ module XeroRuby
|
|
|
10326
10494
|
post_body = opts[:body]
|
|
10327
10495
|
|
|
10328
10496
|
# return_type
|
|
10329
|
-
return_type = opts[:return_type] || '
|
|
10497
|
+
return_type = opts[:return_type] || 'Actions'
|
|
10330
10498
|
|
|
10331
10499
|
# auth_names
|
|
10332
10500
|
auth_names = opts[:auth_names] || ['OAuth2']
|
|
@@ -10340,42 +10508,42 @@ module XeroRuby
|
|
|
10340
10508
|
:return_type => return_type
|
|
10341
10509
|
)
|
|
10342
10510
|
|
|
10343
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10511
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10344
10512
|
if @api_client.config.debugging
|
|
10345
|
-
@api_client.config.logger.debug "API called: AccountingApi#
|
|
10513
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_organisation_actions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10346
10514
|
end
|
|
10347
10515
|
return data, status_code, headers
|
|
10348
10516
|
end
|
|
10349
10517
|
|
|
10350
|
-
# Allows you
|
|
10518
|
+
# Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
|
|
10351
10519
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10352
|
-
# @param
|
|
10520
|
+
# @param organisation_id [String] The unique Xero identifier for an organisation
|
|
10353
10521
|
# @param [Hash] opts the optional parameters
|
|
10354
|
-
# @return [
|
|
10355
|
-
def
|
|
10356
|
-
data, _status_code, _headers =
|
|
10522
|
+
# @return [CISOrgSetting]
|
|
10523
|
+
def get_organisation_cis_settings(xero_tenant_id, organisation_id, opts = {})
|
|
10524
|
+
data, _status_code, _headers = get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id, opts)
|
|
10357
10525
|
data
|
|
10358
10526
|
end
|
|
10359
10527
|
|
|
10360
|
-
# Allows you
|
|
10528
|
+
# Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
|
|
10361
10529
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10362
|
-
# @param
|
|
10530
|
+
# @param organisation_id [String] The unique Xero identifier for an organisation
|
|
10363
10531
|
# @param [Hash] opts the optional parameters
|
|
10364
|
-
# @return [Array<(
|
|
10365
|
-
def
|
|
10532
|
+
# @return [Array<(CISOrgSetting, Integer, Hash)>] CISOrgSetting data, response status code and response headers
|
|
10533
|
+
def get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id, opts = {})
|
|
10366
10534
|
if @api_client.config.debugging
|
|
10367
|
-
@api_client.config.logger.debug 'Calling API: AccountingApi.
|
|
10535
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_organisation_cis_settings ...'
|
|
10368
10536
|
end
|
|
10369
10537
|
# verify the required parameter 'xero_tenant_id' is set
|
|
10370
10538
|
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
10371
|
-
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.
|
|
10539
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_organisation_cis_settings"
|
|
10372
10540
|
end
|
|
10373
|
-
# verify the required parameter '
|
|
10374
|
-
if @api_client.config.client_side_validation &&
|
|
10375
|
-
fail ArgumentError, "Missing the required parameter '
|
|
10541
|
+
# verify the required parameter 'organisation_id' is set
|
|
10542
|
+
if @api_client.config.client_side_validation && organisation_id.nil?
|
|
10543
|
+
fail ArgumentError, "Missing the required parameter 'organisation_id' when calling AccountingApi.get_organisation_cis_settings"
|
|
10376
10544
|
end
|
|
10377
10545
|
# resource path
|
|
10378
|
-
local_var_path = '/
|
|
10546
|
+
local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', organisation_id.to_s)
|
|
10379
10547
|
|
|
10380
10548
|
# camelize keys of incoming `where` opts
|
|
10381
10549
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -10400,7 +10568,7 @@ module XeroRuby
|
|
|
10400
10568
|
post_body = opts[:body]
|
|
10401
10569
|
|
|
10402
10570
|
# return_type
|
|
10403
|
-
return_type = opts[:return_type] || '
|
|
10571
|
+
return_type = opts[:return_type] || 'CISOrgSetting'
|
|
10404
10572
|
|
|
10405
10573
|
# auth_names
|
|
10406
10574
|
auth_names = opts[:auth_names] || ['OAuth2']
|
|
@@ -10414,26 +10582,168 @@ module XeroRuby
|
|
|
10414
10582
|
:return_type => return_type
|
|
10415
10583
|
)
|
|
10416
10584
|
|
|
10417
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10585
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10418
10586
|
if @api_client.config.debugging
|
|
10419
|
-
@api_client.config.logger.debug "API called: AccountingApi#
|
|
10587
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_organisation_cis_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10420
10588
|
end
|
|
10421
10589
|
return data, status_code, headers
|
|
10422
10590
|
end
|
|
10423
10591
|
|
|
10424
|
-
# Allows you to retrieve
|
|
10592
|
+
# Allows you to retrieve Organisation details
|
|
10425
10593
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10426
|
-
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
10427
10594
|
# @param [Hash] opts the optional parameters
|
|
10428
|
-
# @return [
|
|
10429
|
-
def
|
|
10430
|
-
data, _status_code, _headers =
|
|
10595
|
+
# @return [Organisations]
|
|
10596
|
+
def get_organisations(xero_tenant_id, opts = {})
|
|
10597
|
+
data, _status_code, _headers = get_organisations_with_http_info(xero_tenant_id, opts)
|
|
10431
10598
|
data
|
|
10432
10599
|
end
|
|
10433
10600
|
|
|
10434
|
-
# Allows you to retrieve
|
|
10601
|
+
# Allows you to retrieve Organisation details
|
|
10435
10602
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10436
|
-
# @param
|
|
10603
|
+
# @param [Hash] opts the optional parameters
|
|
10604
|
+
# @return [Array<(Organisations, Integer, Hash)>] Organisations data, response status code and response headers
|
|
10605
|
+
def get_organisations_with_http_info(xero_tenant_id, opts = {})
|
|
10606
|
+
if @api_client.config.debugging
|
|
10607
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_organisations ...'
|
|
10608
|
+
end
|
|
10609
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
10610
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
10611
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_organisations"
|
|
10612
|
+
end
|
|
10613
|
+
# resource path
|
|
10614
|
+
local_var_path = '/Organisation'
|
|
10615
|
+
|
|
10616
|
+
# camelize keys of incoming `where` opts
|
|
10617
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
10618
|
+
|
|
10619
|
+
# query parameters
|
|
10620
|
+
query_params = opts[:query_params] || {}
|
|
10621
|
+
|
|
10622
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
10623
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
10624
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
10625
|
+
|
|
10626
|
+
# header parameters
|
|
10627
|
+
header_params = opts[:header_params] || {}
|
|
10628
|
+
# HTTP header 'Accept' (if needed)
|
|
10629
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10630
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
10631
|
+
|
|
10632
|
+
# form parameters
|
|
10633
|
+
form_params = opts[:form_params] || {}
|
|
10634
|
+
|
|
10635
|
+
# http body (model)
|
|
10636
|
+
post_body = opts[:body]
|
|
10637
|
+
|
|
10638
|
+
# return_type
|
|
10639
|
+
return_type = opts[:return_type] || 'Organisations'
|
|
10640
|
+
|
|
10641
|
+
# auth_names
|
|
10642
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
10643
|
+
|
|
10644
|
+
new_options = opts.merge(
|
|
10645
|
+
:header_params => header_params,
|
|
10646
|
+
:query_params => query_params,
|
|
10647
|
+
:form_params => form_params,
|
|
10648
|
+
:body => post_body,
|
|
10649
|
+
:auth_names => auth_names,
|
|
10650
|
+
:return_type => return_type
|
|
10651
|
+
)
|
|
10652
|
+
|
|
10653
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10654
|
+
if @api_client.config.debugging
|
|
10655
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_organisations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10656
|
+
end
|
|
10657
|
+
return data, status_code, headers
|
|
10658
|
+
end
|
|
10659
|
+
|
|
10660
|
+
# Allows you to retrieve a specified overpayments
|
|
10661
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10662
|
+
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
10663
|
+
# @param [Hash] opts the optional parameters
|
|
10664
|
+
# @return [Overpayments]
|
|
10665
|
+
def get_overpayment(xero_tenant_id, overpayment_id, opts = {})
|
|
10666
|
+
data, _status_code, _headers = get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts)
|
|
10667
|
+
data
|
|
10668
|
+
end
|
|
10669
|
+
|
|
10670
|
+
# Allows you to retrieve a specified overpayments
|
|
10671
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10672
|
+
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
10673
|
+
# @param [Hash] opts the optional parameters
|
|
10674
|
+
# @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
|
|
10675
|
+
def get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts = {})
|
|
10676
|
+
if @api_client.config.debugging
|
|
10677
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_overpayment ...'
|
|
10678
|
+
end
|
|
10679
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
10680
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
10681
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_overpayment"
|
|
10682
|
+
end
|
|
10683
|
+
# verify the required parameter 'overpayment_id' is set
|
|
10684
|
+
if @api_client.config.client_side_validation && overpayment_id.nil?
|
|
10685
|
+
fail ArgumentError, "Missing the required parameter 'overpayment_id' when calling AccountingApi.get_overpayment"
|
|
10686
|
+
end
|
|
10687
|
+
# resource path
|
|
10688
|
+
local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
|
|
10689
|
+
|
|
10690
|
+
# camelize keys of incoming `where` opts
|
|
10691
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
10692
|
+
|
|
10693
|
+
# query parameters
|
|
10694
|
+
query_params = opts[:query_params] || {}
|
|
10695
|
+
|
|
10696
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
10697
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
10698
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
10699
|
+
|
|
10700
|
+
# header parameters
|
|
10701
|
+
header_params = opts[:header_params] || {}
|
|
10702
|
+
# HTTP header 'Accept' (if needed)
|
|
10703
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10704
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
10705
|
+
|
|
10706
|
+
# form parameters
|
|
10707
|
+
form_params = opts[:form_params] || {}
|
|
10708
|
+
|
|
10709
|
+
# http body (model)
|
|
10710
|
+
post_body = opts[:body]
|
|
10711
|
+
|
|
10712
|
+
# return_type
|
|
10713
|
+
return_type = opts[:return_type] || 'Overpayments'
|
|
10714
|
+
|
|
10715
|
+
# auth_names
|
|
10716
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
10717
|
+
|
|
10718
|
+
new_options = opts.merge(
|
|
10719
|
+
:header_params => header_params,
|
|
10720
|
+
:query_params => query_params,
|
|
10721
|
+
:form_params => form_params,
|
|
10722
|
+
:body => post_body,
|
|
10723
|
+
:auth_names => auth_names,
|
|
10724
|
+
:return_type => return_type
|
|
10725
|
+
)
|
|
10726
|
+
|
|
10727
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10728
|
+
if @api_client.config.debugging
|
|
10729
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_overpayment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10730
|
+
end
|
|
10731
|
+
return data, status_code, headers
|
|
10732
|
+
end
|
|
10733
|
+
|
|
10734
|
+
# Allows you to retrieve a history records of an Overpayment
|
|
10735
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10736
|
+
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
10737
|
+
# @param [Hash] opts the optional parameters
|
|
10738
|
+
# @return [HistoryRecords]
|
|
10739
|
+
def get_overpayment_history(xero_tenant_id, overpayment_id, opts = {})
|
|
10740
|
+
data, _status_code, _headers = get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, opts)
|
|
10741
|
+
data
|
|
10742
|
+
end
|
|
10743
|
+
|
|
10744
|
+
# Allows you to retrieve a history records of an Overpayment
|
|
10745
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
10746
|
+
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
10437
10747
|
# @param [Hash] opts the optional parameters
|
|
10438
10748
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
10439
10749
|
def get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, opts = {})
|
|
@@ -10488,7 +10798,7 @@ module XeroRuby
|
|
|
10488
10798
|
:return_type => return_type
|
|
10489
10799
|
)
|
|
10490
10800
|
|
|
10491
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10801
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10492
10802
|
if @api_client.config.debugging
|
|
10493
10803
|
@api_client.config.logger.debug "API called: AccountingApi#get_overpayment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10494
10804
|
end
|
|
@@ -10571,7 +10881,7 @@ module XeroRuby
|
|
|
10571
10881
|
:return_type => return_type
|
|
10572
10882
|
)
|
|
10573
10883
|
|
|
10574
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10884
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10575
10885
|
if @api_client.config.debugging
|
|
10576
10886
|
@api_client.config.logger.debug "API called: AccountingApi#get_overpayments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10577
10887
|
end
|
|
@@ -10645,7 +10955,7 @@ module XeroRuby
|
|
|
10645
10955
|
:return_type => return_type
|
|
10646
10956
|
)
|
|
10647
10957
|
|
|
10648
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
10958
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10649
10959
|
if @api_client.config.debugging
|
|
10650
10960
|
@api_client.config.logger.debug "API called: AccountingApi#get_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10651
10961
|
end
|
|
@@ -10719,7 +11029,7 @@ module XeroRuby
|
|
|
10719
11029
|
:return_type => return_type
|
|
10720
11030
|
)
|
|
10721
11031
|
|
|
10722
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11032
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10723
11033
|
if @api_client.config.debugging
|
|
10724
11034
|
@api_client.config.logger.debug "API called: AccountingApi#get_payment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10725
11035
|
end
|
|
@@ -10787,7 +11097,7 @@ module XeroRuby
|
|
|
10787
11097
|
:return_type => return_type
|
|
10788
11098
|
)
|
|
10789
11099
|
|
|
10790
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11100
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10791
11101
|
if @api_client.config.debugging
|
|
10792
11102
|
@api_client.config.logger.debug "API called: AccountingApi#get_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10793
11103
|
end
|
|
@@ -10867,7 +11177,7 @@ module XeroRuby
|
|
|
10867
11177
|
:return_type => return_type
|
|
10868
11178
|
)
|
|
10869
11179
|
|
|
10870
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11180
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10871
11181
|
if @api_client.config.debugging
|
|
10872
11182
|
@api_client.config.logger.debug "API called: AccountingApi#get_payments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10873
11183
|
end
|
|
@@ -10941,7 +11251,7 @@ module XeroRuby
|
|
|
10941
11251
|
:return_type => return_type
|
|
10942
11252
|
)
|
|
10943
11253
|
|
|
10944
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11254
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
10945
11255
|
if @api_client.config.debugging
|
|
10946
11256
|
@api_client.config.logger.debug "API called: AccountingApi#get_prepayment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10947
11257
|
end
|
|
@@ -11015,7 +11325,7 @@ module XeroRuby
|
|
|
11015
11325
|
:return_type => return_type
|
|
11016
11326
|
)
|
|
11017
11327
|
|
|
11018
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11328
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11019
11329
|
if @api_client.config.debugging
|
|
11020
11330
|
@api_client.config.logger.debug "API called: AccountingApi#get_prepayment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11021
11331
|
end
|
|
@@ -11098,7 +11408,7 @@ module XeroRuby
|
|
|
11098
11408
|
:return_type => return_type
|
|
11099
11409
|
)
|
|
11100
11410
|
|
|
11101
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11411
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11102
11412
|
if @api_client.config.debugging
|
|
11103
11413
|
@api_client.config.logger.debug "API called: AccountingApi#get_prepayments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11104
11414
|
end
|
|
@@ -11172,7 +11482,7 @@ module XeroRuby
|
|
|
11172
11482
|
:return_type => return_type
|
|
11173
11483
|
)
|
|
11174
11484
|
|
|
11175
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11485
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11176
11486
|
if @api_client.config.debugging
|
|
11177
11487
|
@api_client.config.logger.debug "API called: AccountingApi#get_purchase_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11178
11488
|
end
|
|
@@ -11246,13 +11556,261 @@ module XeroRuby
|
|
|
11246
11556
|
:return_type => return_type
|
|
11247
11557
|
)
|
|
11248
11558
|
|
|
11249
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11559
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11250
11560
|
if @api_client.config.debugging
|
|
11251
11561
|
@api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11252
11562
|
end
|
|
11253
11563
|
return data, status_code, headers
|
|
11254
11564
|
end
|
|
11255
11565
|
|
|
11566
|
+
# Allows you to retrieve Attachment on a Purchase Order by Filename
|
|
11567
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
11568
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Order object
|
|
11569
|
+
# @param file_name [String] Name of the attachment
|
|
11570
|
+
# @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
11571
|
+
# @param [Hash] opts the optional parameters
|
|
11572
|
+
# @return [File]
|
|
11573
|
+
def get_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, content_type, opts = {})
|
|
11574
|
+
data, _status_code, _headers = get_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, content_type, opts)
|
|
11575
|
+
data
|
|
11576
|
+
end
|
|
11577
|
+
|
|
11578
|
+
# Allows you to retrieve Attachment on a Purchase Order by Filename
|
|
11579
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
11580
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Order object
|
|
11581
|
+
# @param file_name [String] Name of the attachment
|
|
11582
|
+
# @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
11583
|
+
# @param [Hash] opts the optional parameters
|
|
11584
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
11585
|
+
def get_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, content_type, opts = {})
|
|
11586
|
+
if @api_client.config.debugging
|
|
11587
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachment_by_file_name ...'
|
|
11588
|
+
end
|
|
11589
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
11590
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
11591
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_purchase_order_attachment_by_file_name"
|
|
11592
|
+
end
|
|
11593
|
+
# verify the required parameter 'purchase_order_id' is set
|
|
11594
|
+
if @api_client.config.client_side_validation && purchase_order_id.nil?
|
|
11595
|
+
fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_attachment_by_file_name"
|
|
11596
|
+
end
|
|
11597
|
+
# verify the required parameter 'file_name' is set
|
|
11598
|
+
if @api_client.config.client_side_validation && file_name.nil?
|
|
11599
|
+
fail ArgumentError, "Missing the required parameter 'file_name' when calling AccountingApi.get_purchase_order_attachment_by_file_name"
|
|
11600
|
+
end
|
|
11601
|
+
# verify the required parameter 'content_type' is set
|
|
11602
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
11603
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_purchase_order_attachment_by_file_name"
|
|
11604
|
+
end
|
|
11605
|
+
# resource path
|
|
11606
|
+
local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
|
|
11607
|
+
|
|
11608
|
+
# camelize keys of incoming `where` opts
|
|
11609
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
11610
|
+
|
|
11611
|
+
# query parameters
|
|
11612
|
+
query_params = opts[:query_params] || {}
|
|
11613
|
+
|
|
11614
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
11615
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
11616
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
11617
|
+
|
|
11618
|
+
# header parameters
|
|
11619
|
+
header_params = opts[:header_params] || {}
|
|
11620
|
+
# HTTP header 'Accept' (if needed)
|
|
11621
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
11622
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
11623
|
+
header_params[:'contentType'] = content_type
|
|
11624
|
+
|
|
11625
|
+
# form parameters
|
|
11626
|
+
form_params = opts[:form_params] || {}
|
|
11627
|
+
|
|
11628
|
+
# http body (model)
|
|
11629
|
+
post_body = opts[:body]
|
|
11630
|
+
|
|
11631
|
+
# return_type
|
|
11632
|
+
return_type = opts[:return_type] || 'File'
|
|
11633
|
+
|
|
11634
|
+
# auth_names
|
|
11635
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
11636
|
+
|
|
11637
|
+
new_options = opts.merge(
|
|
11638
|
+
:header_params => header_params,
|
|
11639
|
+
:query_params => query_params,
|
|
11640
|
+
:form_params => form_params,
|
|
11641
|
+
:body => post_body,
|
|
11642
|
+
:auth_names => auth_names,
|
|
11643
|
+
:return_type => return_type
|
|
11644
|
+
)
|
|
11645
|
+
|
|
11646
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11647
|
+
if @api_client.config.debugging
|
|
11648
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11649
|
+
end
|
|
11650
|
+
return data, status_code, headers
|
|
11651
|
+
end
|
|
11652
|
+
|
|
11653
|
+
# Allows you to retrieve specific Attachment on purchase order
|
|
11654
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
11655
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Order object
|
|
11656
|
+
# @param attachment_id [String] Unique identifier for Attachment object
|
|
11657
|
+
# @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
11658
|
+
# @param [Hash] opts the optional parameters
|
|
11659
|
+
# @return [File]
|
|
11660
|
+
def get_purchase_order_attachment_by_id(xero_tenant_id, purchase_order_id, attachment_id, content_type, opts = {})
|
|
11661
|
+
data, _status_code, _headers = get_purchase_order_attachment_by_id_with_http_info(xero_tenant_id, purchase_order_id, attachment_id, content_type, opts)
|
|
11662
|
+
data
|
|
11663
|
+
end
|
|
11664
|
+
|
|
11665
|
+
# Allows you to retrieve specific Attachment on purchase order
|
|
11666
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
11667
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Order object
|
|
11668
|
+
# @param attachment_id [String] Unique identifier for Attachment object
|
|
11669
|
+
# @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
11670
|
+
# @param [Hash] opts the optional parameters
|
|
11671
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
11672
|
+
def get_purchase_order_attachment_by_id_with_http_info(xero_tenant_id, purchase_order_id, attachment_id, content_type, opts = {})
|
|
11673
|
+
if @api_client.config.debugging
|
|
11674
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachment_by_id ...'
|
|
11675
|
+
end
|
|
11676
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
11677
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
11678
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_purchase_order_attachment_by_id"
|
|
11679
|
+
end
|
|
11680
|
+
# verify the required parameter 'purchase_order_id' is set
|
|
11681
|
+
if @api_client.config.client_side_validation && purchase_order_id.nil?
|
|
11682
|
+
fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_attachment_by_id"
|
|
11683
|
+
end
|
|
11684
|
+
# verify the required parameter 'attachment_id' is set
|
|
11685
|
+
if @api_client.config.client_side_validation && attachment_id.nil?
|
|
11686
|
+
fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AccountingApi.get_purchase_order_attachment_by_id"
|
|
11687
|
+
end
|
|
11688
|
+
# verify the required parameter 'content_type' is set
|
|
11689
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
11690
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_purchase_order_attachment_by_id"
|
|
11691
|
+
end
|
|
11692
|
+
# resource path
|
|
11693
|
+
local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments/{AttachmentID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
|
|
11694
|
+
|
|
11695
|
+
# camelize keys of incoming `where` opts
|
|
11696
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
11697
|
+
|
|
11698
|
+
# query parameters
|
|
11699
|
+
query_params = opts[:query_params] || {}
|
|
11700
|
+
|
|
11701
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
11702
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
11703
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
11704
|
+
|
|
11705
|
+
# header parameters
|
|
11706
|
+
header_params = opts[:header_params] || {}
|
|
11707
|
+
# HTTP header 'Accept' (if needed)
|
|
11708
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
11709
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
11710
|
+
header_params[:'contentType'] = content_type
|
|
11711
|
+
|
|
11712
|
+
# form parameters
|
|
11713
|
+
form_params = opts[:form_params] || {}
|
|
11714
|
+
|
|
11715
|
+
# http body (model)
|
|
11716
|
+
post_body = opts[:body]
|
|
11717
|
+
|
|
11718
|
+
# return_type
|
|
11719
|
+
return_type = opts[:return_type] || 'File'
|
|
11720
|
+
|
|
11721
|
+
# auth_names
|
|
11722
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
11723
|
+
|
|
11724
|
+
new_options = opts.merge(
|
|
11725
|
+
:header_params => header_params,
|
|
11726
|
+
:query_params => query_params,
|
|
11727
|
+
:form_params => form_params,
|
|
11728
|
+
:body => post_body,
|
|
11729
|
+
:auth_names => auth_names,
|
|
11730
|
+
:return_type => return_type
|
|
11731
|
+
)
|
|
11732
|
+
|
|
11733
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11734
|
+
if @api_client.config.debugging
|
|
11735
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11736
|
+
end
|
|
11737
|
+
return data, status_code, headers
|
|
11738
|
+
end
|
|
11739
|
+
|
|
11740
|
+
# Allows you to retrieve attachments for purchase orders
|
|
11741
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
11742
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Orders object
|
|
11743
|
+
# @param [Hash] opts the optional parameters
|
|
11744
|
+
# @return [Attachments]
|
|
11745
|
+
def get_purchase_order_attachments(xero_tenant_id, purchase_order_id, opts = {})
|
|
11746
|
+
data, _status_code, _headers = get_purchase_order_attachments_with_http_info(xero_tenant_id, purchase_order_id, opts)
|
|
11747
|
+
data
|
|
11748
|
+
end
|
|
11749
|
+
|
|
11750
|
+
# Allows you to retrieve attachments for purchase orders
|
|
11751
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
11752
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Orders object
|
|
11753
|
+
# @param [Hash] opts the optional parameters
|
|
11754
|
+
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
11755
|
+
def get_purchase_order_attachments_with_http_info(xero_tenant_id, purchase_order_id, opts = {})
|
|
11756
|
+
if @api_client.config.debugging
|
|
11757
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachments ...'
|
|
11758
|
+
end
|
|
11759
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
11760
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
11761
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_purchase_order_attachments"
|
|
11762
|
+
end
|
|
11763
|
+
# verify the required parameter 'purchase_order_id' is set
|
|
11764
|
+
if @api_client.config.client_side_validation && purchase_order_id.nil?
|
|
11765
|
+
fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_attachments"
|
|
11766
|
+
end
|
|
11767
|
+
# resource path
|
|
11768
|
+
local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
|
|
11769
|
+
|
|
11770
|
+
# camelize keys of incoming `where` opts
|
|
11771
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
11772
|
+
|
|
11773
|
+
# query parameters
|
|
11774
|
+
query_params = opts[:query_params] || {}
|
|
11775
|
+
|
|
11776
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
11777
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
11778
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
11779
|
+
|
|
11780
|
+
# header parameters
|
|
11781
|
+
header_params = opts[:header_params] || {}
|
|
11782
|
+
# HTTP header 'Accept' (if needed)
|
|
11783
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
11784
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
11785
|
+
|
|
11786
|
+
# form parameters
|
|
11787
|
+
form_params = opts[:form_params] || {}
|
|
11788
|
+
|
|
11789
|
+
# http body (model)
|
|
11790
|
+
post_body = opts[:body]
|
|
11791
|
+
|
|
11792
|
+
# return_type
|
|
11793
|
+
return_type = opts[:return_type] || 'Attachments'
|
|
11794
|
+
|
|
11795
|
+
# auth_names
|
|
11796
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
11797
|
+
|
|
11798
|
+
new_options = opts.merge(
|
|
11799
|
+
:header_params => header_params,
|
|
11800
|
+
:query_params => query_params,
|
|
11801
|
+
:form_params => form_params,
|
|
11802
|
+
:body => post_body,
|
|
11803
|
+
:auth_names => auth_names,
|
|
11804
|
+
:return_type => return_type
|
|
11805
|
+
)
|
|
11806
|
+
|
|
11807
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11808
|
+
if @api_client.config.debugging
|
|
11809
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11810
|
+
end
|
|
11811
|
+
return data, status_code, headers
|
|
11812
|
+
end
|
|
11813
|
+
|
|
11256
11814
|
# Allows you to retrieve a specified purchase orders
|
|
11257
11815
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
11258
11816
|
# @param purchase_order_number [String] Unique identifier for a PurchaseOrder
|
|
@@ -11320,7 +11878,7 @@ module XeroRuby
|
|
|
11320
11878
|
:return_type => return_type
|
|
11321
11879
|
)
|
|
11322
11880
|
|
|
11323
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11881
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11324
11882
|
if @api_client.config.debugging
|
|
11325
11883
|
@api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11326
11884
|
end
|
|
@@ -11394,7 +11952,7 @@ module XeroRuby
|
|
|
11394
11952
|
:return_type => return_type
|
|
11395
11953
|
)
|
|
11396
11954
|
|
|
11397
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
11955
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11398
11956
|
if @api_client.config.debugging
|
|
11399
11957
|
@api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11400
11958
|
end
|
|
@@ -11484,7 +12042,7 @@ module XeroRuby
|
|
|
11484
12042
|
:return_type => return_type
|
|
11485
12043
|
)
|
|
11486
12044
|
|
|
11487
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12045
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11488
12046
|
if @api_client.config.debugging
|
|
11489
12047
|
@api_client.config.logger.debug "API called: AccountingApi#get_purchase_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11490
12048
|
end
|
|
@@ -11558,7 +12116,7 @@ module XeroRuby
|
|
|
11558
12116
|
:return_type => return_type
|
|
11559
12117
|
)
|
|
11560
12118
|
|
|
11561
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12119
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11562
12120
|
if @api_client.config.debugging
|
|
11563
12121
|
@api_client.config.logger.debug "API called: AccountingApi#get_quote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11564
12122
|
end
|
|
@@ -11632,7 +12190,7 @@ module XeroRuby
|
|
|
11632
12190
|
:return_type => return_type
|
|
11633
12191
|
)
|
|
11634
12192
|
|
|
11635
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12193
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11636
12194
|
if @api_client.config.debugging
|
|
11637
12195
|
@api_client.config.logger.debug "API called: AccountingApi#get_quote_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11638
12196
|
end
|
|
@@ -11719,7 +12277,7 @@ module XeroRuby
|
|
|
11719
12277
|
:return_type => return_type
|
|
11720
12278
|
)
|
|
11721
12279
|
|
|
11722
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12280
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11723
12281
|
if @api_client.config.debugging
|
|
11724
12282
|
@api_client.config.logger.debug "API called: AccountingApi#get_quote_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11725
12283
|
end
|
|
@@ -11806,7 +12364,7 @@ module XeroRuby
|
|
|
11806
12364
|
:return_type => return_type
|
|
11807
12365
|
)
|
|
11808
12366
|
|
|
11809
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12367
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11810
12368
|
if @api_client.config.debugging
|
|
11811
12369
|
@api_client.config.logger.debug "API called: AccountingApi#get_quote_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11812
12370
|
end
|
|
@@ -11880,7 +12438,7 @@ module XeroRuby
|
|
|
11880
12438
|
:return_type => return_type
|
|
11881
12439
|
)
|
|
11882
12440
|
|
|
11883
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12441
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11884
12442
|
if @api_client.config.debugging
|
|
11885
12443
|
@api_client.config.logger.debug "API called: AccountingApi#get_quote_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11886
12444
|
end
|
|
@@ -11954,7 +12512,7 @@ module XeroRuby
|
|
|
11954
12512
|
:return_type => return_type
|
|
11955
12513
|
)
|
|
11956
12514
|
|
|
11957
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12515
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
11958
12516
|
if @api_client.config.debugging
|
|
11959
12517
|
@api_client.config.logger.debug "API called: AccountingApi#get_quote_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11960
12518
|
end
|
|
@@ -11973,6 +12531,7 @@ module XeroRuby
|
|
|
11973
12531
|
# @option opts [String] :status Filter for quotes of a particular Status
|
|
11974
12532
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote
|
|
11975
12533
|
# @option opts [String] :order Order by an any element
|
|
12534
|
+
# @option opts [String] :quote_number Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)
|
|
11976
12535
|
# @return [Quotes]
|
|
11977
12536
|
def get_quotes(xero_tenant_id, opts = {})
|
|
11978
12537
|
data, _status_code, _headers = get_quotes_with_http_info(xero_tenant_id, opts)
|
|
@@ -11991,6 +12550,7 @@ module XeroRuby
|
|
|
11991
12550
|
# @option opts [String] :status Filter for quotes of a particular Status
|
|
11992
12551
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote
|
|
11993
12552
|
# @option opts [String] :order Order by an any element
|
|
12553
|
+
# @option opts [String] :quote_number Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)
|
|
11994
12554
|
# @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
|
|
11995
12555
|
def get_quotes_with_http_info(xero_tenant_id, opts = {})
|
|
11996
12556
|
if @api_client.config.debugging
|
|
@@ -12016,6 +12576,7 @@ module XeroRuby
|
|
|
12016
12576
|
query_params[:'Status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
12017
12577
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
12018
12578
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
12579
|
+
query_params[:'QuoteNumber'] = opts[:'quote_number'] if !opts[:'quote_number'].nil?
|
|
12019
12580
|
|
|
12020
12581
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
12021
12582
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -12049,7 +12610,7 @@ module XeroRuby
|
|
|
12049
12610
|
:return_type => return_type
|
|
12050
12611
|
)
|
|
12051
12612
|
|
|
12052
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12613
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12053
12614
|
if @api_client.config.debugging
|
|
12054
12615
|
@api_client.config.logger.debug "API called: AccountingApi#get_quotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12055
12616
|
end
|
|
@@ -12126,7 +12687,7 @@ module XeroRuby
|
|
|
12126
12687
|
:return_type => return_type
|
|
12127
12688
|
)
|
|
12128
12689
|
|
|
12129
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12690
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12130
12691
|
if @api_client.config.debugging
|
|
12131
12692
|
@api_client.config.logger.debug "API called: AccountingApi#get_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12132
12693
|
end
|
|
@@ -12213,7 +12774,7 @@ module XeroRuby
|
|
|
12213
12774
|
:return_type => return_type
|
|
12214
12775
|
)
|
|
12215
12776
|
|
|
12216
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12777
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12217
12778
|
if @api_client.config.debugging
|
|
12218
12779
|
@api_client.config.logger.debug "API called: AccountingApi#get_receipt_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12219
12780
|
end
|
|
@@ -12300,7 +12861,7 @@ module XeroRuby
|
|
|
12300
12861
|
:return_type => return_type
|
|
12301
12862
|
)
|
|
12302
12863
|
|
|
12303
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12864
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12304
12865
|
if @api_client.config.debugging
|
|
12305
12866
|
@api_client.config.logger.debug "API called: AccountingApi#get_receipt_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12306
12867
|
end
|
|
@@ -12374,7 +12935,7 @@ module XeroRuby
|
|
|
12374
12935
|
:return_type => return_type
|
|
12375
12936
|
)
|
|
12376
12937
|
|
|
12377
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
12938
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12378
12939
|
if @api_client.config.debugging
|
|
12379
12940
|
@api_client.config.logger.debug "API called: AccountingApi#get_receipt_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12380
12941
|
end
|
|
@@ -12448,7 +13009,7 @@ module XeroRuby
|
|
|
12448
13009
|
:return_type => return_type
|
|
12449
13010
|
)
|
|
12450
13011
|
|
|
12451
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13012
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12452
13013
|
if @api_client.config.debugging
|
|
12453
13014
|
@api_client.config.logger.debug "API called: AccountingApi#get_receipt_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12454
13015
|
end
|
|
@@ -12528,7 +13089,7 @@ module XeroRuby
|
|
|
12528
13089
|
:return_type => return_type
|
|
12529
13090
|
)
|
|
12530
13091
|
|
|
12531
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13092
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12532
13093
|
if @api_client.config.debugging
|
|
12533
13094
|
@api_client.config.logger.debug "API called: AccountingApi#get_receipts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12534
13095
|
end
|
|
@@ -12602,7 +13163,7 @@ module XeroRuby
|
|
|
12602
13163
|
:return_type => return_type
|
|
12603
13164
|
)
|
|
12604
13165
|
|
|
12605
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13166
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12606
13167
|
if @api_client.config.debugging
|
|
12607
13168
|
@api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12608
13169
|
end
|
|
@@ -12689,7 +13250,7 @@ module XeroRuby
|
|
|
12689
13250
|
:return_type => return_type
|
|
12690
13251
|
)
|
|
12691
13252
|
|
|
12692
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13253
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12693
13254
|
if @api_client.config.debugging
|
|
12694
13255
|
@api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12695
13256
|
end
|
|
@@ -12776,7 +13337,7 @@ module XeroRuby
|
|
|
12776
13337
|
:return_type => return_type
|
|
12777
13338
|
)
|
|
12778
13339
|
|
|
12779
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13340
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12780
13341
|
if @api_client.config.debugging
|
|
12781
13342
|
@api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12782
13343
|
end
|
|
@@ -12850,7 +13411,7 @@ module XeroRuby
|
|
|
12850
13411
|
:return_type => return_type
|
|
12851
13412
|
)
|
|
12852
13413
|
|
|
12853
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13414
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12854
13415
|
if @api_client.config.debugging
|
|
12855
13416
|
@api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12856
13417
|
end
|
|
@@ -12924,7 +13485,7 @@ module XeroRuby
|
|
|
12924
13485
|
:return_type => return_type
|
|
12925
13486
|
)
|
|
12926
13487
|
|
|
12927
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13488
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
12928
13489
|
if @api_client.config.debugging
|
|
12929
13490
|
@api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
12930
13491
|
end
|
|
@@ -12998,7 +13559,7 @@ module XeroRuby
|
|
|
12998
13559
|
:return_type => return_type
|
|
12999
13560
|
)
|
|
13000
13561
|
|
|
13001
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13562
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13002
13563
|
if @api_client.config.debugging
|
|
13003
13564
|
@api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13004
13565
|
end
|
|
@@ -13082,7 +13643,7 @@ module XeroRuby
|
|
|
13082
13643
|
:return_type => return_type
|
|
13083
13644
|
)
|
|
13084
13645
|
|
|
13085
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13646
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13086
13647
|
if @api_client.config.debugging
|
|
13087
13648
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_aged_payables_by_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13088
13649
|
end
|
|
@@ -13166,7 +13727,7 @@ module XeroRuby
|
|
|
13166
13727
|
:return_type => return_type
|
|
13167
13728
|
)
|
|
13168
13729
|
|
|
13169
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13730
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13170
13731
|
if @api_client.config.debugging
|
|
13171
13732
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_aged_receivables_by_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13172
13733
|
end
|
|
@@ -13240,7 +13801,7 @@ module XeroRuby
|
|
|
13240
13801
|
:return_type => return_type
|
|
13241
13802
|
)
|
|
13242
13803
|
|
|
13243
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13804
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13244
13805
|
if @api_client.config.debugging
|
|
13245
13806
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_ba_sor_gst\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13246
13807
|
end
|
|
@@ -13308,7 +13869,7 @@ module XeroRuby
|
|
|
13308
13869
|
:return_type => return_type
|
|
13309
13870
|
)
|
|
13310
13871
|
|
|
13311
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13872
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13312
13873
|
if @api_client.config.debugging
|
|
13313
13874
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_ba_sor_gst_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13314
13875
|
end
|
|
@@ -13318,7 +13879,7 @@ module XeroRuby
|
|
|
13318
13879
|
# Allows you to retrieve report for BalanceSheet
|
|
13319
13880
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
13320
13881
|
# @param [Hash] opts the optional parameters
|
|
13321
|
-
# @option opts [
|
|
13882
|
+
# @option opts [Date] :date The date of the Balance Sheet report
|
|
13322
13883
|
# @option opts [Integer] :periods The number of periods for the Balance Sheet report
|
|
13323
13884
|
# @option opts [String] :timeframe The period size to compare to (MONTH, QUARTER, YEAR)
|
|
13324
13885
|
# @option opts [String] :tracking_option_id1 The tracking option 1 for the Balance Sheet report
|
|
@@ -13334,7 +13895,7 @@ module XeroRuby
|
|
|
13334
13895
|
# Allows you to retrieve report for BalanceSheet
|
|
13335
13896
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
13336
13897
|
# @param [Hash] opts the optional parameters
|
|
13337
|
-
# @option opts [
|
|
13898
|
+
# @option opts [Date] :date The date of the Balance Sheet report
|
|
13338
13899
|
# @option opts [Integer] :periods The number of periods for the Balance Sheet report
|
|
13339
13900
|
# @option opts [String] :timeframe The period size to compare to (MONTH, QUARTER, YEAR)
|
|
13340
13901
|
# @option opts [String] :tracking_option_id1 The tracking option 1 for the Balance Sheet report
|
|
@@ -13401,7 +13962,7 @@ module XeroRuby
|
|
|
13401
13962
|
:return_type => return_type
|
|
13402
13963
|
)
|
|
13403
13964
|
|
|
13404
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
13965
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13405
13966
|
if @api_client.config.debugging
|
|
13406
13967
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_balance_sheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13407
13968
|
end
|
|
@@ -13475,7 +14036,7 @@ module XeroRuby
|
|
|
13475
14036
|
:return_type => return_type
|
|
13476
14037
|
)
|
|
13477
14038
|
|
|
13478
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14039
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13479
14040
|
if @api_client.config.debugging
|
|
13480
14041
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_bank_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13481
14042
|
end
|
|
@@ -13552,7 +14113,7 @@ module XeroRuby
|
|
|
13552
14113
|
:return_type => return_type
|
|
13553
14114
|
)
|
|
13554
14115
|
|
|
13555
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14116
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13556
14117
|
if @api_client.config.debugging
|
|
13557
14118
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_budget_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13558
14119
|
end
|
|
@@ -13623,7 +14184,7 @@ module XeroRuby
|
|
|
13623
14184
|
:return_type => return_type
|
|
13624
14185
|
)
|
|
13625
14186
|
|
|
13626
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13627
14188
|
if @api_client.config.debugging
|
|
13628
14189
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_executive_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13629
14190
|
end
|
|
@@ -13725,7 +14286,7 @@ module XeroRuby
|
|
|
13725
14286
|
:return_type => return_type
|
|
13726
14287
|
)
|
|
13727
14288
|
|
|
13728
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14289
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13729
14290
|
if @api_client.config.debugging
|
|
13730
14291
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_profit_and_loss\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13731
14292
|
end
|
|
@@ -13796,7 +14357,7 @@ module XeroRuby
|
|
|
13796
14357
|
:return_type => return_type
|
|
13797
14358
|
)
|
|
13798
14359
|
|
|
13799
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14360
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13800
14361
|
if @api_client.config.debugging
|
|
13801
14362
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_ten_ninety_nine\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13802
14363
|
end
|
|
@@ -13870,7 +14431,7 @@ module XeroRuby
|
|
|
13870
14431
|
:return_type => return_type
|
|
13871
14432
|
)
|
|
13872
14433
|
|
|
13873
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14434
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13874
14435
|
if @api_client.config.debugging
|
|
13875
14436
|
@api_client.config.logger.debug "API called: AccountingApi#get_report_trial_balance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13876
14437
|
end
|
|
@@ -13947,7 +14508,7 @@ module XeroRuby
|
|
|
13947
14508
|
:return_type => return_type
|
|
13948
14509
|
)
|
|
13949
14510
|
|
|
13950
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14511
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
13951
14512
|
if @api_client.config.debugging
|
|
13952
14513
|
@api_client.config.logger.debug "API called: AccountingApi#get_tax_rates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
13953
14514
|
end
|
|
@@ -14024,7 +14585,7 @@ module XeroRuby
|
|
|
14024
14585
|
:return_type => return_type
|
|
14025
14586
|
)
|
|
14026
14587
|
|
|
14027
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14588
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
14028
14589
|
if @api_client.config.debugging
|
|
14029
14590
|
@api_client.config.logger.debug "API called: AccountingApi#get_tracking_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14030
14591
|
end
|
|
@@ -14098,7 +14659,7 @@ module XeroRuby
|
|
|
14098
14659
|
:return_type => return_type
|
|
14099
14660
|
)
|
|
14100
14661
|
|
|
14101
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14662
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
14102
14663
|
if @api_client.config.debugging
|
|
14103
14664
|
@api_client.config.logger.debug "API called: AccountingApi#get_tracking_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14104
14665
|
end
|
|
@@ -14172,7 +14733,7 @@ module XeroRuby
|
|
|
14172
14733
|
:return_type => return_type
|
|
14173
14734
|
)
|
|
14174
14735
|
|
|
14175
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14736
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
14176
14737
|
if @api_client.config.debugging
|
|
14177
14738
|
@api_client.config.logger.debug "API called: AccountingApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14178
14739
|
end
|
|
@@ -14249,13 +14810,89 @@ module XeroRuby
|
|
|
14249
14810
|
:return_type => return_type
|
|
14250
14811
|
)
|
|
14251
14812
|
|
|
14252
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
14813
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
14253
14814
|
if @api_client.config.debugging
|
|
14254
14815
|
@api_client.config.logger.debug "API called: AccountingApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14255
14816
|
end
|
|
14256
14817
|
return data, status_code, headers
|
|
14257
14818
|
end
|
|
14258
14819
|
|
|
14820
|
+
# Allows you to set the chart of accounts, the conversion date and conversion balances
|
|
14821
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
14822
|
+
# @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
|
|
14823
|
+
# @param [Hash] opts the optional parameters
|
|
14824
|
+
# @return [ImportSummaryObject]
|
|
14825
|
+
def post_setup(xero_tenant_id, setup, opts = {})
|
|
14826
|
+
data, _status_code, _headers = post_setup_with_http_info(xero_tenant_id, setup, opts)
|
|
14827
|
+
data
|
|
14828
|
+
end
|
|
14829
|
+
|
|
14830
|
+
# Allows you to set the chart of accounts, the conversion date and conversion balances
|
|
14831
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
14832
|
+
# @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
|
|
14833
|
+
# @param [Hash] opts the optional parameters
|
|
14834
|
+
# @return [Array<(ImportSummaryObject, Integer, Hash)>] ImportSummaryObject data, response status code and response headers
|
|
14835
|
+
def post_setup_with_http_info(xero_tenant_id, setup, opts = {})
|
|
14836
|
+
if @api_client.config.debugging
|
|
14837
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.post_setup ...'
|
|
14838
|
+
end
|
|
14839
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
14840
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
14841
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.post_setup"
|
|
14842
|
+
end
|
|
14843
|
+
# verify the required parameter 'setup' is set
|
|
14844
|
+
if @api_client.config.client_side_validation && setup.nil?
|
|
14845
|
+
fail ArgumentError, "Missing the required parameter 'setup' when calling AccountingApi.post_setup"
|
|
14846
|
+
end
|
|
14847
|
+
# resource path
|
|
14848
|
+
local_var_path = '/Setup'
|
|
14849
|
+
|
|
14850
|
+
# camelize keys of incoming `where` opts
|
|
14851
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
14852
|
+
|
|
14853
|
+
# query parameters
|
|
14854
|
+
query_params = opts[:query_params] || {}
|
|
14855
|
+
|
|
14856
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
14857
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
14858
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
14859
|
+
|
|
14860
|
+
# header parameters
|
|
14861
|
+
header_params = opts[:header_params] || {}
|
|
14862
|
+
# HTTP header 'Accept' (if needed)
|
|
14863
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
14864
|
+
# HTTP header 'Content-Type'
|
|
14865
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
14866
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
14867
|
+
|
|
14868
|
+
# form parameters
|
|
14869
|
+
form_params = opts[:form_params] || {}
|
|
14870
|
+
|
|
14871
|
+
# http body (model)
|
|
14872
|
+
post_body = opts[:body] || @api_client.object_to_http_body(setup)
|
|
14873
|
+
|
|
14874
|
+
# return_type
|
|
14875
|
+
return_type = opts[:return_type] || 'ImportSummaryObject'
|
|
14876
|
+
|
|
14877
|
+
# auth_names
|
|
14878
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
14879
|
+
|
|
14880
|
+
new_options = opts.merge(
|
|
14881
|
+
:header_params => header_params,
|
|
14882
|
+
:query_params => query_params,
|
|
14883
|
+
:form_params => form_params,
|
|
14884
|
+
:body => post_body,
|
|
14885
|
+
:auth_names => auth_names,
|
|
14886
|
+
:return_type => return_type
|
|
14887
|
+
)
|
|
14888
|
+
|
|
14889
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14890
|
+
if @api_client.config.debugging
|
|
14891
|
+
@api_client.config.logger.debug "API called: AccountingApi#post_setup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14892
|
+
end
|
|
14893
|
+
return data, status_code, headers
|
|
14894
|
+
end
|
|
14895
|
+
|
|
14259
14896
|
# Allows you to update a chart of accounts
|
|
14260
14897
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
14261
14898
|
# @param account_id [String] Unique identifier for retrieving single object
|
|
@@ -14331,7 +14968,7 @@ module XeroRuby
|
|
|
14331
14968
|
:return_type => return_type
|
|
14332
14969
|
)
|
|
14333
14970
|
|
|
14334
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
14971
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14335
14972
|
if @api_client.config.debugging
|
|
14336
14973
|
@api_client.config.logger.debug "API called: AccountingApi#update_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14337
14974
|
end
|
|
@@ -14419,7 +15056,7 @@ module XeroRuby
|
|
|
14419
15056
|
:return_type => return_type
|
|
14420
15057
|
)
|
|
14421
15058
|
|
|
14422
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15059
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14423
15060
|
if @api_client.config.debugging
|
|
14424
15061
|
@api_client.config.logger.debug "API called: AccountingApi#update_account_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14425
15062
|
end
|
|
@@ -14504,7 +15141,7 @@ module XeroRuby
|
|
|
14504
15141
|
:return_type => return_type
|
|
14505
15142
|
)
|
|
14506
15143
|
|
|
14507
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15144
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14508
15145
|
if @api_client.config.debugging
|
|
14509
15146
|
@api_client.config.logger.debug "API called: AccountingApi#update_bank_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14510
15147
|
end
|
|
@@ -14592,7 +15229,7 @@ module XeroRuby
|
|
|
14592
15229
|
:return_type => return_type
|
|
14593
15230
|
)
|
|
14594
15231
|
|
|
14595
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15232
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14596
15233
|
if @api_client.config.debugging
|
|
14597
15234
|
@api_client.config.logger.debug "API called: AccountingApi#update_bank_transaction_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14598
15235
|
end
|
|
@@ -14678,7 +15315,7 @@ module XeroRuby
|
|
|
14678
15315
|
:return_type => return_type
|
|
14679
15316
|
)
|
|
14680
15317
|
|
|
14681
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15318
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14682
15319
|
if @api_client.config.debugging
|
|
14683
15320
|
@api_client.config.logger.debug "API called: AccountingApi#update_bank_transfer_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14684
15321
|
end
|
|
@@ -14758,7 +15395,7 @@ module XeroRuby
|
|
|
14758
15395
|
:return_type => return_type
|
|
14759
15396
|
)
|
|
14760
15397
|
|
|
14761
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15398
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14762
15399
|
if @api_client.config.debugging
|
|
14763
15400
|
@api_client.config.logger.debug "API called: AccountingApi#update_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14764
15401
|
end
|
|
@@ -14844,7 +15481,7 @@ module XeroRuby
|
|
|
14844
15481
|
:return_type => return_type
|
|
14845
15482
|
)
|
|
14846
15483
|
|
|
14847
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15484
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14848
15485
|
if @api_client.config.debugging
|
|
14849
15486
|
@api_client.config.logger.debug "API called: AccountingApi#update_contact_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14850
15487
|
end
|
|
@@ -14926,7 +15563,7 @@ module XeroRuby
|
|
|
14926
15563
|
:return_type => return_type
|
|
14927
15564
|
)
|
|
14928
15565
|
|
|
14929
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15566
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
14930
15567
|
if @api_client.config.debugging
|
|
14931
15568
|
@api_client.config.logger.debug "API called: AccountingApi#update_contact_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
14932
15569
|
end
|
|
@@ -15011,7 +15648,7 @@ module XeroRuby
|
|
|
15011
15648
|
:return_type => return_type
|
|
15012
15649
|
)
|
|
15013
15650
|
|
|
15014
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15651
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15015
15652
|
if @api_client.config.debugging
|
|
15016
15653
|
@api_client.config.logger.debug "API called: AccountingApi#update_credit_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15017
15654
|
end
|
|
@@ -15099,7 +15736,7 @@ module XeroRuby
|
|
|
15099
15736
|
:return_type => return_type
|
|
15100
15737
|
)
|
|
15101
15738
|
|
|
15102
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15739
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15103
15740
|
if @api_client.config.debugging
|
|
15104
15741
|
@api_client.config.logger.debug "API called: AccountingApi#update_credit_note_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15105
15742
|
end
|
|
@@ -15181,7 +15818,7 @@ module XeroRuby
|
|
|
15181
15818
|
:return_type => return_type
|
|
15182
15819
|
)
|
|
15183
15820
|
|
|
15184
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15821
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15185
15822
|
if @api_client.config.debugging
|
|
15186
15823
|
@api_client.config.logger.debug "API called: AccountingApi#update_expense_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15187
15824
|
end
|
|
@@ -15266,7 +15903,7 @@ module XeroRuby
|
|
|
15266
15903
|
:return_type => return_type
|
|
15267
15904
|
)
|
|
15268
15905
|
|
|
15269
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15906
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15270
15907
|
if @api_client.config.debugging
|
|
15271
15908
|
@api_client.config.logger.debug "API called: AccountingApi#update_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15272
15909
|
end
|
|
@@ -15354,7 +15991,7 @@ module XeroRuby
|
|
|
15354
15991
|
:return_type => return_type
|
|
15355
15992
|
)
|
|
15356
15993
|
|
|
15357
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
15994
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15358
15995
|
if @api_client.config.debugging
|
|
15359
15996
|
@api_client.config.logger.debug "API called: AccountingApi#update_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15360
15997
|
end
|
|
@@ -15439,7 +16076,7 @@ module XeroRuby
|
|
|
15439
16076
|
:return_type => return_type
|
|
15440
16077
|
)
|
|
15441
16078
|
|
|
15442
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16079
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15443
16080
|
if @api_client.config.debugging
|
|
15444
16081
|
@api_client.config.logger.debug "API called: AccountingApi#update_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15445
16082
|
end
|
|
@@ -15521,7 +16158,7 @@ module XeroRuby
|
|
|
15521
16158
|
:return_type => return_type
|
|
15522
16159
|
)
|
|
15523
16160
|
|
|
15524
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16161
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15525
16162
|
if @api_client.config.debugging
|
|
15526
16163
|
@api_client.config.logger.debug "API called: AccountingApi#update_linked_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15527
16164
|
end
|
|
@@ -15603,7 +16240,7 @@ module XeroRuby
|
|
|
15603
16240
|
:return_type => return_type
|
|
15604
16241
|
)
|
|
15605
16242
|
|
|
15606
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16243
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15607
16244
|
if @api_client.config.debugging
|
|
15608
16245
|
@api_client.config.logger.debug "API called: AccountingApi#update_manual_journal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15609
16246
|
end
|
|
@@ -15691,7 +16328,7 @@ module XeroRuby
|
|
|
15691
16328
|
:return_type => return_type
|
|
15692
16329
|
)
|
|
15693
16330
|
|
|
15694
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16331
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15695
16332
|
if @api_client.config.debugging
|
|
15696
16333
|
@api_client.config.logger.debug "API called: AccountingApi#update_manual_journal_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15697
16334
|
end
|
|
@@ -15702,7 +16339,7 @@ module XeroRuby
|
|
|
15702
16339
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15703
16340
|
# @param bank_transactions [BankTransactions]
|
|
15704
16341
|
# @param [Hash] opts the optional parameters
|
|
15705
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16342
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
15706
16343
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
15707
16344
|
# @return [BankTransactions]
|
|
15708
16345
|
def update_or_create_bank_transactions(xero_tenant_id, bank_transactions, opts = {})
|
|
@@ -15714,7 +16351,7 @@ module XeroRuby
|
|
|
15714
16351
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15715
16352
|
# @param bank_transactions [BankTransactions]
|
|
15716
16353
|
# @param [Hash] opts the optional parameters
|
|
15717
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16354
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
15718
16355
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
15719
16356
|
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
|
15720
16357
|
def update_or_create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts = {})
|
|
@@ -15773,7 +16410,7 @@ module XeroRuby
|
|
|
15773
16410
|
:return_type => return_type
|
|
15774
16411
|
)
|
|
15775
16412
|
|
|
15776
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16413
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15777
16414
|
if @api_client.config.debugging
|
|
15778
16415
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_bank_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15779
16416
|
end
|
|
@@ -15784,7 +16421,7 @@ module XeroRuby
|
|
|
15784
16421
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15785
16422
|
# @param contacts [Contacts]
|
|
15786
16423
|
# @param [Hash] opts the optional parameters
|
|
15787
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16424
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
15788
16425
|
# @return [Contacts]
|
|
15789
16426
|
def update_or_create_contacts(xero_tenant_id, contacts, opts = {})
|
|
15790
16427
|
data, _status_code, _headers = update_or_create_contacts_with_http_info(xero_tenant_id, contacts, opts)
|
|
@@ -15795,7 +16432,7 @@ module XeroRuby
|
|
|
15795
16432
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15796
16433
|
# @param contacts [Contacts]
|
|
15797
16434
|
# @param [Hash] opts the optional parameters
|
|
15798
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16435
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
15799
16436
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
|
15800
16437
|
def update_or_create_contacts_with_http_info(xero_tenant_id, contacts, opts = {})
|
|
15801
16438
|
if @api_client.config.debugging
|
|
@@ -15852,7 +16489,7 @@ module XeroRuby
|
|
|
15852
16489
|
:return_type => return_type
|
|
15853
16490
|
)
|
|
15854
16491
|
|
|
15855
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16492
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15856
16493
|
if @api_client.config.debugging
|
|
15857
16494
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15858
16495
|
end
|
|
@@ -15863,7 +16500,7 @@ module XeroRuby
|
|
|
15863
16500
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15864
16501
|
# @param credit_notes [CreditNotes] an array of Credit Notes with a single CreditNote object.
|
|
15865
16502
|
# @param [Hash] opts the optional parameters
|
|
15866
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16503
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
15867
16504
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
15868
16505
|
# @return [CreditNotes]
|
|
15869
16506
|
def update_or_create_credit_notes(xero_tenant_id, credit_notes, opts = {})
|
|
@@ -15875,7 +16512,7 @@ module XeroRuby
|
|
|
15875
16512
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15876
16513
|
# @param credit_notes [CreditNotes] an array of Credit Notes with a single CreditNote object.
|
|
15877
16514
|
# @param [Hash] opts the optional parameters
|
|
15878
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16515
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
15879
16516
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
15880
16517
|
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
|
15881
16518
|
def update_or_create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts = {})
|
|
@@ -15934,7 +16571,7 @@ module XeroRuby
|
|
|
15934
16571
|
:return_type => return_type
|
|
15935
16572
|
)
|
|
15936
16573
|
|
|
15937
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16574
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
15938
16575
|
if @api_client.config.debugging
|
|
15939
16576
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_credit_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15940
16577
|
end
|
|
@@ -15945,7 +16582,7 @@ module XeroRuby
|
|
|
15945
16582
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15946
16583
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
15947
16584
|
# @param [Hash] opts the optional parameters
|
|
15948
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16585
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
15949
16586
|
# @return [Employees]
|
|
15950
16587
|
def update_or_create_employees(xero_tenant_id, employees, opts = {})
|
|
15951
16588
|
data, _status_code, _headers = update_or_create_employees_with_http_info(xero_tenant_id, employees, opts)
|
|
@@ -15956,7 +16593,7 @@ module XeroRuby
|
|
|
15956
16593
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15957
16594
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
15958
16595
|
# @param [Hash] opts the optional parameters
|
|
15959
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16596
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
15960
16597
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
|
15961
16598
|
def update_or_create_employees_with_http_info(xero_tenant_id, employees, opts = {})
|
|
15962
16599
|
if @api_client.config.debugging
|
|
@@ -16013,7 +16650,7 @@ module XeroRuby
|
|
|
16013
16650
|
:return_type => return_type
|
|
16014
16651
|
)
|
|
16015
16652
|
|
|
16016
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16653
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16017
16654
|
if @api_client.config.debugging
|
|
16018
16655
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16019
16656
|
end
|
|
@@ -16024,7 +16661,7 @@ module XeroRuby
|
|
|
16024
16661
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16025
16662
|
# @param invoices [Invoices]
|
|
16026
16663
|
# @param [Hash] opts the optional parameters
|
|
16027
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16664
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
16028
16665
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16029
16666
|
# @return [Invoices]
|
|
16030
16667
|
def update_or_create_invoices(xero_tenant_id, invoices, opts = {})
|
|
@@ -16036,7 +16673,7 @@ module XeroRuby
|
|
|
16036
16673
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16037
16674
|
# @param invoices [Invoices]
|
|
16038
16675
|
# @param [Hash] opts the optional parameters
|
|
16039
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16676
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
16040
16677
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16041
16678
|
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
|
16042
16679
|
def update_or_create_invoices_with_http_info(xero_tenant_id, invoices, opts = {})
|
|
@@ -16095,7 +16732,7 @@ module XeroRuby
|
|
|
16095
16732
|
:return_type => return_type
|
|
16096
16733
|
)
|
|
16097
16734
|
|
|
16098
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16735
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16099
16736
|
if @api_client.config.debugging
|
|
16100
16737
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16101
16738
|
end
|
|
@@ -16106,7 +16743,7 @@ module XeroRuby
|
|
|
16106
16743
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16107
16744
|
# @param items [Items]
|
|
16108
16745
|
# @param [Hash] opts the optional parameters
|
|
16109
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16746
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
16110
16747
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16111
16748
|
# @return [Items]
|
|
16112
16749
|
def update_or_create_items(xero_tenant_id, items, opts = {})
|
|
@@ -16118,7 +16755,7 @@ module XeroRuby
|
|
|
16118
16755
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16119
16756
|
# @param items [Items]
|
|
16120
16757
|
# @param [Hash] opts the optional parameters
|
|
16121
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16758
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
16122
16759
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16123
16760
|
# @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
|
|
16124
16761
|
def update_or_create_items_with_http_info(xero_tenant_id, items, opts = {})
|
|
@@ -16177,7 +16814,7 @@ module XeroRuby
|
|
|
16177
16814
|
:return_type => return_type
|
|
16178
16815
|
)
|
|
16179
16816
|
|
|
16180
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16817
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16181
16818
|
if @api_client.config.debugging
|
|
16182
16819
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16183
16820
|
end
|
|
@@ -16188,7 +16825,7 @@ module XeroRuby
|
|
|
16188
16825
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16189
16826
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
|
16190
16827
|
# @param [Hash] opts the optional parameters
|
|
16191
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16828
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
16192
16829
|
# @return [ManualJournals]
|
|
16193
16830
|
def update_or_create_manual_journals(xero_tenant_id, manual_journals, opts = {})
|
|
16194
16831
|
data, _status_code, _headers = update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts)
|
|
@@ -16199,7 +16836,7 @@ module XeroRuby
|
|
|
16199
16836
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16200
16837
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
|
16201
16838
|
# @param [Hash] opts the optional parameters
|
|
16202
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16839
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
16203
16840
|
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
|
16204
16841
|
def update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts = {})
|
|
16205
16842
|
if @api_client.config.debugging
|
|
@@ -16256,7 +16893,7 @@ module XeroRuby
|
|
|
16256
16893
|
:return_type => return_type
|
|
16257
16894
|
)
|
|
16258
16895
|
|
|
16259
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16896
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16260
16897
|
if @api_client.config.debugging
|
|
16261
16898
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_manual_journals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16262
16899
|
end
|
|
@@ -16267,7 +16904,7 @@ module XeroRuby
|
|
|
16267
16904
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16268
16905
|
# @param purchase_orders [PurchaseOrders]
|
|
16269
16906
|
# @param [Hash] opts the optional parameters
|
|
16270
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16907
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
16271
16908
|
# @return [PurchaseOrders]
|
|
16272
16909
|
def update_or_create_purchase_orders(xero_tenant_id, purchase_orders, opts = {})
|
|
16273
16910
|
data, _status_code, _headers = update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts)
|
|
@@ -16278,7 +16915,7 @@ module XeroRuby
|
|
|
16278
16915
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16279
16916
|
# @param purchase_orders [PurchaseOrders]
|
|
16280
16917
|
# @param [Hash] opts the optional parameters
|
|
16281
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16918
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
16282
16919
|
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
|
16283
16920
|
def update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts = {})
|
|
16284
16921
|
if @api_client.config.debugging
|
|
@@ -16335,7 +16972,7 @@ module XeroRuby
|
|
|
16335
16972
|
:return_type => return_type
|
|
16336
16973
|
)
|
|
16337
16974
|
|
|
16338
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
16975
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16339
16976
|
if @api_client.config.debugging
|
|
16340
16977
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_purchase_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16341
16978
|
end
|
|
@@ -16346,7 +16983,7 @@ module XeroRuby
|
|
|
16346
16983
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16347
16984
|
# @param quotes [Quotes]
|
|
16348
16985
|
# @param [Hash] opts the optional parameters
|
|
16349
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16986
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
16350
16987
|
# @return [Quotes]
|
|
16351
16988
|
def update_or_create_quotes(xero_tenant_id, quotes, opts = {})
|
|
16352
16989
|
data, _status_code, _headers = update_or_create_quotes_with_http_info(xero_tenant_id, quotes, opts)
|
|
@@ -16357,7 +16994,7 @@ module XeroRuby
|
|
|
16357
16994
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16358
16995
|
# @param quotes [Quotes]
|
|
16359
16996
|
# @param [Hash] opts the optional parameters
|
|
16360
|
-
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created
|
|
16997
|
+
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
16361
16998
|
# @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
|
|
16362
16999
|
def update_or_create_quotes_with_http_info(xero_tenant_id, quotes, opts = {})
|
|
16363
17000
|
if @api_client.config.debugging
|
|
@@ -16414,7 +17051,7 @@ module XeroRuby
|
|
|
16414
17051
|
:return_type => return_type
|
|
16415
17052
|
)
|
|
16416
17053
|
|
|
16417
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17054
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16418
17055
|
if @api_client.config.debugging
|
|
16419
17056
|
@api_client.config.logger.debug "API called: AccountingApi#update_or_create_quotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16420
17057
|
end
|
|
@@ -16496,13 +17133,101 @@ module XeroRuby
|
|
|
16496
17133
|
:return_type => return_type
|
|
16497
17134
|
)
|
|
16498
17135
|
|
|
16499
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17136
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16500
17137
|
if @api_client.config.debugging
|
|
16501
17138
|
@api_client.config.logger.debug "API called: AccountingApi#update_purchase_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16502
17139
|
end
|
|
16503
17140
|
return data, status_code, headers
|
|
16504
17141
|
end
|
|
16505
17142
|
|
|
17143
|
+
# Allows you to update Attachment on Purchase Order by Filename
|
|
17144
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
17145
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Order object
|
|
17146
|
+
# @param file_name [String] Name of the attachment
|
|
17147
|
+
# @param body [String] Byte array of file in body of request
|
|
17148
|
+
# @param [Hash] opts the optional parameters
|
|
17149
|
+
# @return [Attachments]
|
|
17150
|
+
def update_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
|
|
17151
|
+
data, _status_code, _headers = update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts)
|
|
17152
|
+
data
|
|
17153
|
+
end
|
|
17154
|
+
|
|
17155
|
+
# Allows you to update Attachment on Purchase Order by Filename
|
|
17156
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
17157
|
+
# @param purchase_order_id [String] Unique identifier for Purchase Order object
|
|
17158
|
+
# @param file_name [String] Name of the attachment
|
|
17159
|
+
# @param body [String] Byte array of file in body of request
|
|
17160
|
+
# @param [Hash] opts the optional parameters
|
|
17161
|
+
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
17162
|
+
def update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
|
|
17163
|
+
if @api_client.config.debugging
|
|
17164
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.update_purchase_order_attachment_by_file_name ...'
|
|
17165
|
+
end
|
|
17166
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
17167
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
17168
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.update_purchase_order_attachment_by_file_name"
|
|
17169
|
+
end
|
|
17170
|
+
# verify the required parameter 'purchase_order_id' is set
|
|
17171
|
+
if @api_client.config.client_side_validation && purchase_order_id.nil?
|
|
17172
|
+
fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.update_purchase_order_attachment_by_file_name"
|
|
17173
|
+
end
|
|
17174
|
+
# verify the required parameter 'file_name' is set
|
|
17175
|
+
if @api_client.config.client_side_validation && file_name.nil?
|
|
17176
|
+
fail ArgumentError, "Missing the required parameter 'file_name' when calling AccountingApi.update_purchase_order_attachment_by_file_name"
|
|
17177
|
+
end
|
|
17178
|
+
# verify the required parameter 'body' is set
|
|
17179
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
17180
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_purchase_order_attachment_by_file_name"
|
|
17181
|
+
end
|
|
17182
|
+
# resource path
|
|
17183
|
+
local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
|
|
17184
|
+
|
|
17185
|
+
# camelize keys of incoming `where` opts
|
|
17186
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
17187
|
+
|
|
17188
|
+
# query parameters
|
|
17189
|
+
query_params = opts[:query_params] || {}
|
|
17190
|
+
|
|
17191
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
17192
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
17193
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
17194
|
+
|
|
17195
|
+
# header parameters
|
|
17196
|
+
header_params = opts[:header_params] || {}
|
|
17197
|
+
# HTTP header 'Accept' (if needed)
|
|
17198
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
17199
|
+
# HTTP header 'Content-Type'
|
|
17200
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
17201
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17202
|
+
|
|
17203
|
+
# form parameters
|
|
17204
|
+
form_params = opts[:form_params] || {}
|
|
17205
|
+
|
|
17206
|
+
# http body (model)
|
|
17207
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
17208
|
+
|
|
17209
|
+
# return_type
|
|
17210
|
+
return_type = opts[:return_type] || 'Attachments'
|
|
17211
|
+
|
|
17212
|
+
# auth_names
|
|
17213
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
17214
|
+
|
|
17215
|
+
new_options = opts.merge(
|
|
17216
|
+
:header_params => header_params,
|
|
17217
|
+
:query_params => query_params,
|
|
17218
|
+
:form_params => form_params,
|
|
17219
|
+
:body => post_body,
|
|
17220
|
+
:auth_names => auth_names,
|
|
17221
|
+
:return_type => return_type
|
|
17222
|
+
)
|
|
17223
|
+
|
|
17224
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
17225
|
+
if @api_client.config.debugging
|
|
17226
|
+
@api_client.config.logger.debug "API called: AccountingApi#update_purchase_order_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
17227
|
+
end
|
|
17228
|
+
return data, status_code, headers
|
|
17229
|
+
end
|
|
17230
|
+
|
|
16506
17231
|
# Allows you to update a specified quote
|
|
16507
17232
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
16508
17233
|
# @param quote_id [String] Unique identifier for an Quote
|
|
@@ -16578,7 +17303,7 @@ module XeroRuby
|
|
|
16578
17303
|
:return_type => return_type
|
|
16579
17304
|
)
|
|
16580
17305
|
|
|
16581
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17306
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16582
17307
|
if @api_client.config.debugging
|
|
16583
17308
|
@api_client.config.logger.debug "API called: AccountingApi#update_quote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16584
17309
|
end
|
|
@@ -16666,7 +17391,7 @@ module XeroRuby
|
|
|
16666
17391
|
:return_type => return_type
|
|
16667
17392
|
)
|
|
16668
17393
|
|
|
16669
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17394
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16670
17395
|
if @api_client.config.debugging
|
|
16671
17396
|
@api_client.config.logger.debug "API called: AccountingApi#update_quote_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16672
17397
|
end
|
|
@@ -16751,7 +17476,7 @@ module XeroRuby
|
|
|
16751
17476
|
:return_type => return_type
|
|
16752
17477
|
)
|
|
16753
17478
|
|
|
16754
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17479
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16755
17480
|
if @api_client.config.debugging
|
|
16756
17481
|
@api_client.config.logger.debug "API called: AccountingApi#update_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16757
17482
|
end
|
|
@@ -16839,7 +17564,7 @@ module XeroRuby
|
|
|
16839
17564
|
:return_type => return_type
|
|
16840
17565
|
)
|
|
16841
17566
|
|
|
16842
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17567
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16843
17568
|
if @api_client.config.debugging
|
|
16844
17569
|
@api_client.config.logger.debug "API called: AccountingApi#update_receipt_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16845
17570
|
end
|
|
@@ -16927,7 +17652,7 @@ module XeroRuby
|
|
|
16927
17652
|
:return_type => return_type
|
|
16928
17653
|
)
|
|
16929
17654
|
|
|
16930
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17655
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
16931
17656
|
if @api_client.config.debugging
|
|
16932
17657
|
@api_client.config.logger.debug "API called: AccountingApi#update_repeating_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
16933
17658
|
end
|
|
@@ -17003,7 +17728,7 @@ module XeroRuby
|
|
|
17003
17728
|
:return_type => return_type
|
|
17004
17729
|
)
|
|
17005
17730
|
|
|
17006
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17731
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
17007
17732
|
if @api_client.config.debugging
|
|
17008
17733
|
@api_client.config.logger.debug "API called: AccountingApi#update_tax_rate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
17009
17734
|
end
|
|
@@ -17085,7 +17810,7 @@ module XeroRuby
|
|
|
17085
17810
|
:return_type => return_type
|
|
17086
17811
|
)
|
|
17087
17812
|
|
|
17088
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17813
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
17089
17814
|
if @api_client.config.debugging
|
|
17090
17815
|
@api_client.config.logger.debug "API called: AccountingApi#update_tracking_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
17091
17816
|
end
|
|
@@ -17173,7 +17898,7 @@ module XeroRuby
|
|
|
17173
17898
|
:return_type => return_type
|
|
17174
17899
|
)
|
|
17175
17900
|
|
|
17176
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
17901
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
|
|
17177
17902
|
if @api_client.config.debugging
|
|
17178
17903
|
@api_client.config.logger.debug "API called: AccountingApi#update_tracking_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
17179
17904
|
end
|