[API] See if discount can be used with sale


#1

I’m updating my PrismPay plugin to use a cart system for checking out items as opposed to checking them out individually. I would like to be able to apply discounts to items in the user’s cart automatically upon checkout, but I need to determine whether or not a discount can be used on an item that’s on sale if it’s available.

Currently, there is no way to determine whether or not a discount code can be used on an item that’s on sale through the REST API or the Java Client, despite there being a toggle for it whenever you create a discount.

I would appreciate it if a boolean for whether or not a discount code can be used with a sale were to be added to the ShopDiscount object in both the REST API and the Java Client :heart: