Skip to content

Commit e25bbfe

Browse files
author
stlc-bot
committed
Add recommended actions to account API
Stainless-Generated-From: 18ed353
1 parent 68c1d3e commit e25bbfe

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

‎src/whop_sdk/types/account.py‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from .._models import BaseModel
77
from .account_social_link import AccountSocialLink
88

9-
__all__ = ["Account", "Balance", "Wallet"]
9+
__all__ = ["Account", "Balance", "RecommendedAction", "Wallet"]
1010

1111

1212
class Balance(BaseModel):
@@ -41,6 +41,19 @@ class Balance(BaseModel):
4141
"""The total USD value of the holding, or null when no exchange rate is available"""
4242

4343

44+
class RecommendedAction(BaseModel):
45+
"""Recommended actions to drive volume on the account"""
46+
47+
cta: str
48+
"""The URL the call-to-action links to"""
49+
50+
cta_label: str
51+
"""The label for the action's call-to-action button"""
52+
53+
title: str
54+
"""The headline describing the recommended action"""
55+
56+
4457
class Wallet(BaseModel):
4558
"""The account's primary crypto wallet, or null if none has been provisioned"""
4659

@@ -113,6 +126,8 @@ class Account(BaseModel):
113126
parent_account_id: Optional[str] = None
114127
"""The parent account ID for connected accounts"""
115128

129+
recommended_actions: List[RecommendedAction]
130+
116131
require_2fa: bool
117132
"""
118133
Whether the account requires authorized users to have two-factor authentication

0 commit comments

Comments
 (0)