Files
medusa-store/www/apps/docs/content/references/services/classes/Discount-1.mdx
2023-11-29 11:58:08 +00:00

32 lines
596 B
Plaintext

---
displayed_sidebar: servicesSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# Discount
A discount can be applied to a cart for promotional purposes.
## constructor
`**new Discount**()`
A discount can be applied to a cart for promotional purposes.
___
## Properties
<ParameterTypes parameters={[
{
"name": "code",
"type": "`string`",
"description": "A unique code for the discount - this will be used by the customer to apply the discount",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />