Skip to main content

Class: Product

Hierarchy

  • SoftDeletableEntity

    Product

Constructors

constructor

new Product()

Inherited from

SoftDeletableEntity.constructor

Properties

collection

collection: ProductCollection

Defined in

models/product.ts:117


collection_id

collection_id: null | string

Defined in

models/product.ts:113


created_at

created_at: Date

Inherited from

SoftDeletableEntity.created_at

Defined in

interfaces/models/base-entity.ts:16


deleted_at

deleted_at: null | Date

Inherited from

SoftDeletableEntity.deleted_at

Defined in

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


description

description: null | string

Defined in

models/product.ts:43


discountable

discountable: boolean

Defined in

models/product.ts:141


external_id

external_id: null | string

Defined in

models/product.ts:144


handle

handle: null | string

Defined in

models/product.ts:47


height

height: null | number

Defined in

models/product.ts:95


hs_code

hs_code: null | string

Defined in

models/product.ts:101


id

id: string

Inherited from

SoftDeletableEntity.id

Defined in

interfaces/models/base-entity.ts:13


images

images: Image[]

Defined in

models/product.ts:67


is_giftcard

is_giftcard: boolean

Defined in

models/product.ts:50


length

length: null | number

Defined in

models/product.ts:92


material

material: null | string

Defined in

models/product.ts:110


metadata

metadata: null | Record<string, unknown>

Defined in

models/product.ts:147


mid_code

mid_code: null | string

Defined in

models/product.ts:107


options

options: ProductOption[]

Defined in

models/product.ts:73


origin_country

origin_country: null | string

Defined in

models/product.ts:104


profile

profile: ShippingProfile

Defined in

models/product.ts:86


profile_id

profile_id: string

Defined in

models/product.ts:82


sales_channels

sales_channels: SalesChannel[]

Defined in

models/product.ts:163


status

status: ProductStatus

Defined in

models/product.ts:53


subtitle

subtitle: null | string

Defined in

models/product.ts:40


tags

tags: ProductTag[]

Defined in

models/product.ts:138


thumbnail

thumbnail: null | string

Defined in

models/product.ts:70


title

title: string

Defined in

models/product.ts:37


type

type: ProductType

Defined in

models/product.ts:124


type_id

type_id: null | string

Defined in

models/product.ts:120


updated_at

updated_at: Date

Inherited from

SoftDeletableEntity.updated_at

Defined in

interfaces/models/base-entity.ts:19


variants

variants: ProductVariant[]

Defined in

models/product.ts:78


weight

weight: null | number

Defined in

models/product.ts:89


width

width: null | number

Defined in

models/product.ts:98

Methods

beforeInsert

Private beforeInsert(): void

Returns

void

Defined in

models/product.ts:165

Was this page helpful?