lib/xeroizer/models/bank_transaction.rb in xeroizer-2.15.5 vs lib/xeroizer/models/bank_transaction.rb in xeroizer-2.15.6

- old
+ new

@@ -27,10 +27,11 @@ string :type date :date datetime_utc :updated_date_utc, :api_name => "UpdatedDateUTC" date :fully_paid_on_date + string :url string :reference string :bank_transaction_id, :api_name => "BankTransactionID" boolean :is_reconciled string :status @@ -43,11 +44,11 @@ validates_inclusion_of :line_amount_types, :in => Xeroizer::Record::LINE_AMOUNT_TYPES, :allow_blanks => false validates_inclusion_of :type, - :in => %w{SPEND RECEIVE}, :allow_blanks => false, - :message => "Invalid type. Expected either SPEND or RECEIVE." + :in => %w{SPEND RECEIVE RECEIVE-PREPAYMENT RECEIVE-OVERPAYMENT}, :allow_blanks => false, + :message => "Invalid type. Expected either SPEND, RECEIVE, RECEIVE-PREPAYMENT or RECEIVE-OVERPAYMENT." validates_inclusion_of :status, :in => BANK_TRANSACTION_STATUSES, :unless => :new_record? validates_presence_of :contact, :bank_account, :allow_blanks => false validates :line_items, :message => "Invalid line items. Must supply at least one." do