Skip to main content

Class: Discount

Hierarchy

  • Copy to Clipboard

    Copy to Clipboard

Constructors

constructor

new Discount()

Inherited from

SoftDeletableEntity.constructor

Properties

code

code:

Copy to Clipboard

Defined in

models/discount.ts:22


created_at

created_at:

Copy to Clipboard

Inherited from

SoftDeletableEntity.created_at

Defined in

interfaces/models/base-entity.ts:16


deleted_at

deleted_at:

Copy to Clipboard
|
Copy to Clipboard

Inherited from

SoftDeletableEntity.deleted_at

Defined in

interfaces/models/soft-deletable-entity.ts:7


ends_at

ends_at:

Copy to Clipboard
|
Copy to Clipboard

Defined in

models/discount.ts:52


id

id:

Copy to Clipboard

Inherited from

SoftDeletableEntity.id

Defined in

interfaces/models/base-entity.ts:13


is_disabled

is_disabled:

Copy to Clipboard

Defined in

models/discount.ts:36


is_dynamic

is_dynamic:

Copy to Clipboard

Defined in

models/discount.ts:25


metadata

metadata:

Copy to Clipboard
<
Copy to Clipboard
,
Copy to Clipboard
>

Defined in

models/discount.ts:78


parent_discount

parent_discount:

Defined in

models/discount.ts:43


parent_discount_id

parent_discount_id:

Copy to Clipboard

Defined in

models/discount.ts:39


regions

regions:

[]

Defined in

models/discount.ts:69


rule

rule:

Defined in

models/discount.ts:33


rule_id

rule_id:

Copy to Clipboard

Defined in

models/discount.ts:29


starts_at

starts_at:

Copy to Clipboard

Defined in

models/discount.ts:49


updated_at

updated_at:

Copy to Clipboard

Inherited from

SoftDeletableEntity.updated_at

Defined in

interfaces/models/base-entity.ts:19


usage_count

usage_count:

Copy to Clipboard

Defined in

models/discount.ts:75


usage_limit

usage_limit:

Copy to Clipboard
|
Copy to Clipboard

Defined in

models/discount.ts:72


valid_duration

valid_duration:

Copy to Clipboard
|
Copy to Clipboard

Defined in

models/discount.ts:55

Methods

upperCaseCodeAndTrim

Copy to Clipboard
upperCaseCodeAndTrim():
Copy to Clipboard

Returns

Copy to Clipboard

Defined in

models/discount.ts:80