Table of Contents

Class DefaultProductVariant

Namespace
Rescope.Commerce.Core.Models
Assembly
Rescope.Commerce.Core.dll
public class DefaultProductVariant : IProductVariant, IProductOrVariant
Inheritance
DefaultProductVariant
Implements
Inherited Members

Constructors

DefaultProductVariant(IProduct, IPublishedContent)

public DefaultProductVariant(IProduct parent, IPublishedContent content)

Parameters

parent IProduct
content IPublishedContent

Properties

CustomisationFields

public CustomisationFields? CustomisationFields { get; protected set; }

Property Value

CustomisationFields

ForceShippingMethod

public ShippingMethod? ForceShippingMethod { get; protected set; }

Property Value

ShippingMethod

Name

public string Name { get; protected set; }

Property Value

string

Parent

public IProduct Parent { get; protected set; }

Property Value

IProduct

Prices

public PriceData Prices { get; protected set; }

Property Value

PriceData

PrimaryImageUrl

public string PrimaryImageUrl { get; protected set; }

Property Value

string

Sku

public string Sku { get; protected set; }

Property Value

string

TaxRate

public ITaxRate? TaxRate { get; protected set; }

Property Value

ITaxRate

WeightInGrams

public int WeightInGrams { get; protected set; }

Property Value

int

Methods

Content()

public IPublishedContent? Content()

Returns

IPublishedContent

Content<T>()

public T? Content<T>() where T : IPublishedContent

Returns

T

Type Parameters

T