Skip to main content

Class: AdminPostDiscountsReq

internal.AdminPostDiscountsReq

Properties

code

code: string

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:185


ends_at

Optional ends_at: Date

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:190


is_disabled

is_disabled: boolean

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:188


is_dynamic

is_dynamic: boolean

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:187


metadata

Optional metadata: Record<string, unknown>

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:194


regions

regions: string[]

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:193


rule

rule: AdminPostDiscountsDiscountRule

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:186


starts_at

Optional starts_at: Date

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:189


usage_limit

Optional usage_limit: number

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:192


valid_duration

Optional valid_duration: string

Defined in

medusa/dist/api/routes/admin/discounts/create-discount.d.ts:191