https://ns.adobe.com/xdm/data/discount
This is an offer from the supplier to the purchaser, to reduce the payment amount if the payment is made within a certain period of time.
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | Yes | Experimental | No | Forbidden | Permitted | data/discount.schema.json |
{
"xdm:code": "percentage",
"xdm:value": 30
}
Property | Type | Required | Defined by |
---|---|---|---|
schema:description | string |
Optional | Discount (this schema) |
xdm:code | string |
Required | Discount (this schema) |
xdm:condition | complex | Optional | Discount (this schema) |
xdm:value | number |
Optional | Discount (this schema) |
* |
any | Additional | this schema allows additional properties |
Describes the discounting rules in detail.
schema:description
- is optional
- type:
string
- defined in this schema
string
The description of the discountValue attribute. e.g percentage, currency, 3for2 etc. Can be enumerated, custom values allowed.
xdm:code
- is required
- type:
string
- defined in this schema
string
Value | Description |
---|---|
bogo |
Buy one, get one free |
bogoho |
Buy one, get one half off |
3for2 |
Three for the price of two |
3fixed |
Any three items for a fixed price |
voucher |
Save xdm:value when you spend more than xdm:condition |
fixed |
Fixed amount off |
percentage |
Percentage amount off |
shipping |
Free shipping |
The minimum amount of items or price for the dicount to qualify
xdm:condition
- is optional
- type: complex
- defined in this schema
Unknown type ``.
{
"title": "Condition",
"description": "The minimum amount of items or price for the dicount to qualify",
"simpletype": "complex"
}
If the discount description indicates a percentage or similar formulaic value, it is represented here, can be percentage or currency amount.
xdm:value
- is optional
- type:
number
- defined in this schema
number