You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/whop_sdk/types/affiliate.py
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ class User(BaseModel):
39
39
40
40
41
41
classAffiliate(BaseModel):
42
-
"""An affiliate of a company or a global affiliate"""
42
+
"""
43
+
An affiliate tracks a user's referral performance and commission earnings for a company, including retention rates, revenue metrics, and payout configurations.
44
+
"""
43
45
44
46
id: str
45
47
"""The unique identifier for the affiliate."""
@@ -54,13 +56,16 @@ class Affiliate(BaseModel):
54
56
"""The datetime the affiliate was created."""
55
57
56
58
customer_retention_rate: str
57
-
"""How many referrals have remained since they joined as members"""
59
+
"""The percentage of referred customers who are still active members"""
58
60
59
61
customer_retention_rate_ninety_days: str
60
-
"""A rolling 90-day retention rate for this affiliate"""
62
+
"""The percentage of referred customers who remained active over the last 90 days"""
61
63
62
64
monthly_recurring_revenue_usd: str
63
-
"""The total MRR of the affiliate"""
65
+
"""
66
+
The monthly recurring revenue generated by this affiliate's referrals, formatted
67
+
as a USD currency string
68
+
"""
64
69
65
70
status: Optional[Status] =None
66
71
"""Statuses for resources"""
@@ -69,13 +74,19 @@ class Affiliate(BaseModel):
69
74
"""The total count of all overrides for this affiliate"""
70
75
71
76
total_referral_earnings_usd: str
72
-
"""The total earnings of the affiliate from the users they referred"""
77
+
"""
78
+
The total commission earnings paid to this affiliate, formatted as a USD
79
+
currency string
80
+
"""
73
81
74
82
total_referrals_count: int
75
83
"""The total referrals of the affiliate"""
76
84
77
85
total_revenue_usd: str
78
-
"""The total revenue of the affiliate from their referrals"""
86
+
"""
87
+
The total revenue generated from this affiliate's referrals, formatted as a USD
88
+
currency string
89
+
"""
79
90
80
91
updated_at: datetime
81
92
"""The datetime the affiliate was last updated."""
Copy file name to clipboardExpand all lines: src/whop_sdk/types/affiliate_list_response.py
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ class User(BaseModel):
39
39
40
40
41
41
classAffiliateListResponse(BaseModel):
42
-
"""An affiliate of a company or a global affiliate"""
42
+
"""
43
+
An affiliate tracks a user's referral performance and commission earnings for a company, including retention rates, revenue metrics, and payout configurations.
44
+
"""
43
45
44
46
id: str
45
47
"""The unique identifier for the affiliate."""
@@ -54,13 +56,16 @@ class AffiliateListResponse(BaseModel):
54
56
"""The datetime the affiliate was created."""
55
57
56
58
customer_retention_rate: str
57
-
"""How many referrals have remained since they joined as members"""
59
+
"""The percentage of referred customers who are still active members"""
58
60
59
61
customer_retention_rate_ninety_days: str
60
-
"""A rolling 90-day retention rate for this affiliate"""
62
+
"""The percentage of referred customers who remained active over the last 90 days"""
61
63
62
64
monthly_recurring_revenue_usd: str
63
-
"""The total MRR of the affiliate"""
65
+
"""
66
+
The monthly recurring revenue generated by this affiliate's referrals, formatted
67
+
as a USD currency string
68
+
"""
64
69
65
70
status: Optional[Status] =None
66
71
"""Statuses for resources"""
@@ -69,13 +74,19 @@ class AffiliateListResponse(BaseModel):
69
74
"""The total count of all overrides for this affiliate"""
70
75
71
76
total_referral_earnings_usd: str
72
-
"""The total earnings of the affiliate from the users they referred"""
77
+
"""
78
+
The total commission earnings paid to this affiliate, formatted as a USD
79
+
currency string
80
+
"""
73
81
74
82
total_referrals_count: int
75
83
"""The total referrals of the affiliate"""
76
84
77
85
total_revenue_usd: str
78
-
"""The total revenue of the affiliate from their referrals"""
86
+
"""
87
+
The total revenue generated from this affiliate's referrals, formatted as a USD
88
+
currency string
89
+
"""
79
90
80
91
updated_at: datetime
81
92
"""The datetime the affiliate was last updated."""
0 commit comments