Class: WhopSDK::Models::SetupIntent::PaymentMethod::Card

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

Overview

See Also:

  • WhopSDK::Models::SetupIntent::PaymentMethod#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



182
# File 'sig/whop_sdk/models/setup_intent.rbs', line 182

def initialize: (

Instance Attribute Details

#brandSymbol, ...

Possible card brands that a payment token can have

Parameters:

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

Returns:



247
# File 'lib/whop_sdk/models/setup_intent.rb', line 247

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)


253
# File 'lib/whop_sdk/models/setup_intent.rb', line 253

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)


260
# File 'lib/whop_sdk/models/setup_intent.rb', line 260

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)


266
# File 'lib/whop_sdk/models/setup_intent.rb', line 266

required :last4, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


189
# File 'sig/whop_sdk/models/setup_intent.rbs', line 189

def to_hash: -> {