Class: Yoomoney::Models::PaymentMethodCreateParams

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

Overview

Defined Under Namespace

Modules: Type Classes: PaymentData, PaymentMethodData

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

Parameters:



# File 'lib/yoomoney/models/payment_method_create_params.rb', line 103

Instance Attribute Details

#idempotence_keyString

Returns:

  • (String)


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

required :idempotence_key, String

#payment_dataYoomoney::Models::PaymentMethodCreateParams::PaymentData?

Данные платежа, который будет создан после сохранения способа оплаты.



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

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

#payment_method_dataYoomoney::Models::PaymentMethodCreateParams::PaymentMethodData

Данные для проверки и сохранения способа оплаты.



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

required :payment_method_data, -> { Yoomoney::PaymentMethodCreateParams::PaymentMethodData }

#receiptYoomoney::Models::ReceiptData?

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



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

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

#typeSymbol, Yoomoney::Models::PaymentMethodCreateParams::Type

Тип способа оплаты.



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

required :type, enum: -> { Yoomoney::PaymentMethodCreateParams::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/yoomoney/models/payment_method_create_params.rb', line 115