Class: Yoomoney::Models::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article::Certificate

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/yoomoney/models/payment.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(article_number:, certificates:, tru_code:, article_code: nil) ⇒ Object

Parameters:



583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'lib/yoomoney/models/payment.rb', line 583

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

  # @!attribute available_compensation
  #
  #   @return [Yoomoney::Models::MonetaryAmount]
  required :available_compensation, -> { Yoomoney::MonetaryAmount }

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

  # @!attribute tru_quantity
  #
  #   @return [Integer]
  required :tru_quantity, Integer

  # @!method initialize(applied_compensation:, available_compensation:, certificate_id:, tru_quantity:)
  #   @param applied_compensation [Yoomoney::Models::MonetaryAmount]
  #   @param available_compensation [Yoomoney::Models::MonetaryAmount]
  #   @param certificate_id [String]
  #   @param tru_quantity [Integer]
end

Instance Attribute Details

#applied_compensationYoomoney::Models::MonetaryAmount



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

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

#available_compensationYoomoney::Models::MonetaryAmount



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

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

#certificate_idString

Returns:

  • (String)


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

required :certificate_id, String

#tru_quantityInteger

Returns:

  • (Integer)


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

required :tru_quantity, Integer