Class: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/customer_retrieve_payment_methods_response.rb

Overview

See Also:

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_issuing_country: nil, card_network: nil, card_type: nil, expiry_month: nil, expiry_year: nil, last4_digits: nil) ⇒ Object

Parameters:

  • card_issuing_country (Symbol, Dodopayments::Models::CountryCode, nil) (defaults to: nil)

    ISO country code alpha2 variant

  • card_network (String, nil) (defaults to: nil)
  • card_type (String, nil) (defaults to: nil)
  • expiry_month (String, nil) (defaults to: nil)
  • expiry_year (String, nil) (defaults to: nil)
  • last4_digits (String, nil) (defaults to: nil)


# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 131

Instance Attribute Details

#card_issuing_countrySymbol, ...

ISO country code alpha2 variant

Returns:



104
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 104

optional :card_issuing_country, enum: -> { Dodopayments::CountryCode }, nil?: true

#card_networkString?

Returns:

  • (String, nil)


109
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 109

optional :card_network, String, nil?: true

#card_typeString?

Returns:

  • (String, nil)


114
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 114

optional :card_type, String, nil?: true

#expiry_monthString?

Returns:

  • (String, nil)


119
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 119

optional :expiry_month, String, nil?: true

#expiry_yearString?

Returns:

  • (String, nil)


124
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 124

optional :expiry_year, String, nil?: true

#last4_digitsString?

Returns:

  • (String, nil)


129
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 129

optional :last4_digits, String, nil?: true