Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 1.62 KB

File metadata and controls

30 lines (27 loc) · 1.62 KB

DiscountRule

Properties

Name Type Description Notes
id String The discount rule's ID
type TypeEnum The type of the Discount, can be `fixed` for discounts that reduce the price by a fixed amount, `percentage` for percentage reductions or `free_shipping` for shipping vouchers.
description String A short description of the discount
value Integer The value that the discount represents; this will depend on the type of the discount
allocation AllocationEnum The scope that the discount should apply to.
conditions List<Object> A set of conditions that can be used to limit when the discount can be used. Available if the relation `conditions` is expanded. [optional]
createdAt OffsetDateTime The date with timezone at which the resource was created.
updatedAt OffsetDateTime The date with timezone at which the resource was updated.
deletedAt OffsetDateTime The date with timezone at which the resource was deleted.
metadata Object An optional key-value map with additional details

Enum: TypeEnum

Name Value
FIXED "fixed"
PERCENTAGE "percentage"
FREE_SHIPPING "free_shipping"

Enum: AllocationEnum

Name Value
TOTAL "total"
ITEM "item"