ProductOptionGroup
ProductOptionGroup
A grouping of one or more ProductOptions.
Signature
class ProductOptionGroup extends VendureEntity implements Translatable, HasCustomFields, SoftDeletable {
constructor(input?: DeepPartial<ProductOptionGroup>)
@Column({ type: Date, nullable: true })
deletedAt: Date | null;
name: LocaleString;
@Column()
code: string;
@OneToMany(type => ProductOptionGroupTranslation, translation => translation.base, { eager: true })
translations: Array<Translation<ProductOptionGroup>>;
@OneToMany(type => ProductOption, option => option.group)
options: ProductOption[];
@Index()
@ManyToOne(type => Product, product => product.optionGroups)
product: Product;
@Column(type => CustomProductOptionGroupFields)
customFields: CustomProductOptionGroupFields;
}
-
Extends:
VendureEntity
-
Implements:
Translatable
,HasCustomFields
,SoftDeletable
constructor
method
(input?: DeepPartial<ProductOptionGroup>) => ProductOptionGroup
deletedAt
property
Date | null
name
property
LocaleString
code
property
string
translations
property
Array<Translation<ProductOptionGroup>>
options
property
product
property
customFields
property
CustomProductOptionGroupFields