Class: Yoomoney::Models::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article
Defined Under Namespace
Classes: 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(articles: nil, electronic_certificate: nil) ⇒ Object
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
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
610
|
# File 'lib/yoomoney/models/payment.rb', line 555
class Article < Yoomoney::Internal::Type::BaseModel
required :article_number, Integer
required :certificates,
-> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article::Certificate] }
required :tru_code, String
optional :article_code, String
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
end
|
Instance Attribute Details
#article_code ⇒ String?
575
|
# File 'lib/yoomoney/models/payment.rb', line 575
optional :article_code, String
|
#article_number ⇒ Integer
559
|
# File 'lib/yoomoney/models/payment.rb', line 559
required :article_number, Integer
|
564
565
|
# File 'lib/yoomoney/models/payment.rb', line 564
required :certificates,
-> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::Payment::PaymentMethod::PaymentMethodElectronicCertificate::Article::Certificate] }
|
#tru_code ⇒ String
570
|
# File 'lib/yoomoney/models/payment.rb', line 570
required :tru_code, String
|