Table of Contents

Class DefaultProduct

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

Constructors

DefaultProduct(IPublishedContent)

public DefaultProduct(IPublishedContent content)

Parameters

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

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

Variants

public IEnumerable<IProductVariant> Variants { get; protected set; }

Property Value

IEnumerable<IProductVariant>

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