Class: Yoomoney::Models::PersonalDataRequest

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/yoomoney/models/personal_data_request.rb

Instance Attribute Summary collapse

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

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

Parameters:

  • type (Symbol, Yoomoney::Models::PersonalDataType)

    Тип персональных данных.

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

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



# File 'lib/yoomoney/models/personal_data_request.rb', line 21

Instance Attribute Details

#metadataHash{Symbol=>String}?

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

Returns:

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


19
# File 'lib/yoomoney/models/personal_data_request.rb', line 19

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

#typeSymbol, Yoomoney::Models::PersonalDataType

Тип персональных данных.



10
# File 'lib/yoomoney/models/personal_data_request.rb', line 10

required :type, enum: -> { Yoomoney::PersonalDataType }