Class: Yoomoney::Models::InvoiceCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Yoomoney::Models::InvoiceCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/yoomoney/models/invoice_create_params.rb
Overview
Defined Under Namespace
Modules: DeliveryMethod Classes: PaymentData
Instance Attribute Summary collapse
-
#cart ⇒ Array<Yoomoney::Models::LineItem>
Корзина заказа — список товаров или услуг.
-
#delivery_method ⇒ Yoomoney::Models::DeliveryMethodData, ...
Способ доставки ссылки на счет.
-
#description ⇒ String?
Описание заказа.
-
#expires_at ⇒ Time?
Срок действия счета.
- #idempotence_key ⇒ String
-
#metadata ⇒ Hash{Symbol=>String}?
Любые дополнительные данные, которые нужны вам для работы (например, номер заказа).
-
#payment_data ⇒ Yoomoney::Models::InvoiceCreateParams::PaymentData?
Данные платежа.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(email:) ⇒ Object constructor
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(email:) ⇒ Object
|
|
# File 'lib/yoomoney/models/invoice_create_params.rb', line 54
|
Instance Attribute Details
#cart ⇒ Array<Yoomoney::Models::LineItem>
Корзина заказа — список товаров или услуг.
14 |
# File 'lib/yoomoney/models/invoice_create_params.rb', line 14 required :cart, -> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::LineItem] } |
#delivery_method ⇒ Yoomoney::Models::DeliveryMethodData, ...
Способ доставки ссылки на счет.
20 |
# File 'lib/yoomoney/models/invoice_create_params.rb', line 20 required :delivery_method, union: -> { Yoomoney::InvoiceCreateParams::DeliveryMethod } |
#description ⇒ String?
Описание заказа.
31 |
# File 'lib/yoomoney/models/invoice_create_params.rb', line 31 optional :description, String |
#expires_at ⇒ Time?
Срок действия счета.
37 |
# File 'lib/yoomoney/models/invoice_create_params.rb', line 37 optional :expires_at, Time |
#idempotence_key ⇒ String
25 |
# File 'lib/yoomoney/models/invoice_create_params.rb', line 25 required :idempotence_key, String |
#metadata ⇒ Hash{Symbol=>String}?
Любые дополнительные данные, которые нужны вам для работы (например, номер заказа). Передаются в виде набора пар «ключ-значение» и возвращаются в ответе от ЮKassa. Ограничения: максимум 16 ключей, имя ключа не больше 32 символов, значение ключа не больше 512 символов, тип данных — строка в формате UTF-8.
46 |
# File 'lib/yoomoney/models/invoice_create_params.rb', line 46 optional :metadata, Yoomoney::Internal::Type::HashOf[String] |
#payment_data ⇒ Yoomoney::Models::InvoiceCreateParams::PaymentData?
Данные платежа.
52 |
# File 'lib/yoomoney/models/invoice_create_params.rb', line 52 optional :payment_data, -> { Yoomoney::InvoiceCreateParams::PaymentData } |
Class Method Details
.variants ⇒ Array(Yoomoney::Models::DeliveryMethodData, Yoomoney::Models::InvoiceCreateParams::DeliveryMethod::DeliveryMethodDataSMS, Yoomoney::Models::InvoiceCreateParams::DeliveryMethod::DeliveryMethodDataEmail)
|
|
# File 'lib/yoomoney/models/invoice_create_params.rb', line 106
|