Class: Yoomoney::Models::InvoiceCreateParams::PaymentData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/yoomoney/models/invoice_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::InvoiceCreateParams::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/invoice_create_params.rb', line 155

Instance Attribute Details

#amountYoomoney::Models::MonetaryAmount



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

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

#captureBoolean?

Returns:

  • (Boolean, nil)


119
# File 'lib/yoomoney/models/invoice_create_params.rb', line 119

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

#client_ipString?

Returns:

  • (String, nil)


124
# File 'lib/yoomoney/models/invoice_create_params.rb', line 124

optional :client_ip, String

#descriptionString?

Returns:

  • (String, nil)


129
# File 'lib/yoomoney/models/invoice_create_params.rb', line 129

optional :description, String

#metadataHash{Symbol=>String}?

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

Returns:

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


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

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

#receiptYoomoney::Models::ReceiptData?



143
# File 'lib/yoomoney/models/invoice_create_params.rb', line 143

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

#recipientYoomoney::Models::Recipient?

Returns:



148
# File 'lib/yoomoney/models/invoice_create_params.rb', line 148

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

#save_payment_methodBoolean?

Returns:

  • (Boolean, nil)


153
# File 'lib/yoomoney/models/invoice_create_params.rb', line 153

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