Skip to content

Commit a800582

Browse files
Merge pull request #1659 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 5f4c3a9 + 7b2982e commit a800582

10 files changed

+615
-4
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
847d2ef0de9626eec25973097d37b61f67e343ee
1+
56689dcbcaa4c7ce6bf1b51a5add451972e0689c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2104
1+
v2106

stripe/delegated_checkout/_requested_session.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,89 @@ class LineItemDetail(StripeObject):
186186
"""
187187

188188
class OrderDetails(StripeObject):
189+
order_id: Optional[str]
190+
"""
191+
The seller's order identifier.
192+
"""
189193
order_status_url: Optional[str]
190194
"""
191195
The URL to the order status.
192196
"""
193197

198+
class PaymentMethodPreview(StripeObject):
199+
class BillingDetails(StripeObject):
200+
class Address(StripeObject):
201+
city: str
202+
"""
203+
City, district, suburb, town, or village.
204+
"""
205+
country: str
206+
"""
207+
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
208+
"""
209+
line1: str
210+
"""
211+
Address line 1, such as the street, PO Box, or company name.
212+
"""
213+
line2: Optional[str]
214+
"""
215+
Address line 2, such as the apartment, suite, unit, or building.
216+
"""
217+
postal_code: str
218+
"""
219+
ZIP or postal code.
220+
"""
221+
state: str
222+
"""
223+
State, county, province, or region.
224+
"""
225+
226+
address: Optional[Address]
227+
"""
228+
The billing address.
229+
"""
230+
email: Optional[str]
231+
"""
232+
The email address for the billing details.
233+
"""
234+
name: Optional[str]
235+
"""
236+
The name for the billing details.
237+
"""
238+
phone: Optional[str]
239+
"""
240+
The phone number for the billing details.
241+
"""
242+
_inner_class_types = {"address": Address}
243+
244+
class Card(StripeObject):
245+
exp_month: int
246+
"""
247+
The expiry month of the card.
248+
"""
249+
exp_year: int
250+
"""
251+
The expiry year of the card.
252+
"""
253+
last4: str
254+
"""
255+
The last 4 digits of the card number.
256+
"""
257+
258+
billing_details: Optional[BillingDetails]
259+
"""
260+
The billing details of the payment method.
261+
"""
262+
card: Optional[Card]
263+
"""
264+
The card details of the payment method.
265+
"""
266+
type: str
267+
"""
268+
The type of the payment method.
269+
"""
270+
_inner_class_types = {"billing_details": BillingDetails, "card": Card}
271+
194272
class SellerDetails(StripeObject):
195273
pass
196274

@@ -264,6 +342,10 @@ class TotalDetails(StripeObject):
264342
"""
265343
The payment method used for the requested session.
266344
"""
345+
payment_method_preview: Optional[PaymentMethodPreview]
346+
"""
347+
The preview of the payment method to be created when the requested session is confirmed.
348+
"""
267349
seller_details: SellerDetails
268350
setup_future_usage: Optional[Literal["on_session"]]
269351
"""
@@ -611,6 +693,7 @@ async def retrieve_async(
611693
"fulfillment_details": FulfillmentDetails,
612694
"line_item_details": LineItemDetail,
613695
"order_details": OrderDetails,
696+
"payment_method_preview": PaymentMethodPreview,
614697
"seller_details": SellerDetails,
615698
"total_details": TotalDetails,
616699
}

stripe/events/_v2_core_account_including_configuration_card_creator_capability_status_updated_event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent
101101
"commercial.celtic.spend_card",
102102
"commercial.cross_river_bank.charge_card",
103103
"commercial.cross_river_bank.spend_card",
104+
"commercial.lead.prepaid_card",
104105
"commercial.stripe.charge_card",
105106
"commercial.stripe.prepaid_card",
106107
]

stripe/params/delegated_checkout/_requested_session_modify_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class RequestedSessionModifyParamsLineItemDetail(TypedDict):
120120
"""
121121
The key of the line item.
122122
"""
123-
quantity: NotRequired[int]
123+
quantity: int
124124
"""
125125
The quantity of the line item.
126126
"""

stripe/params/delegated_checkout/_requested_session_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class RequestedSessionUpdateParamsLineItemDetail(TypedDict):
119119
"""
120120
The key of the line item.
121121
"""
122-
quantity: NotRequired[int]
122+
quantity: int
123123
"""
124124
The quantity of the line item.
125125
"""

