Skip to main content

Class: Discount

internal.Discount

Base abstract entity for all entities

Hierarchy

Properties

code

code: Copy to Clipboard

Defined in

medusa/dist/models/discount.d.ts:5


created_at

created_at: Copy to Clipboard

Inherited from

SoftDeletableEntity.created_at

Defined in

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


deleted_at

deleted_at: Copy to Clipboard | Copy to Clipboard

Inherited from

SoftDeletableEntity.deleted_at

Defined in

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


ends_at

ends_at: Copy to Clipboard | Copy to Clipboard

Defined in

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


id

id: Copy to Clipboard

Inherited from

SoftDeletableEntity.id

Defined in

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


is_disabled

is_disabled: Copy to Clipboard

Defined in

medusa/dist/models/discount.d.ts:9


is_dynamic

is_dynamic: Copy to Clipboard

Defined in

medusa/dist/models/discount.d.ts:6


metadata

metadata: Copy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Defined in

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


parent_discount

parent_discount: Copy to Clipboard

Defined in

medusa/dist/models/discount.d.ts:11


parent_discount_id

parent_discount_id: Copy to Clipboard

Defined in

medusa/dist/models/discount.d.ts:10


regions

regions: Copy to Clipboard[]

Defined in

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


rule

rule: Copy to Clipboard

Defined in

medusa/dist/models/discount.d.ts:8


rule_id

rule_id: Copy to Clipboard

Defined in

medusa/dist/models/discount.d.ts:7


starts_at

starts_at: Copy to Clipboard

Defined in

medusa/dist/models/discount.d.ts:12


updated_at

updated_at: Copy to Clipboard

Inherited from

SoftDeletableEntity.updated_at

Defined in

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


upperCaseCodeAndTrim

Copy to Clipboard upperCaseCodeAndTrim: Copy to Clipboard

Defined in

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


usage_count

usage_count: Copy to Clipboard

Defined in

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


usage_limit

usage_limit: Copy to Clipboard | Copy to Clipboard

Defined in

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


valid_duration

valid_duration: Copy to Clipboard | Copy to Clipboard

Defined in

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