Class: Yoomoney::Models::RefundCreateParams

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

Overview

Defined Under Namespace

Classes: Deal, RefundMethodData

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

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



# File 'lib/yoomoney/models/refund_create_params.rb', line 114

Instance Attribute Details

#amountYoomoney::Models::MonetaryAmount

Сумма возврата.



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

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

#dealYoomoney::Models::RefundCreateParams::Deal?

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



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

optional :deal, -> { Yoomoney::RefundCreateParams::Deal }

#descriptionString?

Описание возврата.

Returns:

  • (String, nil)


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

optional :description, String

#idempotence_keyString

Returns:

  • (String)


25
# File 'lib/yoomoney/models/refund_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/refund_create_params.rb', line 46

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

#payment_idString

Идентификатор платежа для возврата.

Returns:

  • (String)


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

required :payment_id, String

#receiptYoomoney::Models::ReceiptData?

Данные для формирования чека.



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

optional :receipt, -> { Yoomoney::ReceiptData }

#refund_method_dataYoomoney::Models::RefundCreateParams::RefundMethodData?

Данные о способе возврата.



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

optional :refund_method_data, -> { Yoomoney::RefundCreateParams::RefundMethodData }

#sourcesArray<Yoomoney::Models::RefundSourcesData>?

Источники для возврата.

Returns:



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

optional :sources, -> { Yoomoney::Internal::Type::ArrayOf[Yoomoney::RefundSourcesData] }