@hungr/types
    Preparing search index...

    Module Discounts

    Discounts a vendor offers, and the rules that decide which items they take money off.

    DiscountRule

    One rule of a discount: which items it discounts, by how much, and when it applies. Rules only exist inside a discount.

    CreateDiscountRule

    A new discount rule. The server sets its ID.

    Discount

    A discount offered by a vendor.

    CreateDiscount

    Body for creating a discount under a vendor.

    UpdateDiscount

    Body for updating a discount. Only the fields sent are changed. Past transactions keep their own copy of the discount.

    DiscountFilter

    Query parameters for listing a vendor's discounts.

    DiscountList

    A page of discounts.

    DiscountRuleSchema

    One rule of a discount: which items it discounts, by how much, and when it applies. Rules only exist inside a discount.

    CreateDiscountRuleSchema

    A new discount rule. The server sets its ID.

    DiscountSchema

    A discount offered by a vendor.

    CreateDiscountSchema

    Body for creating a discount under a vendor.

    UpdateDiscountSchema

    Body for updating a discount. Only the fields sent are changed. Past transactions keep their own copy of the discount.

    DiscountFilterSchema

    Query parameters for listing a vendor's discounts.

    DiscountListSchema

    A page of discounts.