PaymentCollectionService
constructor
Parameters
__namedParameters
InjectedDependenciesRequiredProperties
manager_
EntityManagerRequiredtransactionManager_
undefined | EntityManagerRequired__container__
anyRequiredEvents
objectRequiredEvents.CREATED
stringRequiredDefault: "payment-collection.created"
Events.UPDATED
stringRequiredDefault: "payment-collection.updated"
Events.DELETED
stringRequiredDefault: "payment-collection.deleted"
Events.PAYMENT_AUTHORIZED
stringRequiredDefault: "payment-collection.payment_authorized"
__configModule__
Record<string, unknown>__moduleDeclaration__
Record<string, unknown>Accessors
activeManager_
Returns
EntityManager
EntityManagerRequiredMethods
withTransaction
Parameters
transactionManager
EntityManagerReturns
this
thisRequiredshouldRetryTransaction_
Parameters
err
Record<string, unknown> | objectRequiredReturns
boolean
booleanRequiredatomicPhase_
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
Promise<TResult>Requiredretrieve
Retrieves a payment collection by id.
Parameters
paymentCollectionId
stringRequiredDefault: {}
Returns
create
Creates a new payment collection.
Parameters
data
CreatePaymentCollectionInputRequiredReturns
update
Updates a payment collection.
Parameters
paymentCollectionId
stringRequiredReturns
delete
Deletes a payment collection.
Parameters
paymentCollectionId
stringRequiredReturns
isValidTotalAmount
Parameters
total
numberRequiredsessionsInput
PaymentCollectionsSessionsBatchInput[]RequiredReturns
boolean
booleanRequiredsetPaymentSessionsBatch
Manages multiple payment sessions of a payment collection.
Parameters
sessionsInput
PaymentCollectionsSessionsBatchInput[]RequiredcustomerId
stringRequiredReturns
setPaymentSession
Manages a single payment sessions of a payment collection.
Parameters
paymentCollectionId
stringRequiredsessionInput
PaymentCollectionsSessionsInputRequiredcustomerId
stringRequiredReturns
refreshPaymentSession
Removes and recreate a payment session of a payment collection.
Parameters
paymentCollectionId
stringRequiredsessionId
stringRequiredcustomerId
stringRequiredReturns
markAsAuthorized
Marks a payment collection as authorized bypassing the payment flow.
Parameters
paymentCollectionId
stringRequiredReturns
authorizePaymentSessions
Authorizes the payment sessions of a payment collection.
Parameters
paymentCollectionId
stringRequiredsessionIds
string[]Requiredcontext
Record<string, unknown>RequiredDefault: {}