--- displayed_sidebar: servicesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # PricingService Allows retrieval of prices. ## Constructors ### constructor `**new PricingService**(«destructured»)` #### 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": "featureFlagRouter", "type": "[FlagRouter](FlagRouter.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "manager_", "type": "EntityManager", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "priceSelectionStrategy", "type": "[IPriceSelectionStrategy](../interfaces/IPriceSelectionStrategy.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "productVariantService", "type": "[ProductVariantService](ProductVariantService.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "regionService", "type": "[RegionService](RegionService.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "taxProviderService", "type": "[TaxProviderService](TaxProviderService.mdx)", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "transactionManager_", "type": "`undefined` \\| EntityManager", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> ## Accessors ### activeManager\_ `Protected get**activeManager_**(): EntityManager` #### Returns EntityManager ___ ### pricingModuleService `Protected get**pricingModuleService**(): [IPricingModuleService](../interfaces/IPricingModuleService.mdx)` #### Returns [IPricingModuleService](../interfaces/IPricingModuleService.mdx) Promise<[PriceListDTO](../interfaces/PriceListDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "addPrices", "type": "(`data`: [AddPricesDTO](../interfaces/AddPricesDTO.mdx), `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)>(`data`: [AddPricesDTO](../interfaces/AddPricesDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "addRules", "type": "(`data`: [AddRulesDTO](../interfaces/AddRulesDTO.mdx), `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)>(`data`: [AddRulesDTO](../interfaces/AddRulesDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "calculatePrices", "type": "(`filters`: [PricingFilters](../interfaces/PricingFilters.mdx), `context?`: [PricingContext](../interfaces/PricingContext.mdx), `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[CalculatedPriceSetDTO](../interfaces/CalculatedPriceSetDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "create", "type": "(`data`: [CreatePriceSetDTO](../interfaces/CreatePriceSetDTO.mdx), `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)>(`data`: [CreatePriceSetDTO](../interfaces/CreatePriceSetDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "createCurrencies", "type": "(`data`: [CreateCurrencyDTO](../interfaces/CreateCurrencyDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[CurrencyDTO](../interfaces/CurrencyDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "createMoneyAmounts", "type": "(`data`: [CreateMoneyAmountDTO](../interfaces/CreateMoneyAmountDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[MoneyAmountDTO](../interfaces/MoneyAmountDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "createPriceListRules", "type": "(`data`: [CreatePriceListRuleDTO](../interfaces/CreatePriceListRuleDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListRuleDTO](../interfaces/PriceListRuleDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "createPriceLists", "type": "(`data`: [CreatePriceListDTO](../interfaces/CreatePriceListDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListDTO](../interfaces/PriceListDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "createPriceRules", "type": "(`data`: [CreatePriceRuleDTO](../interfaces/CreatePriceRuleDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceRuleDTO](../interfaces/PriceRuleDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "createPriceSetMoneyAmountRules", "type": "(`data`: [CreatePriceSetMoneyAmountRulesDTO](../interfaces/CreatePriceSetMoneyAmountRulesDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetMoneyAmountRulesDTO](../interfaces/PriceSetMoneyAmountRulesDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "createRuleTypes", "type": "(`data`: [CreateRuleTypeDTO](../interfaces/CreateRuleTypeDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[RuleTypeDTO](../interfaces/RuleTypeDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "delete", "type": "(`ids`: `string`[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleteCurrencies", "type": "(`currencyCodes`: `string`[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleteMoneyAmounts", "type": "(`ids`: `string`[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deletePriceListRules", "type": "(`priceListRuleIds`: `string`[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deletePriceLists", "type": "(`priceListIds`: `string`[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deletePriceRules", "type": "(`priceRuleIds`: `string`[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deletePriceSetMoneyAmountRules", "type": "(`ids`: `string`[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleteRuleTypes", "type": "(`ruleTypeIds`: `string`[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "list", "type": "(`filters?`: [FilterablePriceSetProps](../interfaces/FilterablePriceSetProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCount", "type": "(`filters?`: [FilterablePriceSetProps](../interfaces/FilterablePriceSetProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[PriceSetDTO](../interfaces/PriceSetDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCountCurrencies", "type": "(`filters?`: [FilterableCurrencyProps](../interfaces/FilterableCurrencyProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[CurrencyDTO](../interfaces/CurrencyDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[CurrencyDTO](../interfaces/CurrencyDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCountMoneyAmounts", "type": "(`filters?`: [FilterableMoneyAmountProps](../interfaces/FilterableMoneyAmountProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[MoneyAmountDTO](../interfaces/MoneyAmountDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[MoneyAmountDTO](../interfaces/MoneyAmountDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCountPriceListRules", "type": "(`filters?`: [FilterablePriceListRuleProps](../interfaces/FilterablePriceListRuleProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceListRuleDTO](../interfaces/PriceListRuleDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[PriceListRuleDTO](../interfaces/PriceListRuleDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCountPriceLists", "type": "(`filters?`: [FilterablePriceListProps](../interfaces/FilterablePriceListProps-1.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceListDTO](../interfaces/PriceListDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[PriceListDTO](../interfaces/PriceListDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCountPriceRules", "type": "(`filters?`: [FilterablePriceRuleProps](../interfaces/FilterablePriceRuleProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceRuleDTO](../interfaces/PriceRuleDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[PriceRuleDTO](../interfaces/PriceRuleDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCountPriceSetMoneyAmountRules", "type": "(`filters?`: [FilterablePriceSetMoneyAmountRulesProps](../interfaces/FilterablePriceSetMoneyAmountRulesProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceSetMoneyAmountRulesDTO](../interfaces/PriceSetMoneyAmountRulesDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[PriceSetMoneyAmountRulesDTO](../interfaces/PriceSetMoneyAmountRulesDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCountPriceSetMoneyAmounts", "type": "(`filters?`: [FilterablePriceSetMoneyAmountProps](../interfaces/FilterablePriceSetMoneyAmountProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceSetMoneyAmountDTO](../interfaces/PriceSetMoneyAmountDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[PriceSetMoneyAmountDTO](../interfaces/PriceSetMoneyAmountDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listAndCountRuleTypes", "type": "(`filters?`: [FilterableRuleTypeProps](../interfaces/FilterableRuleTypeProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[RuleTypeDTO](../interfaces/RuleTypeDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[[RuleTypeDTO](../interfaces/RuleTypeDTO.mdx)[], number]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listCurrencies", "type": "(`filters?`: [FilterableCurrencyProps](../interfaces/FilterableCurrencyProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[CurrencyDTO](../interfaces/CurrencyDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[CurrencyDTO](../interfaces/CurrencyDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listMoneyAmounts", "type": "(`filters?`: [FilterableMoneyAmountProps](../interfaces/FilterableMoneyAmountProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[MoneyAmountDTO](../interfaces/MoneyAmountDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[MoneyAmountDTO](../interfaces/MoneyAmountDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listPriceListRules", "type": "(`filters?`: [FilterablePriceListRuleProps](../interfaces/FilterablePriceListRuleProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceListRuleDTO](../interfaces/PriceListRuleDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListRuleDTO](../interfaces/PriceListRuleDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listPriceLists", "type": "(`filters?`: [FilterablePriceListProps](../interfaces/FilterablePriceListProps-1.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceListDTO](../interfaces/PriceListDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListDTO](../interfaces/PriceListDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listPriceRules", "type": "(`filters?`: [FilterablePriceRuleProps](../interfaces/FilterablePriceRuleProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceRuleDTO](../interfaces/PriceRuleDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceRuleDTO](../interfaces/PriceRuleDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listPriceSetMoneyAmountRules", "type": "(`filters?`: [FilterablePriceSetMoneyAmountRulesProps](../interfaces/FilterablePriceSetMoneyAmountRulesProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceSetMoneyAmountRulesDTO](../interfaces/PriceSetMoneyAmountRulesDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetMoneyAmountRulesDTO](../interfaces/PriceSetMoneyAmountRulesDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listPriceSetMoneyAmounts", "type": "(`filters?`: [FilterablePriceSetMoneyAmountProps](../interfaces/FilterablePriceSetMoneyAmountProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceSetMoneyAmountDTO](../interfaces/PriceSetMoneyAmountDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetMoneyAmountDTO](../interfaces/PriceSetMoneyAmountDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "listRuleTypes", "type": "(`filters?`: [FilterableRuleTypeProps](../interfaces/FilterableRuleTypeProps.mdx), `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[RuleTypeDTO](../interfaces/RuleTypeDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[RuleTypeDTO](../interfaces/RuleTypeDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "removePriceListRules", "type": "(`data`: [RemovePriceListRulesDTO](../interfaces/RemovePriceListRulesDTO.mdx), `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListDTO](../interfaces/PriceListDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "removeRules", "type": "(`data`: [RemovePriceSetRulesDTO](../interfaces/RemovePriceSetRulesDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<void>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "retrieve", "type": "(`id`: `string`, `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetDTO](../interfaces/PriceSetDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "retrieveCurrency", "type": "(`code`: `string`, `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[CurrencyDTO](../interfaces/CurrencyDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[CurrencyDTO](../interfaces/CurrencyDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "retrieveMoneyAmount", "type": "(`id`: `string`, `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[MoneyAmountDTO](../interfaces/MoneyAmountDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[MoneyAmountDTO](../interfaces/MoneyAmountDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "retrievePriceList", "type": "(`id`: `string`, `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceListDTO](../interfaces/PriceListDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListDTO](../interfaces/PriceListDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "retrievePriceListRule", "type": "(`id`: `string`, `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceListRuleDTO](../interfaces/PriceListRuleDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListRuleDTO](../interfaces/PriceListRuleDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "retrievePriceRule", "type": "(`id`: `string`, `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceRuleDTO](../interfaces/PriceRuleDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceRuleDTO](../interfaces/PriceRuleDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "retrievePriceSetMoneyAmountRules", "type": "(`id`: `string`, `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[PriceSetMoneyAmountRulesDTO](../interfaces/PriceSetMoneyAmountRulesDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetMoneyAmountRulesDTO](../interfaces/PriceSetMoneyAmountRulesDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "retrieveRuleType", "type": "(`id`: `string`, `config?`: [FindConfig](../interfaces/FindConfig-1.mdx)<[RuleTypeDTO](../interfaces/RuleTypeDTO.mdx)>, `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[RuleTypeDTO](../interfaces/RuleTypeDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "setPriceListRules", "type": "(`data`: [SetPriceListRulesDTO](../interfaces/SetPriceListRulesDTO.mdx), `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListDTO](../interfaces/PriceListDTO.mdx)>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updateCurrencies", "type": "(`data`: [UpdateCurrencyDTO](../interfaces/UpdateCurrencyDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[CurrencyDTO](../interfaces/CurrencyDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updateMoneyAmounts", "type": "(`data`: [UpdateMoneyAmountDTO](../interfaces/UpdateMoneyAmountDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[MoneyAmountDTO](../interfaces/MoneyAmountDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updatePriceListRules", "type": "(`data`: [UpdatePriceListRuleDTO](../interfaces/UpdatePriceListRuleDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListRuleDTO](../interfaces/PriceListRuleDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updatePriceLists", "type": "(`data`: [UpdatePriceListDTO](../interfaces/UpdatePriceListDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceListDTO](../interfaces/PriceListDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updatePriceRules", "type": "(`data`: [UpdatePriceRuleDTO](../interfaces/UpdatePriceRuleDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceRuleDTO](../interfaces/PriceRuleDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updatePriceSetMoneyAmountRules", "type": "(`data`: [UpdatePriceSetMoneyAmountRulesDTO](../interfaces/UpdatePriceSetMoneyAmountRulesDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[PriceSetMoneyAmountRulesDTO](../interfaces/PriceSetMoneyAmountRulesDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updateRuleTypes", "type": "(`data`: [UpdateRuleTypeDTO](../interfaces/UpdateRuleTypeDTO.mdx)[], `sharedContext?`: [Context](../interfaces/Context.mdx)) => Promise<[RuleTypeDTO](../interfaces/RuleTypeDTO.mdx)[]>", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> ___ ### remoteQuery `Protected get**remoteQuery**(): [RemoteQueryFunction](../types/RemoteQueryFunction.mdx)` #### Returns [RemoteQueryFunction](../types/RemoteQueryFunction.mdx) `) => Promise<any> \\| `null`", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> ## Methods ### atomicPhase\_ `Protected **atomicPhase_**(work, isolationOrErrorHandler?, maybeErrorHandlerOrDontFail?): Promise<TResult>` 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. #### 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 Promise<TResult> ___ ### calculateTaxes `**calculateTaxes**(variantPricing, productRates): [TaxedPricing](../types/TaxedPricing.mdx)` Gets the prices for a product variant #### Parameters #### Returns [TaxedPricing](../types/TaxedPricing.mdx) ___ ### collectPricingContext `**collectPricingContext**(context): Promise<[PricingContext](../types/PricingContext-1.mdx)>` Collects additional information necessary for completing the price selection. #### Parameters #### Returns Promise<[PricingContext](../types/PricingContext-1.mdx)> ___ ### getPricingModuleVariantMoneyAmounts `Private **getPricingModuleVariantMoneyAmounts**(variantIds): Promise<Map<string, [MoneyAmount](MoneyAmount.mdx)[]>>` #### Parameters #### Returns Promise<Map<string, [MoneyAmount](MoneyAmount.mdx)[]>> ___ ### getProductPricing `**getProductPricing**(product, context): Promise<Record<string, [ProductVariantPricing](../types/ProductVariantPricing.mdx)>>` Gets all the variant prices for a product. All the product's variants will be fetched. #### Parameters #### Returns Promise<Record<string, [ProductVariantPricing](../types/ProductVariantPricing.mdx)>> ___ ### getProductPricingById `**getProductPricingById**(productId, context): Promise<Record<string, [ProductVariantPricing](../types/ProductVariantPricing.mdx)>>` Gets all the variant prices for a product by the product id #### Parameters #### Returns Promise<Record<string, [ProductVariantPricing](../types/ProductVariantPricing.mdx)>> ___ ### getProductPricing\_ `Private **getProductPricing_**(data, context): Promise<Map<string, Record<string, [ProductVariantPricing](../types/ProductVariantPricing.mdx)>>>` #### Parameters #### Returns Promise<Map<string, Record<string, [ProductVariantPricing](../types/ProductVariantPricing.mdx)>>> ___ ### getProductVariantPricing `**getProductVariantPricing**(variant, context): Promise<[ProductVariantPricing](../types/ProductVariantPricing.mdx)>` Gets the prices for a product variant. #### Parameters #### Returns Promise<[ProductVariantPricing](../types/ProductVariantPricing.mdx)> ___ ### getProductVariantPricingById `**getProductVariantPricingById**(variantId, context): Promise<[ProductVariantPricing](../types/ProductVariantPricing.mdx)>` Gets the prices for a product variant by a variant id. #### Parameters #### Returns Promise<[ProductVariantPricing](../types/ProductVariantPricing.mdx)> #### Deprecated Use [getProductVariantsPricing](PricingService.mdx#getproductvariantspricing) instead. ___ ### getProductVariantPricingModulePricing\_ `Private **getProductVariantPricingModulePricing_**(variantPriceData, context): Promise<Map<any, any>>` #### Parameters #### Returns Promise<Map<any, any>> ___ ### getProductVariantPricing\_ `Private **getProductVariantPricing_**(data, context): Promise<Map<string, [ProductVariantPricing](../types/ProductVariantPricing.mdx)>>` #### Parameters #### Returns Promise<Map<string, [ProductVariantPricing](../types/ProductVariantPricing.mdx)>> ___ ### getProductVariantsPricing `**getProductVariantsPricing**(data, context): Promise<{ [variant_id: string]: [ProductVariantPricing](../types/ProductVariantPricing.mdx); }>` Gets the prices for a collection of variants. #### Parameters #### Returns Promise<{ [variant_id: string]: [ProductVariantPricing](../types/ProductVariantPricing.mdx); }> ___ ### getShippingOptionPricing `**getShippingOptionPricing**(shippingOption, context): Promise<[PricedShippingOption](../types/PricedShippingOption.mdx)>` Gets the prices for a shipping option. #### Parameters #### Returns Promise<[PricedShippingOption](../types/PricedShippingOption.mdx)> ___ ### setAdminProductPricing `**setAdminProductPricing**(products): Promise<([Product](Product.mdx) \| [PricedProduct](../types/PricedProduct.mdx))[]>` #### Parameters #### Returns Promise<([Product](Product.mdx) \| [PricedProduct](../types/PricedProduct.mdx))[]> ___ ### setAdminVariantPricing `**setAdminVariantPricing**(variants, context?): Promise<[PricedVariant](../types/PricedVariant.mdx)[]>` #### Parameters #### Returns Promise<[PricedVariant](../types/PricedVariant.mdx)[]> ___ ### setProductPrices `**setProductPrices**(products, context?): Promise<([Product](Product.mdx) \| [PricedProduct](../types/PricedProduct.mdx))[]>` Set additional prices on a list of products. #### Parameters #### Returns Promise<([Product](Product.mdx) \| [PricedProduct](../types/PricedProduct.mdx))[]> ___ ### setShippingOptionPrices `**setShippingOptionPrices**(shippingOptions, context?): Promise<[PricedShippingOption](../types/PricedShippingOption.mdx)[]>` Set additional prices on a list of shipping options. #### Parameters #### Returns Promise<[PricedShippingOption](../types/PricedShippingOption.mdx)[]> ___ ### setVariantPrices `**setVariantPrices**(variants, context?): Promise<[PricedVariant](../types/PricedVariant.mdx)[]>` Set additional prices on a list of product variants. #### Parameters #### Returns Promise<[PricedVariant](../types/PricedVariant.mdx)[]> ___ ### shouldRetryTransaction\_ `Protected **shouldRetryTransaction_**(err): boolean` #### Parameters ` \\| ``{ code: string }``", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> #### Returns `boolean` ___ ### withTransaction `**withTransaction**(transactionManager?): [PricingService](PricingService.mdx)` #### Parameters #### Returns [PricingService](PricingService.mdx)