commercestorepricing.PricingService

Provides product prices for buyer accounts in a WebStore.

Methods 

global processPrice(PricingRequest request) 

Given a commercestorepricing.PricingRequest, return the commercestorepricing.PricingResponse that computes the price for the products in the pricing request.

Parameters 

ParamDescription
PricingRequestThe input request that contains the products to be priced along with other contextual information

Returns 

TypeDescription
PricingResponseThe price of each of the products passed in as the request

Example 

1PricingService.processPrice(pricingRequest);

global processTransactionalPrice(TransactionalPricingRequest request) 

Given a commercestorepricing.TransactionalPricingRequest, return the commercestorepricing.TransactionalPricingResponse that computes the price for the products and total in the pricing request. The calculation always uses the catalog pricing as a starting point, and adjustments are applied based on other factors.

Parameters 

ParamDescription
TransactionalPricingRequestThe input request that contains the products to be priced along with other contextual information

Returns 

TypeDescription
TransactionalPricingResponseThe price of each of the products and total passed in as the request

Example 

1PricingService.processTransactionalPrice(transactionalPricingRequest);

Newer Version Available

This content describes an older version of this product. View Latest

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!