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

Parameters:

  • card_holder_name (String, nil) (defaults to: nil)
  • 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 132

Instance Attribute Details

#card_holder_nameString?

Returns:

  • (String, nil)


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

optional :card_holder_name, String, nil?: true

#card_issuing_countrySymbol, ...

ISO country code alpha2 variant

Returns:



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

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

#card_networkString?

Returns:

  • (String, nil)


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

optional :card_network, String, nil?: true

#card_typeString?

Returns:

  • (String, nil)


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

optional :card_type, String, nil?: true

#expiry_monthString?

Returns:

  • (String, nil)


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

optional :expiry_month, String, nil?: true

#expiry_yearString?

Returns:

  • (String, nil)


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

optional :expiry_year, String, nil?: true

#last4_digitsString?

Returns:

  • (String, nil)


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

optional :last4_digits, String, nil?: true