77import httpx
88
99from ..types import account_list_params , account_create_params , account_update_params
10- from .._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
10+ from .._types import Body , Omit , Query , Headers , NotGiven , SequenceNotStr , omit , not_given
1111from .._utils import path_template , maybe_transform , async_maybe_transform
1212from .._compat import cached_property
1313from .._resource import SyncAPIResource , AsyncAPIResource
@@ -132,17 +132,31 @@ def update(
132132 affiliate_instructions : Optional [str ] | Omit = omit ,
133133 banner_image : Optional [Dict [str , object ]] | Omit = omit ,
134134 business_type : Optional [str ] | Omit = omit ,
135+ country : Optional [str ] | Omit = omit ,
135136 description : Optional [str ] | Omit = omit ,
136137 featured_affiliate_product_id : Optional [str ] | Omit = omit ,
138+ home_preferences : SequenceNotStr [str ] | Omit = omit ,
137139 industry_group : Optional [str ] | Omit = omit ,
138140 industry_type : Optional [str ] | Omit = omit ,
141+ invoice_prefix : Optional [str ] | Omit = omit ,
139142 logo : Optional [Dict [str , object ]] | Omit = omit ,
140143 metadata : Dict [str , object ] | Omit = omit ,
144+ onboarding_type : Optional [str ] | Omit = omit ,
145+ opengraph_image : Optional [Dict [str , object ]] | Omit = omit ,
146+ opengraph_image_variant : Optional [str ] | Omit = omit ,
147+ other_business_description : Optional [str ] | Omit = omit ,
148+ other_industry_description : Optional [str ] | Omit = omit ,
149+ require_2fa : bool | Omit = omit ,
141150 route : Optional [str ] | Omit = omit ,
142151 send_customer_emails : bool | Omit = omit ,
152+ show_joined_whops : bool | Omit = omit ,
153+ show_reviews_dtc : bool | Omit = omit ,
154+ show_user_directory : bool | Omit = omit ,
143155 social_links : Iterable [Dict [str , object ]] | Omit = omit ,
156+ store_page_config : Optional [Dict [str , object ]] | Omit = omit ,
144157 target_audience : Optional [str ] | Omit = omit ,
145158 title : Optional [str ] | Omit = omit ,
159+ use_logo_as_opengraph_image_fallback : bool | Omit = omit ,
146160 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
147161 # The extra values given here take precedence over values defined on the client or passed to this method.
148162 extra_headers : Headers | None = None ,
@@ -165,28 +179,57 @@ def update(
165179
166180 business_type: The high-level business category for the account.
167181
182+ country: The country the account is located in.
183+
168184 description: A promotional description for the account.
169185
170186 featured_affiliate_product_id: The ID of the product to feature for affiliates. Pass null to clear.
171187
188+ home_preferences: Preferences for the public business home page.
189+
172190 industry_group: The industry group the account belongs to.
173191
174192 industry_type: The specific industry vertical the account operates in.
175193
194+ invoice_prefix: The prefix to use for account invoices.
195+
176196 logo: Attachment input for the account logo.
177197
178198 metadata: Arbitrary key/value metadata to store on the account.
179199
200+ onboarding_type: The type of onboarding the account has completed.
201+
202+ opengraph_image: Attachment input for the account Open Graph image.
203+
204+ opengraph_image_variant: The account Open Graph image variant.
205+
206+ other_business_description: The description of the business type when business_type is other.
207+
208+ other_industry_description: The description of the industry type when industry_type is other.
209+
210+ require_2fa: Whether the account requires authorized users to have two-factor authentication
211+ enabled.
212+
180213 route: The unique URL slug for the account.
181214
182215 send_customer_emails: Whether Whop sends transactional emails to customers on behalf of this account.
183216
217+ show_joined_whops: Whether the account appears in joined whops on other accounts.
218+
219+ show_reviews_dtc: Whether reviews are displayed on direct-to-consumer product pages.
220+
221+ show_user_directory: Whether the account shows users in the user directory.
222+
184223 social_links: The full list of social links to display for the account.
185224
225+ store_page_config: Store page display configuration for the account.
226+
186227 target_audience: The target audience for this account.
187228
188229 title: The display name of the account.
189230
231+ use_logo_as_opengraph_image_fallback: Whether the account uses its logo as the fallback Open Graph image.
232+
190233 extra_headers: Send extra headers
191234
192235 extra_query: Add additional query parameters to the request
@@ -205,17 +248,31 @@ def update(
205248 "affiliate_instructions" : affiliate_instructions ,
206249 "banner_image" : banner_image ,
207250 "business_type" : business_type ,
251+ "country" : country ,
208252 "description" : description ,
209253 "featured_affiliate_product_id" : featured_affiliate_product_id ,
254+ "home_preferences" : home_preferences ,
210255 "industry_group" : industry_group ,
211256 "industry_type" : industry_type ,
257+ "invoice_prefix" : invoice_prefix ,
212258 "logo" : logo ,
213259 "metadata" : metadata ,
260+ "onboarding_type" : onboarding_type ,
261+ "opengraph_image" : opengraph_image ,
262+ "opengraph_image_variant" : opengraph_image_variant ,
263+ "other_business_description" : other_business_description ,
264+ "other_industry_description" : other_industry_description ,
265+ "require_2fa" : require_2fa ,
214266 "route" : route ,
215267 "send_customer_emails" : send_customer_emails ,
268+ "show_joined_whops" : show_joined_whops ,
269+ "show_reviews_dtc" : show_reviews_dtc ,
270+ "show_user_directory" : show_user_directory ,
216271 "social_links" : social_links ,
272+ "store_page_config" : store_page_config ,
217273 "target_audience" : target_audience ,
218274 "title" : title ,
275+ "use_logo_as_opengraph_image_fallback" : use_logo_as_opengraph_image_fallback ,
219276 },
220277 account_update_params .AccountUpdateParams ,
221278 ),
@@ -406,17 +463,31 @@ async def update(
406463 affiliate_instructions : Optional [str ] | Omit = omit ,
407464 banner_image : Optional [Dict [str , object ]] | Omit = omit ,
408465 business_type : Optional [str ] | Omit = omit ,
466+ country : Optional [str ] | Omit = omit ,
409467 description : Optional [str ] | Omit = omit ,
410468 featured_affiliate_product_id : Optional [str ] | Omit = omit ,
469+ home_preferences : SequenceNotStr [str ] | Omit = omit ,
411470 industry_group : Optional [str ] | Omit = omit ,
412471 industry_type : Optional [str ] | Omit = omit ,
472+ invoice_prefix : Optional [str ] | Omit = omit ,
413473 logo : Optional [Dict [str , object ]] | Omit = omit ,
414474 metadata : Dict [str , object ] | Omit = omit ,
475+ onboarding_type : Optional [str ] | Omit = omit ,
476+ opengraph_image : Optional [Dict [str , object ]] | Omit = omit ,
477+ opengraph_image_variant : Optional [str ] | Omit = omit ,
478+ other_business_description : Optional [str ] | Omit = omit ,
479+ other_industry_description : Optional [str ] | Omit = omit ,
480+ require_2fa : bool | Omit = omit ,
415481 route : Optional [str ] | Omit = omit ,
416482 send_customer_emails : bool | Omit = omit ,
483+ show_joined_whops : bool | Omit = omit ,
484+ show_reviews_dtc : bool | Omit = omit ,
485+ show_user_directory : bool | Omit = omit ,
417486 social_links : Iterable [Dict [str , object ]] | Omit = omit ,
487+ store_page_config : Optional [Dict [str , object ]] | Omit = omit ,
418488 target_audience : Optional [str ] | Omit = omit ,
419489 title : Optional [str ] | Omit = omit ,
490+ use_logo_as_opengraph_image_fallback : bool | Omit = omit ,
420491 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
421492 # The extra values given here take precedence over values defined on the client or passed to this method.
422493 extra_headers : Headers | None = None ,
@@ -439,28 +510,57 @@ async def update(
439510
440511 business_type: The high-level business category for the account.
441512
513+ country: The country the account is located in.
514+
442515 description: A promotional description for the account.
443516
444517 featured_affiliate_product_id: The ID of the product to feature for affiliates. Pass null to clear.
445518
519+ home_preferences: Preferences for the public business home page.
520+
446521 industry_group: The industry group the account belongs to.
447522
448523 industry_type: The specific industry vertical the account operates in.
449524
525+ invoice_prefix: The prefix to use for account invoices.
526+
450527 logo: Attachment input for the account logo.
451528
452529 metadata: Arbitrary key/value metadata to store on the account.
453530
531+ onboarding_type: The type of onboarding the account has completed.
532+
533+ opengraph_image: Attachment input for the account Open Graph image.
534+
535+ opengraph_image_variant: The account Open Graph image variant.
536+
537+ other_business_description: The description of the business type when business_type is other.
538+
539+ other_industry_description: The description of the industry type when industry_type is other.
540+
541+ require_2fa: Whether the account requires authorized users to have two-factor authentication
542+ enabled.
543+
454544 route: The unique URL slug for the account.
455545
456546 send_customer_emails: Whether Whop sends transactional emails to customers on behalf of this account.
457547
548+ show_joined_whops: Whether the account appears in joined whops on other accounts.
549+
550+ show_reviews_dtc: Whether reviews are displayed on direct-to-consumer product pages.
551+
552+ show_user_directory: Whether the account shows users in the user directory.
553+
458554 social_links: The full list of social links to display for the account.
459555
556+ store_page_config: Store page display configuration for the account.
557+
460558 target_audience: The target audience for this account.
461559
462560 title: The display name of the account.
463561
562+ use_logo_as_opengraph_image_fallback: Whether the account uses its logo as the fallback Open Graph image.
563+
464564 extra_headers: Send extra headers
465565
466566 extra_query: Add additional query parameters to the request
@@ -479,17 +579,31 @@ async def update(
479579 "affiliate_instructions" : affiliate_instructions ,
480580 "banner_image" : banner_image ,
481581 "business_type" : business_type ,
582+ "country" : country ,
482583 "description" : description ,
483584 "featured_affiliate_product_id" : featured_affiliate_product_id ,
585+ "home_preferences" : home_preferences ,
484586 "industry_group" : industry_group ,
485587 "industry_type" : industry_type ,
588+ "invoice_prefix" : invoice_prefix ,
486589 "logo" : logo ,
487590 "metadata" : metadata ,
591+ "onboarding_type" : onboarding_type ,
592+ "opengraph_image" : opengraph_image ,
593+ "opengraph_image_variant" : opengraph_image_variant ,
594+ "other_business_description" : other_business_description ,
595+ "other_industry_description" : other_industry_description ,
596+ "require_2fa" : require_2fa ,
488597 "route" : route ,
489598 "send_customer_emails" : send_customer_emails ,
599+ "show_joined_whops" : show_joined_whops ,
600+ "show_reviews_dtc" : show_reviews_dtc ,
601+ "show_user_directory" : show_user_directory ,
490602 "social_links" : social_links ,
603+ "store_page_config" : store_page_config ,
491604 "target_audience" : target_audience ,
492605 "title" : title ,
606+ "use_logo_as_opengraph_image_fallback" : use_logo_as_opengraph_image_fallback ,
493607 },
494608 account_update_params .AccountUpdateParams ,
495609 ),
0 commit comments