xero-ruby 3.0.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +257 -222
- data/lib/xero-ruby/api/accounting_api.rb +305 -152
- data/lib/xero-ruby/api/app_store_api.rb +87 -0
- data/lib/xero-ruby/api_client.rb +34 -5
- data/lib/xero-ruby/configuration.rb +2 -0
- data/lib/xero-ruby/models/accounting/account.rb +2 -0
- data/lib/xero-ruby/models/accounting/accounts.rb +2 -0
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +2 -0
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +2 -0
- data/lib/xero-ruby/models/accounting/action.rb +2 -0
- data/lib/xero-ruby/models/accounting/actions.rb +2 -0
- data/lib/xero-ruby/models/accounting/address.rb +2 -0
- data/lib/xero-ruby/models/accounting/address_for_organisation.rb +2 -0
- data/lib/xero-ruby/models/accounting/allocation.rb +2 -0
- data/lib/xero-ruby/models/accounting/allocations.rb +2 -0
- data/lib/xero-ruby/models/accounting/attachment.rb +2 -0
- data/lib/xero-ruby/models/accounting/attachments.rb +2 -0
- data/lib/xero-ruby/models/accounting/balance_details.rb +2 -0
- data/lib/xero-ruby/models/accounting/balances.rb +2 -0
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +2 -0
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +2 -0
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +2 -0
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +2 -0
- data/lib/xero-ruby/models/accounting/batch_payment.rb +2 -0
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +2 -0
- data/lib/xero-ruby/models/accounting/batch_payments.rb +2 -0
- data/lib/xero-ruby/models/accounting/bill.rb +2 -0
- data/lib/xero-ruby/models/accounting/branding_theme.rb +2 -0
- data/lib/xero-ruby/models/accounting/branding_themes.rb +2 -0
- 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/accounting/budgets.rb +224 -0
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +2 -0
- data/lib/xero-ruby/models/accounting/cis_org_settings.rb +2 -0
- data/lib/xero-ruby/models/accounting/cis_setting.rb +2 -0
- data/lib/xero-ruby/models/accounting/cis_settings.rb +2 -0
- data/lib/xero-ruby/models/accounting/contact.rb +2 -0
- data/lib/xero-ruby/models/accounting/contact_group.rb +2 -0
- data/lib/xero-ruby/models/accounting/contact_groups.rb +2 -0
- data/lib/xero-ruby/models/accounting/contact_person.rb +2 -0
- data/lib/xero-ruby/models/accounting/contacts.rb +2 -0
- data/lib/xero-ruby/models/accounting/conversion_balances.rb +2 -0
- data/lib/xero-ruby/models/accounting/conversion_date.rb +2 -0
- data/lib/xero-ruby/models/accounting/credit_note.rb +2 -0
- data/lib/xero-ruby/models/accounting/credit_notes.rb +2 -0
- data/lib/xero-ruby/models/accounting/currencies.rb +2 -0
- data/lib/xero-ruby/models/accounting/currency.rb +2 -0
- data/lib/xero-ruby/models/accounting/element.rb +2 -0
- data/lib/xero-ruby/models/accounting/employee.rb +2 -0
- data/lib/xero-ruby/models/accounting/employees.rb +2 -0
- data/lib/xero-ruby/models/accounting/error.rb +2 -0
- data/lib/xero-ruby/models/accounting/expense_claim.rb +2 -0
- data/lib/xero-ruby/models/accounting/expense_claims.rb +2 -0
- data/lib/xero-ruby/models/accounting/external_link.rb +2 -0
- data/lib/xero-ruby/models/accounting/history_record.rb +2 -0
- data/lib/xero-ruby/models/accounting/history_records.rb +2 -0
- data/lib/xero-ruby/models/accounting/import_summary.rb +2 -0
- data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +2 -0
- data/lib/xero-ruby/models/accounting/import_summary_object.rb +2 -0
- data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +2 -0
- data/lib/xero-ruby/models/accounting/invoice.rb +2 -0
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +2 -0
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +2 -0
- data/lib/xero-ruby/models/accounting/invoices.rb +2 -0
- data/lib/xero-ruby/models/accounting/item.rb +2 -0
- data/lib/xero-ruby/models/accounting/items.rb +2 -0
- data/lib/xero-ruby/models/accounting/journal.rb +2 -0
- data/lib/xero-ruby/models/accounting/journal_line.rb +2 -0
- data/lib/xero-ruby/models/accounting/journals.rb +2 -0
- data/lib/xero-ruby/models/accounting/line_item.rb +13 -1
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +2 -0
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +2 -0
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +2 -0
- data/lib/xero-ruby/models/accounting/manual_journal.rb +2 -0
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +2 -0
- data/lib/xero-ruby/models/accounting/manual_journals.rb +2 -0
- data/lib/xero-ruby/models/accounting/online_invoice.rb +2 -0
- data/lib/xero-ruby/models/accounting/online_invoices.rb +2 -0
- data/lib/xero-ruby/models/accounting/organisation.rb +2 -0
- data/lib/xero-ruby/models/accounting/organisations.rb +2 -0
- data/lib/xero-ruby/models/accounting/overpayment.rb +2 -0
- data/lib/xero-ruby/models/accounting/overpayments.rb +2 -0
- data/lib/xero-ruby/models/accounting/payment.rb +13 -1
- data/lib/xero-ruby/models/accounting/payment_delete.rb +2 -0
- data/lib/xero-ruby/models/accounting/payment_service.rb +2 -0
- data/lib/xero-ruby/models/accounting/payment_services.rb +2 -0
- data/lib/xero-ruby/models/accounting/payment_term.rb +2 -0
- data/lib/xero-ruby/models/accounting/payments.rb +2 -0
- data/lib/xero-ruby/models/accounting/phone.rb +2 -0
- data/lib/xero-ruby/models/accounting/prepayment.rb +2 -0
- data/lib/xero-ruby/models/accounting/prepayments.rb +2 -0
- data/lib/xero-ruby/models/accounting/purchase.rb +2 -0
- data/lib/xero-ruby/models/accounting/purchase_order.rb +2 -0
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +2 -0
- data/lib/xero-ruby/models/accounting/quote.rb +2 -0
- data/lib/xero-ruby/models/accounting/quotes.rb +2 -0
- data/lib/xero-ruby/models/accounting/receipt.rb +2 -0
- data/lib/xero-ruby/models/accounting/receipts.rb +2 -0
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +2 -0
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +2 -0
- data/lib/xero-ruby/models/accounting/report.rb +3 -11
- data/lib/xero-ruby/models/accounting/report_attribute.rb +2 -0
- data/lib/xero-ruby/models/accounting/report_cell.rb +2 -0
- data/lib/xero-ruby/models/accounting/report_fields.rb +2 -0
- data/lib/xero-ruby/models/accounting/report_row.rb +2 -0
- data/lib/xero-ruby/models/accounting/report_rows.rb +2 -0
- data/lib/xero-ruby/models/accounting/report_with_row.rb +3 -1
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +2 -0
- data/lib/xero-ruby/models/accounting/reports.rb +2 -0
- data/lib/xero-ruby/models/accounting/request_empty.rb +2 -0
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +2 -0
- data/lib/xero-ruby/models/accounting/schedule.rb +2 -0
- data/lib/xero-ruby/models/accounting/setup.rb +2 -0
- data/lib/xero-ruby/models/accounting/tax_component.rb +2 -0
- data/lib/xero-ruby/models/accounting/tax_rate.rb +2 -0
- data/lib/xero-ruby/models/accounting/tax_rates.rb +2 -0
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +2 -0
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -0
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +2 -0
- data/lib/xero-ruby/models/accounting/tracking_category.rb +2 -0
- data/lib/xero-ruby/models/accounting/tracking_option.rb +2 -0
- data/lib/xero-ruby/models/accounting/tracking_options.rb +2 -0
- data/lib/xero-ruby/models/accounting/user.rb +2 -0
- data/lib/xero-ruby/models/accounting/users.rb +2 -0
- data/lib/xero-ruby/models/accounting/validation_error.rb +2 -0
- data/lib/xero-ruby/models/app_store/plan.rb +310 -0
- data/lib/xero-ruby/models/app_store/price.rb +257 -0
- data/lib/xero-ruby/models/app_store/problem_details.rb +272 -0
- data/lib/xero-ruby/models/app_store/product.rb +278 -0
- data/lib/xero-ruby/models/app_store/subscription.rb +324 -0
- data/lib/xero-ruby/models/app_store/subscription_item.rb +292 -0
- data/lib/xero-ruby/models/assets/asset.rb +2 -0
- data/lib/xero-ruby/models/assets/asset_type.rb +2 -0
- data/lib/xero-ruby/models/assets/assets.rb +2 -0
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +2 -0
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +2 -0
- data/lib/xero-ruby/models/assets/error.rb +2 -0
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +2 -0
- data/lib/xero-ruby/models/assets/pagination.rb +2 -0
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +2 -0
- data/lib/xero-ruby/models/assets/setting.rb +2 -0
- data/lib/xero-ruby/models/files/association.rb +2 -0
- data/lib/xero-ruby/models/files/file_object.rb +2 -0
- data/lib/xero-ruby/models/files/files.rb +2 -0
- data/lib/xero-ruby/models/files/folder.rb +2 -0
- data/lib/xero-ruby/models/files/folders.rb +2 -0
- data/lib/xero-ruby/models/files/upload_object.rb +2 -0
- data/lib/xero-ruby/models/files/user.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/account.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/api_exception.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/bank_account.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/earnings_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/employee.rb +32 -1
- data/lib/xero-ruby/models/payroll_au/employees.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/home_address.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_applications.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_balance.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_lines.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_period.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/pay_item.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/pay_items.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/pay_run.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/pay_runs.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/pay_template.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +13 -1
- data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/payslip.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/payslip_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/payslips.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/settings.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/settings_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/super_fund.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/super_funds.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/super_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/super_membership.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/tax_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/timesheet.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/timesheets.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/validation_error.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/account.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/accounts.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/address.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/bank_account.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/benefit.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/deduction.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/deductions.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employees.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employment.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/employment_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/leave_types.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pagination.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/payment_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/payment_method.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/problem.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/settings.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/superannuations.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/tax_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/timesheets.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +2 -0
- data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/account.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/accounts.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/address.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/bank_account.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/benefit.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/benefits.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/deduction.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/deductions.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +5 -2
- data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employees.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employment.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/employment_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/leave_period.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/leave_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/leave_types.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/pagination.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/payment_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/payment_method.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/payslip.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/payslips.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/problem.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/settings.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/tax_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/timesheets.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +2 -0
- data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +2 -0
- data/lib/xero-ruby/models/projects/amount.rb +2 -0
- data/lib/xero-ruby/models/projects/error.rb +2 -0
- data/lib/xero-ruby/models/projects/pagination.rb +2 -0
- data/lib/xero-ruby/models/projects/project.rb +2 -0
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +2 -0
- data/lib/xero-ruby/models/projects/project_patch.rb +2 -0
- data/lib/xero-ruby/models/projects/project_user.rb +2 -0
- data/lib/xero-ruby/models/projects/project_users.rb +2 -0
- data/lib/xero-ruby/models/projects/projects.rb +2 -0
- data/lib/xero-ruby/models/projects/task.rb +2 -0
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +2 -0
- data/lib/xero-ruby/models/projects/tasks.rb +2 -0
- data/lib/xero-ruby/models/projects/time_entries.rb +2 -0
- data/lib/xero-ruby/models/projects/time_entry.rb +2 -0
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +2 -0
- data/lib/xero-ruby/version.rb +2 -2
- data/lib/xero-ruby.rb +11 -0
- data/spec/api_client_spec.rb +25 -2
- data/spec/app_store/api/app_store_api_spec.rb +45 -0
- data/spec/app_store/models/plan_spec.rb +62 -0
- data/spec/app_store/models/price_spec.rb +52 -0
- data/spec/app_store/models/problem_details_spec.rb +70 -0
- data/spec/app_store/models/product_spec.rb +56 -0
- data/spec/app_store/models/subscription_item_spec.rb +70 -0
- data/spec/app_store/models/subscription_spec.rb +82 -0
- metadata +30 -5
@@ -0,0 +1,70 @@
|
|
1
|
+
=begin
|
2
|
+
#Xero AppStore API
|
3
|
+
|
4
|
+
#These endpoints are for Xero Partners to interact with the App Store Billing platform
|
5
|
+
|
6
|
+
Contact: api@xero.com
|
7
|
+
Generated by: https://openapi-generator.tech
|
8
|
+
OpenAPI Generator version: 4.3.1
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
# Unit tests for XeroRuby::AppStore::SubscriptionItem
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SubscriptionItem' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = XeroRuby::AppStore::SubscriptionItem.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SubscriptionItem' do
|
30
|
+
it 'should create an instance of SubscriptionItem' do
|
31
|
+
expect(@instance).to be_instance_of(XeroRuby::AppStore::SubscriptionItem)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe 'test attribute "end_date"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "id"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "price"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "product"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "start_date"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "test_mode"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
=begin
|
2
|
+
#Xero AppStore API
|
3
|
+
|
4
|
+
#These endpoints are for Xero Partners to interact with the App Store Billing platform
|
5
|
+
|
6
|
+
Contact: api@xero.com
|
7
|
+
Generated by: https://openapi-generator.tech
|
8
|
+
OpenAPI Generator version: 4.3.1
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
# Unit tests for XeroRuby::AppStore::Subscription
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'Subscription' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = XeroRuby::AppStore::Subscription.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of Subscription' do
|
30
|
+
it 'should create an instance of Subscription' do
|
31
|
+
expect(@instance).to be_instance_of(XeroRuby::AppStore::Subscription)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe 'test attribute "current_period_end"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "end_date"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "id"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "organisation_id"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "plans"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "start_date"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "status"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "test_mode"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xero API Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- README.md
|
101
101
|
- lib/xero-ruby.rb
|
102
102
|
- lib/xero-ruby/api/accounting_api.rb
|
103
|
+
- lib/xero-ruby/api/app_store_api.rb
|
103
104
|
- lib/xero-ruby/api/asset_api.rb
|
104
105
|
- lib/xero-ruby/api/files_api.rb
|
105
106
|
- lib/xero-ruby/api/payroll_au_api.rb
|
@@ -134,6 +135,10 @@ files:
|
|
134
135
|
- lib/xero-ruby/models/accounting/bill.rb
|
135
136
|
- lib/xero-ruby/models/accounting/branding_theme.rb
|
136
137
|
- lib/xero-ruby/models/accounting/branding_themes.rb
|
138
|
+
- lib/xero-ruby/models/accounting/budget.rb
|
139
|
+
- lib/xero-ruby/models/accounting/budget_balance.rb
|
140
|
+
- lib/xero-ruby/models/accounting/budget_line.rb
|
141
|
+
- lib/xero-ruby/models/accounting/budgets.rb
|
137
142
|
- lib/xero-ruby/models/accounting/cis_org_setting.rb
|
138
143
|
- lib/xero-ruby/models/accounting/cis_org_settings.rb
|
139
144
|
- lib/xero-ruby/models/accounting/cis_setting.rb
|
@@ -235,6 +240,12 @@ files:
|
|
235
240
|
- lib/xero-ruby/models/accounting/user.rb
|
236
241
|
- lib/xero-ruby/models/accounting/users.rb
|
237
242
|
- lib/xero-ruby/models/accounting/validation_error.rb
|
243
|
+
- lib/xero-ruby/models/app_store/plan.rb
|
244
|
+
- lib/xero-ruby/models/app_store/price.rb
|
245
|
+
- lib/xero-ruby/models/app_store/problem_details.rb
|
246
|
+
- lib/xero-ruby/models/app_store/product.rb
|
247
|
+
- lib/xero-ruby/models/app_store/subscription.rb
|
248
|
+
- lib/xero-ruby/models/app_store/subscription_item.rb
|
238
249
|
- lib/xero-ruby/models/assets/asset.rb
|
239
250
|
- lib/xero-ruby/models/assets/asset_status.rb
|
240
251
|
- lib/xero-ruby/models/assets/asset_status_query_param.rb
|
@@ -661,6 +672,13 @@ files:
|
|
661
672
|
- spec/accounting/models/validation_error_spec.rb
|
662
673
|
- spec/api_client_spec.rb
|
663
674
|
- spec/api_error_spec.rb
|
675
|
+
- spec/app_store/api/app_store_api_spec.rb
|
676
|
+
- spec/app_store/models/plan_spec.rb
|
677
|
+
- spec/app_store/models/price_spec.rb
|
678
|
+
- spec/app_store/models/problem_details_spec.rb
|
679
|
+
- spec/app_store/models/product_spec.rb
|
680
|
+
- spec/app_store/models/subscription_item_spec.rb
|
681
|
+
- spec/app_store/models/subscription_spec.rb
|
664
682
|
- spec/assets/api/asset_api_spec.rb
|
665
683
|
- spec/assets/models/asset_spec.rb
|
666
684
|
- spec/assets/models/asset_status_query_param_spec.rb
|
@@ -980,7 +998,7 @@ homepage: https://developer.xero.com
|
|
980
998
|
licenses:
|
981
999
|
- Unlicense
|
982
1000
|
metadata: {}
|
983
|
-
post_install_message:
|
1001
|
+
post_install_message:
|
984
1002
|
rdoc_options: []
|
985
1003
|
require_paths:
|
986
1004
|
- lib
|
@@ -996,7 +1014,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
996
1014
|
version: '0'
|
997
1015
|
requirements: []
|
998
1016
|
rubygems_version: 3.1.2
|
999
|
-
signing_key:
|
1017
|
+
signing_key:
|
1000
1018
|
specification_version: 4
|
1001
1019
|
summary: Xero Accounting API Ruby Gem
|
1002
1020
|
test_files:
|
@@ -1117,6 +1135,13 @@ test_files:
|
|
1117
1135
|
- spec/accounting/api/accounting_api_spec.rb
|
1118
1136
|
- spec/api_client_spec.rb
|
1119
1137
|
- spec/api_error_spec.rb
|
1138
|
+
- spec/app_store/models/problem_details_spec.rb
|
1139
|
+
- spec/app_store/models/product_spec.rb
|
1140
|
+
- spec/app_store/models/plan_spec.rb
|
1141
|
+
- spec/app_store/models/price_spec.rb
|
1142
|
+
- spec/app_store/models/subscription_spec.rb
|
1143
|
+
- spec/app_store/models/subscription_item_spec.rb
|
1144
|
+
- spec/app_store/api/app_store_api_spec.rb
|
1120
1145
|
- spec/assets/models/book_depreciation_detail_spec.rb
|
1121
1146
|
- spec/assets/models/error_spec.rb
|
1122
1147
|
- spec/assets/models/field_validation_errors_element_spec.rb
|