Class: Yoomoney::Models::PaymentCreateParams::Transfer

Inherits:
TransferData show all
Defined in:
lib/yoomoney/models/payment_create_params.rb

Instance Attribute Summary collapse

Attributes inherited from TransferData

#account_id, #amount, #platform_fee_amount

Instance Method Summary collapse

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(description: nil, metadata: nil) ⇒ Object

Some parameter documentations has been truncated, see Yoomoney::Models::PaymentCreateParams::Transfer for more details.

Parameters:

  • description (String) (defaults to: nil)

    Описание транзакции.

  • metadata (Hash{Symbol=>String}) (defaults to: nil)

    Любые дополнительные данные, которые нужны вам для работы (например, номер заказ



# File 'lib/yoomoney/models/payment_create_params.rb', line 576

Instance Attribute Details

#descriptionString?

Описание транзакции.

Returns:

  • (String, nil)


565
# File 'lib/yoomoney/models/payment_create_params.rb', line 565

optional :description, String

#metadataHash{Symbol=>String}?

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

Returns:

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


574
# File 'lib/yoomoney/models/payment_create_params.rb', line 574

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