Dynamic Pricing with Discount Rules