Class Transaction.TransactionEvent.Builder
-
- All Implemented Interfaces:
public final class Transaction.TransactionEvent.BuilderA builder for TransactionEvent.
-
-
Method Summary
-
-
Method Detail
-
token
final Transaction.TransactionEvent.Builder token(String token)
Transaction event identifier.
-
token
final Transaction.TransactionEvent.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.
-
amount
@Deprecated(message = "deprecated") final Transaction.TransactionEvent.Builder amount(Long amount)
Amount of the event in the settlement currency.
-
amount
@Deprecated(message = "deprecated") final Transaction.TransactionEvent.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.
-
amounts
final Transaction.TransactionEvent.Builder amounts(Transaction.TransactionEvent.TransactionEventAmounts amounts)
-
amounts
final Transaction.TransactionEvent.Builder amounts(JsonField<Transaction.TransactionEvent.TransactionEventAmounts> amounts)
Sets Builder.amounts to an arbitrary JSON value.
You should usually call Builder.amounts with a well-typed TransactionEventAmounts value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
created
final Transaction.TransactionEvent.Builder created(OffsetDateTime created)
RFC 3339 date and time this event entered the system. UTC time zone.
-
created
final Transaction.TransactionEvent.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.
-
detailedResults
final Transaction.TransactionEvent.Builder detailedResults(List<Transaction.TransactionEvent.DetailedResult> detailedResults)
-
detailedResults
final Transaction.TransactionEvent.Builder detailedResults(JsonField<List<Transaction.TransactionEvent.DetailedResult>> detailedResults)
Sets Builder.detailedResults to an arbitrary JSON value.
You should usually call Builder.detailedResults with a well-typed
List<DetailedResult>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addDetailedResult
final Transaction.TransactionEvent.Builder addDetailedResult(Transaction.TransactionEvent.DetailedResult detailedResult)
Adds a single DetailedResult to detailedResults.
-
effectivePolarity
final Transaction.TransactionEvent.Builder effectivePolarity(Transaction.TransactionEvent.EffectivePolarity effectivePolarity)
Indicates whether the transaction event is a credit or debit to the account.
-
effectivePolarity
final Transaction.TransactionEvent.Builder effectivePolarity(JsonField<Transaction.TransactionEvent.EffectivePolarity> effectivePolarity)
Sets Builder.effectivePolarity to an arbitrary JSON value.
You should usually call Builder.effectivePolarity with a well-typed EffectivePolarity value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
networkInfo
final Transaction.TransactionEvent.Builder networkInfo(Transaction.TransactionEvent.NetworkInfo networkInfo)
Information provided by the card network in each event. This includes common identifiers shared between you, Lithic, the card network and in some cases the acquirer. These identifiers often link together events within the same transaction lifecycle and can be used to locate a particular transaction, such as during processing of disputes. Not all fields are available in all events, and the presence of these fields is dependent on the card network and the event type. If the field is populated by the network, we will pass it through as is unless otherwise specified. Please consult the official network documentation for more details about these fields and how to use them.
-
networkInfo
final Transaction.TransactionEvent.Builder networkInfo(Optional<Transaction.TransactionEvent.NetworkInfo> networkInfo)
Alias for calling Builder.networkInfo with
networkInfo.orElse(null).
-
networkInfo
final Transaction.TransactionEvent.Builder networkInfo(JsonField<Transaction.TransactionEvent.NetworkInfo> networkInfo)
Sets Builder.networkInfo to an arbitrary JSON value.
You should usually call Builder.networkInfo with a well-typed NetworkInfo value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
result
final Transaction.TransactionEvent.Builder result(Transaction.TransactionEvent.DeclineResult result)
-
result
final Transaction.TransactionEvent.Builder result(JsonField<Transaction.TransactionEvent.DeclineResult> result)
Sets Builder.result to an arbitrary JSON value.
You should usually call Builder.result with a well-typed DeclineResult value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
ruleResults
final Transaction.TransactionEvent.Builder ruleResults(List<Transaction.TransactionEvent.RuleResult> ruleResults)
-
ruleResults
final Transaction.TransactionEvent.Builder ruleResults(JsonField<List<Transaction.TransactionEvent.RuleResult>> ruleResults)
Sets Builder.ruleResults to an arbitrary JSON value.
You should usually call Builder.ruleResults with a well-typed
List<RuleResult>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addRuleResult
final Transaction.TransactionEvent.Builder addRuleResult(Transaction.TransactionEvent.RuleResult ruleResult)
Adds a single RuleResult to ruleResults.
-
type
final Transaction.TransactionEvent.Builder type(Transaction.TransactionEvent.Type type)
Type of transaction event
-
type
final Transaction.TransactionEvent.Builder type(JsonField<Transaction.TransactionEvent.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
accountType
final Transaction.TransactionEvent.Builder accountType(Transaction.TransactionEvent.AccountType accountType)
-
accountType
final Transaction.TransactionEvent.Builder accountType(JsonField<Transaction.TransactionEvent.AccountType> accountType)
Sets Builder.accountType to an arbitrary JSON value.
You should usually call Builder.accountType with a well-typed AccountType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
networkSpecificData
final Transaction.TransactionEvent.Builder networkSpecificData(Transaction.TransactionEvent.NetworkSpecificData networkSpecificData)
-
networkSpecificData
final Transaction.TransactionEvent.Builder networkSpecificData(JsonField<Transaction.TransactionEvent.NetworkSpecificData> networkSpecificData)
Sets Builder.networkSpecificData to an arbitrary JSON value.
You should usually call Builder.networkSpecificData with a well-typed NetworkSpecificData value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Transaction.TransactionEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Transaction.TransactionEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Transaction.TransactionEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Transaction.TransactionEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Transaction.TransactionEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Transaction.TransactionEvent build()
Returns an immutable instance of TransactionEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.token() .amount() .amounts() .created() .detailedResults() .effectivePolarity() .networkInfo() .result() .ruleResults() .type()
-
-
-
-