Class Withdrawal
-
- All Implemented Interfaces:
public final class WithdrawalInformation for a withdrawal of payment tokens from an
Accountbacked by a Dinari-managedWallet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWithdrawal.BuilderA builder for Withdrawal.
-
Method Summary
Modifier and Type Method Description final Stringid()ID of the Withdrawal.final StringaccountId()ID of the Accountfrom which theWithdrawalis made.final ChainchainId()CAIP-2 chain ID of the blockchain where the Withdrawalis made.final StringpaymentTokenAddress()Address of USDC payment token that the Withdrawalwill be received in.final DoublepaymentTokenAmount()Amount of USDC payment tokens to be withdrawn. final StringrecipientAccountId()ID of the Accountthat will receive payment tokens from theWithdrawal.final BrokerageOrderStatusstatus()Status of the Withdrawal.final OffsetDateTimetransactionDt()Datetime at which the Withdrawalwas transacted.final StringtransactionHash()Hash of the transaction for the Withdrawal.final StringwithdrawalRequestId()ID of the WithdrawalRequestassociated with thisWithdrawal.final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_accountId()Returns the raw JSON value of accountId. final JsonField<Chain>_chainId()Returns the raw JSON value of chainId. final JsonField<String>_paymentTokenAddress()Returns the raw JSON value of paymentTokenAddress. final JsonField<Double>_paymentTokenAmount()Returns the raw JSON value of paymentTokenAmount. final JsonField<String>_recipientAccountId()Returns the raw JSON value of recipientAccountId. final JsonField<BrokerageOrderStatus>_status()Returns the raw JSON value of status. final JsonField<OffsetDateTime>_transactionDt()Returns the raw JSON value of transactionDt. final JsonField<String>_transactionHash()Returns the raw JSON value of transactionHash. final JsonField<String>_withdrawalRequestId()Returns the raw JSON value of withdrawalRequestId. final Map<String, JsonValue>_additionalProperties()final Withdrawal.BuildertoBuilder()final Withdrawalvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Withdrawal.Builderbuilder()Returns a mutable builder for constructing an instance of Withdrawal. -
-
Method Detail
-
paymentTokenAddress
final String paymentTokenAddress()
Address of USDC payment token that the
Withdrawalwill be received in.
-
paymentTokenAmount
final Double paymentTokenAmount()
Amount of USDC payment tokens to be withdrawn.
-
recipientAccountId
final String recipientAccountId()
ID of the
Accountthat will receive payment tokens from theWithdrawal. ThisAccountmust be connected to a non-managedWalletand belong to the sameEntity.
-
status
final BrokerageOrderStatus status()
Status of the
Withdrawal.
-
transactionDt
final OffsetDateTime transactionDt()
Datetime at which the
Withdrawalwas transacted. ISO 8601 timestamp.
-
transactionHash
final String transactionHash()
Hash of the transaction for the
Withdrawal.
-
withdrawalRequestId
final String withdrawalRequestId()
ID of the
WithdrawalRequestassociated with thisWithdrawal.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_accountId
final JsonField<String> _accountId()
Returns the raw JSON value of accountId.
Unlike accountId, this method doesn't throw if the JSON field has an unexpected type.
-
_chainId
final JsonField<Chain> _chainId()
Returns the raw JSON value of chainId.
Unlike chainId, this method doesn't throw if the JSON field has an unexpected type.
-
_paymentTokenAddress
final JsonField<String> _paymentTokenAddress()
Returns the raw JSON value of paymentTokenAddress.
Unlike paymentTokenAddress, this method doesn't throw if the JSON field has an unexpected type.
-
_paymentTokenAmount
final JsonField<Double> _paymentTokenAmount()
Returns the raw JSON value of paymentTokenAmount.
Unlike paymentTokenAmount, this method doesn't throw if the JSON field has an unexpected type.
-
_recipientAccountId
final JsonField<String> _recipientAccountId()
Returns the raw JSON value of recipientAccountId.
Unlike recipientAccountId, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BrokerageOrderStatus> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_transactionDt
final JsonField<OffsetDateTime> _transactionDt()
Returns the raw JSON value of transactionDt.
Unlike transactionDt, this method doesn't throw if the JSON field has an unexpected type.
-
_transactionHash
final JsonField<String> _transactionHash()
Returns the raw JSON value of transactionHash.
Unlike transactionHash, this method doesn't throw if the JSON field has an unexpected type.
-
_withdrawalRequestId
final JsonField<String> _withdrawalRequestId()
Returns the raw JSON value of withdrawalRequestId.
Unlike withdrawalRequestId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Withdrawal.Builder toBuilder()
-
validate
final Withdrawal validate()
-
builder
final static Withdrawal.Builder builder()
Returns a mutable builder for constructing an instance of Withdrawal.
The following fields are required:
.id() .accountId() .chainId() .paymentTokenAddress() .paymentTokenAmount() .recipientAccountId() .status() .transactionDt() .transactionHash() .withdrawalRequestId()
-
-
-
-