"""Logic for product.""" from pricing.models import ows_product def is_owner(product_id, account_type, account_id): """Verify ownership of a product. Args: product_id (int): the product identifier. account_type (str): the account type (vendor or subaccount). account_id (str): the account id. Returns: response.Response: Indicates whether the account owns the product. """ return ows_product.is_owner(product_id, account_type, account_id) def get_product_ids_from_upcs(upcs): """Retrieve products regarding upcs. Args: upcs (dict): the upcs to get products from. Returns: response.Response: a list of products. """ return ows_product.get_product_ids_from_upcs(upcs)