Class: WhopSDK::Models::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Primary

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

Overview

See Also:

  • WhopSDK::Models::Accounts::PreferenceUpdateParams::AdsPaymentMethods#primary

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

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

Parameters:



# File 'lib/whop_sdk/models/accounts/preference_update_params.rb', line 74

Instance Attribute Details

#idString?

The funding source ID: a Whop balance (ldgr_) for platform_balance, or a payment method (payt_) for card. Optional for platform_balance — defaults to the account's default Whop balance. Required for card.

Parameters:

  • (String)

Returns:

  • (String, nil)


72
# File 'lib/whop_sdk/models/accounts/preference_update_params.rb', line 72

optional :id, String

#typeSymbol, WhopSDK::Models::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Primary::Type

The funding source kind.

Parameters:

  • value (WhopSDK::Models::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Primary::type_)

Returns:



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

required :type, enum: -> { WhopSDK::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Primary::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


78
# File 'sig/whop_sdk/models/accounts/preference_update_params.rbs', line 78

def to_hash: -> {