DefaultOrderItemPriceCalculationStrategy

DefaultOrderItemPriceCalculationStrategy

DefaultOrderItemPriceCalculationStrategy

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

Signature

class DefaultOrderItemPriceCalculationStrategy implements OrderItemPriceCalculationStrategy {
  calculateUnitPrice(ctx: RequestContext, productVariant: ProductVariant) => PriceCalculationResult | Promise<PriceCalculationResult>;
}

Implements

Members

calculateUnitPrice

method
type:
(ctx: RequestContext, productVariant: ProductVariant) => PriceCalculationResult | Promise<PriceCalculationResult>