From 125e3a57b73f3e645d03c0364b0c4c1f250f6c46 Mon Sep 17 00:00:00 2001 From: serknight Date: Wed, 27 Jan 2021 08:40:57 -0700 Subject: [PATCH 1/2] patch to_hash and add #attributes --- README.md | 8 ++--- lib/xero-ruby/models/accounting/account.rb | 9 +++-- lib/xero-ruby/models/accounting/accounts.rb | 7 +++- .../models/accounting/accounts_payable.rb | 7 +++- .../models/accounting/accounts_receivable.rb | 7 +++- lib/xero-ruby/models/accounting/action.rb | 7 +++- lib/xero-ruby/models/accounting/actions.rb | 7 +++- lib/xero-ruby/models/accounting/address.rb | 7 +++- .../accounting/address_for_organisation.rb | 7 +++- lib/xero-ruby/models/accounting/allocation.rb | 7 +++- .../models/accounting/allocations.rb | 7 +++- lib/xero-ruby/models/accounting/attachment.rb | 7 +++- .../models/accounting/attachments.rb | 7 +++- .../models/accounting/balance_details.rb | 7 +++- lib/xero-ruby/models/accounting/balances.rb | 7 +++- .../models/accounting/bank_transaction.rb | 7 +++- .../models/accounting/bank_transactions.rb | 7 +++- .../models/accounting/bank_transfer.rb | 7 +++- .../models/accounting/bank_transfers.rb | 7 +++- .../models/accounting/batch_payment.rb | 7 +++- .../accounting/batch_payment_details.rb | 7 +++- .../models/accounting/batch_payments.rb | 7 +++- lib/xero-ruby/models/accounting/bill.rb | 7 +++- .../models/accounting/branding_theme.rb | 7 +++- .../models/accounting/branding_themes.rb | 7 +++- .../models/accounting/cis_org_setting.rb | 7 +++- .../models/accounting/cis_setting.rb | 7 +++- .../models/accounting/cis_settings.rb | 7 +++- lib/xero-ruby/models/accounting/contact.rb | 7 +++- .../models/accounting/contact_group.rb | 7 +++- .../models/accounting/contact_groups.rb | 7 +++- .../models/accounting/contact_person.rb | 7 +++- lib/xero-ruby/models/accounting/contacts.rb | 7 +++- .../models/accounting/conversion_balances.rb | 7 +++- .../models/accounting/conversion_date.rb | 7 +++- .../models/accounting/credit_note.rb | 7 +++- .../models/accounting/credit_notes.rb | 7 +++- lib/xero-ruby/models/accounting/currencies.rb | 7 +++- lib/xero-ruby/models/accounting/currency.rb | 7 +++- lib/xero-ruby/models/accounting/element.rb | 7 +++- lib/xero-ruby/models/accounting/employee.rb | 7 +++- lib/xero-ruby/models/accounting/employees.rb | 7 +++- lib/xero-ruby/models/accounting/error.rb | 7 +++- .../models/accounting/expense_claim.rb | 7 +++- .../models/accounting/expense_claims.rb | 7 +++- .../models/accounting/external_link.rb | 7 +++- .../models/accounting/history_record.rb | 7 +++- .../models/accounting/history_records.rb | 7 +++- .../models/accounting/import_summary.rb | 7 +++- .../accounting/import_summary_accounts.rb | 7 +++- .../accounting/import_summary_object.rb | 7 +++- .../accounting/import_summary_organisation.rb | 7 +++- lib/xero-ruby/models/accounting/invoice.rb | 7 +++- .../models/accounting/invoice_reminder.rb | 7 +++- .../models/accounting/invoice_reminders.rb | 7 +++- lib/xero-ruby/models/accounting/invoices.rb | 7 +++- lib/xero-ruby/models/accounting/item.rb | 7 +++- lib/xero-ruby/models/accounting/items.rb | 7 +++- lib/xero-ruby/models/accounting/journal.rb | 7 +++- .../models/accounting/journal_line.rb | 7 +++- lib/xero-ruby/models/accounting/journals.rb | 7 +++- lib/xero-ruby/models/accounting/line_item.rb | 7 +++- .../models/accounting/line_item_tracking.rb | 7 +++- .../models/accounting/linked_transaction.rb | 7 +++- .../models/accounting/linked_transactions.rb | 7 +++- .../models/accounting/manual_journal.rb | 7 +++- .../models/accounting/manual_journal_line.rb | 7 +++- .../models/accounting/manual_journals.rb | 7 +++- .../models/accounting/online_invoice.rb | 7 +++- .../models/accounting/online_invoices.rb | 7 +++- .../models/accounting/organisation.rb | 33 +++++++++++-------- .../models/accounting/organisations.rb | 7 +++- .../models/accounting/overpayment.rb | 7 +++- .../models/accounting/overpayments.rb | 7 +++- lib/xero-ruby/models/accounting/payment.rb | 7 +++- .../models/accounting/payment_delete.rb | 7 +++- .../models/accounting/payment_service.rb | 7 +++- .../models/accounting/payment_services.rb | 7 +++- .../models/accounting/payment_term.rb | 7 +++- lib/xero-ruby/models/accounting/payments.rb | 7 +++- lib/xero-ruby/models/accounting/phone.rb | 7 +++- lib/xero-ruby/models/accounting/prepayment.rb | 7 +++- .../models/accounting/prepayments.rb | 7 +++- lib/xero-ruby/models/accounting/purchase.rb | 7 +++- .../models/accounting/purchase_order.rb | 7 +++- .../models/accounting/purchase_orders.rb | 7 +++- lib/xero-ruby/models/accounting/quote.rb | 7 +++- lib/xero-ruby/models/accounting/quotes.rb | 7 +++- lib/xero-ruby/models/accounting/receipt.rb | 7 +++- lib/xero-ruby/models/accounting/receipts.rb | 7 +++- .../models/accounting/repeating_invoice.rb | 7 +++- .../models/accounting/repeating_invoices.rb | 7 +++- lib/xero-ruby/models/accounting/report.rb | 7 +++- .../models/accounting/report_attribute.rb | 7 +++- .../models/accounting/report_cell.rb | 7 +++- .../models/accounting/report_fields.rb | 7 +++- lib/xero-ruby/models/accounting/report_row.rb | 7 +++- .../models/accounting/report_rows.rb | 7 +++- .../models/accounting/report_with_row.rb | 7 +++- .../models/accounting/report_with_rows.rb | 7 +++- lib/xero-ruby/models/accounting/reports.rb | 7 +++- .../models/accounting/request_empty.rb | 7 +++- .../accounting/sales_tracking_category.rb | 7 +++- lib/xero-ruby/models/accounting/schedule.rb | 7 +++- lib/xero-ruby/models/accounting/setup.rb | 7 +++- .../models/accounting/tax_component.rb | 7 +++- lib/xero-ruby/models/accounting/tax_rate.rb | 7 +++- lib/xero-ruby/models/accounting/tax_rates.rb | 7 +++- .../accounting/ten_ninety_nine_contact.rb | 7 +++- .../models/accounting/tracking_categories.rb | 7 +++- .../models/accounting/tracking_category.rb | 7 +++- .../models/accounting/tracking_option.rb | 7 +++- .../models/accounting/tracking_options.rb | 7 +++- lib/xero-ruby/models/accounting/user.rb | 7 +++- lib/xero-ruby/models/accounting/users.rb | 7 +++- .../models/accounting/validation_error.rb | 7 +++- lib/xero-ruby/models/assets/asset.rb | 7 +++- lib/xero-ruby/models/assets/asset_type.rb | 7 +++- lib/xero-ruby/models/assets/assets.rb | 7 +++- .../models/assets/book_depreciation_detail.rb | 7 +++- .../assets/book_depreciation_setting.rb | 7 +++- lib/xero-ruby/models/assets/error.rb | 7 +++- .../assets/field_validation_errors_element.rb | 7 +++- lib/xero-ruby/models/assets/pagination.rb | 7 +++- .../resource_validation_errors_element.rb | 7 +++- lib/xero-ruby/models/assets/setting.rb | 7 +++- lib/xero-ruby/models/files/association.rb | 7 +++- lib/xero-ruby/models/files/file_object.rb | 7 +++- .../models/files/file_response204.rb | 7 +++- lib/xero-ruby/models/files/files.rb | 7 +++- lib/xero-ruby/models/files/folder.rb | 7 +++- lib/xero-ruby/models/files/folders.rb | 7 +++- lib/xero-ruby/models/files/inline_object.rb | 7 +++- lib/xero-ruby/models/files/user.rb | 7 +++- lib/xero-ruby/models/payroll_au/account.rb | 7 +++- .../models/payroll_au/api_exception.rb | 7 +++- .../models/payroll_au/bank_account.rb | 7 +++- .../models/payroll_au/deduction_line.rb | 7 +++- .../models/payroll_au/deduction_type.rb | 7 +++- .../models/payroll_au/earnings_line.rb | 7 +++- .../models/payroll_au/earnings_rate.rb | 7 +++- lib/xero-ruby/models/payroll_au/employee.rb | 7 +++- lib/xero-ruby/models/payroll_au/employees.rb | 7 +++- .../models/payroll_au/home_address.rb | 7 +++- .../models/payroll_au/leave_accrual_line.rb | 7 +++- .../models/payroll_au/leave_application.rb | 7 +++- .../models/payroll_au/leave_applications.rb | 7 +++- .../models/payroll_au/leave_balance.rb | 7 +++- .../models/payroll_au/leave_earnings_line.rb | 7 +++- lib/xero-ruby/models/payroll_au/leave_line.rb | 7 +++- .../models/payroll_au/leave_lines.rb | 7 +++- .../models/payroll_au/leave_period.rb | 7 +++- lib/xero-ruby/models/payroll_au/leave_type.rb | 7 +++- .../models/payroll_au/opening_balances.rb | 7 +++- lib/xero-ruby/models/payroll_au/pay_item.rb | 7 +++- lib/xero-ruby/models/payroll_au/pay_items.rb | 7 +++- lib/xero-ruby/models/payroll_au/pay_run.rb | 7 +++- lib/xero-ruby/models/payroll_au/pay_runs.rb | 7 +++- .../models/payroll_au/pay_template.rb | 7 +++- .../models/payroll_au/payroll_calendar.rb | 7 +++- .../models/payroll_au/payroll_calendars.rb | 7 +++- lib/xero-ruby/models/payroll_au/payslip.rb | 7 +++- .../models/payroll_au/payslip_lines.rb | 7 +++- .../models/payroll_au/payslip_object.rb | 7 +++- .../models/payroll_au/payslip_summary.rb | 7 +++- lib/xero-ruby/models/payroll_au/payslips.rb | 7 +++- .../models/payroll_au/reimbursement_line.rb | 7 +++- .../models/payroll_au/reimbursement_lines.rb | 7 +++- .../models/payroll_au/reimbursement_type.rb | 7 +++- lib/xero-ruby/models/payroll_au/settings.rb | 7 +++- .../models/payroll_au/settings_object.rb | 7 +++- .../settings_tracking_categories.rb | 7 +++- ...ngs_tracking_categories_employee_groups.rb | 7 +++- ...racking_categories_timesheet_categories.rb | 7 +++- lib/xero-ruby/models/payroll_au/super_fund.rb | 7 +++- .../models/payroll_au/super_fund_product.rb | 7 +++- .../models/payroll_au/super_fund_products.rb | 7 +++- .../models/payroll_au/super_funds.rb | 7 +++- lib/xero-ruby/models/payroll_au/super_line.rb | 7 +++- .../models/payroll_au/super_membership.rb | 7 +++- .../models/payroll_au/superannuation_line.rb | 7 +++- .../models/payroll_au/tax_declaration.rb | 7 +++- lib/xero-ruby/models/payroll_au/tax_line.rb | 7 +++- lib/xero-ruby/models/payroll_au/timesheet.rb | 7 +++- .../models/payroll_au/timesheet_line.rb | 7 +++- .../models/payroll_au/timesheet_object.rb | 7 +++- lib/xero-ruby/models/payroll_au/timesheets.rb | 7 +++- .../models/payroll_au/validation_error.rb | 7 +++- lib/xero-ruby/models/payroll_nz/account.rb | 7 +++- lib/xero-ruby/models/payroll_nz/accounts.rb | 7 +++- lib/xero-ruby/models/payroll_nz/address.rb | 7 +++- .../models/payroll_nz/bank_account.rb | 7 +++- lib/xero-ruby/models/payroll_nz/benefit.rb | 7 +++- lib/xero-ruby/models/payroll_nz/deduction.rb | 7 +++- .../models/payroll_nz/deduction_line.rb | 7 +++- .../models/payroll_nz/deduction_object.rb | 7 +++- lib/xero-ruby/models/payroll_nz/deductions.rb | 7 +++- .../models/payroll_nz/earnings_line.rb | 7 +++- .../models/payroll_nz/earnings_order.rb | 7 +++- .../payroll_nz/earnings_order_object.rb | 7 +++- .../models/payroll_nz/earnings_orders.rb | 7 +++- .../models/payroll_nz/earnings_rate.rb | 7 +++- .../models/payroll_nz/earnings_rate_object.rb | 7 +++- .../models/payroll_nz/earnings_rates.rb | 7 +++- .../models/payroll_nz/earnings_template.rb | 7 +++- .../payroll_nz/earnings_template_object.rb | 7 +++- lib/xero-ruby/models/payroll_nz/employee.rb | 7 +++- .../payroll_nz/employee_earnings_templates.rb | 7 +++- .../models/payroll_nz/employee_leave.rb | 7 +++- .../payroll_nz/employee_leave_balance.rb | 7 +++- .../payroll_nz/employee_leave_balances.rb | 7 +++- .../payroll_nz/employee_leave_object.rb | 7 +++- .../models/payroll_nz/employee_leave_setup.rb | 7 +++- .../payroll_nz/employee_leave_setup_object.rb | 7 +++- .../models/payroll_nz/employee_leave_type.rb | 7 +++- .../payroll_nz/employee_leave_type_object.rb | 7 +++- .../models/payroll_nz/employee_leave_types.rb | 7 +++- .../models/payroll_nz/employee_leaves.rb | 7 +++- .../models/payroll_nz/employee_object.rb | 7 +++- .../payroll_nz/employee_opening_balance.rb | 7 +++- .../employee_opening_balances_object.rb | 7 +++- .../payroll_nz/employee_pay_template.rb | 7 +++- .../employee_pay_template_object.rb | 7 +++- .../payroll_nz/employee_pay_templates.rb | 7 +++- .../employee_statutory_leave_balance.rb | 7 +++- ...employee_statutory_leave_balance_object.rb | 7 +++- .../employee_statutory_leave_summary.rb | 7 +++- .../employee_statutory_leaves_summaries.rb | 7 +++- .../employee_statutory_sick_leave.rb | 7 +++- .../employee_statutory_sick_leave_object.rb | 7 +++- .../employee_statutory_sick_leaves.rb | 7 +++- .../models/payroll_nz/employee_tax.rb | 7 +++- .../models/payroll_nz/employee_tax_object.rb | 7 +++- lib/xero-ruby/models/payroll_nz/employees.rb | 7 +++- lib/xero-ruby/models/payroll_nz/employment.rb | 7 +++- .../models/payroll_nz/employment_object.rb | 7 +++- .../payroll_nz/gross_earnings_history.rb | 7 +++- .../models/payroll_nz/invalid_field.rb | 7 +++- .../models/payroll_nz/leave_accrual_line.rb | 7 +++- .../models/payroll_nz/leave_earnings_line.rb | 7 +++- .../models/payroll_nz/leave_period.rb | 7 +++- .../models/payroll_nz/leave_periods.rb | 7 +++- lib/xero-ruby/models/payroll_nz/leave_type.rb | 7 +++- .../models/payroll_nz/leave_type_object.rb | 7 +++- .../models/payroll_nz/leave_types.rb | 7 +++- lib/xero-ruby/models/payroll_nz/pagination.rb | 7 +++- lib/xero-ruby/models/payroll_nz/pay_run.rb | 7 +++- .../models/payroll_nz/pay_run_calendar.rb | 7 +++- .../payroll_nz/pay_run_calendar_object.rb | 7 +++- .../models/payroll_nz/pay_run_calendars.rb | 7 +++- .../models/payroll_nz/pay_run_object.rb | 7 +++- lib/xero-ruby/models/payroll_nz/pay_runs.rb | 7 +++- lib/xero-ruby/models/payroll_nz/pay_slip.rb | 7 +++- .../models/payroll_nz/pay_slip_object.rb | 7 +++- lib/xero-ruby/models/payroll_nz/pay_slips.rb | 7 +++- .../models/payroll_nz/payment_line.rb | 7 +++- .../models/payroll_nz/payment_method.rb | 7 +++- .../payroll_nz/payment_method_object.rb | 7 +++- lib/xero-ruby/models/payroll_nz/problem.rb | 7 +++- .../models/payroll_nz/reimbursement.rb | 7 +++- .../models/payroll_nz/reimbursement_line.rb | 7 +++- .../models/payroll_nz/reimbursement_object.rb | 7 +++- .../models/payroll_nz/reimbursements.rb | 7 +++- .../models/payroll_nz/salary_and_wage.rb | 7 +++- .../payroll_nz/salary_and_wage_object.rb | 7 +++- .../models/payroll_nz/salary_and_wages.rb | 7 +++- lib/xero-ruby/models/payroll_nz/settings.rb | 7 +++- .../models/payroll_nz/statutory_deduction.rb | 7 +++- .../payroll_nz/statutory_deduction_line.rb | 7 +++- .../payroll_nz/statutory_deduction_object.rb | 7 +++- .../models/payroll_nz/statutory_deductions.rb | 7 +++- .../models/payroll_nz/superannuation_line.rb | 7 +++- .../payroll_nz/superannuation_object.rb | 7 +++- .../models/payroll_nz/superannuations.rb | 7 +++- lib/xero-ruby/models/payroll_nz/tax_line.rb | 7 +++- .../models/payroll_nz/tax_settings.rb | 7 +++- lib/xero-ruby/models/payroll_nz/timesheet.rb | 7 +++- .../payroll_nz/timesheet_earnings_line.rb | 7 +++- .../models/payroll_nz/timesheet_line.rb | 7 +++- .../payroll_nz/timesheet_line_object.rb | 7 +++- .../models/payroll_nz/timesheet_object.rb | 7 +++- lib/xero-ruby/models/payroll_nz/timesheets.rb | 7 +++- .../models/payroll_nz/tracking_categories.rb | 7 +++- .../models/payroll_nz/tracking_category.rb | 7 +++- lib/xero-ruby/models/payroll_uk/account.rb | 7 +++- lib/xero-ruby/models/payroll_uk/accounts.rb | 7 +++- lib/xero-ruby/models/payroll_uk/address.rb | 7 +++- .../models/payroll_uk/bank_account.rb | 7 +++- lib/xero-ruby/models/payroll_uk/benefit.rb | 7 +++- .../models/payroll_uk/benefit_line.rb | 7 +++- .../models/payroll_uk/benefit_object.rb | 7 +++- lib/xero-ruby/models/payroll_uk/benefits.rb | 7 +++- .../models/payroll_uk/court_order_line.rb | 7 +++- lib/xero-ruby/models/payroll_uk/deduction.rb | 7 +++- .../models/payroll_uk/deduction_line.rb | 7 +++- .../models/payroll_uk/deduction_object.rb | 7 +++- lib/xero-ruby/models/payroll_uk/deductions.rb | 7 +++- .../models/payroll_uk/earnings_line.rb | 7 +++- .../models/payroll_uk/earnings_order.rb | 7 +++- .../payroll_uk/earnings_order_object.rb | 7 +++- .../models/payroll_uk/earnings_orders.rb | 7 +++- .../models/payroll_uk/earnings_rate.rb | 7 +++- .../models/payroll_uk/earnings_rate_object.rb | 7 +++- .../models/payroll_uk/earnings_rates.rb | 7 +++- .../models/payroll_uk/earnings_template.rb | 7 +++- .../payroll_uk/earnings_template_object.rb | 7 +++- lib/xero-ruby/models/payroll_uk/employee.rb | 7 +++- .../models/payroll_uk/employee_leave.rb | 7 +++- .../payroll_uk/employee_leave_balance.rb | 7 +++- .../payroll_uk/employee_leave_balances.rb | 7 +++- .../payroll_uk/employee_leave_object.rb | 7 +++- .../models/payroll_uk/employee_leave_type.rb | 7 +++- .../payroll_uk/employee_leave_type_object.rb | 7 +++- .../models/payroll_uk/employee_leave_types.rb | 7 +++- .../models/payroll_uk/employee_leaves.rb | 7 +++- .../models/payroll_uk/employee_object.rb | 7 +++- .../payroll_uk/employee_opening_balances.rb | 7 +++- .../employee_opening_balances_object.rb | 7 +++- .../payroll_uk/employee_pay_template.rb | 7 +++- .../employee_pay_template_object.rb | 7 +++- .../payroll_uk/employee_pay_templates.rb | 7 +++- .../employee_statutory_leave_balance.rb | 7 +++- ...employee_statutory_leave_balance_object.rb | 7 +++- .../employee_statutory_leave_summary.rb | 7 +++- .../employee_statutory_leaves_summaries.rb | 7 +++- .../employee_statutory_sick_leave.rb | 7 +++- .../employee_statutory_sick_leave_object.rb | 7 +++- .../employee_statutory_sick_leaves.rb | 7 +++- .../models/payroll_uk/employee_tax.rb | 7 +++- .../models/payroll_uk/employee_tax_object.rb | 7 +++- lib/xero-ruby/models/payroll_uk/employees.rb | 7 +++- lib/xero-ruby/models/payroll_uk/employment.rb | 7 +++- .../models/payroll_uk/employment_object.rb | 7 +++- .../models/payroll_uk/invalid_field.rb | 7 +++- .../models/payroll_uk/leave_accrual_line.rb | 7 +++- .../models/payroll_uk/leave_earnings_line.rb | 7 +++- .../models/payroll_uk/leave_period.rb | 7 +++- .../models/payroll_uk/leave_periods.rb | 7 +++- lib/xero-ruby/models/payroll_uk/leave_type.rb | 7 +++- .../models/payroll_uk/leave_type_object.rb | 7 +++- .../models/payroll_uk/leave_types.rb | 7 +++- lib/xero-ruby/models/payroll_uk/pagination.rb | 7 +++- lib/xero-ruby/models/payroll_uk/pay_run.rb | 7 +++- .../models/payroll_uk/pay_run_calendar.rb | 7 +++- .../payroll_uk/pay_run_calendar_object.rb | 7 +++- .../models/payroll_uk/pay_run_calendars.rb | 7 +++- .../models/payroll_uk/pay_run_object.rb | 7 +++- lib/xero-ruby/models/payroll_uk/pay_runs.rb | 7 +++- .../models/payroll_uk/payment_line.rb | 7 +++- .../models/payroll_uk/payment_method.rb | 7 +++- .../payroll_uk/payment_method_object.rb | 7 +++- lib/xero-ruby/models/payroll_uk/payslip.rb | 7 +++- .../models/payroll_uk/payslip_object.rb | 7 +++- lib/xero-ruby/models/payroll_uk/payslips.rb | 7 +++- lib/xero-ruby/models/payroll_uk/problem.rb | 7 +++- .../models/payroll_uk/reimbursement.rb | 7 +++- .../models/payroll_uk/reimbursement_line.rb | 7 +++- .../models/payroll_uk/reimbursement_object.rb | 7 +++- .../models/payroll_uk/reimbursements.rb | 7 +++- .../models/payroll_uk/salary_and_wage.rb | 7 +++- .../payroll_uk/salary_and_wage_object.rb | 7 +++- .../models/payroll_uk/salary_and_wages.rb | 7 +++- lib/xero-ruby/models/payroll_uk/settings.rb | 7 +++- .../models/payroll_uk/statutory_deduction.rb | 7 +++- lib/xero-ruby/models/payroll_uk/tax_line.rb | 7 +++- lib/xero-ruby/models/payroll_uk/timesheet.rb | 7 +++- .../payroll_uk/timesheet_earnings_line.rb | 7 +++- .../models/payroll_uk/timesheet_line.rb | 7 +++- .../payroll_uk/timesheet_line_object.rb | 7 +++- .../models/payroll_uk/timesheet_object.rb | 7 +++- lib/xero-ruby/models/payroll_uk/timesheets.rb | 7 +++- .../models/payroll_uk/tracking_categories.rb | 7 +++- .../models/payroll_uk/tracking_category.rb | 7 +++- lib/xero-ruby/models/projects/amount.rb | 7 +++- lib/xero-ruby/models/projects/error.rb | 7 +++- lib/xero-ruby/models/projects/pagination.rb | 7 +++- lib/xero-ruby/models/projects/project.rb | 7 +++- .../projects/project_create_or_update.rb | 7 +++- .../models/projects/project_patch.rb | 7 +++- lib/xero-ruby/models/projects/project_user.rb | 7 +++- .../models/projects/project_users.rb | 7 +++- lib/xero-ruby/models/projects/projects.rb | 7 +++- lib/xero-ruby/models/projects/task.rb | 7 +++- .../models/projects/task_create_or_update.rb | 7 +++- lib/xero-ruby/models/projects/tasks.rb | 7 +++- lib/xero-ruby/models/projects/time_entries.rb | 7 +++- lib/xero-ruby/models/projects/time_entry.rb | 7 +++- .../projects/time_entry_create_or_update.rb | 7 +++- lib/xero-ruby/version.rb | 4 +-- 389 files changed, 2342 insertions(+), 407 deletions(-) diff --git a/README.md b/README.md index 56f65e7a..d9a9f58e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # xero-ruby Xero Ruby SDK for OAuth 2.0 generated from [Xero API OpenAPI Spec](https://github.com/XeroAPI/Xero-OpenAPI). -[![RubyGem](https://img.shields.io/badge/xero--ruby%20gem-v2.6.0-brightgreen)](https://rubygems.org/gems/xero-ruby) +[![RubyGem](https://img.shields.io/badge/xero--ruby%20gem-v2.6.1-brightgreen)](https://rubygems.org/gems/xero-ruby) # Documentation Xero Ruby SDK supports Xero's OAuth2.0 authentication and the following Xero API sets. @@ -184,8 +184,8 @@ invoices = { invoices: [{ type: XeroRuby::Accounting::Invoice::ACCREC, contact: invoice = xero_client.accounting_api.create_invoices(tenant_id, invoices).invoices.first # display out all the serialized data as a hash -puts invoice.to_hash -=> {type: 'ACCREC', ...} +puts invoices.attributes +=> {type: 'ACCREC', line_items: [...]} # Create History payment = xero_client.accounting_api.get_payments(tenant_id).payments.first @@ -356,4 +356,4 @@ bundle install ``` ## Testing -* `rspec spec/` +* `rspec spec/` \ No newline at end of file diff --git a/lib/xero-ruby/models/accounting/account.rb b/lib/xero-ruby/models/accounting/account.rb index 1382938d..b58e91b6 100644 --- a/lib/xero-ruby/models/accounting/account.rb +++ b/lib/xero-ruby/models/accounting/account.rb @@ -90,7 +90,7 @@ class Account CISLABOURINCOME = "CISLABOURINCOME".freeze CISLIABILITY = "CISLIABILITY".freeze CISMATERIALS = "CISMATERIALS".freeze - # EMPTY = "".freeze + EMPTY = "".freeze # Shown if set attr_accessor :reporting_code @@ -483,7 +483,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -494,6 +494,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/accounts.rb b/lib/xero-ruby/models/accounting/accounts.rb index 4af18f7a..1910ff0f 100644 --- a/lib/xero-ruby/models/accounting/accounts.rb +++ b/lib/xero-ruby/models/accounting/accounts.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/accounts_payable.rb b/lib/xero-ruby/models/accounting/accounts_payable.rb index df510483..449fc47b 100644 --- a/lib/xero-ruby/models/accounting/accounts_payable.rb +++ b/lib/xero-ruby/models/accounting/accounts_payable.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/accounts_receivable.rb b/lib/xero-ruby/models/accounting/accounts_receivable.rb index 585fa286..9a21fd9e 100644 --- a/lib/xero-ruby/models/accounting/accounts_receivable.rb +++ b/lib/xero-ruby/models/accounting/accounts_receivable.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/action.rb b/lib/xero-ruby/models/accounting/action.rb index ffb0817e..d971664a 100644 --- a/lib/xero-ruby/models/accounting/action.rb +++ b/lib/xero-ruby/models/accounting/action.rb @@ -216,7 +216,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -227,6 +227,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/actions.rb b/lib/xero-ruby/models/accounting/actions.rb index 64a7e2a9..f3866640 100644 --- a/lib/xero-ruby/models/accounting/actions.rb +++ b/lib/xero-ruby/models/accounting/actions.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/address.rb b/lib/xero-ruby/models/accounting/address.rb index 68c0d961..7f8309b4 100644 --- a/lib/xero-ruby/models/accounting/address.rb +++ b/lib/xero-ruby/models/accounting/address.rb @@ -431,7 +431,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -442,6 +442,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/address_for_organisation.rb b/lib/xero-ruby/models/accounting/address_for_organisation.rb index 2e0ece7b..1f1c6167 100644 --- a/lib/xero-ruby/models/accounting/address_for_organisation.rb +++ b/lib/xero-ruby/models/accounting/address_for_organisation.rb @@ -432,7 +432,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -443,6 +443,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/allocation.rb b/lib/xero-ruby/models/accounting/allocation.rb index 98959cff..4711bda2 100644 --- a/lib/xero-ruby/models/accounting/allocation.rb +++ b/lib/xero-ruby/models/accounting/allocation.rb @@ -257,7 +257,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -268,6 +268,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/allocations.rb b/lib/xero-ruby/models/accounting/allocations.rb index d866665d..8b08d321 100644 --- a/lib/xero-ruby/models/accounting/allocations.rb +++ b/lib/xero-ruby/models/accounting/allocations.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/attachment.rb b/lib/xero-ruby/models/accounting/attachment.rb index cb233dd6..6864d08e 100644 --- a/lib/xero-ruby/models/accounting/attachment.rb +++ b/lib/xero-ruby/models/accounting/attachment.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/attachments.rb b/lib/xero-ruby/models/accounting/attachments.rb index 245b0544..5edf1be5 100644 --- a/lib/xero-ruby/models/accounting/attachments.rb +++ b/lib/xero-ruby/models/accounting/attachments.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/balance_details.rb b/lib/xero-ruby/models/accounting/balance_details.rb index fb74356b..bd97c16e 100644 --- a/lib/xero-ruby/models/accounting/balance_details.rb +++ b/lib/xero-ruby/models/accounting/balance_details.rb @@ -191,7 +191,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -202,6 +202,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/balances.rb b/lib/xero-ruby/models/accounting/balances.rb index 9c856d72..599defdd 100644 --- a/lib/xero-ruby/models/accounting/balances.rb +++ b/lib/xero-ruby/models/accounting/balances.rb @@ -181,7 +181,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -192,6 +192,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/bank_transaction.rb b/lib/xero-ruby/models/accounting/bank_transaction.rb index 9ff7d0e6..393927b0 100644 --- a/lib/xero-ruby/models/accounting/bank_transaction.rb +++ b/lib/xero-ruby/models/accounting/bank_transaction.rb @@ -458,7 +458,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -469,6 +469,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/bank_transactions.rb b/lib/xero-ruby/models/accounting/bank_transactions.rb index a3385113..ae81f088 100644 --- a/lib/xero-ruby/models/accounting/bank_transactions.rb +++ b/lib/xero-ruby/models/accounting/bank_transactions.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/bank_transfer.rb b/lib/xero-ruby/models/accounting/bank_transfer.rb index bc7f7423..b5e845e2 100644 --- a/lib/xero-ruby/models/accounting/bank_transfer.rb +++ b/lib/xero-ruby/models/accounting/bank_transfer.rb @@ -289,7 +289,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -300,6 +300,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/bank_transfers.rb b/lib/xero-ruby/models/accounting/bank_transfers.rb index 36cf6fdc..d33e6182 100644 --- a/lib/xero-ruby/models/accounting/bank_transfers.rb +++ b/lib/xero-ruby/models/accounting/bank_transfers.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/batch_payment.rb b/lib/xero-ruby/models/accounting/batch_payment.rb index a0b3c109..0910c0bf 100644 --- a/lib/xero-ruby/models/accounting/batch_payment.rb +++ b/lib/xero-ruby/models/accounting/batch_payment.rb @@ -432,7 +432,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -443,6 +443,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/batch_payment_details.rb b/lib/xero-ruby/models/accounting/batch_payment_details.rb index 37ac3e3b..04bd8596 100644 --- a/lib/xero-ruby/models/accounting/batch_payment_details.rb +++ b/lib/xero-ruby/models/accounting/batch_payment_details.rb @@ -241,7 +241,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -252,6 +252,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/batch_payments.rb b/lib/xero-ruby/models/accounting/batch_payments.rb index 62e61db9..0f90f321 100644 --- a/lib/xero-ruby/models/accounting/batch_payments.rb +++ b/lib/xero-ruby/models/accounting/batch_payments.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/bill.rb b/lib/xero-ruby/models/accounting/bill.rb index 4d81ad36..0f75766b 100644 --- a/lib/xero-ruby/models/accounting/bill.rb +++ b/lib/xero-ruby/models/accounting/bill.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/branding_theme.rb b/lib/xero-ruby/models/accounting/branding_theme.rb index c7bc727c..808c493a 100644 --- a/lib/xero-ruby/models/accounting/branding_theme.rb +++ b/lib/xero-ruby/models/accounting/branding_theme.rb @@ -255,7 +255,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -266,6 +266,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/branding_themes.rb b/lib/xero-ruby/models/accounting/branding_themes.rb index afe90c5d..182a0ba3 100644 --- a/lib/xero-ruby/models/accounting/branding_themes.rb +++ b/lib/xero-ruby/models/accounting/branding_themes.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/cis_org_setting.rb b/lib/xero-ruby/models/accounting/cis_org_setting.rb index 2764f841..25b4906b 100644 --- a/lib/xero-ruby/models/accounting/cis_org_setting.rb +++ b/lib/xero-ruby/models/accounting/cis_org_setting.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/cis_setting.rb b/lib/xero-ruby/models/accounting/cis_setting.rb index d270f6b4..b0acff6d 100644 --- a/lib/xero-ruby/models/accounting/cis_setting.rb +++ b/lib/xero-ruby/models/accounting/cis_setting.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/cis_settings.rb b/lib/xero-ruby/models/accounting/cis_settings.rb index 3853f5d2..ce844833 100644 --- a/lib/xero-ruby/models/accounting/cis_settings.rb +++ b/lib/xero-ruby/models/accounting/cis_settings.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/contact.rb b/lib/xero-ruby/models/accounting/contact.rb index 40508180..989f4cd5 100644 --- a/lib/xero-ruby/models/accounting/contact.rb +++ b/lib/xero-ruby/models/accounting/contact.rb @@ -712,7 +712,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -723,6 +723,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/contact_group.rb b/lib/xero-ruby/models/accounting/contact_group.rb index d3245268..52c05921 100644 --- a/lib/xero-ruby/models/accounting/contact_group.rb +++ b/lib/xero-ruby/models/accounting/contact_group.rb @@ -238,7 +238,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -249,6 +249,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/contact_groups.rb b/lib/xero-ruby/models/accounting/contact_groups.rb index 10074852..01b60af7 100644 --- a/lib/xero-ruby/models/accounting/contact_groups.rb +++ b/lib/xero-ruby/models/accounting/contact_groups.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/contact_person.rb b/lib/xero-ruby/models/accounting/contact_person.rb index d2269a3e..82c63759 100644 --- a/lib/xero-ruby/models/accounting/contact_person.rb +++ b/lib/xero-ruby/models/accounting/contact_person.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/contacts.rb b/lib/xero-ruby/models/accounting/contacts.rb index 5de7010c..23566a5c 100644 --- a/lib/xero-ruby/models/accounting/contacts.rb +++ b/lib/xero-ruby/models/accounting/contacts.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/conversion_balances.rb b/lib/xero-ruby/models/accounting/conversion_balances.rb index bdc1ed2a..a07bd83e 100644 --- a/lib/xero-ruby/models/accounting/conversion_balances.rb +++ b/lib/xero-ruby/models/accounting/conversion_balances.rb @@ -193,7 +193,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -204,6 +204,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/conversion_date.rb b/lib/xero-ruby/models/accounting/conversion_date.rb index 4162ad0d..9996bbfa 100644 --- a/lib/xero-ruby/models/accounting/conversion_date.rb +++ b/lib/xero-ruby/models/accounting/conversion_date.rb @@ -181,7 +181,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -192,6 +192,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/credit_note.rb b/lib/xero-ruby/models/accounting/credit_note.rb index ffc3525f..2869249a 100644 --- a/lib/xero-ruby/models/accounting/credit_note.rb +++ b/lib/xero-ruby/models/accounting/credit_note.rb @@ -516,7 +516,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -527,6 +527,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/credit_notes.rb b/lib/xero-ruby/models/accounting/credit_notes.rb index 22709da7..1651b437 100644 --- a/lib/xero-ruby/models/accounting/credit_notes.rb +++ b/lib/xero-ruby/models/accounting/credit_notes.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/currencies.rb b/lib/xero-ruby/models/accounting/currencies.rb index 1a044db3..75b7dc7c 100644 --- a/lib/xero-ruby/models/accounting/currencies.rb +++ b/lib/xero-ruby/models/accounting/currencies.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/currency.rb b/lib/xero-ruby/models/accounting/currency.rb index 9d4e40d8..cdf81dde 100644 --- a/lib/xero-ruby/models/accounting/currency.rb +++ b/lib/xero-ruby/models/accounting/currency.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/element.rb b/lib/xero-ruby/models/accounting/element.rb index 1404ea13..a6918d2f 100644 --- a/lib/xero-ruby/models/accounting/element.rb +++ b/lib/xero-ruby/models/accounting/element.rb @@ -242,7 +242,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -253,6 +253,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/employee.rb b/lib/xero-ruby/models/accounting/employee.rb index fa68602b..e54cf058 100644 --- a/lib/xero-ruby/models/accounting/employee.rb +++ b/lib/xero-ruby/models/accounting/employee.rb @@ -310,7 +310,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -321,6 +321,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/employees.rb b/lib/xero-ruby/models/accounting/employees.rb index d9a867d4..fa0c145e 100644 --- a/lib/xero-ruby/models/accounting/employees.rb +++ b/lib/xero-ruby/models/accounting/employees.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/error.rb b/lib/xero-ruby/models/accounting/error.rb index f39b5d5b..363f93e7 100644 --- a/lib/xero-ruby/models/accounting/error.rb +++ b/lib/xero-ruby/models/accounting/error.rb @@ -202,7 +202,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -213,6 +213,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/expense_claim.rb b/lib/xero-ruby/models/accounting/expense_claim.rb index d0a649f5..48affe9c 100644 --- a/lib/xero-ruby/models/accounting/expense_claim.rb +++ b/lib/xero-ruby/models/accounting/expense_claim.rb @@ -323,7 +323,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -334,6 +334,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/expense_claims.rb b/lib/xero-ruby/models/accounting/expense_claims.rb index 1c71e1b7..c56b7211 100644 --- a/lib/xero-ruby/models/accounting/expense_claims.rb +++ b/lib/xero-ruby/models/accounting/expense_claims.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/external_link.rb b/lib/xero-ruby/models/accounting/external_link.rb index ec7e072d..9ca8a06c 100644 --- a/lib/xero-ruby/models/accounting/external_link.rb +++ b/lib/xero-ruby/models/accounting/external_link.rb @@ -229,7 +229,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -240,6 +240,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/history_record.rb b/lib/xero-ruby/models/accounting/history_record.rb index dc1e5433..2fa821b5 100644 --- a/lib/xero-ruby/models/accounting/history_record.rb +++ b/lib/xero-ruby/models/accounting/history_record.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/history_records.rb b/lib/xero-ruby/models/accounting/history_records.rb index 35d6cb6e..86510986 100644 --- a/lib/xero-ruby/models/accounting/history_records.rb +++ b/lib/xero-ruby/models/accounting/history_records.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/import_summary.rb b/lib/xero-ruby/models/accounting/import_summary.rb index d0083512..ebad0941 100644 --- a/lib/xero-ruby/models/accounting/import_summary.rb +++ b/lib/xero-ruby/models/accounting/import_summary.rb @@ -181,7 +181,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -192,6 +192,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/import_summary_accounts.rb b/lib/xero-ruby/models/accounting/import_summary_accounts.rb index c14d10d7..83f6ae6a 100644 --- a/lib/xero-ruby/models/accounting/import_summary_accounts.rb +++ b/lib/xero-ruby/models/accounting/import_summary_accounts.rb @@ -251,7 +251,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -262,6 +262,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/import_summary_object.rb b/lib/xero-ruby/models/accounting/import_summary_object.rb index 21e1d8bb..4fa12ac7 100644 --- a/lib/xero-ruby/models/accounting/import_summary_object.rb +++ b/lib/xero-ruby/models/accounting/import_summary_object.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/import_summary_organisation.rb b/lib/xero-ruby/models/accounting/import_summary_organisation.rb index 5ab8cf31..a4adbe23 100644 --- a/lib/xero-ruby/models/accounting/import_summary_organisation.rb +++ b/lib/xero-ruby/models/accounting/import_summary_organisation.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/invoice.rb b/lib/xero-ruby/models/accounting/invoice.rb index 5dc0ab8e..74fc8812 100644 --- a/lib/xero-ruby/models/accounting/invoice.rb +++ b/lib/xero-ruby/models/accounting/invoice.rb @@ -655,7 +655,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -666,6 +666,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/invoice_reminder.rb b/lib/xero-ruby/models/accounting/invoice_reminder.rb index 1d76a2b6..9338cc5d 100644 --- a/lib/xero-ruby/models/accounting/invoice_reminder.rb +++ b/lib/xero-ruby/models/accounting/invoice_reminder.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/invoice_reminders.rb b/lib/xero-ruby/models/accounting/invoice_reminders.rb index 9589eb07..8ee8a760 100644 --- a/lib/xero-ruby/models/accounting/invoice_reminders.rb +++ b/lib/xero-ruby/models/accounting/invoice_reminders.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/invoices.rb b/lib/xero-ruby/models/accounting/invoices.rb index 03f4e872..63245f6a 100644 --- a/lib/xero-ruby/models/accounting/invoices.rb +++ b/lib/xero-ruby/models/accounting/invoices.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/item.rb b/lib/xero-ruby/models/accounting/item.rb index 3266600a..52324bed 100644 --- a/lib/xero-ruby/models/accounting/item.rb +++ b/lib/xero-ruby/models/accounting/item.rb @@ -391,7 +391,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -402,6 +402,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/items.rb b/lib/xero-ruby/models/accounting/items.rb index cdc163ff..2a953225 100644 --- a/lib/xero-ruby/models/accounting/items.rb +++ b/lib/xero-ruby/models/accounting/items.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/journal.rb b/lib/xero-ruby/models/accounting/journal.rb index 19b3bf7f..c0dc1752 100644 --- a/lib/xero-ruby/models/accounting/journal.rb +++ b/lib/xero-ruby/models/accounting/journal.rb @@ -301,7 +301,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -312,6 +312,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/journal_line.rb b/lib/xero-ruby/models/accounting/journal_line.rb index f4f5222b..9a1c0219 100644 --- a/lib/xero-ruby/models/accounting/journal_line.rb +++ b/lib/xero-ruby/models/accounting/journal_line.rb @@ -282,7 +282,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -293,6 +293,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/journals.rb b/lib/xero-ruby/models/accounting/journals.rb index 62074349..c52fa8a4 100644 --- a/lib/xero-ruby/models/accounting/journals.rb +++ b/lib/xero-ruby/models/accounting/journals.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/line_item.rb b/lib/xero-ruby/models/accounting/line_item.rb index 2bcd4b74..25376a61 100644 --- a/lib/xero-ruby/models/accounting/line_item.rb +++ b/lib/xero-ruby/models/accounting/line_item.rb @@ -292,7 +292,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -303,6 +303,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/line_item_tracking.rb b/lib/xero-ruby/models/accounting/line_item_tracking.rb index b5e70cd4..672b5726 100644 --- a/lib/xero-ruby/models/accounting/line_item_tracking.rb +++ b/lib/xero-ruby/models/accounting/line_item_tracking.rb @@ -215,7 +215,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -226,6 +226,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/linked_transaction.rb b/lib/xero-ruby/models/accounting/linked_transaction.rb index 374f2814..22e8f743 100644 --- a/lib/xero-ruby/models/accounting/linked_transaction.rb +++ b/lib/xero-ruby/models/accounting/linked_transaction.rb @@ -338,7 +338,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -349,6 +349,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/linked_transactions.rb b/lib/xero-ruby/models/accounting/linked_transactions.rb index 0bb51b45..eda0aab5 100644 --- a/lib/xero-ruby/models/accounting/linked_transactions.rb +++ b/lib/xero-ruby/models/accounting/linked_transactions.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/manual_journal.rb b/lib/xero-ruby/models/accounting/manual_journal.rb index 8823c5aa..bcdbf9fd 100644 --- a/lib/xero-ruby/models/accounting/manual_journal.rb +++ b/lib/xero-ruby/models/accounting/manual_journal.rb @@ -354,7 +354,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -365,6 +365,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/manual_journal_line.rb b/lib/xero-ruby/models/accounting/manual_journal_line.rb index 47d3ff83..10157e95 100644 --- a/lib/xero-ruby/models/accounting/manual_journal_line.rb +++ b/lib/xero-ruby/models/accounting/manual_journal_line.rb @@ -242,7 +242,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -253,6 +253,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/manual_journals.rb b/lib/xero-ruby/models/accounting/manual_journals.rb index ec290c3a..038c5145 100644 --- a/lib/xero-ruby/models/accounting/manual_journals.rb +++ b/lib/xero-ruby/models/accounting/manual_journals.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/online_invoice.rb b/lib/xero-ruby/models/accounting/online_invoice.rb index fef16ce2..522916dd 100644 --- a/lib/xero-ruby/models/accounting/online_invoice.rb +++ b/lib/xero-ruby/models/accounting/online_invoice.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/online_invoices.rb b/lib/xero-ruby/models/accounting/online_invoices.rb index 6fbf12b0..b429500b 100644 --- a/lib/xero-ruby/models/accounting/online_invoices.rb +++ b/lib/xero-ruby/models/accounting/online_invoices.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/organisation.rb b/lib/xero-ruby/models/accounting/organisation.rb index 68642b11..e6fa29e3 100644 --- a/lib/xero-ruby/models/accounting/organisation.rb +++ b/lib/xero-ruby/models/accounting/organisation.rb @@ -113,7 +113,7 @@ class Organisation N6_MONTHLY = "6MONTHLY".freeze QUARTERLY = "QUARTERLY".freeze YEARLY = "YEARLY".freeze - # NONE = "NONE".freeze + NONE = "NONE".freeze # The default for LineAmountTypes on sales transactions attr_accessor :default_sales_tax @@ -135,18 +135,18 @@ class Organisation # Organisation Entity Type attr_accessor :organisation_entity_type - # ACCOUNTING_PRACTICE = "ACCOUNTING_PRACTICE".freeze - # COMPANY = "COMPANY".freeze - # CHARITY = "CHARITY".freeze - # CLUB_OR_SOCIETY = "CLUB_OR_SOCIETY".freeze - # LOOK_THROUGH_COMPANY = "LOOK_THROUGH_COMPANY".freeze - # NOT_FOR_PROFIT = "NOT_FOR_PROFIT".freeze - # PARTNERSHIP = "PARTNERSHIP".freeze - # S_CORPORATION = "S_CORPORATION".freeze - # SELF_MANAGED_SUPERANNUATION_FUND = "SELF_MANAGED_SUPERANNUATION_FUND".freeze - # SOLE_TRADER = "SOLE_TRADER".freeze - # SUPERANNUATION_FUND = "SUPERANNUATION_FUND".freeze - # TRUST = "TRUST".freeze + ACCOUNTING_PRACTICE = "ACCOUNTING_PRACTICE".freeze + COMPANY = "COMPANY".freeze + CHARITY = "CHARITY".freeze + CLUB_OR_SOCIETY = "CLUB_OR_SOCIETY".freeze + LOOK_THROUGH_COMPANY = "LOOK_THROUGH_COMPANY".freeze + NOT_FOR_PROFIT = "NOT_FOR_PROFIT".freeze + PARTNERSHIP = "PARTNERSHIP".freeze + S_CORPORATION = "S_CORPORATION".freeze + SELF_MANAGED_SUPERANNUATION_FUND = "SELF_MANAGED_SUPERANNUATION_FUND".freeze + SOLE_TRADER = "SOLE_TRADER".freeze + SUPERANNUATION_FUND = "SUPERANNUATION_FUND".freeze + TRUST = "TRUST".freeze # A unique identifier for the organisation. Potential uses. attr_accessor :short_code @@ -672,7 +672,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -683,6 +683,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/organisations.rb b/lib/xero-ruby/models/accounting/organisations.rb index a30a0599..4ab8c905 100644 --- a/lib/xero-ruby/models/accounting/organisations.rb +++ b/lib/xero-ruby/models/accounting/organisations.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/overpayment.rb b/lib/xero-ruby/models/accounting/overpayment.rb index 527d8326..c674cd54 100644 --- a/lib/xero-ruby/models/accounting/overpayment.rb +++ b/lib/xero-ruby/models/accounting/overpayment.rb @@ -412,7 +412,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -423,6 +423,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/overpayments.rb b/lib/xero-ruby/models/accounting/overpayments.rb index ce8d194e..be55a347 100644 --- a/lib/xero-ruby/models/accounting/overpayments.rb +++ b/lib/xero-ruby/models/accounting/overpayments.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/payment.rb b/lib/xero-ruby/models/accounting/payment.rb index f9c7b7f5..4cbcecd0 100644 --- a/lib/xero-ruby/models/accounting/payment.rb +++ b/lib/xero-ruby/models/accounting/payment.rb @@ -462,7 +462,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -473,6 +473,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/payment_delete.rb b/lib/xero-ruby/models/accounting/payment_delete.rb index 927e6bed..6c861db6 100644 --- a/lib/xero-ruby/models/accounting/payment_delete.rb +++ b/lib/xero-ruby/models/accounting/payment_delete.rb @@ -177,7 +177,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -188,6 +188,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/payment_service.rb b/lib/xero-ruby/models/accounting/payment_service.rb index 55b92b64..24b4164e 100644 --- a/lib/xero-ruby/models/accounting/payment_service.rb +++ b/lib/xero-ruby/models/accounting/payment_service.rb @@ -222,7 +222,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -233,6 +233,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/payment_services.rb b/lib/xero-ruby/models/accounting/payment_services.rb index bacd3b14..99eb18aa 100644 --- a/lib/xero-ruby/models/accounting/payment_services.rb +++ b/lib/xero-ruby/models/accounting/payment_services.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/payment_term.rb b/lib/xero-ruby/models/accounting/payment_term.rb index 5c6c9022..5e70e1e8 100644 --- a/lib/xero-ruby/models/accounting/payment_term.rb +++ b/lib/xero-ruby/models/accounting/payment_term.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/payments.rb b/lib/xero-ruby/models/accounting/payments.rb index 5dd4d8c1..b4afc759 100644 --- a/lib/xero-ruby/models/accounting/payments.rb +++ b/lib/xero-ruby/models/accounting/payments.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/phone.rb b/lib/xero-ruby/models/accounting/phone.rb index 5c0b8e6f..b35cecc1 100644 --- a/lib/xero-ruby/models/accounting/phone.rb +++ b/lib/xero-ruby/models/accounting/phone.rb @@ -284,7 +284,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -295,6 +295,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/prepayment.rb b/lib/xero-ruby/models/accounting/prepayment.rb index 817cbae3..40baeac4 100644 --- a/lib/xero-ruby/models/accounting/prepayment.rb +++ b/lib/xero-ruby/models/accounting/prepayment.rb @@ -411,7 +411,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -422,6 +422,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/prepayments.rb b/lib/xero-ruby/models/accounting/prepayments.rb index 15a6906f..350bcb40 100644 --- a/lib/xero-ruby/models/accounting/prepayments.rb +++ b/lib/xero-ruby/models/accounting/prepayments.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/purchase.rb b/lib/xero-ruby/models/accounting/purchase.rb index f7526afc..52ab4cf1 100644 --- a/lib/xero-ruby/models/accounting/purchase.rb +++ b/lib/xero-ruby/models/accounting/purchase.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/purchase_order.rb b/lib/xero-ruby/models/accounting/purchase_order.rb index ae0678be..2c9042e6 100644 --- a/lib/xero-ruby/models/accounting/purchase_order.rb +++ b/lib/xero-ruby/models/accounting/purchase_order.rb @@ -489,7 +489,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -500,6 +500,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/purchase_orders.rb b/lib/xero-ruby/models/accounting/purchase_orders.rb index 2c56a1e1..650654d0 100644 --- a/lib/xero-ruby/models/accounting/purchase_orders.rb +++ b/lib/xero-ruby/models/accounting/purchase_orders.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/quote.rb b/lib/xero-ruby/models/accounting/quote.rb index 83013b8e..be2d599b 100644 --- a/lib/xero-ruby/models/accounting/quote.rb +++ b/lib/xero-ruby/models/accounting/quote.rb @@ -479,7 +479,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -490,6 +490,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/quotes.rb b/lib/xero-ruby/models/accounting/quotes.rb index 741c2d10..6bbcaef3 100644 --- a/lib/xero-ruby/models/accounting/quotes.rb +++ b/lib/xero-ruby/models/accounting/quotes.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/receipt.rb b/lib/xero-ruby/models/accounting/receipt.rb index 070f0c83..fee90cd9 100644 --- a/lib/xero-ruby/models/accounting/receipt.rb +++ b/lib/xero-ruby/models/accounting/receipt.rb @@ -389,7 +389,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -400,6 +400,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/receipts.rb b/lib/xero-ruby/models/accounting/receipts.rb index 06d2bfd5..8d1b017a 100644 --- a/lib/xero-ruby/models/accounting/receipts.rb +++ b/lib/xero-ruby/models/accounting/receipts.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/repeating_invoice.rb b/lib/xero-ruby/models/accounting/repeating_invoice.rb index 044b9d13..7851d51c 100644 --- a/lib/xero-ruby/models/accounting/repeating_invoice.rb +++ b/lib/xero-ruby/models/accounting/repeating_invoice.rb @@ -377,7 +377,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -388,6 +388,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/repeating_invoices.rb b/lib/xero-ruby/models/accounting/repeating_invoices.rb index b060b16a..533ba42d 100644 --- a/lib/xero-ruby/models/accounting/repeating_invoices.rb +++ b/lib/xero-ruby/models/accounting/repeating_invoices.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/report.rb b/lib/xero-ruby/models/accounting/report.rb index bec926ae..7fc042b6 100644 --- a/lib/xero-ruby/models/accounting/report.rb +++ b/lib/xero-ruby/models/accounting/report.rb @@ -267,7 +267,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -278,6 +278,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/report_attribute.rb b/lib/xero-ruby/models/accounting/report_attribute.rb index 989b0bf9..2ccdfafe 100644 --- a/lib/xero-ruby/models/accounting/report_attribute.rb +++ b/lib/xero-ruby/models/accounting/report_attribute.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/report_cell.rb b/lib/xero-ruby/models/accounting/report_cell.rb index 62d1b2cf..f6f730cb 100644 --- a/lib/xero-ruby/models/accounting/report_cell.rb +++ b/lib/xero-ruby/models/accounting/report_cell.rb @@ -182,7 +182,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -193,6 +193,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/report_fields.rb b/lib/xero-ruby/models/accounting/report_fields.rb index 492e3d46..52c683dc 100644 --- a/lib/xero-ruby/models/accounting/report_fields.rb +++ b/lib/xero-ruby/models/accounting/report_fields.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/report_row.rb b/lib/xero-ruby/models/accounting/report_row.rb index b3328967..3911db3f 100644 --- a/lib/xero-ruby/models/accounting/report_row.rb +++ b/lib/xero-ruby/models/accounting/report_row.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/report_rows.rb b/lib/xero-ruby/models/accounting/report_rows.rb index fb79cf02..72f86ff7 100644 --- a/lib/xero-ruby/models/accounting/report_rows.rb +++ b/lib/xero-ruby/models/accounting/report_rows.rb @@ -204,7 +204,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -215,6 +215,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/report_with_row.rb b/lib/xero-ruby/models/accounting/report_with_row.rb index 2dda47d7..6f214c3a 100644 --- a/lib/xero-ruby/models/accounting/report_with_row.rb +++ b/lib/xero-ruby/models/accounting/report_with_row.rb @@ -256,7 +256,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -267,6 +267,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/report_with_rows.rb b/lib/xero-ruby/models/accounting/report_with_rows.rb index ffc577b4..e99ea042 100644 --- a/lib/xero-ruby/models/accounting/report_with_rows.rb +++ b/lib/xero-ruby/models/accounting/report_with_rows.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/reports.rb b/lib/xero-ruby/models/accounting/reports.rb index 5bc76fcc..455bfec9 100644 --- a/lib/xero-ruby/models/accounting/reports.rb +++ b/lib/xero-ruby/models/accounting/reports.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/request_empty.rb b/lib/xero-ruby/models/accounting/request_empty.rb index 6b475aed..b3b0f452 100644 --- a/lib/xero-ruby/models/accounting/request_empty.rb +++ b/lib/xero-ruby/models/accounting/request_empty.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/sales_tracking_category.rb b/lib/xero-ruby/models/accounting/sales_tracking_category.rb index 99f54f80..54f754ea 100644 --- a/lib/xero-ruby/models/accounting/sales_tracking_category.rb +++ b/lib/xero-ruby/models/accounting/sales_tracking_category.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/schedule.rb b/lib/xero-ruby/models/accounting/schedule.rb index 64a3182e..799765c3 100644 --- a/lib/xero-ruby/models/accounting/schedule.rb +++ b/lib/xero-ruby/models/accounting/schedule.rb @@ -284,7 +284,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -295,6 +295,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/setup.rb b/lib/xero-ruby/models/accounting/setup.rb index 7d74cba6..a65a16d5 100644 --- a/lib/xero-ruby/models/accounting/setup.rb +++ b/lib/xero-ruby/models/accounting/setup.rb @@ -194,7 +194,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -205,6 +205,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/tax_component.rb b/lib/xero-ruby/models/accounting/tax_component.rb index c7ceea21..927182d3 100644 --- a/lib/xero-ruby/models/accounting/tax_component.rb +++ b/lib/xero-ruby/models/accounting/tax_component.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/tax_rate.rb b/lib/xero-ruby/models/accounting/tax_rate.rb index 27f38354..7b5a02aa 100644 --- a/lib/xero-ruby/models/accounting/tax_rate.rb +++ b/lib/xero-ruby/models/accounting/tax_rate.rb @@ -406,7 +406,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -417,6 +417,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/tax_rates.rb b/lib/xero-ruby/models/accounting/tax_rates.rb index eaf0f33a..38efc92d 100644 --- a/lib/xero-ruby/models/accounting/tax_rates.rb +++ b/lib/xero-ruby/models/accounting/tax_rates.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb b/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb index 03e9f2da..ee0dba7d 100644 --- a/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +++ b/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb @@ -380,7 +380,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -391,6 +391,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/tracking_categories.rb b/lib/xero-ruby/models/accounting/tracking_categories.rb index dcef6259..91b339fb 100644 --- a/lib/xero-ruby/models/accounting/tracking_categories.rb +++ b/lib/xero-ruby/models/accounting/tracking_categories.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/tracking_category.rb b/lib/xero-ruby/models/accounting/tracking_category.rb index d16a5520..026f8a02 100644 --- a/lib/xero-ruby/models/accounting/tracking_category.rb +++ b/lib/xero-ruby/models/accounting/tracking_category.rb @@ -289,7 +289,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -300,6 +300,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/tracking_option.rb b/lib/xero-ruby/models/accounting/tracking_option.rb index 913eb6c9..e61d5e5e 100644 --- a/lib/xero-ruby/models/accounting/tracking_option.rb +++ b/lib/xero-ruby/models/accounting/tracking_option.rb @@ -252,7 +252,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -263,6 +263,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/tracking_options.rb b/lib/xero-ruby/models/accounting/tracking_options.rb index 639ed3bd..b265821d 100644 --- a/lib/xero-ruby/models/accounting/tracking_options.rb +++ b/lib/xero-ruby/models/accounting/tracking_options.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/user.rb b/lib/xero-ruby/models/accounting/user.rb index 4e17a1f1..db824d18 100644 --- a/lib/xero-ruby/models/accounting/user.rb +++ b/lib/xero-ruby/models/accounting/user.rb @@ -271,7 +271,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -282,6 +282,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/users.rb b/lib/xero-ruby/models/accounting/users.rb index ed84b3c7..26ce58e1 100644 --- a/lib/xero-ruby/models/accounting/users.rb +++ b/lib/xero-ruby/models/accounting/users.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/accounting/validation_error.rb b/lib/xero-ruby/models/accounting/validation_error.rb index a96599a6..a1c34846 100644 --- a/lib/xero-ruby/models/accounting/validation_error.rb +++ b/lib/xero-ruby/models/accounting/validation_error.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/asset.rb b/lib/xero-ruby/models/assets/asset.rb index ed191e07..728c7246 100644 --- a/lib/xero-ruby/models/assets/asset.rb +++ b/lib/xero-ruby/models/assets/asset.rb @@ -325,7 +325,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -336,6 +336,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/asset_type.rb b/lib/xero-ruby/models/assets/asset_type.rb index 50fd7a89..7427cb59 100644 --- a/lib/xero-ruby/models/assets/asset_type.rb +++ b/lib/xero-ruby/models/assets/asset_type.rb @@ -240,7 +240,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -251,6 +251,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/assets.rb b/lib/xero-ruby/models/assets/assets.rb index ce5a0d60..03bc04b4 100644 --- a/lib/xero-ruby/models/assets/assets.rb +++ b/lib/xero-ruby/models/assets/assets.rb @@ -182,7 +182,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -193,6 +193,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/book_depreciation_detail.rb b/lib/xero-ruby/models/assets/book_depreciation_detail.rb index 80ce4ad9..8e7395fc 100644 --- a/lib/xero-ruby/models/assets/book_depreciation_detail.rb +++ b/lib/xero-ruby/models/assets/book_depreciation_detail.rb @@ -230,7 +230,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -241,6 +241,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/book_depreciation_setting.rb b/lib/xero-ruby/models/assets/book_depreciation_setting.rb index c96334c1..ebb91001 100644 --- a/lib/xero-ruby/models/assets/book_depreciation_setting.rb +++ b/lib/xero-ruby/models/assets/book_depreciation_setting.rb @@ -309,7 +309,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -320,6 +320,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/error.rb b/lib/xero-ruby/models/assets/error.rb index c60056c5..03c52b73 100644 --- a/lib/xero-ruby/models/assets/error.rb +++ b/lib/xero-ruby/models/assets/error.rb @@ -214,7 +214,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -225,6 +225,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/field_validation_errors_element.rb b/lib/xero-ruby/models/assets/field_validation_errors_element.rb index 717b699e..30076bd9 100644 --- a/lib/xero-ruby/models/assets/field_validation_errors_element.rb +++ b/lib/xero-ruby/models/assets/field_validation_errors_element.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/pagination.rb b/lib/xero-ruby/models/assets/pagination.rb index 3e66fccd..11a87f39 100644 --- a/lib/xero-ruby/models/assets/pagination.rb +++ b/lib/xero-ruby/models/assets/pagination.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/resource_validation_errors_element.rb b/lib/xero-ruby/models/assets/resource_validation_errors_element.rb index 557c9848..0ce4f174 100644 --- a/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +++ b/lib/xero-ruby/models/assets/resource_validation_errors_element.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/assets/setting.rb b/lib/xero-ruby/models/assets/setting.rb index 632f0203..58ceafc3 100644 --- a/lib/xero-ruby/models/assets/setting.rb +++ b/lib/xero-ruby/models/assets/setting.rb @@ -240,7 +240,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -251,6 +251,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/files/association.rb b/lib/xero-ruby/models/files/association.rb index 512beb06..1eb7bd33 100644 --- a/lib/xero-ruby/models/files/association.rb +++ b/lib/xero-ruby/models/files/association.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/files/file_object.rb b/lib/xero-ruby/models/files/file_object.rb index 40348484..3e2245dc 100644 --- a/lib/xero-ruby/models/files/file_object.rb +++ b/lib/xero-ruby/models/files/file_object.rb @@ -240,7 +240,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -251,6 +251,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/files/file_response204.rb b/lib/xero-ruby/models/files/file_response204.rb index 99739d97..44762636 100644 --- a/lib/xero-ruby/models/files/file_response204.rb +++ b/lib/xero-ruby/models/files/file_response204.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/files/files.rb b/lib/xero-ruby/models/files/files.rb index b24d19af..52869a62 100644 --- a/lib/xero-ruby/models/files/files.rb +++ b/lib/xero-ruby/models/files/files.rb @@ -202,7 +202,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -213,6 +213,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/files/folder.rb b/lib/xero-ruby/models/files/folder.rb index f6112710..c1cae97d 100644 --- a/lib/xero-ruby/models/files/folder.rb +++ b/lib/xero-ruby/models/files/folder.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/files/folders.rb b/lib/xero-ruby/models/files/folders.rb index f9698b9f..6791d7aa 100644 --- a/lib/xero-ruby/models/files/folders.rb +++ b/lib/xero-ruby/models/files/folders.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/files/inline_object.rb b/lib/xero-ruby/models/files/inline_object.rb index a7eff274..f1ddf586 100644 --- a/lib/xero-ruby/models/files/inline_object.rb +++ b/lib/xero-ruby/models/files/inline_object.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/files/user.rb b/lib/xero-ruby/models/files/user.rb index ae52e726..49d237e0 100644 --- a/lib/xero-ruby/models/files/user.rb +++ b/lib/xero-ruby/models/files/user.rb @@ -215,7 +215,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -226,6 +226,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/account.rb b/lib/xero-ruby/models/payroll_au/account.rb index 0b49f46d..ae23581b 100644 --- a/lib/xero-ruby/models/payroll_au/account.rb +++ b/lib/xero-ruby/models/payroll_au/account.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/api_exception.rb b/lib/xero-ruby/models/payroll_au/api_exception.rb index 9db68be0..baf037e9 100644 --- a/lib/xero-ruby/models/payroll_au/api_exception.rb +++ b/lib/xero-ruby/models/payroll_au/api_exception.rb @@ -191,7 +191,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -202,6 +202,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/bank_account.rb b/lib/xero-ruby/models/payroll_au/bank_account.rb index 80413433..63031c79 100644 --- a/lib/xero-ruby/models/payroll_au/bank_account.rb +++ b/lib/xero-ruby/models/payroll_au/bank_account.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/deduction_line.rb b/lib/xero-ruby/models/payroll_au/deduction_line.rb index b8dd67a4..4ce67b1e 100644 --- a/lib/xero-ruby/models/payroll_au/deduction_line.rb +++ b/lib/xero-ruby/models/payroll_au/deduction_line.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/deduction_type.rb b/lib/xero-ruby/models/payroll_au/deduction_type.rb index 63d6e02f..e22ac5dd 100644 --- a/lib/xero-ruby/models/payroll_au/deduction_type.rb +++ b/lib/xero-ruby/models/payroll_au/deduction_type.rb @@ -302,7 +302,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -313,6 +313,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/earnings_line.rb b/lib/xero-ruby/models/payroll_au/earnings_line.rb index 0805c68b..72b10bf3 100644 --- a/lib/xero-ruby/models/payroll_au/earnings_line.rb +++ b/lib/xero-ruby/models/payroll_au/earnings_line.rb @@ -255,7 +255,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -266,6 +266,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/earnings_rate.rb b/lib/xero-ruby/models/payroll_au/earnings_rate.rb index 2ca0a831..f0b019c1 100644 --- a/lib/xero-ruby/models/payroll_au/earnings_rate.rb +++ b/lib/xero-ruby/models/payroll_au/earnings_rate.rb @@ -360,7 +360,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -371,6 +371,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/employee.rb b/lib/xero-ruby/models/payroll_au/employee.rb index c7abae18..90ab9fa6 100644 --- a/lib/xero-ruby/models/payroll_au/employee.rb +++ b/lib/xero-ruby/models/payroll_au/employee.rb @@ -533,7 +533,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -544,6 +544,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/employees.rb b/lib/xero-ruby/models/payroll_au/employees.rb index f86f848c..6cf64557 100644 --- a/lib/xero-ruby/models/payroll_au/employees.rb +++ b/lib/xero-ruby/models/payroll_au/employees.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/home_address.rb b/lib/xero-ruby/models/payroll_au/home_address.rb index a4e82280..1529da86 100644 --- a/lib/xero-ruby/models/payroll_au/home_address.rb +++ b/lib/xero-ruby/models/payroll_au/home_address.rb @@ -225,7 +225,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -236,6 +236,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb b/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb index 01a04ceb..661ea5e1 100644 --- a/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +++ b/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_application.rb b/lib/xero-ruby/models/payroll_au/leave_application.rb index 6209dc25..a2da7031 100644 --- a/lib/xero-ruby/models/payroll_au/leave_application.rb +++ b/lib/xero-ruby/models/payroll_au/leave_application.rb @@ -264,7 +264,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -275,6 +275,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_applications.rb b/lib/xero-ruby/models/payroll_au/leave_applications.rb index 9318b5f1..b408723a 100644 --- a/lib/xero-ruby/models/payroll_au/leave_applications.rb +++ b/lib/xero-ruby/models/payroll_au/leave_applications.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_balance.rb b/lib/xero-ruby/models/payroll_au/leave_balance.rb index 6d09bbaf..0331df26 100644 --- a/lib/xero-ruby/models/payroll_au/leave_balance.rb +++ b/lib/xero-ruby/models/payroll_au/leave_balance.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb b/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb index 944c7a17..0491ac0e 100644 --- a/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_line.rb b/lib/xero-ruby/models/payroll_au/leave_line.rb index b576a6f8..b216a016 100644 --- a/lib/xero-ruby/models/payroll_au/leave_line.rb +++ b/lib/xero-ruby/models/payroll_au/leave_line.rb @@ -240,7 +240,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -251,6 +251,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_lines.rb b/lib/xero-ruby/models/payroll_au/leave_lines.rb index c6a0d9d9..c5963712 100644 --- a/lib/xero-ruby/models/payroll_au/leave_lines.rb +++ b/lib/xero-ruby/models/payroll_au/leave_lines.rb @@ -173,7 +173,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -184,6 +184,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_period.rb b/lib/xero-ruby/models/payroll_au/leave_period.rb index 06a7fcae..c9b490a4 100644 --- a/lib/xero-ruby/models/payroll_au/leave_period.rb +++ b/lib/xero-ruby/models/payroll_au/leave_period.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/leave_type.rb b/lib/xero-ruby/models/payroll_au/leave_type.rb index 5bf35bd3..9f4ffa14 100644 --- a/lib/xero-ruby/models/payroll_au/leave_type.rb +++ b/lib/xero-ruby/models/payroll_au/leave_type.rb @@ -265,7 +265,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -276,6 +276,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/opening_balances.rb b/lib/xero-ruby/models/payroll_au/opening_balances.rb index afa6b2d6..165736db 100644 --- a/lib/xero-ruby/models/payroll_au/opening_balances.rb +++ b/lib/xero-ruby/models/payroll_au/opening_balances.rb @@ -240,7 +240,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -251,6 +251,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/pay_item.rb b/lib/xero-ruby/models/payroll_au/pay_item.rb index 430ca239..5285e7cd 100644 --- a/lib/xero-ruby/models/payroll_au/pay_item.rb +++ b/lib/xero-ruby/models/payroll_au/pay_item.rb @@ -208,7 +208,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -219,6 +219,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/pay_items.rb b/lib/xero-ruby/models/payroll_au/pay_items.rb index b44263b5..74f51dee 100644 --- a/lib/xero-ruby/models/payroll_au/pay_items.rb +++ b/lib/xero-ruby/models/payroll_au/pay_items.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/pay_run.rb b/lib/xero-ruby/models/payroll_au/pay_run.rb index 4882eead..4d08531d 100644 --- a/lib/xero-ruby/models/payroll_au/pay_run.rb +++ b/lib/xero-ruby/models/payroll_au/pay_run.rb @@ -329,7 +329,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -340,6 +340,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/pay_runs.rb b/lib/xero-ruby/models/payroll_au/pay_runs.rb index f2557d9d..7e3b67f4 100644 --- a/lib/xero-ruby/models/payroll_au/pay_runs.rb +++ b/lib/xero-ruby/models/payroll_au/pay_runs.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/pay_template.rb b/lib/xero-ruby/models/payroll_au/pay_template.rb index 0b2b478c..6f2ed211 100644 --- a/lib/xero-ruby/models/payroll_au/pay_template.rb +++ b/lib/xero-ruby/models/payroll_au/pay_template.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/payroll_calendar.rb b/lib/xero-ruby/models/payroll_au/payroll_calendar.rb index fba23a55..d7319c23 100644 --- a/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +++ b/lib/xero-ruby/models/payroll_au/payroll_calendar.rb @@ -232,7 +232,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -243,6 +243,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/payroll_calendars.rb b/lib/xero-ruby/models/payroll_au/payroll_calendars.rb index 4f5f6eb9..af99ea2e 100644 --- a/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +++ b/lib/xero-ruby/models/payroll_au/payroll_calendars.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/payslip.rb b/lib/xero-ruby/models/payroll_au/payslip.rb index d6f2ae6c..f87b1663 100644 --- a/lib/xero-ruby/models/payroll_au/payslip.rb +++ b/lib/xero-ruby/models/payroll_au/payslip.rb @@ -366,7 +366,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -377,6 +377,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/payslip_lines.rb b/lib/xero-ruby/models/payroll_au/payslip_lines.rb index 6d5c478d..1e3d7e81 100644 --- a/lib/xero-ruby/models/payroll_au/payslip_lines.rb +++ b/lib/xero-ruby/models/payroll_au/payslip_lines.rb @@ -256,7 +256,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -267,6 +267,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/payslip_object.rb b/lib/xero-ruby/models/payroll_au/payslip_object.rb index 8c8f80e4..40fcecb1 100644 --- a/lib/xero-ruby/models/payroll_au/payslip_object.rb +++ b/lib/xero-ruby/models/payroll_au/payslip_object.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/payslip_summary.rb b/lib/xero-ruby/models/payroll_au/payslip_summary.rb index 37d96ecf..bdd10dd3 100644 --- a/lib/xero-ruby/models/payroll_au/payslip_summary.rb +++ b/lib/xero-ruby/models/payroll_au/payslip_summary.rb @@ -280,7 +280,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -291,6 +291,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/payslips.rb b/lib/xero-ruby/models/payroll_au/payslips.rb index 2857d91f..c730c3ac 100644 --- a/lib/xero-ruby/models/payroll_au/payslips.rb +++ b/lib/xero-ruby/models/payroll_au/payslips.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/reimbursement_line.rb b/lib/xero-ruby/models/payroll_au/reimbursement_line.rb index c3e3ada6..4b2c23ce 100644 --- a/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +++ b/lib/xero-ruby/models/payroll_au/reimbursement_line.rb @@ -215,7 +215,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -226,6 +226,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb b/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb index 1d645ca7..9d21ed93 100644 --- a/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +++ b/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb @@ -173,7 +173,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -184,6 +184,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/reimbursement_type.rb b/lib/xero-ruby/models/payroll_au/reimbursement_type.rb index af788e39..726b60d2 100644 --- a/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +++ b/lib/xero-ruby/models/payroll_au/reimbursement_type.rb @@ -225,7 +225,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -236,6 +236,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/settings.rb b/lib/xero-ruby/models/payroll_au/settings.rb index a0ed8cff..2c3e015c 100644 --- a/lib/xero-ruby/models/payroll_au/settings.rb +++ b/lib/xero-ruby/models/payroll_au/settings.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/settings_object.rb b/lib/xero-ruby/models/payroll_au/settings_object.rb index c4736dac..bc6d0d94 100644 --- a/lib/xero-ruby/models/payroll_au/settings_object.rb +++ b/lib/xero-ruby/models/payroll_au/settings_object.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb b/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb index fdeda713..59af3e4f 100644 --- a/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +++ b/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb @@ -181,7 +181,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -192,6 +192,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb b/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb index 0b07bb92..9529a033 100644 --- a/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +++ b/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb @@ -181,7 +181,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -192,6 +192,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb b/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb index 5d512db6..ea8e6e4c 100644 --- a/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +++ b/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb @@ -181,7 +181,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -192,6 +192,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/super_fund.rb b/lib/xero-ruby/models/payroll_au/super_fund.rb index e221a5fa..adc66644 100644 --- a/lib/xero-ruby/models/payroll_au/super_fund.rb +++ b/lib/xero-ruby/models/payroll_au/super_fund.rb @@ -297,7 +297,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -308,6 +308,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/super_fund_product.rb b/lib/xero-ruby/models/payroll_au/super_fund_product.rb index dfa4ffdb..e349a693 100644 --- a/lib/xero-ruby/models/payroll_au/super_fund_product.rb +++ b/lib/xero-ruby/models/payroll_au/super_fund_product.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/super_fund_products.rb b/lib/xero-ruby/models/payroll_au/super_fund_products.rb index a0bc7e35..56d141ba 100644 --- a/lib/xero-ruby/models/payroll_au/super_fund_products.rb +++ b/lib/xero-ruby/models/payroll_au/super_fund_products.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/super_funds.rb b/lib/xero-ruby/models/payroll_au/super_funds.rb index 20390a66..73a6879e 100644 --- a/lib/xero-ruby/models/payroll_au/super_funds.rb +++ b/lib/xero-ruby/models/payroll_au/super_funds.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/super_line.rb b/lib/xero-ruby/models/payroll_au/super_line.rb index ffee0cd9..e982c34a 100644 --- a/lib/xero-ruby/models/payroll_au/super_line.rb +++ b/lib/xero-ruby/models/payroll_au/super_line.rb @@ -240,7 +240,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -251,6 +251,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/super_membership.rb b/lib/xero-ruby/models/payroll_au/super_membership.rb index 90c4baa3..0aee14f2 100644 --- a/lib/xero-ruby/models/payroll_au/super_membership.rb +++ b/lib/xero-ruby/models/payroll_au/super_membership.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/superannuation_line.rb b/lib/xero-ruby/models/payroll_au/superannuation_line.rb index 65ded966..7252154a 100644 --- a/lib/xero-ruby/models/payroll_au/superannuation_line.rb +++ b/lib/xero-ruby/models/payroll_au/superannuation_line.rb @@ -250,7 +250,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -261,6 +261,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/tax_declaration.rb b/lib/xero-ruby/models/payroll_au/tax_declaration.rb index 7c01e32c..c9929879 100644 --- a/lib/xero-ruby/models/payroll_au/tax_declaration.rb +++ b/lib/xero-ruby/models/payroll_au/tax_declaration.rb @@ -320,7 +320,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -331,6 +331,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/tax_line.rb b/lib/xero-ruby/models/payroll_au/tax_line.rb index 7d2b03e1..dc86ecb4 100644 --- a/lib/xero-ruby/models/payroll_au/tax_line.rb +++ b/lib/xero-ruby/models/payroll_au/tax_line.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/timesheet.rb b/lib/xero-ruby/models/payroll_au/timesheet.rb index 62d77106..8a5201cb 100644 --- a/lib/xero-ruby/models/payroll_au/timesheet.rb +++ b/lib/xero-ruby/models/payroll_au/timesheet.rb @@ -269,7 +269,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -280,6 +280,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/timesheet_line.rb b/lib/xero-ruby/models/payroll_au/timesheet_line.rb index 5564e861..f37fe270 100644 --- a/lib/xero-ruby/models/payroll_au/timesheet_line.rb +++ b/lib/xero-ruby/models/payroll_au/timesheet_line.rb @@ -202,7 +202,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -213,6 +213,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/timesheet_object.rb b/lib/xero-ruby/models/payroll_au/timesheet_object.rb index 8557ebf6..2ee9bbc6 100644 --- a/lib/xero-ruby/models/payroll_au/timesheet_object.rb +++ b/lib/xero-ruby/models/payroll_au/timesheet_object.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/timesheets.rb b/lib/xero-ruby/models/payroll_au/timesheets.rb index 4058c9e6..cf0a7a15 100644 --- a/lib/xero-ruby/models/payroll_au/timesheets.rb +++ b/lib/xero-ruby/models/payroll_au/timesheets.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_au/validation_error.rb b/lib/xero-ruby/models/payroll_au/validation_error.rb index ce0e474f..4319ebc6 100644 --- a/lib/xero-ruby/models/payroll_au/validation_error.rb +++ b/lib/xero-ruby/models/payroll_au/validation_error.rb @@ -170,7 +170,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -181,6 +181,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/account.rb b/lib/xero-ruby/models/payroll_nz/account.rb index d721d0fb..9b33e641 100644 --- a/lib/xero-ruby/models/payroll_nz/account.rb +++ b/lib/xero-ruby/models/payroll_nz/account.rb @@ -238,7 +238,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -249,6 +249,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/accounts.rb b/lib/xero-ruby/models/payroll_nz/accounts.rb index 4776f6a8..a53299d9 100644 --- a/lib/xero-ruby/models/payroll_nz/accounts.rb +++ b/lib/xero-ruby/models/payroll_nz/accounts.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/address.rb b/lib/xero-ruby/models/payroll_nz/address.rb index 9572ab0f..a9046807 100644 --- a/lib/xero-ruby/models/payroll_nz/address.rb +++ b/lib/xero-ruby/models/payroll_nz/address.rb @@ -235,7 +235,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -246,6 +246,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/bank_account.rb b/lib/xero-ruby/models/payroll_nz/bank_account.rb index 56439fca..1b7839b2 100644 --- a/lib/xero-ruby/models/payroll_nz/bank_account.rb +++ b/lib/xero-ruby/models/payroll_nz/bank_account.rb @@ -291,7 +291,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -302,6 +302,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/benefit.rb b/lib/xero-ruby/models/payroll_nz/benefit.rb index d8c5e294..13c08349 100644 --- a/lib/xero-ruby/models/payroll_nz/benefit.rb +++ b/lib/xero-ruby/models/payroll_nz/benefit.rb @@ -331,7 +331,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -342,6 +342,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/deduction.rb b/lib/xero-ruby/models/payroll_nz/deduction.rb index e8f7ff3a..f440b69a 100644 --- a/lib/xero-ruby/models/payroll_nz/deduction.rb +++ b/lib/xero-ruby/models/payroll_nz/deduction.rb @@ -273,7 +273,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -284,6 +284,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/deduction_line.rb b/lib/xero-ruby/models/payroll_nz/deduction_line.rb index 9d17da45..d1e26215 100644 --- a/lib/xero-ruby/models/payroll_nz/deduction_line.rb +++ b/lib/xero-ruby/models/payroll_nz/deduction_line.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/deduction_object.rb b/lib/xero-ruby/models/payroll_nz/deduction_object.rb index 15519df4..dedd0efd 100644 --- a/lib/xero-ruby/models/payroll_nz/deduction_object.rb +++ b/lib/xero-ruby/models/payroll_nz/deduction_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/deductions.rb b/lib/xero-ruby/models/payroll_nz/deductions.rb index 2c686e6b..c5d36be0 100644 --- a/lib/xero-ruby/models/payroll_nz/deductions.rb +++ b/lib/xero-ruby/models/payroll_nz/deductions.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_line.rb b/lib/xero-ruby/models/payroll_nz/earnings_line.rb index 03b6d9bf..6c809aa1 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_line.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_line.rb @@ -260,7 +260,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -271,6 +271,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_order.rb b/lib/xero-ruby/models/payroll_nz/earnings_order.rb index d384fe37..a44a34af 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_order.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_order.rb @@ -217,7 +217,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -228,6 +228,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb b/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb index be23f495..c25c8fac 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_orders.rb b/lib/xero-ruby/models/payroll_nz/earnings_orders.rb index 810f81d0..15588616 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_orders.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_rate.rb b/lib/xero-ruby/models/payroll_nz/earnings_rate.rb index 5ece95b8..4f47f1de 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_rate.rb @@ -349,7 +349,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -360,6 +360,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb b/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb index c7407c14..418d18bc 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_rates.rb b/lib/xero-ruby/models/payroll_nz/earnings_rates.rb index 9c397f50..070d026a 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_rates.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_template.rb b/lib/xero-ruby/models/payroll_nz/earnings_template.rb index 1fd2509e..a7197729 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_template.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_template.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb b/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb index 69530903..6a002f23 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee.rb b/lib/xero-ruby/models/payroll_nz/employee.rb index c765f7b5..4ff66b29 100644 --- a/lib/xero-ruby/models/payroll_nz/employee.rb +++ b/lib/xero-ruby/models/payroll_nz/employee.rb @@ -336,7 +336,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -347,6 +347,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb b/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb index 2925c18a..164534af 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave.rb b/lib/xero-ruby/models/payroll_nz/employee_leave.rb index 420d528a..402d93f1 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave.rb @@ -252,7 +252,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -263,6 +263,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb index dda7ac41..541f5397 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb index 2f470ebd..65efde0d 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb index c75d463f..cff86267 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb index 9697407d..42d5b417 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb @@ -230,7 +230,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -241,6 +241,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb index c54c208a..14132f8c 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb index 65aa990f..28d4a598 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb @@ -298,7 +298,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -309,6 +309,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb index c7978a8e..2b2893c9 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb index 22ed9d86..0b37bb26 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_leaves.rb b/lib/xero-ruby/models/payroll_nz/employee_leaves.rb index 8887661c..ebbebf8a 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leaves.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_object.rb b/lib/xero-ruby/models/payroll_nz/employee_object.rb index cb15910d..1465c15d 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb b/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb index 4f0d8033..d22fb03b 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb b/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb index b7a89fa3..75e3360c 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb b/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb index 5a6a372a..9c847525 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb @@ -182,7 +182,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -193,6 +193,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb b/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb index 7b22c19f..9050e3e7 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb b/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb index e12254aa..46877415 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb index 9d29dfe4..2eb70299 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb @@ -242,7 +242,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -253,6 +253,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb index df534ab0..f598fc2f 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb index ee3c6c19..2a00729e 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb @@ -284,7 +284,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -295,6 +295,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb index 167c7157..32c9118e 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb index 154fb2ab..75c1d846 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb @@ -381,7 +381,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -392,6 +392,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb index ebc26421..14e42801 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb index 6ca278f5..e666fffa 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_tax.rb b/lib/xero-ruby/models/payroll_nz/employee_tax.rb index c0105e8b..568e12da 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_tax.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_tax.rb @@ -359,7 +359,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -370,6 +370,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb b/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb index 436d5728..5d908a67 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employees.rb b/lib/xero-ruby/models/payroll_nz/employees.rb index d7c82f97..a52ee7a9 100644 --- a/lib/xero-ruby/models/payroll_nz/employees.rb +++ b/lib/xero-ruby/models/payroll_nz/employees.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employment.rb b/lib/xero-ruby/models/payroll_nz/employment.rb index a96cc7a7..03582f79 100644 --- a/lib/xero-ruby/models/payroll_nz/employment.rb +++ b/lib/xero-ruby/models/payroll_nz/employment.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/employment_object.rb b/lib/xero-ruby/models/payroll_nz/employment_object.rb index 3560bf15..f0d6e326 100644 --- a/lib/xero-ruby/models/payroll_nz/employment_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employment_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb b/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb index 855c3b20..04f63056 100644 --- a/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +++ b/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/invalid_field.rb b/lib/xero-ruby/models/payroll_nz/invalid_field.rb index ddd1a846..1d8c4756 100644 --- a/lib/xero-ruby/models/payroll_nz/invalid_field.rb +++ b/lib/xero-ruby/models/payroll_nz/invalid_field.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb b/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb index 7a3354b6..7c19aa71 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb b/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb index e80b5aae..c709bd90 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb @@ -260,7 +260,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -271,6 +271,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/leave_period.rb b/lib/xero-ruby/models/payroll_nz/leave_period.rb index 3613254f..22cd5537 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_period.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_period.rb @@ -236,7 +236,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -247,6 +247,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/leave_periods.rb b/lib/xero-ruby/models/payroll_nz/leave_periods.rb index a7c755c1..d5a3eb1b 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_periods.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_periods.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/leave_type.rb b/lib/xero-ruby/models/payroll_nz/leave_type.rb index 74adbe17..231de618 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_type.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_type.rb @@ -235,7 +235,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -246,6 +246,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/leave_type_object.rb b/lib/xero-ruby/models/payroll_nz/leave_type_object.rb index cbcb0355..917e2894 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_type_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/leave_types.rb b/lib/xero-ruby/models/payroll_nz/leave_types.rb index f1365599..15a436c9 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_types.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_types.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pagination.rb b/lib/xero-ruby/models/payroll_nz/pagination.rb index 3b27ed48..bd25baba 100644 --- a/lib/xero-ruby/models/payroll_nz/pagination.rb +++ b/lib/xero-ruby/models/payroll_nz/pagination.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_run.rb b/lib/xero-ruby/models/payroll_nz/pay_run.rb index 7071defd..4f6184de 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run.rb @@ -333,7 +333,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -344,6 +344,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb b/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb index 042db0bb..00cde366 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb @@ -250,7 +250,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -261,6 +261,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb b/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb index 4734fdfd..14864523 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb b/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb index 98d06146..16b9496b 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_run_object.rb b/lib/xero-ruby/models/payroll_nz/pay_run_object.rb index 88e32e66..b931ea26 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_runs.rb b/lib/xero-ruby/models/payroll_nz/pay_runs.rb index 2a2159d1..3df44069 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_runs.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_runs.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_slip.rb b/lib/xero-ruby/models/payroll_nz/pay_slip.rb index a5f6061d..58632e83 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_slip.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_slip.rb @@ -519,7 +519,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -530,6 +530,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb b/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb index 7e66569e..c0bbbb4c 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/pay_slips.rb b/lib/xero-ruby/models/payroll_nz/pay_slips.rb index c2133764..9f463f3d 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_slips.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_slips.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/payment_line.rb b/lib/xero-ruby/models/payroll_nz/payment_line.rb index 98cab535..41c7dfc0 100644 --- a/lib/xero-ruby/models/payroll_nz/payment_line.rb +++ b/lib/xero-ruby/models/payroll_nz/payment_line.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/payment_method.rb b/lib/xero-ruby/models/payroll_nz/payment_method.rb index 717b3938..d0bfcc3d 100644 --- a/lib/xero-ruby/models/payroll_nz/payment_method.rb +++ b/lib/xero-ruby/models/payroll_nz/payment_method.rb @@ -219,7 +219,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -230,6 +230,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/payment_method_object.rb b/lib/xero-ruby/models/payroll_nz/payment_method_object.rb index 2727da4a..ccab5ee8 100644 --- a/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +++ b/lib/xero-ruby/models/payroll_nz/payment_method_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/problem.rb b/lib/xero-ruby/models/payroll_nz/problem.rb index 1398e75a..cf727a2f 100644 --- a/lib/xero-ruby/models/payroll_nz/problem.rb +++ b/lib/xero-ruby/models/payroll_nz/problem.rb @@ -223,7 +223,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -234,6 +234,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/reimbursement.rb b/lib/xero-ruby/models/payroll_nz/reimbursement.rb index 276234d0..a498bd5e 100644 --- a/lib/xero-ruby/models/payroll_nz/reimbursement.rb +++ b/lib/xero-ruby/models/payroll_nz/reimbursement.rb @@ -326,7 +326,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -337,6 +337,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb b/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb index e90770d4..6aa12523 100644 --- a/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +++ b/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb b/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb index 0eee2816..9eeaf814 100644 --- a/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +++ b/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/reimbursements.rb b/lib/xero-ruby/models/payroll_nz/reimbursements.rb index 44516084..c6833ff4 100644 --- a/lib/xero-ruby/models/payroll_nz/reimbursements.rb +++ b/lib/xero-ruby/models/payroll_nz/reimbursements.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb b/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb index bb3eeb0f..2b51a558 100644 --- a/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +++ b/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb @@ -345,7 +345,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -356,6 +356,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb b/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb index 1ffcefd4..91127b97 100644 --- a/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +++ b/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb b/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb index fcf99c11..bc53589a 100644 --- a/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +++ b/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/settings.rb b/lib/xero-ruby/models/payroll_nz/settings.rb index a1457ff8..544532f6 100644 --- a/lib/xero-ruby/models/payroll_nz/settings.rb +++ b/lib/xero-ruby/models/payroll_nz/settings.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb b/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb index 364840a2..4b565ed9 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb b/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb index 61f54d6a..c0b3bc8c 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb b/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb index 426c929f..331e07d3 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb b/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb index 7e753604..4db741e7 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/superannuation_line.rb b/lib/xero-ruby/models/payroll_nz/superannuation_line.rb index 6e73e361..5d6485f0 100644 --- a/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +++ b/lib/xero-ruby/models/payroll_nz/superannuation_line.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/superannuation_object.rb b/lib/xero-ruby/models/payroll_nz/superannuation_object.rb index a21da069..b27f5762 100644 --- a/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +++ b/lib/xero-ruby/models/payroll_nz/superannuation_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/superannuations.rb b/lib/xero-ruby/models/payroll_nz/superannuations.rb index d8e3e086..0ad0fc6d 100644 --- a/lib/xero-ruby/models/payroll_nz/superannuations.rb +++ b/lib/xero-ruby/models/payroll_nz/superannuations.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/tax_line.rb b/lib/xero-ruby/models/payroll_nz/tax_line.rb index b24fe60b..c8bf3ef7 100644 --- a/lib/xero-ruby/models/payroll_nz/tax_line.rb +++ b/lib/xero-ruby/models/payroll_nz/tax_line.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/tax_settings.rb b/lib/xero-ruby/models/payroll_nz/tax_settings.rb index eeb9b13c..09473b9c 100644 --- a/lib/xero-ruby/models/payroll_nz/tax_settings.rb +++ b/lib/xero-ruby/models/payroll_nz/tax_settings.rb @@ -256,7 +256,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -267,6 +267,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/timesheet.rb b/lib/xero-ruby/models/payroll_nz/timesheet.rb index 05b3571c..4e7df210 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet.rb @@ -309,7 +309,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -320,6 +320,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb b/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb index 1b0cc0aa..53707626 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb @@ -260,7 +260,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -271,6 +271,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/timesheet_line.rb b/lib/xero-ruby/models/payroll_nz/timesheet_line.rb index 909a07c2..81c3df04 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet_line.rb @@ -225,7 +225,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -236,6 +236,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb b/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb index 24376436..78fb4b0b 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/timesheet_object.rb b/lib/xero-ruby/models/payroll_nz/timesheet_object.rb index e417bece..151eabec 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/timesheets.rb b/lib/xero-ruby/models/payroll_nz/timesheets.rb index bc5c9a7f..83d2ea4b 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheets.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheets.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/tracking_categories.rb b/lib/xero-ruby/models/payroll_nz/tracking_categories.rb index 3a5031d4..8d2597c6 100644 --- a/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +++ b/lib/xero-ruby/models/payroll_nz/tracking_categories.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_nz/tracking_category.rb b/lib/xero-ruby/models/payroll_nz/tracking_category.rb index 610e2c4a..b9952a7a 100644 --- a/lib/xero-ruby/models/payroll_nz/tracking_category.rb +++ b/lib/xero-ruby/models/payroll_nz/tracking_category.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/account.rb b/lib/xero-ruby/models/payroll_uk/account.rb index 63ddf917..97aead9b 100644 --- a/lib/xero-ruby/models/payroll_uk/account.rb +++ b/lib/xero-ruby/models/payroll_uk/account.rb @@ -241,7 +241,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -252,6 +252,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/accounts.rb b/lib/xero-ruby/models/payroll_uk/accounts.rb index 4402d94c..284ffc84 100644 --- a/lib/xero-ruby/models/payroll_uk/accounts.rb +++ b/lib/xero-ruby/models/payroll_uk/accounts.rb @@ -172,7 +172,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -183,6 +183,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/address.rb b/lib/xero-ruby/models/payroll_uk/address.rb index a173ce33..a9524d68 100644 --- a/lib/xero-ruby/models/payroll_uk/address.rb +++ b/lib/xero-ruby/models/payroll_uk/address.rb @@ -225,7 +225,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -236,6 +236,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/bank_account.rb b/lib/xero-ruby/models/payroll_uk/bank_account.rb index bdc2b92d..f7823fb1 100644 --- a/lib/xero-ruby/models/payroll_uk/bank_account.rb +++ b/lib/xero-ruby/models/payroll_uk/bank_account.rb @@ -205,7 +205,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -216,6 +216,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/benefit.rb b/lib/xero-ruby/models/payroll_uk/benefit.rb index 4f330c87..d4a2961e 100644 --- a/lib/xero-ruby/models/payroll_uk/benefit.rb +++ b/lib/xero-ruby/models/payroll_uk/benefit.rb @@ -380,7 +380,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -391,6 +391,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/benefit_line.rb b/lib/xero-ruby/models/payroll_uk/benefit_line.rb index 5992ce70..c54c2460 100644 --- a/lib/xero-ruby/models/payroll_uk/benefit_line.rb +++ b/lib/xero-ruby/models/payroll_uk/benefit_line.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/benefit_object.rb b/lib/xero-ruby/models/payroll_uk/benefit_object.rb index 9684fb0d..7a6c2104 100644 --- a/lib/xero-ruby/models/payroll_uk/benefit_object.rb +++ b/lib/xero-ruby/models/payroll_uk/benefit_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/benefits.rb b/lib/xero-ruby/models/payroll_uk/benefits.rb index bf5c80b7..b8715a0a 100644 --- a/lib/xero-ruby/models/payroll_uk/benefits.rb +++ b/lib/xero-ruby/models/payroll_uk/benefits.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/court_order_line.rb b/lib/xero-ruby/models/payroll_uk/court_order_line.rb index e0c79e3d..9796880f 100644 --- a/lib/xero-ruby/models/payroll_uk/court_order_line.rb +++ b/lib/xero-ruby/models/payroll_uk/court_order_line.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/deduction.rb b/lib/xero-ruby/models/payroll_uk/deduction.rb index fb6d3130..f770f643 100644 --- a/lib/xero-ruby/models/payroll_uk/deduction.rb +++ b/lib/xero-ruby/models/payroll_uk/deduction.rb @@ -388,7 +388,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -399,6 +399,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/deduction_line.rb b/lib/xero-ruby/models/payroll_uk/deduction_line.rb index 8b3cafe6..801bce77 100644 --- a/lib/xero-ruby/models/payroll_uk/deduction_line.rb +++ b/lib/xero-ruby/models/payroll_uk/deduction_line.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/deduction_object.rb b/lib/xero-ruby/models/payroll_uk/deduction_object.rb index 29926082..fb258a9a 100644 --- a/lib/xero-ruby/models/payroll_uk/deduction_object.rb +++ b/lib/xero-ruby/models/payroll_uk/deduction_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/deductions.rb b/lib/xero-ruby/models/payroll_uk/deductions.rb index a306f691..00bb1171 100644 --- a/lib/xero-ruby/models/payroll_uk/deductions.rb +++ b/lib/xero-ruby/models/payroll_uk/deductions.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_line.rb b/lib/xero-ruby/models/payroll_uk/earnings_line.rb index aaf624ed..1c03c92b 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_line.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_line.rb @@ -250,7 +250,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -261,6 +261,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_order.rb b/lib/xero-ruby/models/payroll_uk/earnings_order.rb index 92df2f7c..224768b5 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_order.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_order.rb @@ -217,7 +217,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -228,6 +228,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb b/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb index e060a8ce..2339ee98 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_orders.rb b/lib/xero-ruby/models/payroll_uk/earnings_orders.rb index db063cd3..bc59e4d1 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_orders.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_rate.rb b/lib/xero-ruby/models/payroll_uk/earnings_rate.rb index 370e6843..536a0ebb 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_rate.rb @@ -349,7 +349,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -360,6 +360,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb b/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb index d23f9415..a59cdf29 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_rates.rb b/lib/xero-ruby/models/payroll_uk/earnings_rates.rb index 8fa52d80..cbba154b 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_rates.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_template.rb b/lib/xero-ruby/models/payroll_uk/earnings_template.rb index 0b750263..e263dfdd 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_template.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_template.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb b/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb index 72e0acbd..05ad8699 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee.rb b/lib/xero-ruby/models/payroll_uk/employee.rb index 198373c1..431c4328 100644 --- a/lib/xero-ruby/models/payroll_uk/employee.rb +++ b/lib/xero-ruby/models/payroll_uk/employee.rb @@ -346,7 +346,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -357,6 +357,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave.rb b/lib/xero-ruby/models/payroll_uk/employee_leave.rb index a484eaac..1459b7d1 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave.rb @@ -252,7 +252,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -263,6 +263,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb index 2b14511f..3fb259af 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb index fcf766b9..3b71bf37 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb index 39aeb423..1e537639 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb index 854f7b63..27e62520 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb @@ -268,7 +268,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -279,6 +279,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb index 50e911a6..90626195 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb index 10d17b0b..c379ea38 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_leaves.rb b/lib/xero-ruby/models/payroll_uk/employee_leaves.rb index dfda9113..9c3d093b 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leaves.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_object.rb b/lib/xero-ruby/models/payroll_uk/employee_object.rb index 4c7bc0cd..0fc722b3 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb b/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb index 351e82c5..fdbcf682 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb b/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb index 6ad23ade..933913b2 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb b/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb index 190c2772..76752e92 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb @@ -182,7 +182,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -193,6 +193,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb b/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb index b1a1cb30..1f975567 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb b/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb index 270bee24..9735f4bd 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb index 162280cc..93a31510 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb @@ -242,7 +242,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -253,6 +253,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb index bac2bcbb..849c3516 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb index fd1f2520..0a609edd 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb @@ -284,7 +284,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -295,6 +295,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb index 2d83785c..ab69642a 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb index 98befc39..27bd6dbc 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb @@ -381,7 +381,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -392,6 +392,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb index de014ba2..584613ac 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb index c9607aa4..60b7d715 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_tax.rb b/lib/xero-ruby/models/payroll_uk/employee_tax.rb index 7baf3601..ec585e1d 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_tax.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_tax.rb @@ -270,7 +270,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -281,6 +281,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb b/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb index 518686bc..214e99e4 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employees.rb b/lib/xero-ruby/models/payroll_uk/employees.rb index df1c5033..ad9da760 100644 --- a/lib/xero-ruby/models/payroll_uk/employees.rb +++ b/lib/xero-ruby/models/payroll_uk/employees.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employment.rb b/lib/xero-ruby/models/payroll_uk/employment.rb index 71798294..4f2071b8 100644 --- a/lib/xero-ruby/models/payroll_uk/employment.rb +++ b/lib/xero-ruby/models/payroll_uk/employment.rb @@ -242,7 +242,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -253,6 +253,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/employment_object.rb b/lib/xero-ruby/models/payroll_uk/employment_object.rb index bd34eea3..a4fee624 100644 --- a/lib/xero-ruby/models/payroll_uk/employment_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employment_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/invalid_field.rb b/lib/xero-ruby/models/payroll_uk/invalid_field.rb index b8228507..1b1176ff 100644 --- a/lib/xero-ruby/models/payroll_uk/invalid_field.rb +++ b/lib/xero-ruby/models/payroll_uk/invalid_field.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb b/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb index d33877bc..1fffa5ae 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb b/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb index 371d59c8..026c15a7 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/leave_period.rb b/lib/xero-ruby/models/payroll_uk/leave_period.rb index 35765f03..4a283bc0 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_period.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_period.rb @@ -236,7 +236,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -247,6 +247,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/leave_periods.rb b/lib/xero-ruby/models/payroll_uk/leave_periods.rb index 817441cd..c2d67d35 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_periods.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_periods.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/leave_type.rb b/lib/xero-ruby/models/payroll_uk/leave_type.rb index 847d3c80..d907abf6 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_type.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_type.rb @@ -255,7 +255,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -266,6 +266,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/leave_type_object.rb b/lib/xero-ruby/models/payroll_uk/leave_type_object.rb index 99aeee65..54fe8596 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_type_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/leave_types.rb b/lib/xero-ruby/models/payroll_uk/leave_types.rb index a092a34f..852a5508 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_types.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_types.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/pagination.rb b/lib/xero-ruby/models/payroll_uk/pagination.rb index 225cefc0..d672acff 100644 --- a/lib/xero-ruby/models/payroll_uk/pagination.rb +++ b/lib/xero-ruby/models/payroll_uk/pagination.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/pay_run.rb b/lib/xero-ruby/models/payroll_uk/pay_run.rb index 96fc6f80..02186576 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run.rb @@ -351,7 +351,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -362,6 +362,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb b/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb index 2726b6ff..18b26ff1 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb @@ -290,7 +290,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -301,6 +301,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb b/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb index 30a6a06c..b6c25893 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb b/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb index e1f81159..24cedf92 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/pay_run_object.rb b/lib/xero-ruby/models/payroll_uk/pay_run_object.rb index 956bd0ae..1cbb0462 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/pay_runs.rb b/lib/xero-ruby/models/payroll_uk/pay_runs.rb index 1e43e415..a0f1de59 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_runs.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_runs.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/payment_line.rb b/lib/xero-ruby/models/payroll_uk/payment_line.rb index dbaeb077..be9711d8 100644 --- a/lib/xero-ruby/models/payroll_uk/payment_line.rb +++ b/lib/xero-ruby/models/payroll_uk/payment_line.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/payment_method.rb b/lib/xero-ruby/models/payroll_uk/payment_method.rb index b7ba318e..d844b11d 100644 --- a/lib/xero-ruby/models/payroll_uk/payment_method.rb +++ b/lib/xero-ruby/models/payroll_uk/payment_method.rb @@ -224,7 +224,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -235,6 +235,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/payment_method_object.rb b/lib/xero-ruby/models/payroll_uk/payment_method_object.rb index 819b5e5a..d0037965 100644 --- a/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +++ b/lib/xero-ruby/models/payroll_uk/payment_method_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/payslip.rb b/lib/xero-ruby/models/payroll_uk/payslip.rb index ace4c5f1..3b246cab 100644 --- a/lib/xero-ruby/models/payroll_uk/payslip.rb +++ b/lib/xero-ruby/models/payroll_uk/payslip.rb @@ -499,7 +499,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -510,6 +510,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/payslip_object.rb b/lib/xero-ruby/models/payroll_uk/payslip_object.rb index 2dd2def3..105f635b 100644 --- a/lib/xero-ruby/models/payroll_uk/payslip_object.rb +++ b/lib/xero-ruby/models/payroll_uk/payslip_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/payslips.rb b/lib/xero-ruby/models/payroll_uk/payslips.rb index 2e075fc6..a8ad391f 100644 --- a/lib/xero-ruby/models/payroll_uk/payslips.rb +++ b/lib/xero-ruby/models/payroll_uk/payslips.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/problem.rb b/lib/xero-ruby/models/payroll_uk/problem.rb index 46ace0ff..3813dcd9 100644 --- a/lib/xero-ruby/models/payroll_uk/problem.rb +++ b/lib/xero-ruby/models/payroll_uk/problem.rb @@ -223,7 +223,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -234,6 +234,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/reimbursement.rb b/lib/xero-ruby/models/payroll_uk/reimbursement.rb index 6b159eac..b65543e9 100644 --- a/lib/xero-ruby/models/payroll_uk/reimbursement.rb +++ b/lib/xero-ruby/models/payroll_uk/reimbursement.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb b/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb index 6d4207f6..9f3ad354 100644 --- a/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +++ b/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb b/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb index 65cf95c5..fd9057fe 100644 --- a/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +++ b/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/reimbursements.rb b/lib/xero-ruby/models/payroll_uk/reimbursements.rb index 4e8951e1..fa97babd 100644 --- a/lib/xero-ruby/models/payroll_uk/reimbursements.rb +++ b/lib/xero-ruby/models/payroll_uk/reimbursements.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb b/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb index fe4131bb..2a3b3c17 100644 --- a/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +++ b/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb @@ -330,7 +330,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -341,6 +341,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb b/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb index 5d5ceb31..5c65359b 100644 --- a/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +++ b/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb b/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb index 03668e41..95585fe1 100644 --- a/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +++ b/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/settings.rb b/lib/xero-ruby/models/payroll_uk/settings.rb index 58fdb9ab..c94454c5 100644 --- a/lib/xero-ruby/models/payroll_uk/settings.rb +++ b/lib/xero-ruby/models/payroll_uk/settings.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb b/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb index 0b01fae1..ac05b173 100644 --- a/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +++ b/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb @@ -210,7 +210,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -221,6 +221,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/tax_line.rb b/lib/xero-ruby/models/payroll_uk/tax_line.rb index 9cf9f6bc..ac9aab72 100644 --- a/lib/xero-ruby/models/payroll_uk/tax_line.rb +++ b/lib/xero-ruby/models/payroll_uk/tax_line.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/timesheet.rb b/lib/xero-ruby/models/payroll_uk/timesheet.rb index db373c79..60702527 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet.rb @@ -309,7 +309,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -320,6 +320,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb b/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb index 9b1e1691..dd0a7840 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb @@ -220,7 +220,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -231,6 +231,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/timesheet_line.rb b/lib/xero-ruby/models/payroll_uk/timesheet_line.rb index 8046c08f..6c6eab00 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet_line.rb @@ -225,7 +225,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -236,6 +236,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb b/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb index 8e56532c..cf50aeca 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/timesheet_object.rb b/lib/xero-ruby/models/payroll_uk/timesheet_object.rb index 64f69d89..c9b7b9b6 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet_object.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/timesheets.rb b/lib/xero-ruby/models/payroll_uk/timesheets.rb index d78b9d29..9419f759 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheets.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheets.rb @@ -192,7 +192,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -203,6 +203,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/tracking_categories.rb b/lib/xero-ruby/models/payroll_uk/tracking_categories.rb index bba282bf..6bd5c2cb 100644 --- a/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +++ b/lib/xero-ruby/models/payroll_uk/tracking_categories.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/payroll_uk/tracking_category.rb b/lib/xero-ruby/models/payroll_uk/tracking_category.rb index cebd1bab..c825b663 100644 --- a/lib/xero-ruby/models/payroll_uk/tracking_category.rb +++ b/lib/xero-ruby/models/payroll_uk/tracking_category.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/amount.rb b/lib/xero-ruby/models/projects/amount.rb index 162ff026..2aac5236 100644 --- a/lib/xero-ruby/models/projects/amount.rb +++ b/lib/xero-ruby/models/projects/amount.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/error.rb b/lib/xero-ruby/models/projects/error.rb index 5f77c862..cfd332db 100644 --- a/lib/xero-ruby/models/projects/error.rb +++ b/lib/xero-ruby/models/projects/error.rb @@ -180,7 +180,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -191,6 +191,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/pagination.rb b/lib/xero-ruby/models/projects/pagination.rb index fb458b29..8f8d5104 100644 --- a/lib/xero-ruby/models/projects/pagination.rb +++ b/lib/xero-ruby/models/projects/pagination.rb @@ -200,7 +200,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -211,6 +211,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/project.rb b/lib/xero-ruby/models/projects/project.rb index 6e4b40ef..42218b62 100644 --- a/lib/xero-ruby/models/projects/project.rb +++ b/lib/xero-ruby/models/projects/project.rb @@ -385,7 +385,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -396,6 +396,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/project_create_or_update.rb b/lib/xero-ruby/models/projects/project_create_or_update.rb index b68d6bab..b5b5765e 100644 --- a/lib/xero-ruby/models/projects/project_create_or_update.rb +++ b/lib/xero-ruby/models/projects/project_create_or_update.rb @@ -205,7 +205,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -216,6 +216,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/project_patch.rb b/lib/xero-ruby/models/projects/project_patch.rb index 56a5f3dc..fa645950 100644 --- a/lib/xero-ruby/models/projects/project_patch.rb +++ b/lib/xero-ruby/models/projects/project_patch.rb @@ -175,7 +175,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -186,6 +186,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/project_user.rb b/lib/xero-ruby/models/projects/project_user.rb index b5503337..74155b8e 100644 --- a/lib/xero-ruby/models/projects/project_user.rb +++ b/lib/xero-ruby/models/projects/project_user.rb @@ -190,7 +190,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -201,6 +201,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/project_users.rb b/lib/xero-ruby/models/projects/project_users.rb index ddbe5f78..48cd8d24 100644 --- a/lib/xero-ruby/models/projects/project_users.rb +++ b/lib/xero-ruby/models/projects/project_users.rb @@ -182,7 +182,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -193,6 +193,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/projects.rb b/lib/xero-ruby/models/projects/projects.rb index cf67dd25..671ec127 100644 --- a/lib/xero-ruby/models/projects/projects.rb +++ b/lib/xero-ruby/models/projects/projects.rb @@ -182,7 +182,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -193,6 +193,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/task.rb b/lib/xero-ruby/models/projects/task.rb index 1c4e1bb8..6fc8ef71 100644 --- a/lib/xero-ruby/models/projects/task.rb +++ b/lib/xero-ruby/models/projects/task.rb @@ -347,7 +347,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -358,6 +358,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/task_create_or_update.rb b/lib/xero-ruby/models/projects/task_create_or_update.rb index 332f19d5..22ed5553 100644 --- a/lib/xero-ruby/models/projects/task_create_or_update.rb +++ b/lib/xero-ruby/models/projects/task_create_or_update.rb @@ -215,7 +215,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -226,6 +226,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/tasks.rb b/lib/xero-ruby/models/projects/tasks.rb index 5d419fdb..d58e5e6f 100644 --- a/lib/xero-ruby/models/projects/tasks.rb +++ b/lib/xero-ruby/models/projects/tasks.rb @@ -182,7 +182,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -193,6 +193,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/time_entries.rb b/lib/xero-ruby/models/projects/time_entries.rb index 3f52ca92..89d15f67 100644 --- a/lib/xero-ruby/models/projects/time_entries.rb +++ b/lib/xero-ruby/models/projects/time_entries.rb @@ -182,7 +182,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -193,6 +193,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/time_entry.rb b/lib/xero-ruby/models/projects/time_entry.rb index 1b57df4b..e7748282 100644 --- a/lib/xero-ruby/models/projects/time_entry.rb +++ b/lib/xero-ruby/models/projects/time_entry.rb @@ -286,7 +286,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -297,6 +297,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/models/projects/time_entry_create_or_update.rb b/lib/xero-ruby/models/projects/time_entry_create_or_update.rb index 98e37a6e..aaab8360 100644 --- a/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +++ b/lib/xero-ruby/models/projects/time_entry_create_or_update.rb @@ -230,7 +230,7 @@ def to_body # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash - def to_hash(downcase: true) + def to_hash(downcase: false) hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) @@ -241,6 +241,11 @@ def to_hash(downcase: true) hash end + # Returns the object in the form of hash with snake_case + def attributes + to_hash(downcase: true) + end + # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param [Object] value Any valid value diff --git a/lib/xero-ruby/version.rb b/lib/xero-ruby/version.rb index 4157107e..b5c25ec2 100644 --- a/lib/xero-ruby/version.rb +++ b/lib/xero-ruby/version.rb @@ -7,9 +7,9 @@ Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1 -The version of the OpenAPI document: 2.8.2 +The version of the XeroOpenAPI document: 2.8.3 =end module XeroRuby - VERSION = '2.6.0' + VERSION = '2.6.1' end From 5cb3b843afcb3901286f08d8b4a8aadfc076310d Mon Sep 17 00:00:00 2001 From: serknight Date: Wed, 27 Jan 2021 08:45:27 -0700 Subject: [PATCH 2/2] update tests --- lib/xero-ruby/models/accounting/account.rb | 2 +- .../models/accounting/organisation.rb | 26 +++++++++---------- spec/helper_methods_spec.rb | 20 +++++++++++--- 3 files changed, 30 insertions(+), 18 deletions(-) diff --git a/lib/xero-ruby/models/accounting/account.rb b/lib/xero-ruby/models/accounting/account.rb index b58e91b6..9106a039 100644 --- a/lib/xero-ruby/models/accounting/account.rb +++ b/lib/xero-ruby/models/accounting/account.rb @@ -90,7 +90,7 @@ class Account CISLABOURINCOME = "CISLABOURINCOME".freeze CISLIABILITY = "CISLIABILITY".freeze CISMATERIALS = "CISMATERIALS".freeze - EMPTY = "".freeze + # EMPTY = "".freeze # Shown if set attr_accessor :reporting_code diff --git a/lib/xero-ruby/models/accounting/organisation.rb b/lib/xero-ruby/models/accounting/organisation.rb index e6fa29e3..3bbbf9d6 100644 --- a/lib/xero-ruby/models/accounting/organisation.rb +++ b/lib/xero-ruby/models/accounting/organisation.rb @@ -113,7 +113,7 @@ class Organisation N6_MONTHLY = "6MONTHLY".freeze QUARTERLY = "QUARTERLY".freeze YEARLY = "YEARLY".freeze - NONE = "NONE".freeze + # NONE = "NONE".freeze # The default for LineAmountTypes on sales transactions attr_accessor :default_sales_tax @@ -135,18 +135,18 @@ class Organisation # Organisation Entity Type attr_accessor :organisation_entity_type - ACCOUNTING_PRACTICE = "ACCOUNTING_PRACTICE".freeze - COMPANY = "COMPANY".freeze - CHARITY = "CHARITY".freeze - CLUB_OR_SOCIETY = "CLUB_OR_SOCIETY".freeze - LOOK_THROUGH_COMPANY = "LOOK_THROUGH_COMPANY".freeze - NOT_FOR_PROFIT = "NOT_FOR_PROFIT".freeze - PARTNERSHIP = "PARTNERSHIP".freeze - S_CORPORATION = "S_CORPORATION".freeze - SELF_MANAGED_SUPERANNUATION_FUND = "SELF_MANAGED_SUPERANNUATION_FUND".freeze - SOLE_TRADER = "SOLE_TRADER".freeze - SUPERANNUATION_FUND = "SUPERANNUATION_FUND".freeze - TRUST = "TRUST".freeze + # ACCOUNTING_PRACTICE = "ACCOUNTING_PRACTICE".freeze + # COMPANY = "COMPANY".freeze + # CHARITY = "CHARITY".freeze + # CLUB_OR_SOCIETY = "CLUB_OR_SOCIETY".freeze + # LOOK_THROUGH_COMPANY = "LOOK_THROUGH_COMPANY".freeze + # NOT_FOR_PROFIT = "NOT_FOR_PROFIT".freeze + # PARTNERSHIP = "PARTNERSHIP".freeze + # S_CORPORATION = "S_CORPORATION".freeze + # SELF_MANAGED_SUPERANNUATION_FUND = "SELF_MANAGED_SUPERANNUATION_FUND".freeze + # SOLE_TRADER = "SOLE_TRADER".freeze + # SUPERANNUATION_FUND = "SUPERANNUATION_FUND".freeze + # TRUST = "TRUST".freeze # A unique identifier for the organisation. Potential uses. attr_accessor :short_code diff --git a/spec/helper_methods_spec.rb b/spec/helper_methods_spec.rb index d6d225a2..faa5aa69 100644 --- a/spec/helper_methods_spec.rb +++ b/spec/helper_methods_spec.rb @@ -59,12 +59,24 @@ ) } - it 'can serialize invoice attributes into a snake_case hash' do - expect(invoice.to_hash).to eq({currency_code: "USD", has_attachments: false, has_errors: false, invoice_number: "abc-123", total_discount: 100, type: "ACCPAY"}) + describe '#to_hash' do + it 'can serialize invoice attributes into a PascalCase hash' do + expect(invoice.to_hash).to eq(:CurrencyCode => "USD", :HasAttachments => false, :HasErrors => false, :InvoiceNumber => "abc-123", :TotalDiscount => 100, :Type => "ACCPAY") + end + + it 'can serialize contact attributes into a PascalCase hash' do + expect(contact.to_hash).to eq(:AccountNumber => "abc-123", :ContactStatus => "ACTIVE", :EmailAddress => "email@gmail.com", :FirstName => "Contact", :HasAttachments => false, :HasValidationErrors => false, :LastName => "Name", :Name => "Contact Name") + end end - it 'can serialize contact attributes into a snake_case hash' do - expect(contact.to_hash).to eq({account_number: "abc-123", contact_status: "ACTIVE", email_address: "email@gmail.com", first_name: 'Contact', has_attachments: false, has_validation_errors: false, last_name: "Name", name: "Contact Name"}) + describe '#attributes' do + it 'can serialize invoice attributes into a snake_case hash' do + expect(invoice.attributes).to eq({currency_code: "USD", has_attachments: false, has_errors: false, invoice_number: "abc-123", total_discount: 100, type: "ACCPAY"}) + end + + it 'can serialize contact attributes into a snake_case hash' do + expect(contact.attributes).to eq({account_number: "abc-123", contact_status: "ACTIVE", email_address: "email@gmail.com", first_name: 'Contact', has_attachments: false, has_validation_errors: false, last_name: "Name", name: "Contact Name"}) + end end end end