Skip to main content

Class: DiscountRule

internal.DiscountRule

Base abstract entity for all entities

Hierarchy

Properties

allocation

allocation: AllocationType

Defined in

medusa/dist/models/discount-rule.d.ts:16


beforeInsert

Private beforeInsert: any

Defined in

medusa/dist/models/discount-rule.d.ts:19


conditions

conditions: DiscountCondition[]

Defined in

medusa/dist/models/discount-rule.d.ts:17


created_at

created_at: Date

Inherited from

SoftDeletableEntity.created_at

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:6


deleted_at

deleted_at: null | Date

Inherited from

SoftDeletableEntity.deleted_at

Defined in

medusa/dist/interfaces/models/soft-deletable-entity.d.ts:3


description

description: string

Defined in

medusa/dist/models/discount-rule.d.ts:13


id

id: string

Inherited from

SoftDeletableEntity.id

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:5


metadata

metadata: Record<string, unknown>

Defined in

medusa/dist/models/discount-rule.d.ts:18


type

type: DiscountRuleType

Defined in

medusa/dist/models/discount-rule.d.ts:14


updated_at

updated_at: Date

Inherited from

SoftDeletableEntity.updated_at

Defined in

medusa/dist/interfaces/models/base-entity.d.ts:7


value

value: number

Defined in

medusa/dist/models/discount-rule.d.ts:15

Was this page helpful?