--- displayed_sidebar: servicesSidebar --- import TypeList from "@site/src/components/TypeList" # PricingService Allows retrieval of prices. ## constructor ### Parameters ___ ## Properties `","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="PricingService"/> ___ ## Accessors ### activeManager\_ #### Returns ### pricingModuleService #### Returns ### remoteQuery #### Returns `) => Promise<any> \\| `null`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="remoteQuery"/> ___ ## Methods ### withTransaction #### Parameters #### Returns ### shouldRetryTransaction\_ #### Parameters ` \\| `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="shouldRetryTransaction_"/> #### Returns ### atomicPhase\_ Wraps some work within a transactional block. If the service already has a transaction manager attached this will be reused, otherwise a new transaction manager is created. #### Type Parameters #### Parameters Promise<TResult>","description":"the transactional work to be done","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"isolationOrErrorHandler","type":"`IsolationLevel` \\| (`error`: TError) => Promise<void \\| TResult>","description":"the isolation level to be used for the work.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"maybeErrorHandlerOrDontFail","type":"(`error`: TError) => Promise<void \\| TResult>","description":"Potential error handler","optional":true,"defaultValue":"","expandable":false,"children":[]}]} sectionTitle="atomicPhase_"/> #### Returns ### collectPricingContext Collects additional information necessary for completing the price selection. #### Parameters #### Returns ### calculateTaxes Gets the prices for a product variant #### Parameters #### Returns ### getProductVariantPricingModulePricing\_ #### Parameters #### Returns ### getProductVariantPricing\_ #### Parameters #### Returns ### getProductVariantPricing Gets the prices for a product variant. #### Parameters #### Returns ### getProductVariantPricingById Gets the prices for a product variant by a variant id. #### Parameters #### Returns #### Deprecated Use [getProductVariantsPricing](services.PricingService.mdx#getproductvariantspricing) instead. ### getProductVariantsPricing Gets the prices for a collection of variants. #### Parameters #### Returns ### getProductPricing\_ #### Parameters #### Returns ### getProductPricing Gets all the variant prices for a product. All the product's variants will be fetched. #### Parameters #### Returns ### getProductPricingById Gets all the variant prices for a product by the product id #### Parameters #### Returns ### setVariantPrices Set additional prices on a list of product variants. #### Parameters #### Returns ### setProductPrices Set additional prices on a list of products. #### Parameters #### Returns ### getPricingModuleVariantMoneyAmounts #### Parameters #### Returns ### setAdminVariantPricing #### Parameters #### Returns ### setAdminProductPricing #### Parameters #### Returns ### getShippingOptionPricing Gets the prices for a shipping option. #### Parameters #### Returns ### setShippingOptionPrices Set additional prices on a list of shipping options. #### Parameters #### Returns