Class: Yoomoney::Models::PaymentCreateParams::PaymentMethodData::PaymentMethodDataElectronicCertificate::Article
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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
|
# File 'lib/yoomoney/models/payment_create_params.rb', line 369
class Article < Yoomoney::Internal::Type::BaseModel
required :article_name, String
required :article_number, Integer
required :price, -> { Yoomoney::MonetaryAmount }
required :quantity, Integer
required :tru_code, String
optional :article_code, String
optional :metadata, Yoomoney::Internal::Type::HashOf[String]
end
|
Instance Attribute Details
#article_code ⇒ String?
398
|
# File 'lib/yoomoney/models/payment_create_params.rb', line 398
optional :article_code, String
|
#article_name ⇒ String
373
|
# File 'lib/yoomoney/models/payment_create_params.rb', line 373
required :article_name, String
|
#article_number ⇒ Integer
378
|
# File 'lib/yoomoney/models/payment_create_params.rb', line 378
required :article_number, Integer
|
Любые дополнительные данные, которые нужны вам для работы (например, номер
заказа). Передаются в виде набора пар «ключ-значение» и возвращаются в ответе от
ЮKassa. Ограничения: максимум 16 ключей, имя ключа не больше 32 символов,
значение ключа не больше 512 символов, тип данных — строка в формате UTF-8.
407
|
# File 'lib/yoomoney/models/payment_create_params.rb', line 407
optional :metadata, Yoomoney::Internal::Type::HashOf[String]
|
383
|
# File 'lib/yoomoney/models/payment_create_params.rb', line 383
required :price, -> { Yoomoney::MonetaryAmount }
|
#quantity ⇒ Integer
388
|
# File 'lib/yoomoney/models/payment_create_params.rb', line 388
required :quantity, Integer
|
#tru_code ⇒ String
393
|
# File 'lib/yoomoney/models/payment_create_params.rb', line 393
required :tru_code, String
|
Instance Method Details
#to_hash ⇒ {
404
|
# File 'sig/yoomoney/models/payment_create_params.rbs', line 404
def to_hash: -> {
|