def apply_to_product(self, price):
    if (self.type in [self.PERCENTAGE, self.FIXED_PRICE, self.FIXED_PER_PRODUCT]):
        return self.proxy().apply_to_product(price)
def apply_to_product(self, price):
    if (self.type in [self.PERCENTAGE, self.FIXED_PRICE, self.FIXED_PER_PRODUCT]):
        return self.proxy().apply_to_product(price)