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,
sig/yoomoney/models/payment_method_create_params.rbs

Overview

See Also:

  • Yoomoney::Resources::PaymentMethods#create

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_key ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :idempotence_key, String

#payment_data ⇒ Yoomoney::Models::PaymentMethodCreateParams::PaymentData?

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



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

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

#payment_method_data ⇒ Yoomoney::Models::PaymentMethodCreateParams::PaymentMethodData

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

Parameters:

  • value (Yoomoney::PaymentMethodCreateParams::PaymentMethodData)

Returns:



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

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

#receipt ⇒ Yoomoney::Models::ReceiptData?

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



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

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

#type ⇒ Symbol, Yoomoney::Models::PaymentMethodCreateParams::Type

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

Parameters:

  • value (Yoomoney::Models::PaymentMethodCreateParams::type_)

Returns:



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

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

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


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

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


42
# File 'sig/yoomoney/models/payment_method_create_params.rbs', line 42

def to_hash: -> {