Skip to main content

Class: Product

internal.Product

Base abstract entity for all entities

Hierarchy​

Properties​

beforeInsert​

• Private beforeInsert: any

Defined in​

medusa/dist/models/product.d.ts:46


collection​

• collection: ProductCollection

Defined in​

medusa/dist/models/product.d.ts:38


collection_id​

• collection_id: null | string

Defined in​

medusa/dist/models/product.d.ts:37


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: null | string

Defined in​

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


discountable​

• discountable: boolean

Defined in​

medusa/dist/models/product.d.ts:42


external_id​

• external_id: null | string

Defined in​

medusa/dist/models/product.d.ts:43


handle​

• handle: null | string

Defined in​

medusa/dist/models/product.d.ts:20


height​

• height: null | number

Defined in​

medusa/dist/models/product.d.ts:31


hs_code​

• hs_code: null | string

Defined in​

medusa/dist/models/product.d.ts:33


id​

• id: string

Inherited from​

SoftDeletableEntity.id

Defined in​

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


images​

• images: Image[]

Defined in​

medusa/dist/models/product.d.ts:23


is_giftcard​

• is_giftcard: boolean

Defined in​

medusa/dist/models/product.d.ts:21


length​

• length: null | number

Defined in​

medusa/dist/models/product.d.ts:30


material​

• material: null | string

Defined in​

medusa/dist/models/product.d.ts:36


metadata​

• metadata: null | Record<string, unknown>

Defined in​

medusa/dist/models/product.d.ts:44


mid_code​

• mid_code: null | string

Defined in​

medusa/dist/models/product.d.ts:35


options​

• options: ProductOption[]

Defined in​

medusa/dist/models/product.d.ts:25


origin_country​

• origin_country: null | string

Defined in​

medusa/dist/models/product.d.ts:34


profile​

• profile: ShippingProfile

Defined in​

medusa/dist/models/product.d.ts:28


profile_id​

• profile_id: string

Defined in​

medusa/dist/models/product.d.ts:27


sales_channels​

• sales_channels: SalesChannel[]

Defined in​

medusa/dist/models/product.d.ts:45


status​

• status: ProductStatus

Defined in​

medusa/dist/models/product.d.ts:22


subtitle​

• subtitle: null | string

Defined in​

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


tags​

• tags: ProductTag[]

Defined in​

medusa/dist/models/product.d.ts:41


thumbnail​

• thumbnail: null | string

Defined in​

medusa/dist/models/product.d.ts:24


title​

• title: string

Defined in​

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


type​

• type: ProductType

Defined in​

medusa/dist/models/product.d.ts:40


type_id​

• type_id: null | string

Defined in​

medusa/dist/models/product.d.ts:39


updated_at​

• updated_at: Date

Inherited from​

SoftDeletableEntity.updated_at

Defined in​

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


variants​

• variants: ProductVariant[]

Defined in​

medusa/dist/models/product.d.ts:26


weight​

• weight: null | number

Defined in​

medusa/dist/models/product.d.ts:29


width​

• width: null | number

Defined in​

medusa/dist/models/product.d.ts:32

Was this section helpful?