Interface WithdrawalRequestService
-
- All Implemented Interfaces:
public interface WithdrawalRequestServiceWithdrawalsrepresent 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 interfaceWithdrawalRequestService.WithRawResponseA view of WithdrawalRequestService that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract WithdrawalRequestService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WithdrawalRequestService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
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
WithdrawalRequest create(String accountId, WithdrawalRequestCreateParams params, RequestOptions requestOptions)
-
create
WithdrawalRequest create(WithdrawalRequestCreateParams params)
-
create
abstract WithdrawalRequest create(WithdrawalRequestCreateParams params, RequestOptions requestOptions)
-
retrieve
WithdrawalRequest retrieve(String withdrawalRequestId, WithdrawalRequestRetrieveParams params)
Get a specific
WithdrawalRequestby its ID.
-
retrieve
WithdrawalRequest retrieve(String withdrawalRequestId, WithdrawalRequestRetrieveParams params, RequestOptions requestOptions)
-
retrieve
WithdrawalRequest retrieve(WithdrawalRequestRetrieveParams params)
-
retrieve
abstract WithdrawalRequest retrieve(WithdrawalRequestRetrieveParams params, RequestOptions requestOptions)
-
list
List<WithdrawalRequest> list(String accountId)
List
WithdrawalRequestsunder theAccount, sorted by most recent.
-
list
List<WithdrawalRequest> list(String accountId, WithdrawalRequestListParams params, RequestOptions requestOptions)
-
list
List<WithdrawalRequest> list(String accountId, WithdrawalRequestListParams params)
-
list
abstract List<WithdrawalRequest> list(WithdrawalRequestListParams params, RequestOptions requestOptions)
-
list
List<WithdrawalRequest> list(WithdrawalRequestListParams params)
-
list
List<WithdrawalRequest> list(String accountId, RequestOptions requestOptions)
-
-
-
-