balanced/balanced-dashboard

View on GitHub
app/models/factories/debit-existing-bank-account-transaction-factory.js

Summary

Maintainability
A
50 mins
Test Coverage
import DebitExistingFundingInstrumentTransactionFactory from "./debit-existing-funding-instrument-transaction-factory";
import ValidationHelpers from "balanced-dashboard/utils/validation-helpers";

var DebitExistingBankAccountTransactionFactory = DebitExistingFundingInstrumentTransactionFactory.extend({
    validations: {
        dollar_amount: ValidationHelpers.positiveDollarAmount,
        appears_on_statement_as: ValidationHelpers.bankTransactionAppearsOnStatementAs,

        source_uri: {
            presence: true
        }
    }
});

export default DebitExistingBankAccountTransactionFactory;