Class: Increase::Models::CardDispute::Rejection

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/card_dispute.rb,
sig/increase/models/card_dispute.rbs

Overview

See Also:

  • Increase::Models::CardDispute#rejection

Instance Attribute 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

#initializeRejection

Returns a new instance of Rejection.

Parameters:

  • explanation: (String)
  • rejected_at: (Time)


143
# File 'sig/increase/models/card_dispute.rbs', line 143

def initialize: (explanation: String, rejected_at: Time) -> void

Instance Attribute Details

#explanationString

Why the Card Dispute was rejected.

Parameters:

  • value (String)

Returns:

  • (String)


212
# File 'lib/increase/models/card_dispute.rb', line 212

required :explanation, String

#rejected_atTime

The ISO 8601 date and time at which the Card Dispute was rejected.

Parameters:

  • value (Time)

Returns:

  • (Time)


219
# File 'lib/increase/models/card_dispute.rb', line 219

required :rejected_at, Time

Instance Method Details

#to_hash{ explanation: String, rejected_at: Time }

Returns:

  • ({ explanation: String, rejected_at: Time })


145
# File 'sig/increase/models/card_dispute.rbs', line 145

def to_hash: -> { explanation: String, rejected_at: Time }