ShippingOptionService
Provides layer to manipulate profiles.
constructor
**new ShippingOptionService**(«destructured»)
Parameters
Properties
__configModule__
Record<string, unknown>__container__
anyRequired__moduleDeclaration__
Record<string, unknown>manager_
EntityManagerRequiredoptionRepository_
Repository<ShippingOption> & { upsertShippingProfile: Method upsertShippingProfile }RequiredtransactionManager_
undefined | EntityManagerRequiredAccessors
activeManager_
Protected get**activeManager_**(): EntityManager
Returns
EntityManager
EntityManager
EntityManagerRequiredMethods
addRequirement
**addRequirement**(optionId, requirement): Promise<[ShippingOption](/references/services/classes/ShippingOption)>
Adds a requirement to a shipping option. Only 1 requirement of each type is allowed.
Parameters
optionId
stringRequiredthe option to add the requirement to.
the requirement for the option.
Returns
Promise<ShippingOption>
the result of update
atomicPhase_
Protected **atomicPhase_**<TypeParameter TResult, TypeParameter TError>(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.
Type Parameters
TResult
objectRequiredTError
objectRequired