Class WithdrawalRequestCreateParams
-
- All Implemented Interfaces:
-
com.dinari.api.core.Params
public final class WithdrawalRequestCreateParams implements 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWithdrawalRequestCreateParams.BuilderA builder for WithdrawalRequestCreateParams.
public final classWithdrawalRequestCreateParams.BodyInput for withdrawing USD+ payment tokens from an
Accountconnected to a Dinari-managedWallet.
-
Method Summary
Modifier and Type Method Description final Optional<String>accountId()final DoublepaymentTokenQuantity()Amount of USD+ payment tokens to be withdrawn. final StringrecipientAccountId()ID of the Accountthat will receive payment tokens from theWithdrawal.final JsonField<Double>_paymentTokenQuantity()Returns the raw JSON value of paymentTokenQuantity. final JsonField<String>_recipientAccountId()Returns the raw JSON value of recipientAccountId. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final WithdrawalRequestCreateParams.BuildertoBuilder()final WithdrawalRequestCreateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static WithdrawalRequestCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of WithdrawalRequestCreateParams. -
-
Method Detail
-
paymentTokenQuantity
final Double paymentTokenQuantity()
Amount of USD+ payment tokens to be withdrawn. Must be greater than 0 and have at most 6 decimal places.
-
recipientAccountId
final String recipientAccountId()
ID of the
Accountthat will receive payment tokens from theWithdrawal.
-
_paymentTokenQuantity
final JsonField<Double> _paymentTokenQuantity()
Returns the raw JSON value of paymentTokenQuantity.
Unlike paymentTokenQuantity, 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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final WithdrawalRequestCreateParams.Builder toBuilder()
-
_body
final WithdrawalRequestCreateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static WithdrawalRequestCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of WithdrawalRequestCreateParams.
The following fields are required:
.paymentTokenQuantity() .recipientAccountId()
-
-
-
-