Class: Lithic::Models::DisputeV2::Event::Data::Workflow

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

Defined Under Namespace

Modules: Action, Disposition, Stage

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(action:, amount:, disposition:, reason:, stage:, type: :WORKFLOW) ⇒ Object

Details specific to workflow events

Parameters:



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


Instance Attribute Details

#actionSymbol, Lithic::Models::DisputeV2::Event::Data::Workflow::Action

Action taken in this stage



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

required :action, enum: -> { Lithic::DisputeV2::Event::Data::Workflow::Action }

#amountInteger?

Amount in minor units

Returns:

  • (Integer, nil)


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

required :amount, Integer, nil?: true

#dispositionSymbol, ...

Dispute resolution outcome



211
212
213
214
215
# File 'lib/lithic/models/dispute_v2.rb', line 211

required :disposition,
enum: -> {
  Lithic::DisputeV2::Event::Data::Workflow::Disposition
},
nil?: true

#reasonString?

Reason for the action

Returns:

  • (String, nil)


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

required :reason, String, nil?: true

#stageSymbol, Lithic::Models::DisputeV2::Event::Data::Workflow::Stage

Current stage of the dispute workflow



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

required :stage, enum: -> { Lithic::DisputeV2::Event::Data::Workflow::Stage }

#typeSymbol, :WORKFLOW

Event type discriminator

Returns:

  • (Symbol, :WORKFLOW)


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

required :type, const: :WORKFLOW

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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