This commit is contained in:
Iliyan Angelov
2025-11-17 18:26:30 +02:00
parent 48353cde9c
commit 0c59fe1173
2535 changed files with 278997 additions and 2480 deletions

View File

@@ -0,0 +1,796 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from importlib import import_module
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
from stripe.params.checkout._session_create_params import (
SessionCreateParams as SessionCreateParams,
SessionCreateParamsAdaptivePricing as SessionCreateParamsAdaptivePricing,
SessionCreateParamsAfterExpiration as SessionCreateParamsAfterExpiration,
SessionCreateParamsAfterExpirationRecovery as SessionCreateParamsAfterExpirationRecovery,
SessionCreateParamsAutomaticTax as SessionCreateParamsAutomaticTax,
SessionCreateParamsAutomaticTaxLiability as SessionCreateParamsAutomaticTaxLiability,
SessionCreateParamsBrandingSettings as SessionCreateParamsBrandingSettings,
SessionCreateParamsBrandingSettingsIcon as SessionCreateParamsBrandingSettingsIcon,
SessionCreateParamsBrandingSettingsLogo as SessionCreateParamsBrandingSettingsLogo,
SessionCreateParamsConsentCollection as SessionCreateParamsConsentCollection,
SessionCreateParamsConsentCollectionPaymentMethodReuseAgreement as SessionCreateParamsConsentCollectionPaymentMethodReuseAgreement,
SessionCreateParamsCustomField as SessionCreateParamsCustomField,
SessionCreateParamsCustomFieldDropdown as SessionCreateParamsCustomFieldDropdown,
SessionCreateParamsCustomFieldDropdownOption as SessionCreateParamsCustomFieldDropdownOption,
SessionCreateParamsCustomFieldLabel as SessionCreateParamsCustomFieldLabel,
SessionCreateParamsCustomFieldNumeric as SessionCreateParamsCustomFieldNumeric,
SessionCreateParamsCustomFieldText as SessionCreateParamsCustomFieldText,
SessionCreateParamsCustomText as SessionCreateParamsCustomText,
SessionCreateParamsCustomTextAfterSubmit as SessionCreateParamsCustomTextAfterSubmit,
SessionCreateParamsCustomTextShippingAddress as SessionCreateParamsCustomTextShippingAddress,
SessionCreateParamsCustomTextSubmit as SessionCreateParamsCustomTextSubmit,
SessionCreateParamsCustomTextTermsOfServiceAcceptance as SessionCreateParamsCustomTextTermsOfServiceAcceptance,
SessionCreateParamsCustomerUpdate as SessionCreateParamsCustomerUpdate,
SessionCreateParamsDiscount as SessionCreateParamsDiscount,
SessionCreateParamsInvoiceCreation as SessionCreateParamsInvoiceCreation,
SessionCreateParamsInvoiceCreationInvoiceData as SessionCreateParamsInvoiceCreationInvoiceData,
SessionCreateParamsInvoiceCreationInvoiceDataCustomField as SessionCreateParamsInvoiceCreationInvoiceDataCustomField,
SessionCreateParamsInvoiceCreationInvoiceDataIssuer as SessionCreateParamsInvoiceCreationInvoiceDataIssuer,
SessionCreateParamsInvoiceCreationInvoiceDataRenderingOptions as SessionCreateParamsInvoiceCreationInvoiceDataRenderingOptions,
SessionCreateParamsLineItem as SessionCreateParamsLineItem,
SessionCreateParamsLineItemAdjustableQuantity as SessionCreateParamsLineItemAdjustableQuantity,
SessionCreateParamsLineItemPriceData as SessionCreateParamsLineItemPriceData,
SessionCreateParamsLineItemPriceDataProductData as SessionCreateParamsLineItemPriceDataProductData,
SessionCreateParamsLineItemPriceDataRecurring as SessionCreateParamsLineItemPriceDataRecurring,
SessionCreateParamsNameCollection as SessionCreateParamsNameCollection,
SessionCreateParamsNameCollectionBusiness as SessionCreateParamsNameCollectionBusiness,
SessionCreateParamsNameCollectionIndividual as SessionCreateParamsNameCollectionIndividual,
SessionCreateParamsOptionalItem as SessionCreateParamsOptionalItem,
SessionCreateParamsOptionalItemAdjustableQuantity as SessionCreateParamsOptionalItemAdjustableQuantity,
SessionCreateParamsPaymentIntentData as SessionCreateParamsPaymentIntentData,
SessionCreateParamsPaymentIntentDataShipping as SessionCreateParamsPaymentIntentDataShipping,
SessionCreateParamsPaymentIntentDataShippingAddress as SessionCreateParamsPaymentIntentDataShippingAddress,
SessionCreateParamsPaymentIntentDataTransferData as SessionCreateParamsPaymentIntentDataTransferData,
SessionCreateParamsPaymentMethodData as SessionCreateParamsPaymentMethodData,
SessionCreateParamsPaymentMethodOptions as SessionCreateParamsPaymentMethodOptions,
SessionCreateParamsPaymentMethodOptionsAcssDebit as SessionCreateParamsPaymentMethodOptionsAcssDebit,
SessionCreateParamsPaymentMethodOptionsAcssDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsAcssDebitMandateOptions,
SessionCreateParamsPaymentMethodOptionsAffirm as SessionCreateParamsPaymentMethodOptionsAffirm,
SessionCreateParamsPaymentMethodOptionsAfterpayClearpay as SessionCreateParamsPaymentMethodOptionsAfterpayClearpay,
SessionCreateParamsPaymentMethodOptionsAlipay as SessionCreateParamsPaymentMethodOptionsAlipay,
SessionCreateParamsPaymentMethodOptionsAlma as SessionCreateParamsPaymentMethodOptionsAlma,
SessionCreateParamsPaymentMethodOptionsAmazonPay as SessionCreateParamsPaymentMethodOptionsAmazonPay,
SessionCreateParamsPaymentMethodOptionsAuBecsDebit as SessionCreateParamsPaymentMethodOptionsAuBecsDebit,
SessionCreateParamsPaymentMethodOptionsBacsDebit as SessionCreateParamsPaymentMethodOptionsBacsDebit,
SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions,
SessionCreateParamsPaymentMethodOptionsBancontact as SessionCreateParamsPaymentMethodOptionsBancontact,
SessionCreateParamsPaymentMethodOptionsBillie as SessionCreateParamsPaymentMethodOptionsBillie,
SessionCreateParamsPaymentMethodOptionsBoleto as SessionCreateParamsPaymentMethodOptionsBoleto,
SessionCreateParamsPaymentMethodOptionsCard as SessionCreateParamsPaymentMethodOptionsCard,
SessionCreateParamsPaymentMethodOptionsCardInstallments as SessionCreateParamsPaymentMethodOptionsCardInstallments,
SessionCreateParamsPaymentMethodOptionsCardRestrictions as SessionCreateParamsPaymentMethodOptionsCardRestrictions,
SessionCreateParamsPaymentMethodOptionsCashapp as SessionCreateParamsPaymentMethodOptionsCashapp,
SessionCreateParamsPaymentMethodOptionsCustomerBalance as SessionCreateParamsPaymentMethodOptionsCustomerBalance,
SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer as SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer,
SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
SessionCreateParamsPaymentMethodOptionsDemoPay as SessionCreateParamsPaymentMethodOptionsDemoPay,
SessionCreateParamsPaymentMethodOptionsEps as SessionCreateParamsPaymentMethodOptionsEps,
SessionCreateParamsPaymentMethodOptionsFpx as SessionCreateParamsPaymentMethodOptionsFpx,
SessionCreateParamsPaymentMethodOptionsGiropay as SessionCreateParamsPaymentMethodOptionsGiropay,
SessionCreateParamsPaymentMethodOptionsGrabpay as SessionCreateParamsPaymentMethodOptionsGrabpay,
SessionCreateParamsPaymentMethodOptionsIdeal as SessionCreateParamsPaymentMethodOptionsIdeal,
SessionCreateParamsPaymentMethodOptionsKakaoPay as SessionCreateParamsPaymentMethodOptionsKakaoPay,
SessionCreateParamsPaymentMethodOptionsKlarna as SessionCreateParamsPaymentMethodOptionsKlarna,
SessionCreateParamsPaymentMethodOptionsKlarnaSubscription as SessionCreateParamsPaymentMethodOptionsKlarnaSubscription,
SessionCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as SessionCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling,
SessionCreateParamsPaymentMethodOptionsKonbini as SessionCreateParamsPaymentMethodOptionsKonbini,
SessionCreateParamsPaymentMethodOptionsKrCard as SessionCreateParamsPaymentMethodOptionsKrCard,
SessionCreateParamsPaymentMethodOptionsLink as SessionCreateParamsPaymentMethodOptionsLink,
SessionCreateParamsPaymentMethodOptionsMobilepay as SessionCreateParamsPaymentMethodOptionsMobilepay,
SessionCreateParamsPaymentMethodOptionsMultibanco as SessionCreateParamsPaymentMethodOptionsMultibanco,
SessionCreateParamsPaymentMethodOptionsNaverPay as SessionCreateParamsPaymentMethodOptionsNaverPay,
SessionCreateParamsPaymentMethodOptionsOxxo as SessionCreateParamsPaymentMethodOptionsOxxo,
SessionCreateParamsPaymentMethodOptionsP24 as SessionCreateParamsPaymentMethodOptionsP24,
SessionCreateParamsPaymentMethodOptionsPayByBank as SessionCreateParamsPaymentMethodOptionsPayByBank,
SessionCreateParamsPaymentMethodOptionsPayco as SessionCreateParamsPaymentMethodOptionsPayco,
SessionCreateParamsPaymentMethodOptionsPaynow as SessionCreateParamsPaymentMethodOptionsPaynow,
SessionCreateParamsPaymentMethodOptionsPaypal as SessionCreateParamsPaymentMethodOptionsPaypal,
SessionCreateParamsPaymentMethodOptionsPix as SessionCreateParamsPaymentMethodOptionsPix,
SessionCreateParamsPaymentMethodOptionsRevolutPay as SessionCreateParamsPaymentMethodOptionsRevolutPay,
SessionCreateParamsPaymentMethodOptionsSamsungPay as SessionCreateParamsPaymentMethodOptionsSamsungPay,
SessionCreateParamsPaymentMethodOptionsSatispay as SessionCreateParamsPaymentMethodOptionsSatispay,
SessionCreateParamsPaymentMethodOptionsSepaDebit as SessionCreateParamsPaymentMethodOptionsSepaDebit,
SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions,
SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort,
SessionCreateParamsPaymentMethodOptionsSwish as SessionCreateParamsPaymentMethodOptionsSwish,
SessionCreateParamsPaymentMethodOptionsTwint as SessionCreateParamsPaymentMethodOptionsTwint,
SessionCreateParamsPaymentMethodOptionsUsBankAccount as SessionCreateParamsPaymentMethodOptionsUsBankAccount,
SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SessionCreateParamsPaymentMethodOptionsWechatPay as SessionCreateParamsPaymentMethodOptionsWechatPay,
SessionCreateParamsPermissions as SessionCreateParamsPermissions,
SessionCreateParamsPhoneNumberCollection as SessionCreateParamsPhoneNumberCollection,
SessionCreateParamsSavedPaymentMethodOptions as SessionCreateParamsSavedPaymentMethodOptions,
SessionCreateParamsSetupIntentData as SessionCreateParamsSetupIntentData,
SessionCreateParamsShippingAddressCollection as SessionCreateParamsShippingAddressCollection,
SessionCreateParamsShippingOption as SessionCreateParamsShippingOption,
SessionCreateParamsShippingOptionShippingRateData as SessionCreateParamsShippingOptionShippingRateData,
SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimate as SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimate,
SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum as SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum,
SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum as SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum,
SessionCreateParamsShippingOptionShippingRateDataFixedAmount as SessionCreateParamsShippingOptionShippingRateDataFixedAmount,
SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions as SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions,
SessionCreateParamsSubscriptionData as SessionCreateParamsSubscriptionData,
SessionCreateParamsSubscriptionDataBillingMode as SessionCreateParamsSubscriptionDataBillingMode,
SessionCreateParamsSubscriptionDataBillingModeFlexible as SessionCreateParamsSubscriptionDataBillingModeFlexible,
SessionCreateParamsSubscriptionDataInvoiceSettings as SessionCreateParamsSubscriptionDataInvoiceSettings,
SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer as SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer,
SessionCreateParamsSubscriptionDataTransferData as SessionCreateParamsSubscriptionDataTransferData,
SessionCreateParamsSubscriptionDataTrialSettings as SessionCreateParamsSubscriptionDataTrialSettings,
SessionCreateParamsSubscriptionDataTrialSettingsEndBehavior as SessionCreateParamsSubscriptionDataTrialSettingsEndBehavior,
SessionCreateParamsTaxIdCollection as SessionCreateParamsTaxIdCollection,
SessionCreateParamsWalletOptions as SessionCreateParamsWalletOptions,
SessionCreateParamsWalletOptionsLink as SessionCreateParamsWalletOptionsLink,
)
from stripe.params.checkout._session_expire_params import (
SessionExpireParams as SessionExpireParams,
)
from stripe.params.checkout._session_line_item_list_params import (
SessionLineItemListParams as SessionLineItemListParams,
)
from stripe.params.checkout._session_list_line_items_params import (
SessionListLineItemsParams as SessionListLineItemsParams,
)
from stripe.params.checkout._session_list_params import (
SessionListParams as SessionListParams,
SessionListParamsCreated as SessionListParamsCreated,
SessionListParamsCustomerDetails as SessionListParamsCustomerDetails,
)
from stripe.params.checkout._session_modify_params import (
SessionModifyParams as SessionModifyParams,
SessionModifyParamsCollectedInformation as SessionModifyParamsCollectedInformation,
SessionModifyParamsCollectedInformationShippingDetails as SessionModifyParamsCollectedInformationShippingDetails,
SessionModifyParamsCollectedInformationShippingDetailsAddress as SessionModifyParamsCollectedInformationShippingDetailsAddress,
SessionModifyParamsShippingOption as SessionModifyParamsShippingOption,
SessionModifyParamsShippingOptionShippingRateData as SessionModifyParamsShippingOptionShippingRateData,
SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimate as SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimate,
SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMaximum as SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMaximum,
SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMinimum as SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMinimum,
SessionModifyParamsShippingOptionShippingRateDataFixedAmount as SessionModifyParamsShippingOptionShippingRateDataFixedAmount,
SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions as SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions,
)
from stripe.params.checkout._session_retrieve_params import (
SessionRetrieveParams as SessionRetrieveParams,
)
from stripe.params.checkout._session_update_params import (
SessionUpdateParams as SessionUpdateParams,
SessionUpdateParamsCollectedInformation as SessionUpdateParamsCollectedInformation,
SessionUpdateParamsCollectedInformationShippingDetails as SessionUpdateParamsCollectedInformationShippingDetails,
SessionUpdateParamsCollectedInformationShippingDetailsAddress as SessionUpdateParamsCollectedInformationShippingDetailsAddress,
SessionUpdateParamsShippingOption as SessionUpdateParamsShippingOption,
SessionUpdateParamsShippingOptionShippingRateData as SessionUpdateParamsShippingOptionShippingRateData,
SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimate as SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimate,
SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum as SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum,
SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum as SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum,
SessionUpdateParamsShippingOptionShippingRateDataFixedAmount as SessionUpdateParamsShippingOptionShippingRateDataFixedAmount,
SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions as SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions,
)
# name -> (import_target, is_submodule)
_import_map = {
"SessionCreateParams": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsAdaptivePricing": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsAfterExpiration": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsAfterExpirationRecovery": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsAutomaticTax": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsAutomaticTaxLiability": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsBrandingSettings": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsBrandingSettingsIcon": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsBrandingSettingsLogo": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsConsentCollection": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsConsentCollectionPaymentMethodReuseAgreement": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomField": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomFieldDropdown": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomFieldDropdownOption": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomFieldLabel": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomFieldNumeric": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomFieldText": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomText": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomTextAfterSubmit": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomTextShippingAddress": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomTextSubmit": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomTextTermsOfServiceAcceptance": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsCustomerUpdate": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsDiscount": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsInvoiceCreation": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsInvoiceCreationInvoiceData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsInvoiceCreationInvoiceDataCustomField": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsInvoiceCreationInvoiceDataIssuer": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsInvoiceCreationInvoiceDataRenderingOptions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsLineItem": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsLineItemAdjustableQuantity": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsLineItemPriceData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsLineItemPriceDataProductData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsLineItemPriceDataRecurring": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsNameCollection": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsNameCollectionBusiness": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsNameCollectionIndividual": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsOptionalItem": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsOptionalItemAdjustableQuantity": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentIntentData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentIntentDataShipping": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentIntentDataShippingAddress": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentIntentDataTransferData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsAcssDebit": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsAcssDebitMandateOptions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsAffirm": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsAfterpayClearpay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsAlipay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsAlma": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsAmazonPay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsAuBecsDebit": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsBacsDebit": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsBancontact": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsBillie": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsBoleto": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsCard": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsCardInstallments": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsCardRestrictions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsCashapp": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsCustomerBalance": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsDemoPay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsEps": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsFpx": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsGiropay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsGrabpay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsIdeal": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsKakaoPay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsKlarna": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsKlarnaSubscription": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsKonbini": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsKrCard": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsLink": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsMobilepay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsMultibanco": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsNaverPay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsOxxo": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsP24": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsPayByBank": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsPayco": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsPaynow": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsPaypal": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsPix": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsRevolutPay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsSamsungPay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsSatispay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsSepaDebit": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsSofort": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsSwish": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsTwint": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsUsBankAccount": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPaymentMethodOptionsWechatPay": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPermissions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsPhoneNumberCollection": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSavedPaymentMethodOptions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSetupIntentData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsShippingAddressCollection": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsShippingOption": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsShippingOptionShippingRateData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimate": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsShippingOptionShippingRateDataFixedAmount": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSubscriptionData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSubscriptionDataBillingMode": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSubscriptionDataBillingModeFlexible": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSubscriptionDataInvoiceSettings": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSubscriptionDataTransferData": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSubscriptionDataTrialSettings": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsSubscriptionDataTrialSettingsEndBehavior": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsTaxIdCollection": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsWalletOptions": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionCreateParamsWalletOptionsLink": (
"stripe.params.checkout._session_create_params",
False,
),
"SessionExpireParams": (
"stripe.params.checkout._session_expire_params",
False,
),
"SessionLineItemListParams": (
"stripe.params.checkout._session_line_item_list_params",
False,
),
"SessionListLineItemsParams": (
"stripe.params.checkout._session_list_line_items_params",
False,
),
"SessionListParams": (
"stripe.params.checkout._session_list_params",
False,
),
"SessionListParamsCreated": (
"stripe.params.checkout._session_list_params",
False,
),
"SessionListParamsCustomerDetails": (
"stripe.params.checkout._session_list_params",
False,
),
"SessionModifyParams": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsCollectedInformation": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsCollectedInformationShippingDetails": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsCollectedInformationShippingDetailsAddress": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsShippingOption": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsShippingOptionShippingRateData": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimate": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMaximum": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMinimum": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsShippingOptionShippingRateDataFixedAmount": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions": (
"stripe.params.checkout._session_modify_params",
False,
),
"SessionRetrieveParams": (
"stripe.params.checkout._session_retrieve_params",
False,
),
"SessionUpdateParams": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsCollectedInformation": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsCollectedInformationShippingDetails": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsCollectedInformationShippingDetailsAddress": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsShippingOption": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsShippingOptionShippingRateData": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimate": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsShippingOptionShippingRateDataFixedAmount": (
"stripe.params.checkout._session_update_params",
False,
),
"SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions": (
"stripe.params.checkout._session_update_params",
False,
),
}
if not TYPE_CHECKING:
def __getattr__(name):
try:
target, is_submodule = _import_map[name]
module = import_module(target)
if is_submodule:
return module
return getattr(
module,
name,
)
except KeyError:
raise AttributeError()

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class SessionExpireParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import List
from typing_extensions import NotRequired, TypedDict
class SessionLineItemListParams(TypedDict):
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""

