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

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#ads_payment_methods

Defined Under Namespace

Classes: Backup, Primary

Instance Attribute Summary collapse

Class Method 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(backup:, primary:) ⇒ Object

How the account pays for Whop Ads spend. primary is charged first; backup covers the charge when the primary fails. null until ads billing has been configured.



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

Instance Attribute Details

#backupWhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Backup?



29
30
31
# File 'lib/whop_sdk/models/accounts/preference_retrieve_response.rb', line 29

required :backup,
-> { WhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Backup },
nil?: true

#primaryWhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Primary?



36
37
38
# File 'lib/whop_sdk/models/accounts/preference_retrieve_response.rb', line 36

required :primary,
-> { WhopSDK::Models::Accounts::PreferenceRetrieveResponse::AdsPaymentMethods::Primary },
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {