{"size": 1178, "ext": "js", "max_stars_repo_path": "app-2/app/models/wire-instruction.js", "max_stars_repo_name": "Akirix/akirix-suite", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app-2/app/models/wire-instruction.js", "max_issues_repo_name": "Akirix/akirix-suite", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app-2/app/models/wire-instruction.js", "max_forks_repo_name": "Akirix/akirix-suite", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.7222222222, "max_line_length": 108, "alphanum_fraction": 0.6485568761}
import DS from 'ember-data';
import StringObjectMixin from 'akx-app/mixins/model-locale';

export default DS.Model.extend( StringObjectMixin, {
    currency_id: DS.attr(),
    name: DS.attr(),
    bank_name: DS.attr(),
    bank_address: DS.attr(),
    aba_routing_number: DS.attr(),
    sort_code: DS.attr(),
    swift_code: DS.attr(),
    account_holder: DS.attr(),
    account_number: DS.attr(),
    account_iban: DS.attr(),
    account_id: DS.attr(),
    intermediary_bank_name: DS.attr(),
    intermediary_bank_address: DS.attr(),
    intermediary_swift: DS.attr(),
    intermediary_aba_routing_number: DS.attr(),

    domestic: DS.attr( 'number' ),
    international: DS.attr( 'number' ),
    method_wire: DS.attr( 'number' ),
    method_ach: DS.attr( 'number' ),

    currency: DS.belongsTo( 'currency', { async: true } ),

    strMethodAch: function(){
        return this.get( 'method_ach' ) ? this.get( 'getStringList.yes' ) : this.get( 'getStringList.no' );
    }.property( 'method_ach' ),

    strMethodWire: function(){
        return this.get( 'method_wire' ) ? this.get( 'getStringList.yes' ) : this.get( 'getStringList.no' );
    }.property( 'method_wire' )
} );
