--- displayed_sidebar: servicesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # PricingService Allows retrieval of prices. ## constructor ### Parameters ___ ## Properties `", "description": "", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "__container__", "type": "`any`", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "__moduleDeclaration__", "type": "`Record`", "description": "", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "customerService_", "type": "[CustomerService](services.CustomerService.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "featureFlagRouter", "type": "`FlagRouter`", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "manager_", "type": "`EntityManager`", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "priceSelectionStrategy", "type": "[IPriceSelectionStrategy](../../medusa/interfaces/medusa.IPriceSelectionStrategy.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "productVariantService", "type": "[ProductVariantService](services.ProductVariantService.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "regionService", "type": "[RegionService](services.RegionService.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "taxProviderService", "type": "[TaxProviderService](services.TaxProviderService.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "transactionManager_", "type": "`undefined` \\| `EntityManager`", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> ___ ## Accessors ### activeManager\_ #### Returns ___ ### pricingModuleService #### Returns ___ ### remoteQuery #### Returns ___ ## Methods ### 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": [] } ]} /> #### Returns ___ ### calculateTaxes Gets the prices for a product variant #### Parameters #### Returns ___ ### collectPricingContext Collects additional information necessary for completing the price selection. #### Parameters #### Returns ___ ### getPricingModuleVariantMoneyAmounts #### 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 ___ ### getProductPricing\_ #### 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. ___ ### getProductVariantPricingModulePricing\_ #### Parameters #### Returns ___ ### getProductVariantPricing\_ #### Parameters #### Returns ___ ### getProductVariantsPricing Gets the prices for a collection of variants. #### Parameters #### Returns ___ ### getShippingOptionPricing Gets the prices for a shipping option. #### Parameters #### Returns ___ ### setAdminProductPricing #### Parameters #### Returns ___ ### setAdminVariantPricing #### Parameters #### Returns ___ ### setProductPrices Set additional prices on a list of products. #### Parameters #### Returns ___ ### setShippingOptionPrices Set additional prices on a list of shipping options. #### Parameters #### Returns ___ ### setVariantPrices Set additional prices on a list of product variants. #### Parameters #### Returns ___ ### shouldRetryTransaction\_ #### Parameters ` \\| `object`", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> #### Returns ___ ### withTransaction #### Parameters #### Returns