(event)
Handles updates to Connected Accounts External Accounts
Handles updates to Connected Accounts External Accounts
Handles updates to Connected Accounts External Accounts
def account_application_webhook_handler(event):
    """
    Handles updates to Connected Accounts External Accounts
    """
    source_type = event.data.get("object", {}).get("object")
    if source_type == PayoutType.card:
        _handle_crud_like_event(target_cls=models.Card, event=event)

    if source_type == PayoutType.bank_account:
        _handle_crud_like_event(target_cls=models.BankAccount, event=event)
def account_application_webhook_handler ( event ) : source_type = event . data . get ( "object" , { } ) . get ( "object" ) if source_type == PayoutType . card : _handle_crud_like_event ( target_cls = models . Card , event = event ) if source_type == PayoutType . bank_account : _handle_crud_like_event ( target_cls = models . BankAccount , event = event )