Class: Lithic::Models::Fraud::TransactionRetrieveResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/fraud/transaction_retrieve_response.rb,
sig/lithic/models/fraud/transaction_retrieve_response.rbs

Overview

See Also:

  • Lithic::Resources::Fraud::Transactions#retrieve

Defined Under Namespace

Modules: FraudStatus, FraudType

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(fraud_status:, transaction_token:, comment: nil, created_at: nil, fraud_type: nil, updated_at: nil) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::Fraud::TransactionRetrieveResponse for more details.

Parameters:

  • fraud_status (Symbol, Lithic::Models::Fraud::TransactionRetrieveResponse::FraudStatus)

    The fraud status of the transaction, string (enum) supporting the following valu

  • transaction_token (String)

    The universally unique identifier (UUID) associated with the transaction being r

  • comment (String) (defaults to: nil)

    Provides additional context or details about the fraud report.

  • created_at (Time) (defaults to: nil)

    Timestamp representing when the fraud report was created.

  • fraud_type (Symbol, Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType) (defaults to: nil)

    Specifies the type or category of fraud that the transaction is suspected or con

  • updated_at (Time) (defaults to: nil)

    Timestamp representing the last update to the fraud report.



# File 'lib/lithic/models/fraud/transaction_retrieve_response.rb', line 78

Instance Attribute Details

#commentString?

Provides additional context or details about the fraud report.

Parameters:

  • (String)

Returns:

  • (String, nil)


38
# File 'lib/lithic/models/fraud/transaction_retrieve_response.rb', line 38

optional :comment, String

#created_atTime?

Timestamp representing when the fraud report was created.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


44
# File 'lib/lithic/models/fraud/transaction_retrieve_response.rb', line 44

optional :created_at, Time

#fraud_statusSymbol, Lithic::Models::Fraud::TransactionRetrieveResponse::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 the SUSPECTED_FRAUD state.
  • 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 the SUSPECTED_FRAUD state.
  • 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.

Parameters:

  • value (Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status)

Returns:



25
# File 'lib/lithic/models/fraud/transaction_retrieve_response.rb', line 25

required :fraud_status, enum: -> { Lithic::Models::Fraud::TransactionRetrieveResponse::FraudStatus }

#fraud_typeSymbol, ...

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.


70
# File 'lib/lithic/models/fraud/transaction_retrieve_response.rb', line 70

optional :fraud_type, enum: -> { Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType }

#transaction_tokenString

The universally unique identifier (UUID) associated with the transaction being reported.

Parameters:

  • value (String)

Returns:

  • (String)


32
# File 'lib/lithic/models/fraud/transaction_retrieve_response.rb', line 32

required :transaction_token, String

#updated_atTime?

Timestamp representing the last update to the fraud report.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


76
# File 'lib/lithic/models/fraud/transaction_retrieve_response.rb', line 76

optional :updated_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/fraud/transaction_retrieve_response.rb', line 118

Instance Method Details

#to_hash{

Returns:

  • ({)


46
# File 'sig/lithic/models/fraud/transaction_retrieve_response.rbs', line 46

def to_hash: -> {