DefaultPriceCalculationStrategy

DefaultPriceCalculationStrategy

DefaultPriceCalculationStrategy

The default PriceCalculationStrategy, which simply passes through the price of the ProductVariant without performing any calculations

Signature

class DefaultPriceCalculationStrategy implements PriceCalculationStrategy {
  calculateUnitPrice(productVariant: ProductVariant) => CalculatedPrice | Promise<CalculatedPrice>;
}

Implements

  • PriceCalculationStrategy

Members

calculateUnitPrice

method
type:
(productVariant: ProductVariant) => CalculatedPrice | Promise<CalculatedPrice>