@cfxlabsinc/b2b-services
Preparing search index...
@cfxlabsinc/withdrawal-services
blockchain
BlockchainWithdrawalQuoteService
Class BlockchainWithdrawalQuoteService
Hierarchy (
View Summary
)
BlockchainWithdrawalQuoteQueryService
BlockchainWithdrawalQuoteService
Index
Constructors
constructor
Methods
accept
create
get
Constructors
constructor
new
BlockchainWithdrawalQuoteService
(
args
:
{
B2B_TEMPORAL_WORKER_TASK_QUEUE
:
string
;
entityProductFeeService
:
EntityProductFeeService
;
entityProductService
:
EntityProductService
;
paymentInstrumentQueryService
:
PaymentInstrumentQueryService
;
redemptionWalletQueryService
:
RedemptionWalletQueryService
;
solanaTokenService
:
SolanaTokenService
;
sqlClient
:
Sql
;
temporalClient
:
Client
;
withdrawalAdminService
:
WithdrawalAdminService
;
withdrawalProductUsageService
:
WithdrawalProductUsageService
;
withdrawalQuoteService
:
WithdrawalQuoteService
;
}
,
)
:
BlockchainWithdrawalQuoteService
Parameters
args
:
{
B2B_TEMPORAL_WORKER_TASK_QUEUE
:
string
;
entityProductFeeService
:
EntityProductFeeService
;
entityProductService
:
EntityProductService
;
paymentInstrumentQueryService
:
PaymentInstrumentQueryService
;
redemptionWalletQueryService
:
RedemptionWalletQueryService
;
solanaTokenService
:
SolanaTokenService
;
sqlClient
:
Sql
;
temporalClient
:
Client
;
withdrawalAdminService
:
WithdrawalAdminService
;
withdrawalProductUsageService
:
WithdrawalProductUsageService
;
withdrawalQuoteService
:
WithdrawalQuoteService
;
}
Returns
BlockchainWithdrawalQuoteService
Methods
accept
accept
(
args
:
{
customerId
:
string
;
quoteId
:
string
}
,
)
:
Promise
<
|
{
error
:
ServiceError
;
ok
:
false
}
|
{
ok
:
true
;
value
:
{
withdrawalId
:
string
}
}
,
>
Parameters
args
:
{
customerId
:
string
;
quoteId
:
string
}
Returns
Promise
<
|
{
error
:
ServiceError
;
ok
:
false
}
|
{
ok
:
true
;
value
:
{
withdrawalId
:
string
}
}
,
>
create
create
(
args
:
Pick
<
BlockchainWithdrawalQuote
,
"entityId"
|
"deviceIpAddress"
|
"deviceLocation"
,
>
&
(
{ customerId: string; targetWalletPaymentInstrument: string; sourceAccountId: string; } & ({ sourceAmount: BigNumber; } | { targetAmount: BigNumber; })
)
,
)
:
Promise
<
|
{
ok
:
true
;
value
:
BlockchainWithdrawalQuote
}
|
{
error
:
|
ServiceError
<
"ENTITY_NOT_FOUND"
|
"NO_COUNTRY"
>
|
ServiceError
<
"PRODUCT_INACTIVE"
|
"PRODUCT_BLOCKED"
>
|
ServiceError
<
"LIMIT_EXCEEDED"
,
ProductLimitViolation
>
|
ServiceError
<
"INSUFFICIENT_FUNDS"
,
{
balance
:
{
amount
:
BigNumber
;
currency
:
string
}
}
,
>
;
ok
:
false
;
}
,
>
Parameters
args
:
Pick
<
BlockchainWithdrawalQuote
,
"entityId"
|
"deviceIpAddress"
|
"deviceLocation"
,
>
&
(
{ customerId: string; targetWalletPaymentInstrument: string; sourceAccountId: string; } & ({ sourceAmount: BigNumber; } | { targetAmount: BigNumber; })
)
Returns
Promise
<
|
{
ok
:
true
;
value
:
BlockchainWithdrawalQuote
}
|
{
error
:
|
ServiceError
<
"ENTITY_NOT_FOUND"
|
"NO_COUNTRY"
>
|
ServiceError
<
"PRODUCT_INACTIVE"
|
"PRODUCT_BLOCKED"
>
|
ServiceError
<
"LIMIT_EXCEEDED"
,
ProductLimitViolation
>
|
ServiceError
<
"INSUFFICIENT_FUNDS"
,
{
balance
:
{
amount
:
BigNumber
;
currency
:
string
}
}
,
>
;
ok
:
false
;
}
,
>
get
get
(
__namedParameters
:
{
customerId
:
string
;
id
:
string
;
tx
?:
B2bPgTransaction
;
}
,
)
:
Promise
<
{
ok
:
true
;
value
:
BlockchainWithdrawalQuote
|
null
}
>
Get a withdrawal by ID without customer restriction
Parameters
__namedParameters
:
{
customerId
:
string
;
id
:
string
;
tx
?:
B2bPgTransaction
}
Returns
Promise
<
{
ok
:
true
;
value
:
BlockchainWithdrawalQuote
|
null
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
accept
create
get
@cfxlabsinc/b2b-services
Loading...
Get a withdrawal by ID without customer restriction