""" Logic for Account. Provides logic for getting account related info. """ from contracts.models import ows_account def get_vendor_by_subaccount(subaccount_id): """Get vendor for subaccount. Args: subaccount_id (int): unique identifier of the subaccount. Returns: response.Response: Response with vendor id if available. """ account_response = ows_account.get_vendor_id_by_subaccount_id(subaccount_id) return account_response