Class: Yoomoney::Models::Payout::PayoutDestination::PayoutToCardDestination::Card

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/yoomoney/models/payout.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(card: nil) ⇒ Object



139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/yoomoney/models/payout.rb', line 139

class Card < Yoomoney::Internal::Type::BaseModel
  # @!attribute card_type
  #
  #   @return [Symbol, Yoomoney::Models::BankCardType]
  required :card_type, enum: -> { Yoomoney::BankCardType }

  # @!attribute first6
  #
  #   @return [String]
  required :first6, String

  # @!attribute last4
  #
  #   @return [String]
  required :last4, String

  # @!attribute issuer_country
  #
  #   @return [String, nil]
  optional :issuer_country, String

  # @!attribute issuer_name
  #
  #   @return [String, nil]
  optional :issuer_name, String

  # @!method initialize(card_type:, first6:, last4:, issuer_country: nil, issuer_name: nil)
  #   @param card_type [Symbol, Yoomoney::Models::BankCardType]
  #   @param first6 [String]
  #   @param last4 [String]
  #   @param issuer_country [String]
  #   @param issuer_name [String]
end

Instance Attribute Details

#card_typeSymbol, Yoomoney::Models::BankCardType

Returns:



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

required :card_type, enum: -> { Yoomoney::BankCardType }

#first6String

Returns:

  • (String)


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

required :first6, String

#issuer_countryString?

Returns:

  • (String, nil)


158
# File 'lib/yoomoney/models/payout.rb', line 158

optional :issuer_country, String

#issuer_nameString?

Returns:

  • (String, nil)


163
# File 'lib/yoomoney/models/payout.rb', line 163

optional :issuer_name, String

#last4String

Returns:

  • (String)


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

required :last4, String