Class: WhopSDK::Models::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Backup
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Backup
- Defined in:
- lib/whop_sdk/models/accounts/preference_update_params.rb,
sig/whop_sdk/models/accounts/preference_update_params.rbs
Overview
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#id ⇒ String?
The funding source ID: a Whop balance (
ldgr_) forplatform_balance, or a payment method (payt_) forcard. -
#type ⇒ Symbol, WhopSDK::Models::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Backup::Type
The funding source kind.
Instance Method Summary collapse
-
#initialize(type:, id: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Backup for more details.
- #to_hash ⇒ {
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::Backup for more details.
Optional when the primary is platform_balance; omitting it removes any
configured card. Required (as platform_balance) when the primary is card.
|
|
# File 'lib/whop_sdk/models/accounts/preference_update_params.rb', line 113
|
Instance Attribute Details
#id ⇒ String?
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.
111 |
# File 'lib/whop_sdk/models/accounts/preference_update_params.rb', line 111 optional :id, String |
#type ⇒ Symbol, WhopSDK::Models::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Backup::Type
The funding source kind.
103 |
# File 'lib/whop_sdk/models/accounts/preference_update_params.rb', line 103 required :type, enum: -> { WhopSDK::Accounts::PreferenceUpdateParams::AdsPaymentMethods::Backup::Type } |
Instance Method Details
#to_hash ⇒ {
113 |
# File 'sig/whop_sdk/models/accounts/preference_update_params.rbs', line 113
def to_hash: -> {
|