xero-ruby 2.4.1 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +240 -189
- data/lib/xero-ruby.rb +10 -4
- data/lib/xero-ruby/api/accounting_api.rb +1308 -920
- data/lib/xero-ruby/api/asset_api.rb +15 -14
- data/lib/xero-ruby/api/files_api.rb +204 -85
- data/lib/xero-ruby/api/payroll_au_api.rb +121 -93
- data/lib/xero-ruby/api/payroll_nz_api.rb +307 -240
- data/lib/xero-ruby/api/payroll_uk_api.rb +317 -254
- data/lib/xero-ruby/api/project_api.rb +71 -59
- data/lib/xero-ruby/api_client.rb +182 -128
- data/lib/xero-ruby/api_error.rb +4 -4
- data/lib/xero-ruby/configuration.rb +17 -5
- data/lib/xero-ruby/models/accounting/account.rb +25 -12
- data/lib/xero-ruby/models/accounting/account_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/accounts.rb +25 -11
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +25 -11
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +25 -11
- data/lib/xero-ruby/models/accounting/action.rb +25 -11
- data/lib/xero-ruby/models/accounting/actions.rb +25 -11
- data/lib/xero-ruby/models/accounting/address.rb +27 -14
- data/lib/xero-ruby/models/accounting/address_for_organisation.rb +484 -0
- data/lib/xero-ruby/models/accounting/allocation.rb +25 -11
- data/lib/xero-ruby/models/accounting/allocations.rb +25 -11
- data/lib/xero-ruby/models/accounting/attachment.rb +25 -11
- data/lib/xero-ruby/models/accounting/attachments.rb +25 -11
- data/lib/xero-ruby/models/accounting/balance_details.rb +25 -11
- data/lib/xero-ruby/models/accounting/balances.rb +25 -11
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +25 -11
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +25 -11
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +25 -11
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +25 -11
- data/lib/xero-ruby/models/accounting/batch_payment.rb +41 -15
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +25 -11
- data/lib/xero-ruby/models/accounting/batch_payments.rb +25 -11
- data/lib/xero-ruby/models/accounting/bill.rb +25 -11
- data/lib/xero-ruby/models/accounting/branding_theme.rb +25 -11
- data/lib/xero-ruby/models/accounting/branding_themes.rb +25 -11
- data/lib/xero-ruby/models/accounting/budget.rb +327 -0
- data/lib/xero-ruby/models/accounting/budget_balance.rb +267 -0
- data/lib/xero-ruby/models/accounting/budget_line.rb +244 -0
- data/lib/xero-ruby/models/{files/file_response204.rb → accounting/budgets.rb} +40 -24
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +26 -12
- data/lib/xero-ruby/models/accounting/cis_org_settings.rb +224 -0
- data/lib/xero-ruby/models/accounting/cis_setting.rb +26 -12
- data/lib/xero-ruby/models/accounting/cis_settings.rb +25 -11
- data/lib/xero-ruby/models/accounting/contact.rb +25 -11
- data/lib/xero-ruby/models/accounting/contact_group.rb +25 -11
- data/lib/xero-ruby/models/accounting/contact_groups.rb +25 -11
- data/lib/xero-ruby/models/accounting/contact_person.rb +25 -11
- data/lib/xero-ruby/models/accounting/contacts.rb +25 -11
- data/lib/xero-ruby/models/accounting/conversion_balances.rb +25 -11
- data/lib/xero-ruby/models/accounting/conversion_date.rb +25 -11
- data/lib/xero-ruby/models/accounting/country_code.rb +1 -2
- data/lib/xero-ruby/models/accounting/credit_note.rb +62 -16
- data/lib/xero-ruby/models/accounting/credit_notes.rb +25 -11
- data/lib/xero-ruby/models/accounting/currencies.rb +25 -11
- data/lib/xero-ruby/models/accounting/currency.rb +25 -11
- data/lib/xero-ruby/models/accounting/currency_code.rb +1 -2
- data/lib/xero-ruby/models/accounting/element.rb +25 -11
- data/lib/xero-ruby/models/accounting/employee.rb +25 -11
- data/lib/xero-ruby/models/accounting/employees.rb +25 -11
- data/lib/xero-ruby/models/accounting/error.rb +25 -11
- data/lib/xero-ruby/models/accounting/expense_claim.rb +25 -11
- data/lib/xero-ruby/models/accounting/expense_claims.rb +25 -11
- data/lib/xero-ruby/models/accounting/external_link.rb +25 -11
- data/lib/xero-ruby/models/accounting/history_record.rb +25 -11
- data/lib/xero-ruby/models/accounting/history_records.rb +25 -11
- data/lib/xero-ruby/models/accounting/import_summary.rb +25 -11
- data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +33 -19
- data/lib/xero-ruby/models/accounting/import_summary_object.rb +25 -11
- data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +25 -11
- data/lib/xero-ruby/models/accounting/invoice.rb +37 -28
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +25 -11
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +25 -11
- data/lib/xero-ruby/models/accounting/invoices.rb +25 -11
- data/lib/xero-ruby/models/accounting/item.rb +25 -11
- data/lib/xero-ruby/models/accounting/items.rb +25 -11
- data/lib/xero-ruby/models/accounting/journal.rb +25 -11
- data/lib/xero-ruby/models/accounting/journal_line.rb +25 -11
- data/lib/xero-ruby/models/accounting/journals.rb +25 -11
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -2
- data/lib/xero-ruby/models/accounting/line_item.rb +36 -12
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +25 -11
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +25 -11
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +25 -11
- data/lib/xero-ruby/models/accounting/manual_journal.rb +25 -11
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +25 -11
- data/lib/xero-ruby/models/accounting/manual_journals.rb +25 -11
- data/lib/xero-ruby/models/accounting/online_invoice.rb +25 -11
- data/lib/xero-ruby/models/accounting/online_invoices.rb +25 -11
- data/lib/xero-ruby/models/accounting/organisation.rb +26 -14
- data/lib/xero-ruby/models/accounting/organisations.rb +25 -11
- data/lib/xero-ruby/models/accounting/overpayment.rb +25 -11
- data/lib/xero-ruby/models/accounting/overpayments.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment.rb +36 -12
- data/lib/xero-ruby/models/accounting/payment_delete.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment_service.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment_services.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment_term.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/payments.rb +25 -11
- data/lib/xero-ruby/models/accounting/phone.rb +25 -11
- data/lib/xero-ruby/models/accounting/prepayment.rb +38 -12
- data/lib/xero-ruby/models/accounting/prepayments.rb +25 -11
- data/lib/xero-ruby/models/accounting/purchase.rb +25 -11
- data/lib/xero-ruby/models/accounting/purchase_order.rb +25 -11
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +25 -11
- data/lib/xero-ruby/models/accounting/quote.rb +25 -11
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -2
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -2
- data/lib/xero-ruby/models/accounting/quotes.rb +25 -11
- data/lib/xero-ruby/models/accounting/receipt.rb +25 -11
- data/lib/xero-ruby/models/accounting/receipts.rb +25 -11
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +25 -11
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +25 -11
- data/lib/xero-ruby/models/accounting/report.rb +26 -22
- data/lib/xero-ruby/models/accounting/report_attribute.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_cell.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_fields.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_row.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_rows.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_with_row.rb +26 -12
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +25 -11
- data/lib/xero-ruby/models/accounting/reports.rb +25 -11
- data/lib/xero-ruby/models/accounting/request_empty.rb +25 -11
- data/lib/xero-ruby/models/accounting/row_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +25 -11
- data/lib/xero-ruby/models/accounting/schedule.rb +25 -11
- data/lib/xero-ruby/models/accounting/setup.rb +25 -11
- data/lib/xero-ruby/models/accounting/tax_component.rb +25 -11
- data/lib/xero-ruby/models/accounting/tax_rate.rb +25 -11
- data/lib/xero-ruby/models/accounting/tax_rates.rb +25 -11
- data/lib/xero-ruby/models/accounting/tax_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +25 -11
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -2
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +25 -11
- data/lib/xero-ruby/models/accounting/tracking_category.rb +25 -11
- data/lib/xero-ruby/models/accounting/tracking_option.rb +25 -11
- data/lib/xero-ruby/models/accounting/tracking_options.rb +25 -11
- data/lib/xero-ruby/models/accounting/user.rb +25 -11
- data/lib/xero-ruby/models/accounting/users.rb +25 -11
- data/lib/xero-ruby/models/accounting/validation_error.rb +25 -11
- data/lib/xero-ruby/models/assets/asset.rb +25 -11
- data/lib/xero-ruby/models/assets/asset_status.rb +1 -2
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -2
- data/lib/xero-ruby/models/assets/asset_type.rb +25 -11
- data/lib/xero-ruby/models/assets/assets.rb +25 -11
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +25 -11
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +25 -11
- data/lib/xero-ruby/models/assets/error.rb +25 -11
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +26 -12
- data/lib/xero-ruby/models/assets/pagination.rb +25 -11
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +26 -12
- data/lib/xero-ruby/models/assets/setting.rb +25 -11
- data/lib/xero-ruby/models/files/association.rb +25 -11
- data/lib/xero-ruby/models/files/file_object.rb +25 -11
- data/lib/xero-ruby/models/files/files.rb +25 -11
- data/lib/xero-ruby/models/files/folder.rb +25 -11
- data/lib/xero-ruby/models/files/folders.rb +25 -11
- data/lib/xero-ruby/models/files/object_group.rb +1 -2
- data/lib/xero-ruby/models/files/object_type.rb +1 -2
- data/lib/xero-ruby/models/files/{inline_object.rb → upload_object.rb} +43 -14
- data/lib/xero-ruby/models/files/user.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/account.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/account_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/api_exception.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/bank_account.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/calendar_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +25 -16
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/employee.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/employee_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/employees.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/home_address.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_applications.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_balance.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/leave_lines.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_period.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_item.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_items.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_run.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/pay_runs.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_template.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslip.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslip_object.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslips.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/rate_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/residency_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/settings.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/settings_object.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/state.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/super_fund.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/super_funds.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/super_line.rb +26 -12
- data/lib/xero-ruby/models/payroll_au/super_membership.rb +26 -12
- data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/tax_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/timesheet.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/timesheets.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/validation_error.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/account.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/accounts.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/address.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/bank_account.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/benefit.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/deduction.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/deductions.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employees.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employment.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employment_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_types.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pagination.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/payment_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/payment_method.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/problem.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +28 -13
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/settings.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/superannuations.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/tax_code.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/tax_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +28 -13
- data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/timesheets.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/account.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/accounts.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/address.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/bank_account.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/benefit.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/benefits.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/deduction.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/deductions.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +34 -12
- data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +25 -11
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employees.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employment.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employment_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_period.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_type.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_types.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pagination.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payment_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payment_method.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payslip.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payslips.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/problem.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +27 -12
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/settings.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +0 -1
- data/lib/xero-ruby/models/payroll_uk/tax_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +25 -11
- data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheets.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +24 -10
- data/lib/xero-ruby/models/projects/amount.rb +24 -10
- data/lib/xero-ruby/models/projects/charge_type.rb +0 -1
- data/lib/xero-ruby/models/projects/currency_code.rb +0 -1
- data/lib/xero-ruby/models/projects/error.rb +24 -10
- data/lib/xero-ruby/models/projects/pagination.rb +24 -10
- data/lib/xero-ruby/models/projects/project.rb +24 -10
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +24 -10
- data/lib/xero-ruby/models/projects/project_patch.rb +24 -10
- data/lib/xero-ruby/models/projects/project_status.rb +0 -1
- data/lib/xero-ruby/models/projects/project_user.rb +24 -10
- data/lib/xero-ruby/models/projects/project_users.rb +24 -10
- data/lib/xero-ruby/models/projects/projects.rb +24 -10
- data/lib/xero-ruby/models/projects/task.rb +24 -10
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +24 -10
- data/lib/xero-ruby/models/projects/tasks.rb +24 -10
- data/lib/xero-ruby/models/projects/time_entries.rb +24 -10
- data/lib/xero-ruby/models/projects/time_entry.rb +27 -12
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +24 -10
- data/lib/xero-ruby/string_serialization.rb +52 -0
- data/lib/xero-ruby/version.rb +3 -3
- data/lib/xero-ruby/where.rb +65 -0
- data/spec/api_client_spec.rb +292 -14
- data/spec/api_error_spec.rb +45 -0
- data/spec/configuration_spec.rb +26 -16
- data/spec/files/models/inline_object_spec.rb +3 -3
- data/spec/helper_methods_spec.rb +110 -0
- data/spec/where_spec.rb +82 -0
- metadata +43 -12
- data/spec/files/models/file_response204_spec.rb +0 -41
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
#This is the Xero Projects API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.6.0
|
7
6
|
Contact: api@xero.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 4.3.1
|
@@ -17,7 +16,7 @@ module XeroRuby
|
|
17
16
|
def initialize(api_client = ApiClient.new)
|
18
17
|
@api_client = api_client
|
19
18
|
end
|
20
|
-
#
|
19
|
+
# Create one or more new projects
|
21
20
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
22
21
|
# @param project_create_or_update [ProjectCreateOrUpdate] Create a new project with ProjectCreateOrUpdate object
|
23
22
|
# @param [Hash] opts the optional parameters
|
@@ -27,12 +26,13 @@ module XeroRuby
|
|
27
26
|
data
|
28
27
|
end
|
29
28
|
|
30
|
-
#
|
29
|
+
# Create one or more new projects
|
31
30
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
32
31
|
# @param project_create_or_update [ProjectCreateOrUpdate] Create a new project with ProjectCreateOrUpdate object
|
33
32
|
# @param [Hash] opts the optional parameters
|
34
33
|
# @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
|
35
|
-
def create_project_with_http_info(xero_tenant_id, project_create_or_update,
|
34
|
+
def create_project_with_http_info(xero_tenant_id, project_create_or_update, options = {})
|
35
|
+
opts = options.dup
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug 'Calling API: ProjectApi.create_project ...'
|
38
38
|
end
|
@@ -45,7 +45,7 @@ module XeroRuby
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'project_create_or_update' when calling ProjectApi.create_project"
|
46
46
|
end
|
47
47
|
# resource path
|
48
|
-
local_var_path = '/
|
48
|
+
local_var_path = '/Projects'
|
49
49
|
|
50
50
|
# camelize keys of incoming `where` opts
|
51
51
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -93,7 +93,7 @@ module XeroRuby
|
|
93
93
|
return data, status_code, headers
|
94
94
|
end
|
95
95
|
|
96
|
-
#
|
96
|
+
# Creates a time entry for a specific project
|
97
97
|
# Allows you to create a specific task
|
98
98
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
99
99
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
@@ -105,14 +105,15 @@ module XeroRuby
|
|
105
105
|
data
|
106
106
|
end
|
107
107
|
|
108
|
-
#
|
108
|
+
# Creates a time entry for a specific project
|
109
109
|
# Allows you to create a specific task
|
110
110
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
111
111
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
112
112
|
# @param time_entry_create_or_update [TimeEntryCreateOrUpdate] The time entry object you are creating
|
113
113
|
# @param [Hash] opts the optional parameters
|
114
114
|
# @return [Array<(TimeEntry, Integer, Hash)>] TimeEntry data, response status code and response headers
|
115
|
-
def create_time_entry_with_http_info(xero_tenant_id, project_id, time_entry_create_or_update,
|
115
|
+
def create_time_entry_with_http_info(xero_tenant_id, project_id, time_entry_create_or_update, options = {})
|
116
|
+
opts = options.dup
|
116
117
|
if @api_client.config.debugging
|
117
118
|
@api_client.config.logger.debug 'Calling API: ProjectApi.create_time_entry ...'
|
118
119
|
end
|
@@ -129,7 +130,7 @@ module XeroRuby
|
|
129
130
|
fail ArgumentError, "Missing the required parameter 'time_entry_create_or_update' when calling ProjectApi.create_time_entry"
|
130
131
|
end
|
131
132
|
# resource path
|
132
|
-
local_var_path = '/
|
133
|
+
local_var_path = '/Projects/{projectId}/Time'.sub('{' + 'projectId' + '}', project_id.to_s)
|
133
134
|
|
134
135
|
# camelize keys of incoming `where` opts
|
135
136
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -177,7 +178,7 @@ module XeroRuby
|
|
177
178
|
return data, status_code, headers
|
178
179
|
end
|
179
180
|
|
180
|
-
#
|
181
|
+
# Deletes a time entry for a specific project
|
181
182
|
# Allows you to delete a specific time entry
|
182
183
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
183
184
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
@@ -189,14 +190,15 @@ module XeroRuby
|
|
189
190
|
nil
|
190
191
|
end
|
191
192
|
|
192
|
-
#
|
193
|
+
# Deletes a time entry for a specific project
|
193
194
|
# Allows you to delete a specific time entry
|
194
195
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
195
196
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
196
197
|
# @param time_entry_id [String] You can specify an individual task by appending the id to the endpoint
|
197
198
|
# @param [Hash] opts the optional parameters
|
198
199
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
199
|
-
def delete_time_entry_with_http_info(xero_tenant_id, project_id, time_entry_id,
|
200
|
+
def delete_time_entry_with_http_info(xero_tenant_id, project_id, time_entry_id, options = {})
|
201
|
+
opts = options.dup
|
200
202
|
if @api_client.config.debugging
|
201
203
|
@api_client.config.logger.debug 'Calling API: ProjectApi.delete_time_entry ...'
|
202
204
|
end
|
@@ -213,7 +215,7 @@ module XeroRuby
|
|
213
215
|
fail ArgumentError, "Missing the required parameter 'time_entry_id' when calling ProjectApi.delete_time_entry"
|
214
216
|
end
|
215
217
|
# resource path
|
216
|
-
local_var_path = '/
|
218
|
+
local_var_path = '/Projects/{projectId}/Time/{timeEntryId}'.sub('{' + 'projectId' + '}', project_id.to_s).sub('{' + 'timeEntryId' + '}', time_entry_id.to_s)
|
217
219
|
|
218
220
|
# camelize keys of incoming `where` opts
|
219
221
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -257,8 +259,8 @@ module XeroRuby
|
|
257
259
|
return data, status_code, headers
|
258
260
|
end
|
259
261
|
|
260
|
-
#
|
261
|
-
# Allows you to retrieve a specific project
|
262
|
+
# Retrieves a single project
|
263
|
+
# Allows you to retrieve a specific project using the projectId
|
262
264
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
263
265
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
264
266
|
# @param [Hash] opts the optional parameters
|
@@ -268,13 +270,14 @@ module XeroRuby
|
|
268
270
|
data
|
269
271
|
end
|
270
272
|
|
271
|
-
#
|
272
|
-
# Allows you to retrieve a specific project
|
273
|
+
# Retrieves a single project
|
274
|
+
# Allows you to retrieve a specific project using the projectId
|
273
275
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
274
276
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
275
277
|
# @param [Hash] opts the optional parameters
|
276
278
|
# @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
|
277
|
-
def get_project_with_http_info(xero_tenant_id, project_id,
|
279
|
+
def get_project_with_http_info(xero_tenant_id, project_id, options = {})
|
280
|
+
opts = options.dup
|
278
281
|
if @api_client.config.debugging
|
279
282
|
@api_client.config.logger.debug 'Calling API: ProjectApi.get_project ...'
|
280
283
|
end
|
@@ -287,7 +290,7 @@ module XeroRuby
|
|
287
290
|
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.get_project"
|
288
291
|
end
|
289
292
|
# resource path
|
290
|
-
local_var_path = '/
|
293
|
+
local_var_path = '/Projects/{projectId}'.sub('{' + 'projectId' + '}', project_id.to_s)
|
291
294
|
|
292
295
|
# camelize keys of incoming `where` opts
|
293
296
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -333,7 +336,7 @@ module XeroRuby
|
|
333
336
|
return data, status_code, headers
|
334
337
|
end
|
335
338
|
|
336
|
-
# list all project users
|
339
|
+
# Retrieves a list of all project users
|
337
340
|
# Allows you to retrieve the users on a projects.
|
338
341
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
339
342
|
# @param [Hash] opts the optional parameters
|
@@ -345,14 +348,15 @@ module XeroRuby
|
|
345
348
|
data
|
346
349
|
end
|
347
350
|
|
348
|
-
# list all project users
|
351
|
+
# Retrieves a list of all project users
|
349
352
|
# Allows you to retrieve the users on a projects.
|
350
353
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
351
354
|
# @param [Hash] opts the optional parameters
|
352
355
|
# @option opts [Integer] :page set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
|
353
356
|
# @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
|
354
357
|
# @return [Array<(ProjectUsers, Integer, Hash)>] ProjectUsers data, response status code and response headers
|
355
|
-
def get_project_users_with_http_info(xero_tenant_id,
|
358
|
+
def get_project_users_with_http_info(xero_tenant_id, options = {})
|
359
|
+
opts = options.dup
|
356
360
|
if @api_client.config.debugging
|
357
361
|
@api_client.config.logger.debug 'Calling API: ProjectApi.get_project_users ...'
|
358
362
|
end
|
@@ -369,7 +373,7 @@ module XeroRuby
|
|
369
373
|
end
|
370
374
|
|
371
375
|
# resource path
|
372
|
-
local_var_path = '/
|
376
|
+
local_var_path = '/ProjectsUsers'
|
373
377
|
|
374
378
|
# camelize keys of incoming `where` opts
|
375
379
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -417,7 +421,7 @@ module XeroRuby
|
|
417
421
|
return data, status_code, headers
|
418
422
|
end
|
419
423
|
|
420
|
-
#
|
424
|
+
# Retrieves all projects
|
421
425
|
# Allows you to retrieve, create and update projects.
|
422
426
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
423
427
|
# @param [Hash] opts the optional parameters
|
@@ -432,7 +436,7 @@ module XeroRuby
|
|
432
436
|
data
|
433
437
|
end
|
434
438
|
|
435
|
-
#
|
439
|
+
# Retrieves all projects
|
436
440
|
# Allows you to retrieve, create and update projects.
|
437
441
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
438
442
|
# @param [Hash] opts the optional parameters
|
@@ -442,7 +446,8 @@ module XeroRuby
|
|
442
446
|
# @option opts [Integer] :page set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
|
443
447
|
# @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
|
444
448
|
# @return [Array<(Projects, Integer, Hash)>] Projects data, response status code and response headers
|
445
|
-
def get_projects_with_http_info(xero_tenant_id,
|
449
|
+
def get_projects_with_http_info(xero_tenant_id, options = {})
|
450
|
+
opts = options.dup
|
446
451
|
if @api_client.config.debugging
|
447
452
|
@api_client.config.logger.debug 'Calling API: ProjectApi.get_projects ...'
|
448
453
|
end
|
@@ -459,7 +464,7 @@ module XeroRuby
|
|
459
464
|
end
|
460
465
|
|
461
466
|
# resource path
|
462
|
-
local_var_path = '/
|
467
|
+
local_var_path = '/Projects'
|
463
468
|
|
464
469
|
# camelize keys of incoming `where` opts
|
465
470
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -510,11 +515,11 @@ module XeroRuby
|
|
510
515
|
return data, status_code, headers
|
511
516
|
end
|
512
517
|
|
513
|
-
#
|
518
|
+
# Retrieves a single project task
|
514
519
|
# Allows you to retrieve a specific project
|
515
520
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
516
521
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
517
|
-
# @param task_id [String] You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{
|
522
|
+
# @param task_id [String] You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{taskID}
|
518
523
|
# @param [Hash] opts the optional parameters
|
519
524
|
# @return [Task]
|
520
525
|
def get_task(xero_tenant_id, project_id, task_id, opts = {})
|
@@ -522,14 +527,15 @@ module XeroRuby
|
|
522
527
|
data
|
523
528
|
end
|
524
529
|
|
525
|
-
#
|
530
|
+
# Retrieves a single project task
|
526
531
|
# Allows you to retrieve a specific project
|
527
532
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
528
533
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
529
|
-
# @param task_id [String] You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{
|
534
|
+
# @param task_id [String] You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{taskID}
|
530
535
|
# @param [Hash] opts the optional parameters
|
531
536
|
# @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers
|
532
|
-
def get_task_with_http_info(xero_tenant_id, project_id, task_id,
|
537
|
+
def get_task_with_http_info(xero_tenant_id, project_id, task_id, options = {})
|
538
|
+
opts = options.dup
|
533
539
|
if @api_client.config.debugging
|
534
540
|
@api_client.config.logger.debug 'Calling API: ProjectApi.get_task ...'
|
535
541
|
end
|
@@ -546,7 +552,7 @@ module XeroRuby
|
|
546
552
|
fail ArgumentError, "Missing the required parameter 'task_id' when calling ProjectApi.get_task"
|
547
553
|
end
|
548
554
|
# resource path
|
549
|
-
local_var_path = '/
|
555
|
+
local_var_path = '/Projects/{projectId}/Tasks/{taskId}'.sub('{' + 'projectId' + '}', project_id.to_s).sub('{' + 'taskId' + '}', task_id.to_s)
|
550
556
|
|
551
557
|
# camelize keys of incoming `where` opts
|
552
558
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -592,14 +598,14 @@ module XeroRuby
|
|
592
598
|
return data, status_code, headers
|
593
599
|
end
|
594
600
|
|
595
|
-
#
|
601
|
+
# Retrieves all project tasks
|
596
602
|
# Allows you to retrieve a specific project
|
597
603
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
598
604
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
599
605
|
# @param [Hash] opts the optional parameters
|
600
606
|
# @option opts [Integer] :page Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
|
601
607
|
# @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
|
602
|
-
# @option opts [String] :task_ids taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={
|
608
|
+
# @option opts [String] :task_ids taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID}
|
603
609
|
# @option opts [ChargeType] :charge_type
|
604
610
|
# @return [Tasks]
|
605
611
|
def get_tasks(xero_tenant_id, project_id, opts = {})
|
@@ -607,17 +613,18 @@ module XeroRuby
|
|
607
613
|
data
|
608
614
|
end
|
609
615
|
|
610
|
-
#
|
616
|
+
# Retrieves all project tasks
|
611
617
|
# Allows you to retrieve a specific project
|
612
618
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
613
619
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
614
620
|
# @param [Hash] opts the optional parameters
|
615
621
|
# @option opts [Integer] :page Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
|
616
622
|
# @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
|
617
|
-
# @option opts [String] :task_ids taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={
|
623
|
+
# @option opts [String] :task_ids taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID}
|
618
624
|
# @option opts [ChargeType] :charge_type
|
619
625
|
# @return [Array<(Tasks, Integer, Hash)>] Tasks data, response status code and response headers
|
620
|
-
def get_tasks_with_http_info(xero_tenant_id, project_id,
|
626
|
+
def get_tasks_with_http_info(xero_tenant_id, project_id, options = {})
|
627
|
+
opts = options.dup
|
621
628
|
if @api_client.config.debugging
|
622
629
|
@api_client.config.logger.debug 'Calling API: ProjectApi.get_tasks ...'
|
623
630
|
end
|
@@ -630,7 +637,7 @@ module XeroRuby
|
|
630
637
|
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.get_tasks"
|
631
638
|
end
|
632
639
|
# resource path
|
633
|
-
local_var_path = '/
|
640
|
+
local_var_path = '/Projects/{projectId}/Tasks'.sub('{' + 'projectId' + '}', project_id.to_s)
|
634
641
|
|
635
642
|
# camelize keys of incoming `where` opts
|
636
643
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -680,7 +687,7 @@ module XeroRuby
|
|
680
687
|
return data, status_code, headers
|
681
688
|
end
|
682
689
|
|
683
|
-
#
|
690
|
+
# Retrieves all time entries associated with a specific project
|
684
691
|
# Allows you to retrieve the time entries associated with a specific project
|
685
692
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
686
693
|
# @param project_id [String] Identifier of the project, that the task (which the time entry is logged against) belongs to.
|
@@ -691,7 +698,7 @@ module XeroRuby
|
|
691
698
|
# @option opts [String] :contact_id Finds all time entries for this contact identifier.
|
692
699
|
# @option opts [Integer] :page Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
|
693
700
|
# @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
|
694
|
-
# @option opts [Array<String>] :states Comma-separated list of states to find. Will find all time entries that are in the status of whatever
|
701
|
+
# @option opts [Array<String>] :states Comma-separated list of states to find. Will find all time entries that are in the status of whatever is specified.
|
695
702
|
# @option opts [Boolean] :is_chargeable Finds all time entries which relate to tasks with the charge type `TIME` or `FIXED`.
|
696
703
|
# @option opts [DateTime] :date_after_utc ISO 8601 UTC date. Finds all time entries on or after this date filtered on the `dateUtc` field.
|
697
704
|
# @option opts [DateTime] :date_before_utc ISO 8601 UTC date. Finds all time entries on or before this date filtered on the `dateUtc` field.
|
@@ -701,7 +708,7 @@ module XeroRuby
|
|
701
708
|
data
|
702
709
|
end
|
703
710
|
|
704
|
-
#
|
711
|
+
# Retrieves all time entries associated with a specific project
|
705
712
|
# Allows you to retrieve the time entries associated with a specific project
|
706
713
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
707
714
|
# @param project_id [String] Identifier of the project, that the task (which the time entry is logged against) belongs to.
|
@@ -712,12 +719,13 @@ module XeroRuby
|
|
712
719
|
# @option opts [String] :contact_id Finds all time entries for this contact identifier.
|
713
720
|
# @option opts [Integer] :page Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
|
714
721
|
# @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
|
715
|
-
# @option opts [Array<String>] :states Comma-separated list of states to find. Will find all time entries that are in the status of whatever
|
722
|
+
# @option opts [Array<String>] :states Comma-separated list of states to find. Will find all time entries that are in the status of whatever is specified.
|
716
723
|
# @option opts [Boolean] :is_chargeable Finds all time entries which relate to tasks with the charge type `TIME` or `FIXED`.
|
717
724
|
# @option opts [DateTime] :date_after_utc ISO 8601 UTC date. Finds all time entries on or after this date filtered on the `dateUtc` field.
|
718
725
|
# @option opts [DateTime] :date_before_utc ISO 8601 UTC date. Finds all time entries on or before this date filtered on the `dateUtc` field.
|
719
726
|
# @return [Array<(TimeEntries, Integer, Hash)>] TimeEntries data, response status code and response headers
|
720
|
-
def get_time_entries_with_http_info(xero_tenant_id, project_id,
|
727
|
+
def get_time_entries_with_http_info(xero_tenant_id, project_id, options = {})
|
728
|
+
opts = options.dup
|
721
729
|
if @api_client.config.debugging
|
722
730
|
@api_client.config.logger.debug 'Calling API: ProjectApi.get_time_entries ...'
|
723
731
|
end
|
@@ -730,7 +738,7 @@ module XeroRuby
|
|
730
738
|
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.get_time_entries"
|
731
739
|
end
|
732
740
|
# resource path
|
733
|
-
local_var_path = '/
|
741
|
+
local_var_path = '/Projects/{projectId}/Time'.sub('{' + 'projectId' + '}', project_id.to_s)
|
734
742
|
|
735
743
|
# camelize keys of incoming `where` opts
|
736
744
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -786,8 +794,8 @@ module XeroRuby
|
|
786
794
|
return data, status_code, headers
|
787
795
|
end
|
788
796
|
|
797
|
+
# Retrieves a single time entry for a specific project
|
789
798
|
# Allows you to get a single time entry in a project
|
790
|
-
# Allows you to upget a single time entry in a project
|
791
799
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
792
800
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
793
801
|
# @param time_entry_id [String] You can specify an individual time entry by appending the id to the endpoint
|
@@ -798,14 +806,15 @@ module XeroRuby
|
|
798
806
|
data
|
799
807
|
end
|
800
808
|
|
809
|
+
# Retrieves a single time entry for a specific project
|
801
810
|
# Allows you to get a single time entry in a project
|
802
|
-
# Allows you to upget a single time entry in a project
|
803
811
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
804
812
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
805
813
|
# @param time_entry_id [String] You can specify an individual time entry by appending the id to the endpoint
|
806
814
|
# @param [Hash] opts the optional parameters
|
807
815
|
# @return [Array<(TimeEntry, Integer, Hash)>] TimeEntry data, response status code and response headers
|
808
|
-
def get_time_entry_with_http_info(xero_tenant_id, project_id, time_entry_id,
|
816
|
+
def get_time_entry_with_http_info(xero_tenant_id, project_id, time_entry_id, options = {})
|
817
|
+
opts = options.dup
|
809
818
|
if @api_client.config.debugging
|
810
819
|
@api_client.config.logger.debug 'Calling API: ProjectApi.get_time_entry ...'
|
811
820
|
end
|
@@ -822,7 +831,7 @@ module XeroRuby
|
|
822
831
|
fail ArgumentError, "Missing the required parameter 'time_entry_id' when calling ProjectApi.get_time_entry"
|
823
832
|
end
|
824
833
|
# resource path
|
825
|
-
local_var_path = '/
|
834
|
+
local_var_path = '/Projects/{projectId}/Time/{timeEntryId}'.sub('{' + 'projectId' + '}', project_id.to_s).sub('{' + 'timeEntryId' + '}', time_entry_id.to_s)
|
826
835
|
|
827
836
|
# camelize keys of incoming `where` opts
|
828
837
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -887,7 +896,8 @@ module XeroRuby
|
|
887
896
|
# @param project_patch [ProjectPatch] Update the status of an existing Project
|
888
897
|
# @param [Hash] opts the optional parameters
|
889
898
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
890
|
-
def patch_project_with_http_info(xero_tenant_id, project_id, project_patch,
|
899
|
+
def patch_project_with_http_info(xero_tenant_id, project_id, project_patch, options = {})
|
900
|
+
opts = options.dup
|
891
901
|
if @api_client.config.debugging
|
892
902
|
@api_client.config.logger.debug 'Calling API: ProjectApi.patch_project ...'
|
893
903
|
end
|
@@ -904,7 +914,7 @@ module XeroRuby
|
|
904
914
|
fail ArgumentError, "Missing the required parameter 'project_patch' when calling ProjectApi.patch_project"
|
905
915
|
end
|
906
916
|
# resource path
|
907
|
-
local_var_path = '/
|
917
|
+
local_var_path = '/Projects/{projectId}'.sub('{' + 'projectId' + '}', project_id.to_s)
|
908
918
|
|
909
919
|
# camelize keys of incoming `where` opts
|
910
920
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -952,7 +962,7 @@ module XeroRuby
|
|
952
962
|
return data, status_code, headers
|
953
963
|
end
|
954
964
|
|
955
|
-
#
|
965
|
+
# Updates a specific project
|
956
966
|
# Allows you to update a specific projects.
|
957
967
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
958
968
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
@@ -964,14 +974,15 @@ module XeroRuby
|
|
964
974
|
nil
|
965
975
|
end
|
966
976
|
|
967
|
-
#
|
977
|
+
# Updates a specific project
|
968
978
|
# Allows you to update a specific projects.
|
969
979
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
970
980
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
971
981
|
# @param project_create_or_update [ProjectCreateOrUpdate] Request of type ProjectCreateOrUpdate
|
972
982
|
# @param [Hash] opts the optional parameters
|
973
983
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
974
|
-
def update_project_with_http_info(xero_tenant_id, project_id, project_create_or_update,
|
984
|
+
def update_project_with_http_info(xero_tenant_id, project_id, project_create_or_update, options = {})
|
985
|
+
opts = options.dup
|
975
986
|
if @api_client.config.debugging
|
976
987
|
@api_client.config.logger.debug 'Calling API: ProjectApi.update_project ...'
|
977
988
|
end
|
@@ -988,7 +999,7 @@ module XeroRuby
|
|
988
999
|
fail ArgumentError, "Missing the required parameter 'project_create_or_update' when calling ProjectApi.update_project"
|
989
1000
|
end
|
990
1001
|
# resource path
|
991
|
-
local_var_path = '/
|
1002
|
+
local_var_path = '/Projects/{projectId}'.sub('{' + 'projectId' + '}', project_id.to_s)
|
992
1003
|
|
993
1004
|
# camelize keys of incoming `where` opts
|
994
1005
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1036,7 +1047,7 @@ module XeroRuby
|
|
1036
1047
|
return data, status_code, headers
|
1037
1048
|
end
|
1038
1049
|
|
1039
|
-
#
|
1050
|
+
# Updates a time entry for a specific project
|
1040
1051
|
# Allows you to update time entry in a project
|
1041
1052
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1042
1053
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
@@ -1049,7 +1060,7 @@ module XeroRuby
|
|
1049
1060
|
nil
|
1050
1061
|
end
|
1051
1062
|
|
1052
|
-
#
|
1063
|
+
# Updates a time entry for a specific project
|
1053
1064
|
# Allows you to update time entry in a project
|
1054
1065
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1055
1066
|
# @param project_id [String] You can specify an individual project by appending the projectId to the endpoint
|
@@ -1057,7 +1068,8 @@ module XeroRuby
|
|
1057
1068
|
# @param time_entry_create_or_update [TimeEntryCreateOrUpdate] The time entry object you are updating
|
1058
1069
|
# @param [Hash] opts the optional parameters
|
1059
1070
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1060
|
-
def update_time_entry_with_http_info(xero_tenant_id, project_id, time_entry_id, time_entry_create_or_update,
|
1071
|
+
def update_time_entry_with_http_info(xero_tenant_id, project_id, time_entry_id, time_entry_create_or_update, options = {})
|
1072
|
+
opts = options.dup
|
1061
1073
|
if @api_client.config.debugging
|
1062
1074
|
@api_client.config.logger.debug 'Calling API: ProjectApi.update_time_entry ...'
|
1063
1075
|
end
|
@@ -1078,7 +1090,7 @@ module XeroRuby
|
|
1078
1090
|
fail ArgumentError, "Missing the required parameter 'time_entry_create_or_update' when calling ProjectApi.update_time_entry"
|
1079
1091
|
end
|
1080
1092
|
# resource path
|
1081
|
-
local_var_path = '/
|
1093
|
+
local_var_path = '/Projects/{projectId}/Time/{timeEntryId}'.sub('{' + 'projectId' + '}', project_id.to_s).sub('{' + 'timeEntryId' + '}', time_entry_id.to_s)
|
1082
1094
|
|
1083
1095
|
# camelize keys of incoming `where` opts
|
1084
1096
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|