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 }) @Column({ type: Date, nullable: true })
deletedAt: Date | null;
name: LocaleString;
@Column() @Column()
code: string;
@OneToMany(type => ProductOptionGroupTranslation, translation => translation.base, { eager: true }) @OneToMany(type => ProductOptionGroupTranslation, translation => translation.base, { eager: true })
translations: Array<Translation<ProductOptionGroup>>;
@OneToMany(type => ProductOption, option => option.group) @OneToMany(type => ProductOption, option => option.group)
options: ProductOption[];
@Index() @ManyToOne(type => Product) @Index()
@ManyToOne(type => Product)
product: Product;
@Column(type => CustomProductOptionGroupFields) @Column(type => CustomProductOptionGroupFields)
customFields: CustomProductOptionGroupFields;
}
Extends
Implements
- Translatable
- HasCustomFields
- SoftDeletable
Members
constructor
method
type:
(input?: DeepPartial<ProductOptionGroup>) => ProductOptionGroup
deletedAt
property
type:
Date | null
name
property
type:
LocaleString
code
property
type:
string
translations
property
type:
Array<Translation<ProductOptionGroup>>
options
property
type:
ProductOption[]
product
property
type:
Product
customFields
property
type:
CustomProductOptionGroupFields