@cfxlabsinc/b2b-services
Preparing search index...
@cfxlabsinc/withdrawal-services
swift-wire
SwiftWireWithdrawalReconciliationService
Class SwiftWireWithdrawalReconciliationService
Index
Constructors
constructor
Methods
process
Swift
Wire
Withdrawal
return
Swift
Wire
Withdrawal
Constructors
constructor
new
SwiftWireWithdrawalReconciliationService
(
args
:
{
bankTransactionService
:
BankTransactionService
;
redemptionAdminQueryService
:
RedemptionAdminQueryService
;
temporalClient
:
Client
;
temporalQueue
:
string
;
withdrawalAdminService
:
WithdrawalAdminService
;
withdrawalRedemptionReconciliationService
:
WithdrawalRedemptionReconciliationService
;
}
,
)
:
SwiftWireWithdrawalReconciliationService
Parameters
args
:
{
bankTransactionService
:
BankTransactionService
;
redemptionAdminQueryService
:
RedemptionAdminQueryService
;
temporalClient
:
Client
;
temporalQueue
:
string
;
withdrawalAdminService
:
WithdrawalAdminService
;
withdrawalRedemptionReconciliationService
:
WithdrawalRedemptionReconciliationService
;
}
Returns
SwiftWireWithdrawalReconciliationService
Methods
process
Swift
Wire
Withdrawal
processSwiftWireWithdrawal
(
args
:
{
bankTransactionId
:
string
;
withdrawalId
:
string
}
,
)
:
Promise
<
|
{
ok
:
true
;
value
:
void
}
|
{
error
:
|
ServiceError
<
"REDEMPTION_NOT_FOUND"
,
{
redemptionId
:
string
}
>
|
ServiceError
<
"REDEMPTION_NOT_PENDING"
,
{
redemptionId
:
string
}
>
|
ServiceError
<
"INVALID_BANK_TX"
,
{
bankTransactionId
:
string
}
>
|
ServiceError
<
"AMOUNT_MISMATCH"
,
{
bankTransactionAmount
:
string
;
redemptionAmount
:
string
}
,
>
|
ServiceError
<
"WITHDRAWAL_NOT_FOUND"
,
{
withdrawalId
:
string
}
>
|
ServiceError
<
"INVALID_BANK_TX"
,
{
bankTransactionId
:
string
}
>
|
ServiceError
<
"WITHDRAWAL_ALREADY_RECONCILED"
,
{
existingWithdrawalId
:
string
;
withdrawalId
:
string
}
,
>
|
ServiceError
<
"AMOUNT_MISMATCH"
,
{
bankTransactionAmount
:
string
;
withdrawalAmount
:
string
}
,
>
|
ServiceError
<
"REDEMPTION_NOT_FOUND"
,
{
withdrawalId
:
string
}
>
|
ServiceError
<
"REDEMPTION_FAILED_OR_VOIDED"
,
{
redemptionId
:
string
;
status
:
string
}
,
>
;
ok
:
false
;
}
,
>
Parameters
args
:
{
bankTransactionId
:
string
;
withdrawalId
:
string
}
Returns
Promise
<
|
{
ok
:
true
;
value
:
void
}
|
{
error
:
|
ServiceError
<
"REDEMPTION_NOT_FOUND"
,
{
redemptionId
:
string
}
>
|
ServiceError
<
"REDEMPTION_NOT_PENDING"
,
{
redemptionId
:
string
}
>
|
ServiceError
<
"INVALID_BANK_TX"
,
{
bankTransactionId
:
string
}
>
|
ServiceError
<
"AMOUNT_MISMATCH"
,
{
bankTransactionAmount
:
string
;
redemptionAmount
:
string
}
,
>
|
ServiceError
<
"WITHDRAWAL_NOT_FOUND"
,
{
withdrawalId
:
string
}
>
|
ServiceError
<
"INVALID_BANK_TX"
,
{
bankTransactionId
:
string
}
>
|
ServiceError
<
"WITHDRAWAL_ALREADY_RECONCILED"
,
{
existingWithdrawalId
:
string
;
withdrawalId
:
string
}
,
>
|
ServiceError
<
"AMOUNT_MISMATCH"
,
{
bankTransactionAmount
:
string
;
withdrawalAmount
:
string
}
,
>
|
ServiceError
<
"REDEMPTION_NOT_FOUND"
,
{
withdrawalId
:
string
}
>
|
ServiceError
<
"REDEMPTION_FAILED_OR_VOIDED"
,
{
redemptionId
:
string
;
status
:
string
}
,
>
;
ok
:
false
;
}
,
>
return
Swift
Wire
Withdrawal
returnSwiftWireWithdrawal
(
args
:
{
withdrawalId
:
string
}
,
)
:
Promise
<
{
ok
:
true
;
value
:
void
}
|
{
error
:
ServiceError
;
ok
:
false
}
>
Parameters
args
:
{
withdrawalId
:
string
}
Returns
Promise
<
{
ok
:
true
;
value
:
void
}
|
{
error
:
ServiceError
;
ok
:
false
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
process
Swift
Wire
Withdrawal
return
Swift
Wire
Withdrawal
@cfxlabsinc/b2b-services
Loading...