Class: Yoomoney::Models::Refund::RefundMethod::ElectronicCertificateRefundMethod::ElectronicCertificate

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/yoomoney/models/refund.rb

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(amount:, basket_id:) ⇒ Object

Parameters:



226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/yoomoney/models/refund.rb', line 226

class ElectronicCertificate < Yoomoney::Internal::Type::BaseModel
  # @!attribute amount
  #
  #   @return [Yoomoney::Models::MonetaryAmount]
  required :amount, -> { Yoomoney::MonetaryAmount }

  # @!attribute basket_id
  #
  #   @return [String]
  required :basket_id, String

  # @!method initialize(amount:, basket_id:)
  #   @param amount [Yoomoney::Models::MonetaryAmount]
  #   @param basket_id [String]
end

Instance Attribute Details

#amountYoomoney::Models::MonetaryAmount



230
# File 'lib/yoomoney/models/refund.rb', line 230

required :amount, -> { Yoomoney::MonetaryAmount }

#basket_idString

Returns:

  • (String)


235
# File 'lib/yoomoney/models/refund.rb', line 235

required :basket_id, String