belvo.resources.institutions

 1from typing import Dict
 2
 3from belvo.resources.base import Resource
 4
 5
 6class Institutions(Resource):
 7    """
 8    <br>
 9    <div style="background-color:#f9c806;padding: 6px; border-radius: 4px">
10    <strong>Not implemented</strong><br>
11    Although included in the SDK, the delete and resume methods for the Institutions resource will raise a <code>NotImplementedError()</code> when used.
12    </div>
13
14    """
15
16    endpoint = "/api/institutions/"
17
18    def delete(self, id: str) -> bool:
19        raise NotImplementedError()
20
21    def resume(
22        self,
23        session: str,
24        token: str,
25        *,
26        link: str = None,
27        raise_exception: bool = False,
28        **kwargs: Dict,
29    ) -> Dict:
30        raise NotImplementedError()
class Institutions(belvo.resources.base.Resource):
 7class Institutions(Resource):
 8    """
 9    <br>
10    <div style="background-color:#f9c806;padding: 6px; border-radius: 4px">
11    <strong>Not implemented</strong><br>
12    Although included in the SDK, the delete and resume methods for the Institutions resource will raise a <code>NotImplementedError()</code> when used.
13    </div>
14
15    """
16
17    endpoint = "/api/institutions/"
18
19    def delete(self, id: str) -> bool:
20        raise NotImplementedError()
21
22    def resume(
23        self,
24        session: str,
25        token: str,
26        *,
27        link: str = None,
28        raise_exception: bool = False,
29        **kwargs: Dict,
30    ) -> Dict:
31        raise NotImplementedError()


Not implemented
Although included in the SDK, the delete and resume methods for the Institutions resource will raise a NotImplementedError() when used.
endpoint = '/api/institutions/'
def delete(self, id: str) -> bool:
19    def delete(self, id: str) -> bool:
20        raise NotImplementedError()

Delete an item from the Belvo API.

Note: If you delete an account object, all associated transactions and owners are also deleted from your Belvo account.

Example:

# Deleting an account
client.Accounts.delete("161a5e4d-67f5-4760-ae4f-c1fe85cb20ca")

Arguments:
  • id (str): The id of the object to delete.
Returns:

bool: Returns True if the object was deleted.

def resume( self, session: str, token: str, *, link: str = None, raise_exception: bool = False, **kwargs: Dict) -> Dict:
22    def resume(
23        self,
24        session: str,
25        token: str,
26        *,
27        link: str = None,
28        raise_exception: bool = False,
29        **kwargs: Dict,
30    ) -> Dict:
31        raise NotImplementedError()

Resume a resource sessions

Example:

# Login to Belvo API
client = Client("Secret Key ID", "Secret Key PASSWORD", "sandbox")

# Resume a link
link = client.Links.resume(
  session="session_id",
  token="token",
  link="link_id"
)

Arguments:
  • session (str): The session you want to resume (UUID).
  • token (str): The MFA token required to continue the session.
  • link (str, optional): The Link ID . Defaults to None.
  • raise_exception (bool, optional): Boolean indicating whether to return an API error or to raise an exception. Defaults to False.
Returns:

Union[List[Dict], Dict]: On success, returns the resource data requests.