Class: CloudpaymentsRuby::Models::PaymentChargeParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/cloudpayments_ruby/models/payment_charge_params.rb,
sig/cloudpayments_ruby/models/payment_charge_params.rbs

Overview

See Also:

  • CloudpaymentsRuby::Resources::Payments#charge

Defined Under Namespace

Classes: Payer

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::CloudpaymentsRuby

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 ⇒ Object



78
# File 'sig/cloudpayments_ruby/models/payment_charge_params.rbs', line 78

def initialize: (

Instance Attribute Details

#account_id ⇒ String?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


32
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 32

optional :account_id, String, api_name: :AccountId

#amount ⇒ Float

Сумма платежа (до 2 знаков после точки)

Parameters:

  • value (Float)

Returns:

  • (Float)


14
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 14

required :amount, Float, api_name: :Amount

#card_cryptogram_packet ⇒ String

Криптограмма платежных данных

Parameters:

  • value (String)

Returns:

  • (String)


20
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 20

required :card_cryptogram_packet, String, api_name: :CardCryptogramPacket

#culture_name ⇒ String?

Язык уведомлений (ru-RU, en-US)

Parameters:

  • (String)

Returns:

  • (String, nil)


38
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 38

optional :culture_name, String, api_name: :CultureName

#currency ⇒ String?

Валюта (RUB по умолчанию)

Parameters:

  • (String)

Returns:

  • (String, nil)


44
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 44

optional :currency, String, api_name: :Currency

#description ⇒ String?

Описание платежа

Parameters:

  • (String)

Returns:

  • (String, nil)


50
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 50

optional :description, String, api_name: :Description

#email ⇒ String?

Email плательщика

Parameters:

  • (String)

Returns:

  • (String, nil)


56
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 56

optional :email, String, api_name: :Email

#invoice_id ⇒ String?

Номер заказа

Parameters:

  • (String)

Returns:

  • (String, nil)


62
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 62

optional :invoice_id, String, api_name: :InvoiceId

#ip_address ⇒ String

IP-адрес плательщика

Parameters:

  • value (String)

Returns:

  • (String)


26
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 26

required :ip_address, String, api_name: :IpAddress

#json_data ⇒ Object?

Дополнительные данные (JSON)

Parameters:

  • (top)

Returns:

  • (Object, nil)


68
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 68

optional :json_data, CloudpaymentsRuby::Internal::Type::Unknown, api_name: :JsonData

#name ⇒ String?

Имя держателя карты (латиница)

Parameters:

  • (String)

Returns:

  • (String, nil)


74
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 74

optional :name, String, api_name: :Name

#payer ⇒ CloudpaymentsRuby::Models::PaymentChargeParams::Payer?

Информация о плательщике



80
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 80

optional :payer, -> { CloudpaymentsRuby::PaymentChargeParams::Payer }, api_name: :Payer

#payment_url ⇒ String?

URL сайта, с которого выполняется оплата

Parameters:

  • (String)

Returns:

  • (String, nil)


86
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 86

optional :payment_url, String, api_name: :PaymentUrl

#save_card ⇒ Boolean?

Сохранить токен карты для повторных платежей

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


92
# File 'lib/cloudpayments_ruby/models/payment_charge_params.rb', line 92

optional :save_card, CloudpaymentsRuby::Internal::Type::Boolean, api_name: :SaveCard

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


96
# File 'sig/cloudpayments_ruby/models/payment_charge_params.rbs', line 96

def to_hash: -> {