ProductOptionGroup

ProductOptionGroup

A grouping of one or more ProductOptions.

Signature

class ProductOptionGroup extends VendureEntity implements Translatable, HasCustomFields {
  constructor(input?: DeepPartial<ProductOptionGroup>)
  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[];
  @Column(type => CustomProductOptionGroupFields)
    customFields: CustomProductOptionGroupFields;
}

Members

constructor

method
type:
(input?: DeepPartial<ProductOptionGroup>) => ProductOptionGroup

name

property
type:
LocaleString

code

property
type:
string

translations

property
type:
Array<Translation<ProductOptionGroup>>

options

property
type:
ProductOption[]

customFields

property
type:
CustomProductOptionGroupFields