Class: WhopSDK::Models::AccountUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/whop_sdk/models/account_update_params.rb,
sig/whop_sdk/models/account_update_params.rbs

Overview

See Also:

  • WhopSDK::Resources::Accounts#update

Defined Under Namespace

Modules: TaxRemittedBy Classes: BusinessAddress, TaxIdentifier

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) ⇒ Object

Account business address used to calculate tax. A complete address in a supported country is required when tax_remitted_by is self.

Parameters:

  • city (String, nil) (defaults to: nil)

    City name.

  • country (String) (defaults to: nil)

    Two-letter ISO 3166-1 country code, for example US, DE, or GB.

  • line1 (String) (defaults to: nil)

    First line of the street address.

  • line2 (String, nil) (defaults to: nil)

    Second line of the street address.

  • postal_code (String, nil) (defaults to: nil)

    Postal or ZIP code.

  • state (String, nil) (defaults to: nil)

    State, province, or region code, for example CA.



# File 'lib/whop_sdk/models/account_update_params.rb', line 338

Instance Attribute Details

#account_idString

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/whop_sdk/models/account_update_params.rb', line 13

required :account_id, String

#affiliate_application_requiredBoolean?

Whether prospective affiliates must submit an application before promoting this account.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


20
# File 'lib/whop_sdk/models/account_update_params.rb', line 20

optional :affiliate_application_required, WhopSDK::Internal::Type::Boolean

#affiliate_instructionsString?

Guidelines shown to affiliates promoting this account.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


26
# File 'lib/whop_sdk/models/account_update_params.rb', line 26

optional :affiliate_instructions, String, nil?: true

Attachment input for the account banner image.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


32
# File 'lib/whop_sdk/models/account_update_params.rb', line 32

optional :banner_image, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true

#business_addressWhopSDK::Models::AccountUpdateParams::BusinessAddress?

Account business address used to calculate tax. A complete address in a supported country is required when tax_remitted_by is self.



39
# File 'lib/whop_sdk/models/account_update_params.rb', line 39

optional :business_address, -> { WhopSDK::AccountUpdateParams::BusinessAddress }

#business_typeString?

High-level business category for the account.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


45
# File 'lib/whop_sdk/models/account_update_params.rb', line 45

optional :business_type, String, nil?: true

#countryString?

Country where the account is located.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


51
# File 'lib/whop_sdk/models/account_update_params.rb', line 51

optional :country, String, nil?: true

#descriptionString?

Account promotional description.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


57
# File 'lib/whop_sdk/models/account_update_params.rb', line 57

optional :description, String, nil?: true

The ID of the product to feature for affiliates. Pass null to clear.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


63
# File 'lib/whop_sdk/models/account_update_params.rb', line 63

optional :featured_affiliate_product_id, String, nil?: true

#home_preferencesArray<String>?

Public account home page preferences.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


69
# File 'lib/whop_sdk/models/account_update_params.rb', line 69

optional :home_preferences, WhopSDK::Internal::Type::ArrayOf[String]

#industry_groupString?

Account industry group.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


75
# File 'lib/whop_sdk/models/account_update_params.rb', line 75

optional :industry_group, String, nil?: true

#industry_typeString?

Specific industry vertical for the account.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


81
# File 'lib/whop_sdk/models/account_update_params.rb', line 81

optional :industry_type, String, nil?: true

#invoice_prefixString?

Prefix used for account invoices.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


87
# File 'lib/whop_sdk/models/account_update_params.rb', line 87

optional :invoice_prefix, String, nil?: true

#logoHash{Symbol=>Object}?

Attachment input for the account logo.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


93
# File 'lib/whop_sdk/models/account_update_params.rb', line 93

optional :logo, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true

#metadataHash{Symbol=>Object}?

Arbitrary key/value metadata to store on the account.

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


99
# File 'lib/whop_sdk/models/account_update_params.rb', line 99

optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]

#onboarding_typeString?

The type of onboarding the account has completed.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


105
# File 'lib/whop_sdk/models/account_update_params.rb', line 105

optional :onboarding_type, String, nil?: true

#opengraph_imageHash{Symbol=>Object}?

Attachment input for the account Open Graph image.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


111
# File 'lib/whop_sdk/models/account_update_params.rb', line 111

optional :opengraph_image, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true

#opengraph_image_variantString?

