Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
847d2ef0de9626eec25973097d37b61f67e343ee
56689dcbcaa4c7ce6bf1b51a5add451972e0689c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2104
v2106
83 changes: 83 additions & 0 deletions stripe/delegated_checkout/_requested_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,89 @@ class LineItemDetail(StripeObject):
"""

class OrderDetails(StripeObject):
order_id: Optional[str]
"""
The seller's order identifier.
"""
order_status_url: Optional[str]
"""
The URL to the order status.
"""

class PaymentMethodPreview(StripeObject):
class BillingDetails(StripeObject):
class Address(StripeObject):
city: str
"""
City, district, suburb, town, or village.
"""
country: str
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
line1: str
"""
Address line 1, such as the street, PO Box, or company name.
"""
line2: Optional[str]
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
postal_code: str
"""
ZIP or postal code.
"""
state: str
"""
State, county, province, or region.
"""

address: Optional[Address]
"""
The billing address.
"""
email: Optional[str]
"""
The email address for the billing details.
"""
name: Optional[str]
"""
The name for the billing details.
"""
phone: Optional[str]
"""
The phone number for the billing details.
"""
_inner_class_types = {"address": Address}

class Card(StripeObject):
exp_month: int
"""
The expiry month of the card.
"""
exp_year: int
"""
The expiry year of the card.
"""
last4: str
"""
The last 4 digits of the card number.
"""

billing_details: Optional[BillingDetails]
"""
The billing details of the payment method.
"""
card: Optional[Card]
"""
The card details of the payment method.
"""
type: str
"""
The type of the payment method.
"""
_inner_class_types = {"billing_details": BillingDetails, "card": Card}

class SellerDetails(StripeObject):
pass

Expand Down Expand Up @@ -264,6 +342,10 @@ class TotalDetails(StripeObject):
"""
The payment method used for the requested session.
"""
payment_method_preview: Optional[PaymentMethodPreview]
"""
The preview of the payment method to be created when the requested session is confirmed.
"""
seller_details: SellerDetails
setup_future_usage: Optional[Literal["on_session"]]
"""
Expand Down Expand Up @@ -611,6 +693,7 @@ async def retrieve_async(
"fulfillment_details": FulfillmentDetails,
"line_item_details": LineItemDetail,
"order_details": OrderDetails,
"payment_method_preview": PaymentMethodPreview,
"seller_details": SellerDetails,
"total_details": TotalDetails,
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent
"commercial.celtic.spend_card",
"commercial.cross_river_bank.charge_card",
"commercial.cross_river_bank.spend_card",
"commercial.lead.prepaid_card",
"commercial.stripe.charge_card",
"commercial.stripe.prepaid_card",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class RequestedSessionModifyParamsLineItemDetail(TypedDict):
"""
The key of the line item.
"""
quantity: NotRequired[int]
quantity: int
"""
The quantity of the line item.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class RequestedSessionUpdateParamsLineItemDetail(TypedDict):
"""
The key of the line item.
"""
quantity: NotRequired[int]
quantity: int
"""
The quantity of the line item.
"""
Expand Down
80 changes: 80 additions & 0 deletions stripe/params/v2/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank,
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankChargeCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankChargeCard,
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankSpendCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankSpendCard,
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLead as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLead,
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard,
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripe as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripe,
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripeChargeCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripeChargeCard,
AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripePrepaidCard as AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripePrepaidCard,
Expand Down Expand Up @@ -148,6 +150,12 @@
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCard as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCard,
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardBankTerms as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardBankTerms,
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardFinancingDisclosures as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardFinancingDisclosures,
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder,
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead,
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay,
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard,
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms,
AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform as AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform,
AccountCreateParamsIdentityAttestationsTermsOfServiceCryptoStorer as AccountCreateParamsIdentityAttestationsTermsOfServiceCryptoStorer,
AccountCreateParamsIdentityAttestationsTermsOfServiceStorer as AccountCreateParamsIdentityAttestationsTermsOfServiceStorer,
AccountCreateParamsIdentityBusinessDetails as AccountCreateParamsIdentityBusinessDetails,
Expand Down Expand Up @@ -221,6 +229,8 @@
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBank,
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankChargeCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankChargeCard,
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankSpendCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialCrossRiverBankSpendCard,
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLead as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLead,
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard,
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripe as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripe,
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripeChargeCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripeChargeCard,
AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripePrepaidCard as AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripePrepaidCard,
Expand Down Expand Up @@ -349,6 +359,12 @@
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCard as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCard,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardBankTerms as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardBankTerms,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardFinancingDisclosures as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialCrossRiverBankSpendCardFinancingDisclosures,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform as AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform,
AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer as AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer,
AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer as AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer,
AccountUpdateParamsIdentityBusinessDetails as AccountUpdateParamsIdentityBusinessDetails,
Expand Down Expand Up @@ -489,6 +505,14 @@
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLead": (
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard": (
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsConfigurationCardCreatorCapabilitiesCommercialStripe": (
"stripe.params.v2.core._account_create_params",
False,
Expand Down Expand Up @@ -1001,6 +1025,30 @@
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder": (
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead": (
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay": (
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard": (
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms": (
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform": (
"stripe.params.v2.core._account_create_params",
False,
),
"AccountCreateParamsIdentityAttestationsTermsOfServiceCryptoStorer": (
"stripe.params.v2.core._account_create_params",
False,
Expand Down Expand Up @@ -1258,6 +1306,14 @@
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLead": (
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialLeadPrepaidCard": (
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsConfigurationCardCreatorCapabilitiesCommercialStripe": (
"stripe.params.v2.core._account_update_params",
False,
Expand Down Expand Up @@ -1770,6 +1826,30 @@
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialGlobalAccountHolder": (
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLead": (
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadApplePay": (
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCard": (
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardBankTerms": (
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCardCreatorCommercialLeadPrepaidCardPlatform": (
"stripe.params.v2.core._account_update_params",
False,
),
"AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer": (
"stripe.params.v2.core._account_update_params",
False,
Expand Down
Loading