"""Product Store Effective Price Code logic.""" from pricing.models import product_store_effective_price_code def get_by_product_id(product_id): """Get the effective price codes for a particular product. Args: product_id (int): the ID of the product. Returns: response.Response: containing the product pricing dict. """ if isinstance(product_id, str): product_id = int(product_id) return product_store_effective_price_code.get_by_product_id(product_id)