Skip to main content

Class: ProductVariant

Hierarchy​

  • SoftDeletableEntity

    ↳ ProductVariant

Constructors​

constructor​

• new ProductVariant()

Inherited from​

SoftDeletableEntity.constructor

Properties​

allow_backorder​

• allow_backorder: boolean

Defined in​

models/product-variant.ts:60


barcode​

• barcode: string

Defined in​

models/product-variant.ts:43


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


ean​

• ean: string

Defined in​

models/product-variant.ts:47


height​

• height: number

Defined in​

models/product-variant.ts:84


hs_code​

• hs_code: string

Defined in​

models/product-variant.ts:66


id​

• id: string

Inherited from​

SoftDeletableEntity.id

Defined in​

interfaces/models/base-entity.ts:13


inventory_quantity​

• inventory_quantity: number

Defined in​

models/product-variant.ts:57


length​

• length: number

Defined in​

models/product-variant.ts:81


manage_inventory​

• manage_inventory: boolean

Defined in​

models/product-variant.ts:63


material​

• material: string

Defined in​

models/product-variant.ts:75


metadata​

• metadata: Record<string, unknown>

Defined in​

models/product-variant.ts:95


mid_code​

• mid_code: string

Defined in​

models/product-variant.ts:72


options​

• options: ProductOptionValue[]

Defined in​

models/product-variant.ts:92


origin_country​

• origin_country: string

Defined in​

models/product-variant.ts:69


prices​

• prices: MoneyAmount[]

Defined in​

models/product-variant.ts:35


product​

• product: Product

Defined in​

models/product-variant.ts:29


product_id​

• product_id: string

Defined in​

models/product-variant.ts:25


sku​

• sku: string

Defined in​

models/product-variant.ts:39


title​

• title: string

Defined in​

models/product-variant.ts:21


upc​

• upc: string

Defined in​

models/product-variant.ts:51


updated_at​

• updated_at: Date

Inherited from​

SoftDeletableEntity.updated_at

Defined in​

interfaces/models/base-entity.ts:19


variant_rank​

• variant_rank: number

Defined in​

models/product-variant.ts:54


weight​

• weight: number

Defined in​

models/product-variant.ts:78


width​

• width: number

Defined in​

models/product-variant.ts:87

Methods​

beforeInsert​

▸ Private beforeInsert(): void

Returns​

void

Defined in​

models/product-variant.ts:97

Was this section helpful?