One rule of a discount: which items it discounts, by how much, and when it applies. Rules only exist inside a discount.
A new discount rule. The server sets its ID.
A discount offered by a vendor.
Body for creating a discount under a vendor.
Body for updating a discount. Only the fields sent are changed. Past transactions keep their own copy of the discount.
Query parameters for listing a vendor's discounts.
A page of discounts.
One rule of a discount: which items it discounts, by how much, and when it applies. Rules only exist inside a discount.
A new discount rule. The server sets its ID.
A discount offered by a vendor.
Body for creating a discount under a vendor.
Body for updating a discount. Only the fields sent are changed. Past transactions keep their own copy of the discount.
Query parameters for listing a vendor's discounts.
A page of discounts.
Discounts a vendor offers, and the rules that decide which items they take money off.