question

dazza5000 avatar image
dazza5000 asked dazza5000 commented

Why are there two separate types for Discount?

com.clover.sdk.v3.order.Discount
com.clover.sdk.v3.inventory.Discount
Clover Android SDK
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Jeffrey Blattman avatar image
Jeffrey Blattman answered dazza5000 commented

The former is a discount on the order. The latter is a discount on an inventory item.

For example, a 10% discount on the entire order, vs, $1 off your large fries.

If you are asking why we didn't have a single type to represent both. I don't have a good answer for that. It's possible that could have worked.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dazza5000 avatar image dazza5000 commented ·

Yes. I was curious why there wasn't a single type to represent both because they seem to share the same model. And it looks like you can in effect apply a discount for an "inventory item" to an order.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community