Class: WhopSDK::Models::Accounts::PreferenceUpdateResponse::AdsPaymentMethods
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::Accounts::PreferenceUpdateResponse::AdsPaymentMethods
- Defined in:
- lib/whop_sdk/models/accounts/preference_update_response.rb,
sig/whop_sdk/models/accounts/preference_update_response.rbs
Overview
Defined Under Namespace
Instance Attribute Summary collapse
- #backup ⇒ WhopSDK::Models::Accounts::PreferenceUpdateResponse::AdsPaymentMethods::Backup?
- #primary ⇒ WhopSDK::Models::Accounts::PreferenceUpdateResponse::AdsPaymentMethods::Primary?
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(backup:, primary:) ⇒ Object
constructor
How the account pays for Whop Ads spend.
- #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(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_update_response.rb', line 40
|
Instance Attribute Details
#backup ⇒ WhopSDK::Models::Accounts::PreferenceUpdateResponse::AdsPaymentMethods::Backup?
29 30 31 |
# File 'lib/whop_sdk/models/accounts/preference_update_response.rb', line 29 required :backup, -> { WhopSDK::Models::Accounts::PreferenceUpdateResponse::AdsPaymentMethods::Backup }, nil?: true |
#primary ⇒ WhopSDK::Models::Accounts::PreferenceUpdateResponse::AdsPaymentMethods::Primary?
36 37 38 |
# File 'lib/whop_sdk/models/accounts/preference_update_response.rb', line 36 required :primary, -> { WhopSDK::Models::Accounts::PreferenceUpdateResponse::AdsPaymentMethods::Primary }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/whop_sdk/models/accounts/preference_update_response.rb', line 82
|
Instance Method Details
#to_hash ⇒ {
36 |
# File 'sig/whop_sdk/models/accounts/preference_update_response.rbs', line 36
def to_hash: -> {
|