Skip to content

Commit 8a74bd2

Browse files
feat(api): api update
1 parent c9dd73f commit 8a74bd2

3 files changed

Lines changed: 60 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 181
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-51fe2d63d75f83c0f00def45471fad9e54bc2a7fd96c30174e5b6e8ae9c1d276.yml
3-
openapi_spec_hash: 3193908a280c7d880b22dd21f774c89d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-7f93e43332a2af6e92fec487446e4f8afef27be239763689838b85e0f2d64b5e.yml
3+
openapi_spec_hash: 0240dc8a4d84e0941c2fa7f3e23a2038
44
config_hash: 7e9d4f2abf58b7918a0e103387d2a2e9

src/whop_sdk/types/setup_intent.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"MemberUser",
1717
"PaymentMethod",
1818
"PaymentMethodCard",
19+
"PaymentMethodMailingAddress",
1920
]
2021

2122

@@ -89,6 +90,31 @@ class PaymentMethodCard(BaseModel):
8990
"""The last four digits of the card number. Null if not available."""
9091

9192

93+
class PaymentMethodMailingAddress(BaseModel):
94+
"""The mailing address associated with the payment method's user"""
95+
96+
city: Optional[str] = None
97+
"""The city of the address."""
98+
99+
country: Optional[str] = None
100+
"""The country of the address."""
101+
102+
line1: Optional[str] = None
103+
"""The line 1 of the address."""
104+
105+
line2: Optional[str] = None
106+
"""The line 2 of the address."""
107+
108+
name: Optional[str] = None
109+
"""The name of the customer."""
110+
111+
postal_code: Optional[str] = None
112+
"""The postal code of the address."""
113+
114+
state: Optional[str] = None
115+
"""The state of the address."""
116+
117+
92118
class PaymentMethod(BaseModel):
93119
"""The saved payment method created by this setup intent.
94120
@@ -106,6 +132,9 @@ class PaymentMethod(BaseModel):
106132
created_at: datetime
107133
"""The datetime the payment token was created."""
108134

135+
mailing_address: Optional[PaymentMethodMailingAddress] = None
136+
"""The mailing address associated with the payment method's user"""
137+
109138
payment_method_type: PaymentMethodTypes
110139
"""The payment method type of the payment method"""
111140

src/whop_sdk/types/setup_intent_list_response.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"MemberUser",
1717
"PaymentMethod",
1818
"PaymentMethodCard",
19+
"PaymentMethodMailingAddress",
1920
]
2021

2122

@@ -89,6 +90,31 @@ class PaymentMethodCard(BaseModel):
8990
"""The last four digits of the card number. Null if not available."""
9091

9192

93+
class PaymentMethodMailingAddress(BaseModel):
94+
"""The mailing address associated with the payment method's user"""
95+
96+
city: Optional[str] = None
97+
"""The city of the address."""
98+
99+
country: Optional[str] = None
100+
"""The country of the address."""
101+
102+
line1: Optional[str] = None
103+
"""The line 1 of the address."""
104+
105+
line2: Optional[str] = None
106+
"""The line 2 of the address."""
107+
108+
name: Optional[str] = None
109+
"""The name of the customer."""
110+
111+
postal_code: Optional[str] = None
112+
"""The postal code of the address."""
113+
114+
state: Optional[str] = None
115+
"""The state of the address."""
116+
117+
92118
class PaymentMethod(BaseModel):
93119
"""The saved payment method created by this setup intent.
94120
@@ -106,6 +132,9 @@ class PaymentMethod(BaseModel):
106132
created_at: datetime
107133
"""The datetime the payment token was created."""
108134

135+
mailing_address: Optional[PaymentMethodMailingAddress] = None
136+
"""The mailing address associated with the payment method's user"""
137+
109138
payment_method_type: PaymentMethodTypes
110139
"""The payment method type of the payment method"""
111140

0 commit comments

Comments
 (0)