lib/xeroizer/models/payroll/bank_account.rb in xeroizer-2.20.0 vs lib/xeroizer/models/payroll/bank_account.rb in xeroizer-3.0.0

- old
+ new

@@ -1,23 +1,35 @@ module Xeroizer module Record module Payroll - + class BankAccountModel < PayrollBaseModel - + end - + class BankAccount < PayrollBase - + string :statement_text string :account_name - string :bsb + string :bsb, :api_name => 'BSB' string :account_number boolean :remainder string :percentage decimal :amount + # US Payroll fields + + BANK_ACCOUNT_TYPE = { + 'CHECKING' => '', + 'SAVINGS' => '' + } unless defined?(BANK_ACCOUNT_TYPE) + + string :account_holder_name + string :account_type + string :routing_number + + validates_inclusion_of :account_type, :in => BANK_ACCOUNT_TYPE end - end + end end end