Class TransferCreateParams.Body
-
- All Implemented Interfaces:
public final class TransferCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTransferCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Longamount()Amount to be transferred in the currency’s smallest unit (e.g., cents for USD). final Stringfrom()Globally unique identifier for the financial account or card that will send the funds. final Stringto()Globally unique identifier for the financial account or card that will receive the funds. final Optional<String>token()Customer-provided token that will serve as an idempotency token. final Optional<String>memo()Optional descriptor for the transfer. final JsonField<Long>_amount()Returns the raw JSON value of amount. final JsonField<String>_from()Returns the raw JSON value of from. final JsonField<String>_to()Returns the raw JSON value of to. final JsonField<String>_token()Returns the raw JSON value of token. final JsonField<String>_memo()Returns the raw JSON value of memo. final Map<String, JsonValue>_additionalProperties()final TransferCreateParams.Body.BuildertoBuilder()final TransferCreateParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TransferCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
amount
final Long amount()
Amount to be transferred in the currency’s smallest unit (e.g., cents for USD). This should always be a positive value.
-
from
final String from()
Globally unique identifier for the financial account or card that will send the funds. Accepted type dependent on the program's use case.
-
to
final String to()
Globally unique identifier for the financial account or card that will receive the funds. Accepted type dependent on the program's use case.
-
token
final Optional<String> token()
Customer-provided token that will serve as an idempotency token. This token will become the transaction token.
-
_amount
final JsonField<Long> _amount()
Returns the raw JSON value of amount.
Unlike amount, this method doesn't throw if the JSON field has an unexpected type.
-
_from
final JsonField<String> _from()
Returns the raw JSON value of from.
Unlike from, this method doesn't throw if the JSON field has an unexpected type.
-
_to
final JsonField<String> _to()
Returns the raw JSON value of to.
Unlike to, this method doesn't throw if the JSON field has an unexpected type.
-
_token
final JsonField<String> _token()
Returns the raw JSON value of token.
Unlike token, this method doesn't throw if the JSON field has an unexpected type.
-
_memo
final JsonField<String> _memo()
Returns the raw JSON value of memo.
Unlike memo, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TransferCreateParams.Body.Builder toBuilder()
-
validate
final TransferCreateParams.Body validate()
-
builder
final static TransferCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.amount() .from() .to()
-
-
-
-