stripe/params/v2/core/__init__.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank,
2121
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankChargeCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankChargeCard,
2222
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankSpendCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankSpendCard,
23+
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLead as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLead,
24+
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard,
2325
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripe as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripe,
2426
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripeChargeCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripeChargeCard,
2527
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripePrepaidCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripePrepaidCard,
@@ -148,6 +150,12 @@
148150
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCard as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCard,
149151
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardBankTerms as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardBankTerms,
150152
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardFinancingDisclosures as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardFinancingDisclosures,
153+
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder,
154+
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead,
155+
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay,
156+
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard,
157+
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms,
158+
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform,
151159
AccountCreateParamsIdentityAttestationsTermsOfServiceCryptoStorer as AccountCreateParamsIdentityAttestationsTermsOfServiceCryptoStorer,
152160
AccountCreateParamsIdentityAttestationsTermsOfServiceStorer as AccountCreateParamsIdentityAttestationsTermsOfServiceStorer,
153161
AccountCreateParamsIdentityBusinessDetails as AccountCreateParamsIdentityBusinessDetails,
@@ -221,6 +229,8 @@
221229
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank,
222230
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankChargeCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankChargeCard,
223231
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankSpendCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankSpendCard,
232+
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLead as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLead,
233+
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard,
224234
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripe as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripe,
225235
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripeChargeCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripeChargeCard,
226236
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripePrepaidCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripePrepaidCard,
@@ -349,6 +359,12 @@
349359
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCard as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCard,
350360
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardBankTerms as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardBankTerms,
351361
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardFinancingDisclosures as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardFinancingDisclosures,
362+
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder,
363+
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead,
364+
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay,
365+
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard,
366+
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms,
367+
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform,
352368
AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer as AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer,
353369
AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer as AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer,
354370
AccountUpdateParamsIdentityBusinessDetails as AccountUpdateParamsIdentityBusinessDetails,
@@ -489,6 +505,14 @@
489505
"stripe.params.v2.core._account_create_params",
490506
False,
491507
),
508+
"AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLead": (
509+
"stripe.params.v2.core._account_create_params",
510+
False,
511+
),
512+
"AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard": (
513+
"stripe.params.v2.core._account_create_params",
514+
False,
515+
),
492516
"AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripe": (
493517
"stripe.params.v2.core._account_create_params",
494518
False,
@@ -1001,6 +1025,30 @@
10011025
"stripe.params.v2.core._account_create_params",
10021026
False,
10031027
),
1028+
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder": (
1029+
"stripe.params.v2.core._account_create_params",
1030+
False,
1031+
),
1032+
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead": (
1033+
"stripe.params.v2.core._account_create_params",
1034+
False,
1035+
),
1036+
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay": (
1037+
"stripe.params.v2.core._account_create_params",
1038+
False,
1039+
),
1040+
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard": (
1041+
"stripe.params.v2.core._account_create_params",
1042+
False,
1043+
),
1044+
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms": (
1045+
"stripe.params.v2.core._account_create_params",
1046+
False,
1047+
),
1048+
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform": (
1049+
"stripe.params.v2.core._account_create_params",
1050+
False,
1051+
),
10041052
"AccountCreateParamsIdentityAttestationsTermsOfServiceCryptoStorer": (
10051053
"stripe.params.v2.core._account_create_params",
10061054
False,
@@ -1258,6 +1306,14 @@
12581306
"stripe.params.v2.core._account_update_params",
12591307
False,
12601308
),
1309+
"AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLead": (
1310+
"stripe.params.v2.core._account_update_params",
1311+
False,
1312+
),
1313+
"AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard": (
1314+
"stripe.params.v2.core._account_update_params",
1315+
False,
1316+
),
12611317
"AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripe": (
12621318
"stripe.params.v2.core._account_update_params",
12631319
False,
@@ -1770,6 +1826,30 @@
17701826
"stripe.params.v2.core._account_update_params",
17711827
False,
17721828
),
1829+
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder": (
1830+
"stripe.params.v2.core._account_update_params",
1831+
False,
1832+
),
1833+
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead": (
1834+
"stripe.params.v2.core._account_update_params",
1835+
False,
1836+
),
1837+
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay": (
1838+
"stripe.params.v2.core._account_update_params",
1839+
False,
1840+
),
1841+
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard": (
1842+
"stripe.params.v2.core._account_update_params",
1843+
False,
1844+
),
1845+
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms": (
1846+
"stripe.params.v2.core._account_update_params",
1847+
False,
1848+
),
1849+
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform": (
1850+
"stripe.params.v2.core._account_update_params",
1851+
False,
1852+
),
17731853
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer": (
17741854
"stripe.params.v2.core._account_update_params",
17751855
False,

0 commit comments

Comments
 (0)