Class: ProductVariant
backend.ProductVariant
Hierarchy#
↳
ProductVariant
Implements#
TProductVariant
Table of contents#
Constructors#
Properties#
- _meta
- attributesJson
- createDate
- description
- descriptionDelta
- id
- images
- isEnabled
- mainImage
- manageStock
- metaRecords
- name
- oldPrice
- pageDescription
- pageTitle
- price
- product
- productId
- sku
- slug
- stockAmount
- stockStatus
- updateDate
Accessors#
Constructors#
constructor#
• new ProductVariant()
Inherited from#
Properties#
_meta#
• Optional _meta: null | string
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:37
attributesJson#
• Optional attributesJson: null | string
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:75
createDate#
• Optional createDate: null | Date
Implementation of#
TProductVariant.createDate
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:51
description#
• Optional description: null | string
Implementation of#
TProductVariant.description
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:68
descriptionDelta#
• Optional descriptionDelta: null | string
Implementation of#
TProductVariant.descriptionDelta
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:72
id#
• id: number
Implementation of#
TProductVariant.id
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:22
images#
• Optional images: null | string[]
Implementation of#
TProductVariant.images
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:50
isEnabled#
• Optional isEnabled: null | boolean
Implementation of#
TProductVariant.isEnabled
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:60
mainImage#
• Optional mainImage: null | string
Implementation of#
TProductVariant.mainImage
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:46
manageStock#
• Optional manageStock: null | boolean
Implementation of#
TProductVariant.manageStock
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:64
metaRecords#
• Optional metaRecords: null | ProductVariantMeta[]
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:90
name#
• Optional name: null | string
Implementation of#
TProductVariant.name
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:27
oldPrice#
• Optional oldPrice: null | number
Implementation of#
TProductVariant.oldPrice
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:37
pageDescription#
• Optional pageDescription: null | string
Implementation of#
TProductVariant.pageDescription
Inherited from#
BasePageEntity.pageDescription
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:34
pageTitle#
• Optional pageTitle: null | string
Implementation of#
TProductVariant.pageTitle
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:30
price#
• Optional price: null | number
Implementation of#
TProductVariant.price
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:32
product#
• Optional product: Product
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:22
productId#
• productId: number
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:16
sku#
• Optional sku: null | string
Implementation of#
TProductVariant.sku
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:42
slug#
• Optional slug: null | string
Implementation of#
TProductVariant.slug
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:26
stockAmount#
• Optional stockAmount: null | number
Implementation of#
TProductVariant.stockAmount
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:55
stockStatus#
• Optional stockStatus: null | TStockStatus
Implementation of#
TProductVariant.stockStatus
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:60
updateDate#
• Optional updateDate: null | Date
Implementation of#
TProductVariant.updateDate
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:56
Accessors#
attributes#
• get attributes(): undefined | Record<string, string | number>
Returns#
undefined | Record<string, string | number>
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:78
• set attributes(attributes): void
Parameters#
| Name | Type |
|---|---|
attributes | undefined | null | Record<string, string | number> |
Returns#
void
Defined in#
system/core/backend/src/models/entities/product-variant.entity.ts:82
meta#
• get meta(): undefined | null | TBasePageMeta
Returns#
undefined | null | TBasePageMeta
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:40
• set meta(data): void
Parameters#
| Name | Type |
|---|---|
data | undefined | null | TBasePageMeta |
Returns#
void
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:44