The account Open Graph image variant.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


117
# File 'lib/whop_sdk/models/account_update_params.rb', line 117

optional :opengraph_image_variant, String, nil?: true

#other_business_descriptionString?

The description of the business type when business_type is other.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


123
# File 'lib/whop_sdk/models/account_update_params.rb', line 123

optional :other_business_description, String, nil?: true

#other_industry_descriptionString?

The description of the industry type when industry_type is other.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


129
# File 'lib/whop_sdk/models/account_update_params.rb', line 129

optional :other_industry_description, String, nil?: true

#product_tax_code_idString?

ID of the tax classification code applied by default to the account's products. See the available product categories.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


137
# File 'lib/whop_sdk/models/account_update_params.rb', line 137

optional :product_tax_code_id, String, nil?: true

#require_2faBoolean?

Whether the account requires authorized users to have two-factor authentication enabled.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


144
# File 'lib/whop_sdk/models/account_update_params.rb', line 144

optional :require_2fa, WhopSDK::Internal::Type::Boolean

#routeString?

The unique URL slug for the account.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


150
# File 'lib/whop_sdk/models/account_update_params.rb', line 150

optional :route, String, nil?: true

#send_customer_emailsBoolean?

Whether Whop sends transactional emails to customers on behalf of this account.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


156
# File 'lib/whop_sdk/models/account_update_params.rb', line 156

optional :send_customer_emails, WhopSDK::Internal::Type::Boolean

#show_joined_whopsBoolean?

Whether the account appears in joined whops on other accounts.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


162
# File 'lib/whop_sdk/models/account_update_params.rb', line 162

optional :show_joined_whops, WhopSDK::Internal::Type::Boolean

#show_reviews_dtcBoolean?

Whether reviews are displayed on direct-to-consumer product pages.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


168
# File 'lib/whop_sdk/models/account_update_params.rb', line 168

optional :show_reviews_dtc, WhopSDK::Internal::Type::Boolean

#show_user_directoryBoolean?

Whether the account shows users in the user directory.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


174
# File 'lib/whop_sdk/models/account_update_params.rb', line 174

optional :show_user_directory, WhopSDK::Internal::Type::Boolean

The full list of social links to display for the account.

Returns:

  • (Array<Hash{Symbol=>Object}>, nil)


180
181
# File 'lib/whop_sdk/models/account_update_params.rb', line 180

optional :social_links,
WhopSDK::Internal::Type::ArrayOf[WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]]

#store_page_configHash{Symbol=>Object}?

Account store page display configuration.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


187
188
189
# File 'lib/whop_sdk/models/account_update_params.rb', line 187

optional :store_page_config,
WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown],
nil?: true

#target_audienceString?

The target audience for this account.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


195
# File 'lib/whop_sdk/models/account_update_params.rb', line 195

optional :target_audience, String, nil?: true

#tax_identifiersArray<WhopSDK::Models::AccountUpdateParams::TaxIdentifier>?

Account tax/VAT registrations to add or update. When tax_remitted_by is self, tax is calculated and collected only in the countries where the account holds a registration.



203
204
# File 'lib/whop_sdk/models/account_update_params.rb', line 203

optional :tax_identifiers,
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::AccountUpdateParams::TaxIdentifier] }

#tax_remitted_bySymbol, ...

Who calculates and remits tax for the account: whop (Whop calculates and remits), self (Whop calculates; the account collects and remits), or none (neither; the account is responsible). self requires a business_address in a supported country.



213
# File 'lib/whop_sdk/models/account_update_params.rb', line 213

optional :tax_remitted_by, enum: -> { WhopSDK::AccountUpdateParams::TaxRemittedBy }

#titleString?

The display name of the account.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


219
# File 'lib/whop_sdk/models/account_update_params.rb', line 219

optional :title, String, nil?: true

#use_logo_as_opengraph_image_fallbackBoolean?

Whether the account uses its logo as the fallback Open Graph image.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


225
# File 'lib/whop_sdk/models/account_update_params.rb', line 225

optional :use_logo_as_opengraph_image_fallback, WhopSDK::Internal::Type::Boolean

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/account_update_params.rb', line 491

Instance Method Details

#to_hash{

Returns:

  • ({)


186
# File 'sig/whop_sdk/models/account_update_params.rbs', line 186

def to_hash: -> {