Class: CloudpaymentsRuby::Models::Payments::TokenChargeParams

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

Overview

See Also:

  • CloudpaymentsRuby::Resources::Payments::Tokens#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



67
# File 'sig/cloudpayments_ruby/models/payments/token_charge_params.rbs', line 67

def initialize: (

Instance Attribute Details

#account_id ⇒ String

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

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 15

required :account_id, String, api_name: :AccountId

#amount ⇒ Float

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

Parameters:

  • value (Float)

Returns:

  • (Float)


21
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 21

required :amount, Float, api_name: :Amount

#currency ⇒ String?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


39
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 39

optional :currency, String, api_name: :Currency

#description ⇒ String?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


45
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 45

optional :description, String, api_name: :Description

#email ⇒ String?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


51
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 51

optional :email, String, api_name: :Email

#invoice_id ⇒ String?

Номер заказа

Parameters:

  • (String)

Returns:

  • (String, nil)


57
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 57

optional :invoice_id, String, api_name: :InvoiceId

#ip_address ⇒ String?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


63
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 63

optional :ip_address, String, api_name: :IpAddress

#json_data ⇒ Object?

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

Parameters:

  • (top)

Returns:

  • (Object, nil)


69
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 69

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

#payer ⇒ CloudpaymentsRuby::Models::Payments::TokenChargeParams::Payer?

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



75
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 75

optional :payer, -> { CloudpaymentsRuby::Payments::TokenChargeParams::Payer }, api_name: :Payer

#payment_scheduled ⇒ Integer?

Признак регулярного платежа: 0 — нет, 1 — да

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


81
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 81

optional :payment_scheduled, Integer, api_name: :PaymentScheduled

#token ⇒ String

Токен карты

Parameters:

  • value (String)

Returns:

  • (String)


27
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 27

required :token, String, api_name: :Token

#tr_initiator_code ⇒ Integer

Признак инициатора транзакции: 0 — мерчант, 1 — держатель карты

Parameters:

  • value (Integer)

Returns:

  • (Integer)


33
# File 'lib/cloudpayments_ruby/models/payments/token_charge_params.rb', line 33

required :tr_initiator_code, Integer, api_name: :TrInitiatorCode

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


83
# File 'sig/cloudpayments_ruby/models/payments/token_charge_params.rbs', line 83

def to_hash: -> {