ProductVariantPrice
ProductVariantPrice
A ProductVariantPrice is a Channel-specific price for a ProductVariant. For every Channel to which a ProductVariant is assigned, there will be a corresponding ProductVariantPrice entity.
Signature
class ProductVariantPrice extends VendureEntity {
constructor(input?: DeepPartial<ProductVariantPrice>)
@Money() @Money() price: number;
@EntityId({ nullable: true }) @EntityId({ nullable: true }) channelId: ID;
@Column('varchar') @Column('varchar')
currencyCode: CurrencyCode;
@Index() @ManyToOne(type => ProductVariant, variant => variant.productVariantPrices, { onDelete: 'CASCADE' }) @Index()
@ManyToOne(type => ProductVariant, variant => variant.productVariantPrices, { onDelete: 'CASCADE' })
variant: ProductVariant;
}
Extends
Members
constructor
method
type:
(input?: DeepPartial<ProductVariantPrice>) => ProductVariantPrice
price
property
type:
number
channelId
property
type:
ID
currencyCode
property
type:
CurrencyCode
variant
property
type:
ProductVariant