Class: WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod::Card

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

Overview

See Also:

  • WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod#card

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

#initializeObject



99
# File 'sig/whop_sdk/models/payment_method_retrieve_response.rbs', line 99

def initialize: (

Instance Attribute Details

#brandSymbol, ...

Possible card brands that a payment token can have

Parameters:

  • value (WhopSDK::Models::card_brands, nil)

Returns:



140
# File 'lib/whop_sdk/models/payment_method_retrieve_response.rb', line 140

required :brand, enum: -> { WhopSDK::CardBrands }, nil?: true

#exp_monthInteger?

The two-digit expiration month of the card (1-12). Null if not available.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


146
# File 'lib/whop_sdk/models/payment_method_retrieve_response.rb', line 146

required :exp_month, Integer, nil?: true

#exp_yearInteger?

The two-digit expiration year of the card (e.g., 27 for 2027). Null if not available.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


153
# File 'lib/whop_sdk/models/payment_method_retrieve_response.rb', line 153

required :exp_year, Integer, nil?: true

#last4String?

The last four digits of the card number. Null if not available.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


159
# File 'lib/whop_sdk/models/payment_method_retrieve_response.rb', line 159

required :last4, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


106
# File 'sig/whop_sdk/models/payment_method_retrieve_response.rbs', line 106

def to_hash: -> {