Interface WithdrawalRequestServiceAsync
-
- All Implemented Interfaces:
public interface WithdrawalRequestServiceAsyncWithdrawalsrepresent the transfer of stablecoins from anAccountconnected to a managedWalletto anotherAccountthat is owned by theEntity.Since the
Accountis backed by a managedWallet, theWithdrawalmust be processed by Dinari and the corresponding transaction is submitted on chain.Upon requesting a withdrawal, a
WithdrawalRequestis created, which is then submitted on chain by Dinari. Once the transfer is submitted on chain, the correspondingWithdrawalis created.Currently, withdrawals are made in USDC on the Arbitrum network (Chain ID
eip155:42161).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWithdrawalRequestServiceAsync.WithRawResponseA view of WithdrawalRequestServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract WithdrawalRequestServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WithdrawalRequestServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
CompletableFuture<WithdrawalRequest> create(String accountId, WithdrawalRequestCreateParams params)
Request to withdraw USD+ payment tokens from a managed
Accountand send the equivalent amount of USDC to the specified recipientAccount.The recipient
Accountmust belong to the sameEntityas the managedAccount.
-
create
CompletableFuture<WithdrawalRequest> create(String accountId, WithdrawalRequestCreateParams params, RequestOptions requestOptions)
-
create
CompletableFuture<WithdrawalRequest> create(WithdrawalRequestCreateParams params)
-
create
abstract CompletableFuture<WithdrawalRequest> create(WithdrawalRequestCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<WithdrawalRequest> retrieve(String withdrawalRequestId, WithdrawalRequestRetrieveParams params)
Get a specific
WithdrawalRequestby its ID.
-
retrieve
CompletableFuture<WithdrawalRequest> retrieve(String withdrawalRequestId, WithdrawalRequestRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<WithdrawalRequest> retrieve(WithdrawalRequestRetrieveParams params)
-
retrieve
abstract CompletableFuture<WithdrawalRequest> retrieve(WithdrawalRequestRetrieveParams params, RequestOptions requestOptions)
-
list
CompletableFuture<List<WithdrawalRequest>> list(String accountId)
List
WithdrawalRequestsunder theAccount, sorted by most recent.
-
list
CompletableFuture<List<WithdrawalRequest>> list(String accountId, WithdrawalRequestListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<List<WithdrawalRequest>> list(String accountId, WithdrawalRequestListParams params)
-
list
abstract CompletableFuture<List<WithdrawalRequest>> list(WithdrawalRequestListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<List<WithdrawalRequest>> list(WithdrawalRequestListParams params)
-
list
CompletableFuture<List<WithdrawalRequest>> list(String accountId, RequestOptions requestOptions)
-
-
-
-