Class: Yoomoney::Models::CardRequestDataWithCsc

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/yoomoney/models/card_request_data_with_csc.rb,
sig/yoomoney/models/card_request_data_with_csc.rbs

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(expiry_month:, expiry_year:, number:, cardholder: nil, csc: nil) ⇒ Object

Parameters:

  • expiry_month (String) —

    Срок действия, месяц. Формат: MM.

  • expiry_year (String) —

    Срок действия, год. Формат: YYYY.

  • number (String) —

    Номер банковской карты.

  • cardholder (String) (defaults to: nil) —

    Имя владельца карты.

  • csc (String) (defaults to: nil) —

    Код CVC2 или CVV2, 3 или 4 символа, печатается на обратной стороне карты.



# File 'lib/yoomoney/models/card_request_data_with_csc.rb', line 36

Instance Attribute Details

#cardholder ⇒ String?

Имя владельца карты.

Parameters:

  • (String)

Returns:

  • (String, nil)


28
# File 'lib/yoomoney/models/card_request_data_with_csc.rb', line 28

optional :cardholder, String

#csc ⇒ String?

Код CVC2 или CVV2, 3 или 4 символа, печатается на обратной стороне карты.

Parameters:

  • (String)

Returns:

  • (String, nil)


34
# File 'lib/yoomoney/models/card_request_data_with_csc.rb', line 34

optional :csc, String

#expiry_month ⇒ String

Срок действия, месяц. Формат: MM.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/yoomoney/models/card_request_data_with_csc.rb', line 10

required :expiry_month, String

#expiry_year ⇒ String

Срок действия, год. Формат: YYYY.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/yoomoney/models/card_request_data_with_csc.rb', line 16

required :expiry_year, String

#number ⇒ String

Номер банковской карты.

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/yoomoney/models/card_request_data_with_csc.rb', line 22

required :number, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


35
# File 'sig/yoomoney/models/card_request_data_with_csc.rbs', line 35

def to_hash: -> {