Class BookTransferCreateParams.CreateBookTransferRequest.Builder
-
- All Implemented Interfaces:
public final class BookTransferCreateParams.CreateBookTransferRequest.BuilderA builder for CreateBookTransferRequest.
-
-
Method Summary
-
-
Method Detail
-
amount
final BookTransferCreateParams.CreateBookTransferRequest.Builder amount(Long amount)
Amount to be transferred in the currency's smallest unit (e.g., cents for USD). This should always be a positive value.
-
amount
final BookTransferCreateParams.CreateBookTransferRequest.Builder amount(JsonField<Long> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
category
final BookTransferCreateParams.CreateBookTransferRequest.Builder category(BookTransferCreateParams.BookTransferCategory category)
Category of the book transfer
-
category
final BookTransferCreateParams.CreateBookTransferRequest.Builder category(JsonField<BookTransferCreateParams.BookTransferCategory> category)
Sets Builder.category to an arbitrary JSON value.
You should usually call Builder.category with a well-typed BookTransferCategory value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fromFinancialAccountToken
final BookTransferCreateParams.CreateBookTransferRequest.Builder fromFinancialAccountToken(String fromFinancialAccountToken)
Globally unique identifier for the financial account or card that will send the funds. Accepted type dependent on the program's use case.
-
fromFinancialAccountToken
final BookTransferCreateParams.CreateBookTransferRequest.Builder fromFinancialAccountToken(JsonField<String> fromFinancialAccountToken)
Sets Builder.fromFinancialAccountToken to an arbitrary JSON value.
You should usually call Builder.fromFinancialAccountToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
subtype
final BookTransferCreateParams.CreateBookTransferRequest.Builder subtype(String subtype)
The program specific subtype code for the specified category/type.
-
subtype
final BookTransferCreateParams.CreateBookTransferRequest.Builder subtype(JsonField<String> subtype)
Sets Builder.subtype to an arbitrary JSON value.
You should usually call Builder.subtype with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toFinancialAccountToken
final BookTransferCreateParams.CreateBookTransferRequest.Builder toFinancialAccountToken(String toFinancialAccountToken)
Globally unique identifier for the financial account or card that will receive the funds. Accepted type dependent on the program's use case.
-
toFinancialAccountToken
final BookTransferCreateParams.CreateBookTransferRequest.Builder toFinancialAccountToken(JsonField<String> toFinancialAccountToken)
Sets Builder.toFinancialAccountToken to an arbitrary JSON value.
You should usually call Builder.toFinancialAccountToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BookTransferCreateParams.CreateBookTransferRequest.Builder type(BookTransferCreateParams.BookTransferType type)
Type of the book transfer
-
type
final BookTransferCreateParams.CreateBookTransferRequest.Builder type(JsonField<BookTransferCreateParams.BookTransferType> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed BookTransferType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
token
final BookTransferCreateParams.CreateBookTransferRequest.Builder token(String token)
Customer-provided token that will serve as an idempotency token. This token will become the transaction token.
-
token
final BookTransferCreateParams.CreateBookTransferRequest.Builder token(JsonField<String> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalId
final BookTransferCreateParams.CreateBookTransferRequest.Builder externalId(String externalId)
External ID defined by the customer
-
externalId
final BookTransferCreateParams.CreateBookTransferRequest.Builder externalId(JsonField<String> externalId)
Sets Builder.externalId to an arbitrary JSON value.
You should usually call Builder.externalId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
memo
final BookTransferCreateParams.CreateBookTransferRequest.Builder memo(String memo)
Optional descriptor for the transfer.
-
memo
final BookTransferCreateParams.CreateBookTransferRequest.Builder memo(JsonField<String> memo)
Sets Builder.memo to an arbitrary JSON value.
You should usually call Builder.memo with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
onClosedAccount
final BookTransferCreateParams.CreateBookTransferRequest.Builder onClosedAccount(BookTransferCreateParams.OnClosedAccount onClosedAccount)
What to do if the financial account is closed when posting an operation
-
onClosedAccount
final BookTransferCreateParams.CreateBookTransferRequest.Builder onClosedAccount(JsonField<BookTransferCreateParams.OnClosedAccount> onClosedAccount)
Sets Builder.onClosedAccount to an arbitrary JSON value.
You should usually call Builder.onClosedAccount with a well-typed OnClosedAccount value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BookTransferCreateParams.CreateBookTransferRequest.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BookTransferCreateParams.CreateBookTransferRequest.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BookTransferCreateParams.CreateBookTransferRequest.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BookTransferCreateParams.CreateBookTransferRequest.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BookTransferCreateParams.CreateBookTransferRequest.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BookTransferCreateParams.CreateBookTransferRequest build()
Returns an immutable instance of CreateBookTransferRequest.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.amount() .category() .fromFinancialAccountToken() .subtype() .toFinancialAccountToken() .type()
-
-
-
-