Class: Yoomoney::Models::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article::Certificate
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#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
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
required :applied_compensation, -> { Yoomoney::MonetaryAmount }
required :available_compensation, -> { Yoomoney::MonetaryAmount }
required :certificate_id, String
required :tru_quantity, Integer
end
|
Instance Attribute Details
587
|
# File 'lib/yoomoney/models/payment.rb', line 587
required :applied_compensation, -> { Yoomoney::MonetaryAmount }
|
592
|
# File 'lib/yoomoney/models/payment.rb', line 592
required :available_compensation, -> { Yoomoney::MonetaryAmount }
|
#certificate_id ⇒ String
597
|
# File 'lib/yoomoney/models/payment.rb', line 597
required :certificate_id, String
|
#tru_quantity ⇒ Integer
602
|
# File 'lib/yoomoney/models/payment.rb', line 602
required :tru_quantity, Integer
|
Instance Method Details
#to_hash ⇒ {
600
|
# File 'sig/yoomoney/models/payment.rbs', line 600
def to_hash: -> {
|