Class: Yoomoney::Models::PaymentMethodCreateParams::PaymentData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/yoomoney/models/payment_method_create_params.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(amount:, capture: nil, client_ip: nil, description: nil, metadata: nil, receipt: nil, recipient: nil, save_payment_method: nil) ⇒ Object

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

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

Parameters:

  • amount (Yoomoney::Models::MonetaryAmount)
  • capture (Boolean) (defaults to: nil)
  • client_ip (String) (defaults to: nil)
  • description (String) (defaults to: nil)
  • metadata (Hash{Symbol=>String}) (defaults to: nil)

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

  • receipt (Yoomoney::Models::ReceiptData) (defaults to: nil)
  • recipient (Yoomoney::Models::Recipient) (defaults to: nil)
  • save_payment_method (Boolean) (defaults to: nil)


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

Instance Attribute Details

#amountYoomoney::Models::MonetaryAmount



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

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

#captureBoolean?

Returns:

  • (Boolean, nil)


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

optional :capture, Yoomoney::Internal::Type::Boolean

#client_ipString?

Returns:

  • (String, nil)


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

optional :client_ip, String

#descriptionString?

Returns:

  • (String, nil)


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

optional :description, String

#metadataHash{Symbol=>String}?

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

Returns:

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


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

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

#receiptYoomoney::Models::ReceiptData?



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

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

#recipientYoomoney::Models::Recipient?

Returns:



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

optional :recipient, -> { Yoomoney::Recipient }

#save_payment_methodBoolean?

Returns:

  • (Boolean, nil)


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

optional :save_payment_method, Yoomoney::Internal::Type::Boolean