Class: Lithic::Models::DisputeV2::Event

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/dispute_v2.rb

Defined Under Namespace

Modules: Data, Type

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(token:, created:, data:, type:) ⇒ Object

Event that occurred in the dispute lifecycle

Parameters:



# File 'lib/lithic/models/dispute_v2.rb', line 166

Instance Attribute Details

#createdTime

When the event occurred

Returns:

  • (Time)


152
# File 'lib/lithic/models/dispute_v2.rb', line 152

required :created, Time

#dataLithic::Models::DisputeV2::Event::Data::Workflow, ...

Details specific to the event type



158
# File 'lib/lithic/models/dispute_v2.rb', line 158

required :data, union: -> { Lithic::DisputeV2::Event::Data }

#tokenString

Unique identifier for the event, in UUID format

Returns:

  • (String)


146
# File 'lib/lithic/models/dispute_v2.rb', line 146

required :token, String

#typeSymbol, Lithic::Models::DisputeV2::Event::Type

Type of event



164
# File 'lib/lithic/models/dispute_v2.rb', line 164

required :type, enum: -> { Lithic::DisputeV2::Event::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/dispute_v2.rb', line 405

.variantsArray(Lithic::Models::DisputeV2::Event::Data::Workflow, Lithic::Models::DisputeV2::Event::Data::Financial, Lithic::Models::DisputeV2::Event::Data::CardholderLiability)



# File 'lib/lithic/models/dispute_v2.rb', line 410