Class: WhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Backup

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

Overview

See Also:

  • WhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods#backup

Defined Under Namespace

Modules: Type

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(id:, type:) ⇒ Object

Some parameter documentations has been truncated, see WhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Backup for more details.

Parameters:



# File 'lib/whop_sdk/models/accounts/preference_retrieve_response.rb', line 64

Instance Attribute Details

#idString

The funding source ID: a Whop balance (ldgr_) for platform_balance, or a payment method (payt_) for card.

Parameters:

  • value (String)

Returns:

  • (String)


55
# File 'lib/whop_sdk/models/accounts/preference_retrieve_response.rb', line 55

required :id, String

#typeSymbol, WhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Backup::Type

The funding source kind: a Whop balance or a saved card.

Parameters:

  • value (WhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Backup::type_)

Returns:



61
62
# File 'lib/whop_sdk/models/accounts/preference_retrieve_response.rb', line 61

required :type,
enum: -> { WhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Backup::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


57
# File 'sig/whop_sdk/models/accounts/preference_retrieve_response.rbs', line 57

def to_hash: -> {