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

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

Overview

See Also:

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from WhopSDK::Internal::Type::BaseModel

Instance Attribute Details

#brandSymbol, ...

Possible card brands that a payment token can have

Returns:



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

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

#exp_monthInteger?

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

Returns:

  • (Integer, nil)


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

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.

Returns:

  • (Integer, nil)


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

required :exp_year, Integer, nil?: true

#last4String?

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

Returns:

  • (String, nil)


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

required :last4, String, nil?: true