Class: Yoomoney::Models::Payment::CancellationDetails

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

Overview

See Also:

  • Yoomoney::Models::Payment#cancellation_details

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

#initialize ⇒ CancellationDetails

Returns a new instance of CancellationDetails.

Parameters:

  • party: (String)
  • reason: (String)


221
# File 'sig/yoomoney/models/payment.rbs', line 221

def initialize: (party: String, reason: String) -> void

Instance Attribute Details

#party ⇒ String

Участник процесса платежа, принявший решение об отмене.

Parameters:

  • value (String)

Returns:

  • (String)


241
# File 'lib/yoomoney/models/payment.rb', line 241

required :party, String

#reason ⇒ String

Причина отмены платежа.

Parameters:

  • value (String)

Returns:

  • (String)


247
# File 'lib/yoomoney/models/payment.rb', line 247

required :reason, String

Instance Method Details

#to_hash ⇒ { party: String, reason: String }

Returns:

  • ({ party: String, reason: String })


223
# File 'sig/yoomoney/models/payment.rbs', line 223

def to_hash: -> { party: String, reason: String }