Skip to main content

Interface: Discount

Properties​

application_method​

application_method: DiscountApplicationMethod | null

Whether the discount is applied via a code or automatically.


code?​

optional code?: string

The code of the Discount, or the title of the discount if its an automatic discount.


id​

id: number

The ID of the Discount.


value?​

optional value?: number

The value of the Discount.


value_type?​

optional value_type?: DiscountType

The type of the value of the Discount.