Table of Contents

Class PriceCalculationMode

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Mode of price calculation that should be used.

public record PriceCalculationMode
Inheritance
object
PriceCalculationMode
Extension Methods

Constructors

PriceCalculationMode(PriceCalculationMode)

protected PriceCalculationMode(PriceCalculationMode original)

Parameters

original PriceCalculationMode

PriceCalculationMode(string)

Initializes a new instance of the PriceCalculationMode class.

public PriceCalculationMode(string name)

Parameters

name string

Fields

Catalog

Catalog calculation mode that doesn't include taxes, shipping and totals calculations.

public static PriceCalculationMode Catalog

Field Value

PriceCalculationMode

Checkout

Checkout calculation mode that includes full price calculation of all steps.

public static PriceCalculationMode Checkout

Field Value

PriceCalculationMode

ShoppingCart

Shopping cart calculation mode that doesn't include shipping calculation.

public static PriceCalculationMode ShoppingCart

Field Value

PriceCalculationMode

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

Name of price calculation mode type.

public string Name { get; }

Property Value

string

Methods

Equals(PriceCalculationMode)

Checks if calculation mode type equal to a specified other calculation mode type.

public virtual bool Equals(PriceCalculationMode other)

Parameters

other PriceCalculationMode

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

Get hash code based on calculation mode type.

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

String representation of calculation mode type.

public override string ToString()

Returns

string

Operators

operator ==(PriceCalculationMode?, PriceCalculationMode?)

public static bool operator ==(PriceCalculationMode? left, PriceCalculationMode? right)

Parameters

left PriceCalculationMode
right PriceCalculationMode

Returns

bool

operator !=(PriceCalculationMode?, PriceCalculationMode?)

public static bool operator !=(PriceCalculationMode? left, PriceCalculationMode? right)

Parameters

left PriceCalculationMode
right PriceCalculationMode

Returns

bool