ReturnReasonService
constructorβ
**new ReturnReasonService**(Β«destructuredΒ»)
Parametersβ
Propertiesβ
__configModule__
Record<string, unknown>__container__
anyRequired__moduleDeclaration__
Record<string, unknown>manager_
EntityManagerRequiredtransactionManager_
undefined | EntityManagerRequiredAccessorsβ
activeManager_β
Protected get**activeManager_**(): EntityManager
Returnsβ
EntityManager
EntityManager
EntityManagerRequiredMethodsβ
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
objectRequiredParametersβ
work
(transactionManager: EntityManager) => Promise<TResult>RequiredisolationOrErrorHandler
IsolationLevel | (error: TError) => Promise<void | TResult>maybeErrorHandlerOrDontFail
(error: TError) => Promise<void | TResult>Returnsβ
Promise<TResult>
Promise
Promise<TResult>Requiredcreateβ
**create**(data): Promise<[ReturnReason](/references/services/classes/ReturnReason)>
Parametersβ
Returnsβ
Promise<ReturnReason>
deleteβ
**delete**(returnReasonId): Promise<void>
Parametersβ
returnReasonId
stringRequiredReturnsβ
Promise<void>
Promise
Promise<void>Requiredlistβ
**list**(selector, config?): Promise<[ReturnReason](/references/services/classes/ReturnReason)[]>
Parametersβ
Returnsβ
Promise<ReturnReason[]>
retrieveβ
**retrieve**(returnReasonId, config?): Promise<[ReturnReason](/references/services/classes/ReturnReason)>
Gets an order by id.
Parametersβ
returnReasonId
stringRequiredDefault: {}
Returnsβ
Promise<ReturnReason>
shouldRetryTransaction_β
Protected **shouldRetryTransaction_**(err): boolean
Parametersβ
err
Record<string, unknown> | { code: string }RequiredReturnsβ
boolean
boolean
booleanupdateβ
**update**(id, data): Promise<[ReturnReason](/references/services/classes/ReturnReason)>
Parametersβ
id
stringRequiredReturnsβ
Promise<ReturnReason>
withTransactionβ
**withTransaction**(transactionManager?): [ReturnReasonService](/references/services/classes/ReturnReasonService)
Parametersβ
transactionManager
EntityManager