View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class SessionListLineItemsParams(RequestOptions):
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""

View File

@@ -0,0 +1,78 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import Literal, NotRequired, TypedDict
class SessionListParams(RequestOptions):
created: NotRequired["SessionListParamsCreated|int"]
"""
Only return Checkout Sessions that were created during the given date interval.
"""
customer: NotRequired[str]
"""
Only return the Checkout Sessions for the Customer specified.
"""
customer_details: NotRequired["SessionListParamsCustomerDetails"]
"""
Only return the Checkout Sessions for the Customer details specified.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
payment_intent: NotRequired[str]
"""
Only return the Checkout Session for the PaymentIntent specified.
"""
payment_link: NotRequired[str]
"""
Only return the Checkout Sessions for the Payment Link specified.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
status: NotRequired[Literal["complete", "expired", "open"]]
"""
Only return the Checkout Sessions matching the given status.
"""
subscription: NotRequired[str]
"""
Only return the Checkout Session for the subscription specified.
"""
class SessionListParamsCreated(TypedDict):
gt: NotRequired[int]
"""
Minimum value to filter by (exclusive)
"""
gte: NotRequired[int]
"""
Minimum value to filter by (inclusive)
"""
lt: NotRequired[int]
"""
Maximum value to filter by (exclusive)
"""
lte: NotRequired[int]
"""
Maximum value to filter by (inclusive)
"""
class SessionListParamsCustomerDetails(TypedDict):
email: str
"""
Customer's email address.
"""

