Class: Yoomoney::Models::InvoiceCreateParams

Inherits:
Internal::Type::BaseModel show all
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

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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

Parameters:

  • email (String)

    Электронная почта для отправки ссылки на счет.



# File 'lib/yoomoney/models/invoice_create_params.rb', line 54

Instance Attribute Details

#cartArray<Yoomoney::Models::LineItem>

Корзина заказа — список товаров или услуг.

Returns:



14
# File 'lib/yoomoney/models/invoice_create_params.rb', line 14

required :cart, -> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::LineItem] }

#delivery_methodYoomoney::Models::DeliveryMethodData, ...

Способ доставки ссылки на счет.



20
# File 'lib/yoomoney/models/invoice_create_params.rb', line 20

required :delivery_method, union: -> { Yoomoney::InvoiceCreateParams::DeliveryMethod }

#descriptionString?

Описание заказа.

Returns:

  • (String, nil)


31
# File 'lib/yoomoney/models/invoice_create_params.rb', line 31

optional :description, String

#expires_atTime?

Срок действия счета.

Returns:

  • (Time, nil)


37
# File 'lib/yoomoney/models/invoice_create_params.rb', line 37

optional :expires_at, Time

#idempotence_keyString

Returns:

  • (String)


25
# File 'lib/yoomoney/models/invoice_create_params.rb', line 25

required :idempotence_key, String

#metadataHash{Symbol=>String}?

Любые дополнительные данные, которые нужны вам для работы (например, номер заказа). Передаются в виде набора пар «ключ-значение» и возвращаются в ответе от ЮKassa. Ограничения: максимум 16 ключей, имя ключа не больше 32 символов, значение ключа не больше 512 символов, тип данных — строка в формате UTF-8.

Returns:

  • (Hash{Symbol=>String}, nil)


46
# File 'lib/yoomoney/models/invoice_create_params.rb', line 46

optional :metadata, Yoomoney::Internal::Type::HashOf[String]

#payment_dataYoomoney::Models::InvoiceCreateParams::PaymentData?

Данные платежа.



52
# File 'lib/yoomoney/models/invoice_create_params.rb', line 52

optional :payment_data, -> { Yoomoney::InvoiceCreateParams::PaymentData }