Class: Yoomoney::Models::PayoutCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/yoomoney/models/payout_create_params.rb

Overview

Defined Under Namespace

Modules: PayoutDestinationData Classes: PersonalData

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(bank_id:, phone:) ⇒ Object

Parameters:

  • bank_id (String)

    Идентификатор банка.

  • phone (String)

    Номер телефона.



# File 'lib/yoomoney/models/payout_create_params.rb', line 67

Instance Attribute Details

#amountYoomoney::Models::MonetaryAmount

Сумма выплаты.



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

required :amount, -> { Yoomoney::MonetaryAmount }

#dealYoomoney::Models::PayoutDealInfo?

Данные о сделке.



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

optional :deal, -> { Yoomoney::PayoutDealInfo }

#descriptionString?

Описание выплаты.

Returns:

  • (String, nil)


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

optional :description, String

#idempotence_keyString

Returns:

  • (String)


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

required :idempotence_key, String

#metadataHash{Symbol=>String}?

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

Returns:

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


40
# File 'lib/yoomoney/models/payout_create_params.rb', line 40

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

#payment_method_idString?

Идентификатор сохраненного способа оплаты.

Returns:

  • (String, nil)


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

optional :payment_method_id, String

#payout_tokenString?

Токен для проведения выплаты.

Returns:

  • (String, nil)


58
# File 'lib/yoomoney/models/payout_create_params.rb', line 58

optional :payout_token, String

#personal_dataArray<Yoomoney::Models::PayoutCreateParams::PersonalData>?

Персональные данные получателя выплаты.



64
65
# File 'lib/yoomoney/models/payout_create_params.rb', line 64

optional :personal_data,
-> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::PayoutCreateParams::PersonalData] }