Beispiel #1
0
    def accounts(self):
        """Ask the bank for the known :py:class:`ofxclient.Account` list.

        :rtype: list of :py:class:`ofxclient.Account` objects
        """
        from ofxclient.account import Account
        client = self.client()
        query = client.account_list_query()
        resp = client.post(query)
        resp_handle = StringIO(resp)

        parsed = OfxParser.parse(resp_handle)

        return [Account.from_ofxparse(a, institution=self)
                for a in parsed.accounts]
Beispiel #2
0
    def accounts(self):
        """Ask the bank for the known :py:class:`ofxclient.Account` list.

        :rtype: list of :py:class:`ofxclient.Account` objects
        """
        from ofxclient.account import Account
        client = self.client()
        query = client.account_list_query()
        resp = client.post(query)
        resp_handle = StringIO(resp)

        parsed = OfxParser.parse(resp_handle)

        return [
            Account.from_ofxparse(a, institution=self) for a in parsed.accounts
        ]
Beispiel #3
0
 def _section_to_account(self, section):
     section_items = dict(self.parser.items(section))
     serialized = unflatten_dict(section_items)
     return Account.deserialize(serialized)
Beispiel #4
0
 def _section_to_account(self, section):
     section_items = dict(self.parser.items(section))
     serialized = unflatten_dict(section_items)
     return Account.deserialize(serialized)