"""Store Pricing Tier logic.""" from pricing.models import store_pricing_tier def create_store_pricing_tier(store_pricing_scheme_id, data): """Create a store pricing tier. Args: store_pricing_scheme_id (int): the scheme ID to attach to data (dict): the data from which to create the store pricing tier. Returns: response.Response: containing the created store pricing tier dict. """ return store_pricing_tier.create_store_pricing_tier( store_pricing_scheme_id, data) def update_store_pricing_tier_by_id(store_pricing_tier_id, data): """Update a store pricing tier. Args: store_pricing_tier_id (int): the ID of the store pricing tier. data (dict): the data from which to update the store pricing tier. Returns: response.Response: containing the updated store pricing scheme. """ return store_pricing_tier.update_store_pricing_tier_by_id( store_pricing_tier_id, data) def delete(store_pricing_tier_id): """Delete a store pricing tier. Args: store_pricing_tier_id (int): the ID of the store pricing tier. Returns: response.Response: containing the deleted store pricing tier. """ return store_pricing_tier.delete(store_pricing_tier_id)