TaxRateService
Properties
__configModule__
Record<string, unknown>__container__
anyRequired__moduleDeclaration__
Record<string, unknown>manager_
EntityManagerRequiredtaxRateRepository_
Repository<TaxRate> & { addToProduct: Method addToProduct ; addToProductType: Method addToProductType ; addToShippingOption: Method addToShippingOption ; applyResolutionsToQueryBuilder: Method applyResolutionsToQueryBuilder ; findAndCountWithResolution: Method findAndCountWithResolution ; findOneWithResolution: Method findOneWithResolution ; findWithResolution: Method findWithResolution ; getFindQueryBuilder: Method getFindQueryBuilder ; listByProduct: Method listByProduct ; listByShippingOption: Method listByShippingOption ; removeFromProduct: Method removeFromProduct ; removeFromProductType: Method removeFromProductType ; removeFromShippingOption: Method removeFromShippingOption }RequiredtransactionManager_
undefined | EntityManagerRequiredAccessors
activeManager_
Returns
EntityManager
EntityManagerRequiredMethods
addToProduct
Parameters
id
stringRequiredproductIds
string | string[]Requiredreplace
booleanReturns
addToProductType
Parameters
id
stringRequiredproductTypeIds
string | string[]Requiredreplace
booleanReturns
addToShippingOption
Parameters
id
stringRequiredoptionIds
string | string[]Requiredreplace
booleanReturns
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.
Parameters
work
(transactionManager: EntityManager) => Promise<TResult>Requiredthe transactional work to be done
isolationOrErrorHandler
IsolationLevel | (error: TError) => Promise<void | TResult>the isolation level to be used for the work.
maybeErrorHandlerOrDontFail
(error: TError) => Promise<void | TResult>Potential error handler
Returns
Promise
Promise<TResult>Requiredthe result of the transactional work
create
Parameters
Returns
delete
Parameters
id
string | string[]RequiredReturns
Promise
Promise<void>Requiredlist
Parameters
config
FindConfig<TaxRate>Returns
listAndCount
Parameters
config
FindConfig<TaxRate>Returns
listByProduct
Parameters
productId
stringRequiredReturns
listByShippingOption
Parameters
shippingOptionId
stringRequiredReturns
removeFromProduct
Parameters
id
stringRequiredproductIds
string | string[]RequiredReturns
Promise
Promise<void>RequiredremoveFromProductType
Parameters
id
stringRequiredtypeIds
string | string[]RequiredReturns
Promise
Promise<void>RequiredremoveFromShippingOption
Parameters
id
stringRequiredoptionIds
string | string[]RequiredReturns
Promise
Promise<void>Requiredretrieve
Parameters
taxRateId
stringRequiredconfig
FindConfig<TaxRate>Returns
shouldRetryTransaction_
Parameters
err
Record<string, unknown> | { code: string }RequiredReturns
boolean
booleanupdate
Parameters
id
stringRequiredReturns
withTransaction
Parameters
transactionManager
EntityManagerReturns
Was this section helpful?