klequis / private-money-client

5 stars 2 forks source link

New account shape #72

Open klequis opened 3 years ago

klequis commented 3 years ago

Goal: Separate account and import profile such that 1 import profile can be used with many accounts.

This will allow import profiles to be developed for different institutions. It is not proven yet that a given combination of institution & account type have a consistent profile.

account

{
    _id: ObjectId,
    acctId: String,
    institution: String, // (e.g., "chase")
    acctType: String, // (e.g., "cc", "chk")
}

importProfile

Other current account properties will be moved to inst profile (what to call it?)

{
    _id: ObjectID,
    _mapId: String, // (e.g., "chase.chk", "citi.cc")
    hasHeaders: Boolean,
    colMap: Object {
        date: Int,
        description: Int,
        debit: Int,
        credit: Int,
    }
}

There used to be other properties such as type & check number. Not sure what no current accounts have these props?