Class PaymentCreateResponse.Builder
-
- All Implemented Interfaces:
public final class PaymentCreateResponse.BuilderA builder for PaymentCreateResponse.
-
-
Method Summary
-
-
Method Detail
-
token
final PaymentCreateResponse.Builder token(String token)
Globally unique identifier.
-
token
final PaymentCreateResponse.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.
-
category
final PaymentCreateResponse.Builder category(Payment.Category category)
Payment category
-
category
final PaymentCreateResponse.Builder category(JsonField<Payment.Category> category)
Sets Builder.category to an arbitrary JSON value.
You should usually call Builder.category with a well-typed Payment.Category value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
created
final PaymentCreateResponse.Builder created(OffsetDateTime created)
Date and time when the payment first occurred. UTC time zone.
-
created
final PaymentCreateResponse.Builder created(JsonField<OffsetDateTime> created)
Sets Builder.created to an arbitrary JSON value.
You should usually call Builder.created with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
currency
final PaymentCreateResponse.Builder currency(String currency)
3-character alphabetic ISO 4217 code for the settling currency of the payment.
-
currency
final PaymentCreateResponse.Builder currency(JsonField<String> currency)
Sets Builder.currency to an arbitrary JSON value.
You should usually call Builder.currency with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
descriptor
final PaymentCreateResponse.Builder descriptor(String descriptor)
A string that provides a description of the payment; may be useful to display to users.
-
descriptor
final PaymentCreateResponse.Builder descriptor(JsonField<String> descriptor)
Sets Builder.descriptor to an arbitrary JSON value.
You should usually call Builder.descriptor with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
direction
final PaymentCreateResponse.Builder direction(Payment.Direction direction)
-
direction
final PaymentCreateResponse.Builder direction(JsonField<Payment.Direction> direction)
Sets Builder.direction to an arbitrary JSON value.
You should usually call Builder.direction with a well-typed Payment.Direction value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
events
final PaymentCreateResponse.Builder events(List<Payment.PaymentEvent> events)
A list of all payment events that have modified this payment.
-
events
final PaymentCreateResponse.Builder events(JsonField<List<Payment.PaymentEvent>> events)
Sets Builder.events to an arbitrary JSON value.
You should usually call Builder.events with a well-typed
List<Payment.PaymentEvent>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addEvent
final PaymentCreateResponse.Builder addEvent(Payment.PaymentEvent event)
Adds a single Payment.PaymentEvent to events.
-
externalBankAccountToken
final PaymentCreateResponse.Builder externalBankAccountToken(String externalBankAccountToken)
-
externalBankAccountToken
final PaymentCreateResponse.Builder externalBankAccountToken(Optional<String> externalBankAccountToken)
Alias for calling Builder.externalBankAccountToken with
externalBankAccountToken.orElse(null).
-
externalBankAccountToken
final PaymentCreateResponse.Builder externalBankAccountToken(JsonField<String> externalBankAccountToken)
Sets Builder.externalBankAccountToken to an arbitrary JSON value.
You should usually call Builder.externalBankAccountToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
financialAccountToken
final PaymentCreateResponse.Builder financialAccountToken(String financialAccountToken)
-
financialAccountToken
final PaymentCreateResponse.Builder financialAccountToken(JsonField<String> financialAccountToken)
Sets Builder.financialAccountToken to an arbitrary JSON value.
You should usually call Builder.financialAccountToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
method
final PaymentCreateResponse.Builder method(Payment.Method method)
-
method
final PaymentCreateResponse.Builder method(JsonField<Payment.Method> method)
Sets Builder.method to an arbitrary JSON value.
You should usually call Builder.method with a well-typed Payment.Method value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
methodAttributes
final PaymentCreateResponse.Builder methodAttributes(Payment.PaymentMethodAttributes methodAttributes)
-
methodAttributes
final PaymentCreateResponse.Builder methodAttributes(JsonField<Payment.PaymentMethodAttributes> methodAttributes)
Sets Builder.methodAttributes to an arbitrary JSON value.
You should usually call Builder.methodAttributes with a well-typed Payment.PaymentMethodAttributes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pendingAmount
final PaymentCreateResponse.Builder pendingAmount(Long pendingAmount)
Pending amount of the payment in the currency's smallest unit (e.g., cents). The value of this field will go to zero over time once the payment is settled.
-
pendingAmount
final PaymentCreateResponse.Builder pendingAmount(JsonField<Long> pendingAmount)
Sets Builder.pendingAmount to an arbitrary JSON value.
You should usually call Builder.pendingAmount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
relatedAccountTokens
final PaymentCreateResponse.Builder relatedAccountTokens(Payment.RelatedAccountTokens relatedAccountTokens)
Account tokens related to a payment transaction
-
relatedAccountTokens
final PaymentCreateResponse.Builder relatedAccountTokens(JsonField<Payment.RelatedAccountTokens> relatedAccountTokens)
Sets Builder.relatedAccountTokens to an arbitrary JSON value.
You should usually call Builder.relatedAccountTokens with a well-typed Payment.RelatedAccountTokens value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
result
final PaymentCreateResponse.Builder result(Payment.Result result)
APPROVED payments were successful while DECLINED payments were declined by Lithic or returned.
-
result
final PaymentCreateResponse.Builder result(JsonField<Payment.Result> result)
Sets Builder.result to an arbitrary JSON value.
You should usually call Builder.result with a well-typed Payment.Result value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
settledAmount
final PaymentCreateResponse.Builder settledAmount(Long settledAmount)
Amount of the payment that has been settled in the currency's smallest unit (e.g., cents).
-
settledAmount
final PaymentCreateResponse.Builder settledAmount(JsonField<Long> settledAmount)
Sets Builder.settledAmount to an arbitrary JSON value.
You should usually call Builder.settledAmount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final PaymentCreateResponse.Builder source(Payment.Source source)
-
source
final PaymentCreateResponse.Builder source(JsonField<Payment.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Payment.Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final PaymentCreateResponse.Builder status(Payment.Status status)
Status types:
DECLINED- The payment was declined.PENDING- The payment is being processed and has yet to settle or release (origination debit).RETURNED- The payment has been returned.SETTLED- The payment is completed.
-
status
final PaymentCreateResponse.Builder status(JsonField<Payment.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Payment.Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updated
final PaymentCreateResponse.Builder updated(OffsetDateTime updated)
Date and time when the financial transaction was last updated. UTC time zone.
-
updated
final PaymentCreateResponse.Builder updated(JsonField<OffsetDateTime> updated)
Sets Builder.updated to an arbitrary JSON value.
You should usually call Builder.updated with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userDefinedId
final PaymentCreateResponse.Builder userDefinedId(String userDefinedId)
-
userDefinedId
final PaymentCreateResponse.Builder userDefinedId(Optional<String> userDefinedId)
Alias for calling Builder.userDefinedId with
userDefinedId.orElse(null).
-
userDefinedId
final PaymentCreateResponse.Builder userDefinedId(JsonField<String> userDefinedId)
Sets Builder.userDefinedId to an arbitrary JSON value.
You should usually call Builder.userDefinedId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expectedReleaseDate
final PaymentCreateResponse.Builder expectedReleaseDate(LocalDate expectedReleaseDate)
Date when the financial transaction expected to be released after settlement
-
expectedReleaseDate
final PaymentCreateResponse.Builder expectedReleaseDate(JsonField<LocalDate> expectedReleaseDate)
Sets Builder.expectedReleaseDate to an arbitrary JSON value.
You should usually call Builder.expectedReleaseDate with a well-typed LocalDate value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final PaymentCreateResponse.Builder type(Payment.TransferType type)
Payment type indicating the specific ACH message or Fedwire transfer type
-
type
final PaymentCreateResponse.Builder type(JsonField<Payment.TransferType> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Payment.TransferType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
balance
final PaymentCreateResponse.Builder balance(Balance balance)
Balance
-
balance
final PaymentCreateResponse.Builder balance(JsonField<Balance> balance)
Sets Builder.balance to an arbitrary JSON value.
You should usually call Builder.balance with a well-typed Balance value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PaymentCreateResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PaymentCreateResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PaymentCreateResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PaymentCreateResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PaymentCreateResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PaymentCreateResponse build()
Returns an immutable instance of PaymentCreateResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.token() .category() .created() .currency() .descriptor() .direction() .events() .externalBankAccountToken() .financialAccountToken() .method() .methodAttributes() .pendingAmount() .relatedAccountTokens() .result() .settledAmount() .source() .status() .updated() .userDefinedId()
-
-
-
-