--- displayed_sidebar: entitiesSidebar slug: /references/entities/classes/DiscountRule --- import TypeList from "@site/src/components/TypeList" # DiscountRule A discount rule defines how a Discount is calculated when applied to a Cart. ## Properties `","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"metadata","type":"`Record`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/development/entities/repositories#retrieving-a-list-of-records" sectionTitle="DiscountRule"/>