Class TransactionRetrieveResponse.Builder
-
- All Implemented Interfaces:
public final class TransactionRetrieveResponse.BuilderA builder for TransactionRetrieveResponse.
-
-
Method Summary
Modifier and Type Method Description final TransactionRetrieveResponse.BuilderfraudStatus(TransactionRetrieveResponse.FraudStatus fraudStatus)The fraud status of the transaction, string (enum) supporting the following values: SUSPECTED_FRAUD: The transaction is suspected to be fraudulent, but this hasn’t been confirmed.FRAUDULENT: The transaction is confirmed to be fraudulent. A transaction may immediately be moved into this state, or be graduated into this state from theSUSPECTED_FRAUDstate.NOT_FRAUDULENT: The transaction is (explicitly) marked as not fraudulent. A transaction may immediately be moved into this state, or be graduated into this state from theSUSPECTED_FRAUDstate.NO_REPORTED_FRAUD: Indicates that no fraud report exists for the transaction. It is the default state for transactions that have not been analyzed or associated with any known fraudulent activity.
final TransactionRetrieveResponse.BuilderfraudStatus(JsonField<TransactionRetrieveResponse.FraudStatus> fraudStatus)Sets Builder.fraudStatus to an arbitrary JSON value. final TransactionRetrieveResponse.BuildertransactionToken(String transactionToken)The universally unique identifier (UUID) associated with the transaction being reported. final TransactionRetrieveResponse.BuildertransactionToken(JsonField<String> transactionToken)Sets Builder.transactionToken to an arbitrary JSON value. final TransactionRetrieveResponse.Buildercomment(String comment)Provides additional context or details about the fraud report. final TransactionRetrieveResponse.Buildercomment(JsonField<String> comment)Sets Builder.comment to an arbitrary JSON value. final TransactionRetrieveResponse.BuildercreatedAt(OffsetDateTime createdAt)Timestamp representing when the fraud report was created. final TransactionRetrieveResponse.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final TransactionRetrieveResponse.BuilderfraudType(TransactionRetrieveResponse.FraudType fraudType)Specifies the type or category of fraud that the transaction is suspected or confirmed to involve, string (enum) supporting the following values: FIRST_PARTY_FRAUD: First-party fraud occurs when a legitimate account or cardholder intentionally misuses financial services for personal gain. This includes actions such as disputing legitimate transactions to obtain a refund, abusing return policies, or defaulting on credit obligations without intent to repay.ACCOUNT_TAKEOVER: Account takeover fraud occurs when a fraudster gains unauthorized access to an existing account, modifies account settings, and carries out fraudulent transactions.CARD_COMPROMISED: Card compromised fraud occurs when a fraudster gains access to card details without taking over the account, such as through physical card theft, cloning, or online data breaches.IDENTITY_THEFT: Identity theft fraud occurs when a fraudster uses stolen personal information, such as Social Security numbers or addresses, to open accounts, apply for loans, or conduct financial transactions in someone's name.CARDHOLDER_MANIPULATION: This type of fraud occurs when a fraudster manipulates or coerces a legitimate cardholder into unauthorized transactions, often through social engineering tactics.
final TransactionRetrieveResponse.BuilderfraudType(JsonField<TransactionRetrieveResponse.FraudType> fraudType)Sets Builder.fraudType to an arbitrary JSON value. final TransactionRetrieveResponse.BuilderupdatedAt(OffsetDateTime updatedAt)Timestamp representing the last update to the fraud report. final TransactionRetrieveResponse.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final TransactionRetrieveResponse.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final TransactionRetrieveResponse.BuilderputAdditionalProperty(String key, JsonValue value)final TransactionRetrieveResponse.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final TransactionRetrieveResponse.BuilderremoveAdditionalProperty(String key)final TransactionRetrieveResponse.BuilderremoveAllAdditionalProperties(Set<String> keys)final TransactionRetrieveResponsebuild()Returns an immutable instance of TransactionRetrieveResponse. -
-
Method Detail
-
fraudStatus
final TransactionRetrieveResponse.Builder fraudStatus(TransactionRetrieveResponse.FraudStatus fraudStatus)
The fraud status of the transaction, string (enum) supporting the following values:
SUSPECTED_FRAUD: The transaction is suspected to be fraudulent, but this hasn’t been confirmed.FRAUDULENT: The transaction is confirmed to be fraudulent. A transaction may immediately be moved into this state, or be graduated into this state from theSUSPECTED_FRAUDstate.NOT_FRAUDULENT: The transaction is (explicitly) marked as not fraudulent. A transaction may immediately be moved into this state, or be graduated into this state from theSUSPECTED_FRAUDstate.NO_REPORTED_FRAUD: Indicates that no fraud report exists for the transaction. It is the default state for transactions that have not been analyzed or associated with any known fraudulent activity.
-
fraudStatus
final TransactionRetrieveResponse.Builder fraudStatus(JsonField<TransactionRetrieveResponse.FraudStatus> fraudStatus)
Sets Builder.fraudStatus to an arbitrary JSON value.
You should usually call Builder.fraudStatus with a well-typed FraudStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
transactionToken
final TransactionRetrieveResponse.Builder transactionToken(String transactionToken)
The universally unique identifier (UUID) associated with the transaction being reported.
-
transactionToken
final TransactionRetrieveResponse.Builder transactionToken(JsonField<String> transactionToken)
Sets Builder.transactionToken to an arbitrary JSON value.
You should usually call Builder.transactionToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
comment
final TransactionRetrieveResponse.Builder comment(String comment)
Provides additional context or details about the fraud report.
-
comment
final TransactionRetrieveResponse.Builder comment(JsonField<String> comment)
Sets Builder.comment to an arbitrary JSON value.
You should usually call Builder.comment with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final TransactionRetrieveResponse.Builder createdAt(OffsetDateTime createdAt)
Timestamp representing when the fraud report was created.
-
createdAt
final TransactionRetrieveResponse.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fraudType
final TransactionRetrieveResponse.Builder fraudType(TransactionRetrieveResponse.FraudType fraudType)
Specifies the type or category of fraud that the transaction is suspected or confirmed to involve, string (enum) supporting the following values:
FIRST_PARTY_FRAUD: First-party fraud occurs when a legitimate account or cardholder intentionally misuses financial services for personal gain. This includes actions such as disputing legitimate transactions to obtain a refund, abusing return policies, or defaulting on credit obligations without intent to repay.ACCOUNT_TAKEOVER: Account takeover fraud occurs when a fraudster gains unauthorized access to an existing account, modifies account settings, and carries out fraudulent transactions.CARD_COMPROMISED: Card compromised fraud occurs when a fraudster gains access to card details without taking over the account, such as through physical card theft, cloning, or online data breaches.IDENTITY_THEFT: Identity theft fraud occurs when a fraudster uses stolen personal information, such as Social Security numbers or addresses, to open accounts, apply for loans, or conduct financial transactions in someone's name.CARDHOLDER_MANIPULATION: This type of fraud occurs when a fraudster manipulates or coerces a legitimate cardholder into unauthorized transactions, often through social engineering tactics.
-
fraudType
final TransactionRetrieveResponse.Builder fraudType(JsonField<TransactionRetrieveResponse.FraudType> fraudType)
Sets Builder.fraudType to an arbitrary JSON value.
You should usually call Builder.fraudType with a well-typed FraudType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final TransactionRetrieveResponse.Builder updatedAt(OffsetDateTime updatedAt)
Timestamp representing the last update to the fraud report.
-
updatedAt
final TransactionRetrieveResponse.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TransactionRetrieveResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TransactionRetrieveResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TransactionRetrieveResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TransactionRetrieveResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TransactionRetrieveResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TransactionRetrieveResponse build()
Returns an immutable instance of TransactionRetrieveResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.fraudStatus() .transactionToken()
-
-
-