View File

@@ -0,0 +1,199 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
class SessionModifyParams(RequestOptions):
collected_information: NotRequired[
"SessionModifyParamsCollectedInformation"
]
"""
Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
shipping_options: NotRequired[
"Literal['']|List[SessionModifyParamsShippingOption]"
]
"""
The shipping rate options to apply to this Session. Up to a maximum of 5.
"""
class SessionModifyParamsCollectedInformation(TypedDict):
shipping_details: NotRequired[
"SessionModifyParamsCollectedInformationShippingDetails"
]
"""
The shipping details to apply to this Session.
"""
class SessionModifyParamsCollectedInformationShippingDetails(TypedDict):
address: "SessionModifyParamsCollectedInformationShippingDetailsAddress"
"""
The address of the customer
"""
name: str
"""
The name of customer
"""
class SessionModifyParamsCollectedInformationShippingDetailsAddress(TypedDict):
city: NotRequired[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: NotRequired[str]
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
postal_code: NotRequired[str]
"""
ZIP or postal code.
"""
state: NotRequired[str]
"""
State, county, province, or region.
"""
class SessionModifyParamsShippingOption(TypedDict):
shipping_rate: NotRequired[str]
"""
The ID of the Shipping Rate to use for this shipping option.
"""
shipping_rate_data: NotRequired[
"SessionModifyParamsShippingOptionShippingRateData"
]
"""
Parameters to be passed to Shipping Rate creation for this shipping option.
"""
class SessionModifyParamsShippingOptionShippingRateData(TypedDict):
delivery_estimate: NotRequired[
"SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimate"
]
"""
The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
"""
display_name: str
"""
The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
"""
fixed_amount: NotRequired[
"SessionModifyParamsShippingOptionShippingRateDataFixedAmount"
]
"""
Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
tax_code: NotRequired[str]
"""
A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
"""
type: NotRequired[Literal["fixed_amount"]]
"""
The type of calculation to use on the shipping rate.
"""
class SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimate(
TypedDict,
):
maximum: NotRequired[
"SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMaximum"
]
"""
The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
"""
minimum: NotRequired[
"SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMinimum"
]
"""
The lower bound of the estimated range. If empty, represents no lower bound.
"""
class SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMaximum(
TypedDict,
):
unit: Literal["business_day", "day", "hour", "month", "week"]
"""
A unit of time.
"""
value: int
"""
Must be greater than 0.
"""
class SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMinimum(
TypedDict,
):
unit: Literal["business_day", "day", "hour", "month", "week"]
"""
A unit of time.
"""
value: int
"""
Must be greater than 0.
"""
class SessionModifyParamsShippingOptionShippingRateDataFixedAmount(TypedDict):
amount: int
"""
A non-negative integer in cents representing how much to charge.
"""
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
currency_options: NotRequired[
Dict[
str,
"SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions",
]
]
"""
Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
"""
class SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions(
TypedDict,
):
amount: int
"""
A non-negative integer in cents representing how much to charge.
"""
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class SessionRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,198 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
class SessionUpdateParams(TypedDict):
collected_information: NotRequired[
"SessionUpdateParamsCollectedInformation"
]
"""
Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
shipping_options: NotRequired[
"Literal['']|List[SessionUpdateParamsShippingOption]"
]
"""
The shipping rate options to apply to this Session. Up to a maximum of 5.
"""
class SessionUpdateParamsCollectedInformation(TypedDict):
shipping_details: NotRequired[
"SessionUpdateParamsCollectedInformationShippingDetails"
]
"""
The shipping details to apply to this Session.
"""
class SessionUpdateParamsCollectedInformationShippingDetails(TypedDict):
address: "SessionUpdateParamsCollectedInformationShippingDetailsAddress"
"""
The address of the customer
"""
name: str
"""
The name of customer
"""
class SessionUpdateParamsCollectedInformationShippingDetailsAddress(TypedDict):
city: NotRequired[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: NotRequired[str]
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
postal_code: NotRequired[str]
"""
ZIP or postal code.
"""
state: NotRequired[str]
"""
State, county, province, or region.
"""
class SessionUpdateParamsShippingOption(TypedDict):
shipping_rate: NotRequired[str]
"""
The ID of the Shipping Rate to use for this shipping option.
"""
shipping_rate_data: NotRequired[
"SessionUpdateParamsShippingOptionShippingRateData"
]
"""
Parameters to be passed to Shipping Rate creation for this shipping option.
"""
class SessionUpdateParamsShippingOptionShippingRateData(TypedDict):
delivery_estimate: NotRequired[
"SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimate"
]
"""
The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
"""
display_name: str
"""
The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
"""
fixed_amount: NotRequired[
"SessionUpdateParamsShippingOptionShippingRateDataFixedAmount"
]
"""
Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
tax_code: NotRequired[str]
"""
A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
"""
type: NotRequired[Literal["fixed_amount"]]
"""
The type of calculation to use on the shipping rate.
"""
class SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimate(
TypedDict,
):
maximum: NotRequired[
"SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum"
]
"""
The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
"""
minimum: NotRequired[
"SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum"
]
"""
The lower bound of the estimated range. If empty, represents no lower bound.
"""
class SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMaximum(
TypedDict,
):
unit: Literal["business_day", "day", "hour", "month", "week"]
"""
A unit of time.
"""
value: int
"""
Must be greater than 0.
"""
class SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum(
TypedDict,
):
unit: Literal["business_day", "day", "hour", "month", "week"]
"""
A unit of time.
"""
value: int
"""
Must be greater than 0.
"""
class SessionUpdateParamsShippingOptionShippingRateDataFixedAmount(TypedDict):
amount: int
"""
A non-negative integer in cents representing how much to charge.
"""
currency: str
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
currency_options: NotRequired[
Dict[
str,
"SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions",
]
]
"""
Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
"""
class SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions(
TypedDict,
):
amount: int
"""
A non-negative integer in cents representing how much to charge.
"""
tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""