-
#1288 Add async support to stripe-python. To use it, add an
_async
suffix to any request-making method.- cus = stripe.Customer.create(...) + cus = await stripe.Customer.create_async(...)
See the README for detailed usage instructions. Support is provided out of the box for async requests via the HTTPX (used by default) and aiohttp libraries. For other libraries, you can also provide your own
stripe.HTTPClient
implementation. Please do not hesitate to open a Github issue if you have any feedback on this feature. -
#1284 Update generated code
- Add support for
subscription_item
on resourcestripe.Discount
- Add support for
promotion_code
on parameter classesstripe.Invoice.CreateParamsDiscount
,stripe.Invoice.ModifyParamsDiscount
,stripe.InvoiceItem.CreateParamsDiscount
,stripe.InvoiceItem.ModifyParamsDiscount
,stripe.InvoiceLineItem.ModifyParamsDiscount
,stripe.Quote.CreateParamsDiscount
, andstripe.Quote.ModifyParamsDiscount
- Add support for
discounts
on parameter classesstripe.Invoice.UpcomingLinesParamsSubscriptionItem
,stripe.Invoice.UpcomingParamsSubscriptionItem
,stripe.Quote.CreateParamsLineItem
,stripe.Quote.ModifyParamsLineItem
,stripe.Subscription.CreateParams
,stripe.Subscription.CreateParamsAddInvoiceItem
,stripe.Subscription.CreateParamsItem
,stripe.Subscription.ModifyParams
,stripe.Subscription.ModifyParamsAddInvoiceItem
,stripe.Subscription.ModifyParamsItem
,stripe.SubscriptionItem.CreateParams
,stripe.SubscriptionItem.ModifyParams
,stripe.SubscriptionSchedule.CreateParamsPhase
,stripe.SubscriptionSchedule.CreateParamsPhaseAddInvoiceItem
,stripe.SubscriptionSchedule.CreateParamsPhaseItem
,stripe.SubscriptionSchedule.ModifyParamsPhase
,stripe.SubscriptionSchedule.ModifyParamsPhaseAddInvoiceItem
, andstripe.SubscriptionSchedule.ModifyParamsPhaseItem
, resourcesstripe.Subscription
andstripe.SubscriptionItem
, and resource classesstripe.SubscriptionSchedule.Phase.AddInvoiceItem
,stripe.SubscriptionSchedule.Phase.Item
, andstripe.SubscriptionSchedule.Phase
- Add support for
zip
on parameter classesstripe.PaymentMethodConfiguration.CreateParams
andstripe.PaymentMethodConfiguration.ModifyParams
and resourcestripe.PaymentMethodConfiguration
- Add support for
offline
on resource classstripe.SetupAttempt.PaymentMethodDetails.CardPresent
- Add support for
card_present
on parameter classesstripe.SetupIntent.ConfirmParamsPaymentMethodOptions
,stripe.SetupIntent.CreateParamsPaymentMethodOptions
, andstripe.SetupIntent.ModifyParamsPaymentMethodOptions
and resource classstripe.SetupIntent.PaymentMethodOptions
- Add support for
email
on resourcestripe.identity.VerificationReport
, parameter classesstripe.identity.VerificationSession.CreateParamsOptions
andstripe.identity.VerificationSession.ModifyParamsOptions
, and resource classesstripe.identity.VerificationSession.Options
andstripe.identity.VerificationSession.VerifiedOutputs
- Add support for
phone
on resourcestripe.identity.VerificationReport
, parameter classesstripe.identity.VerificationSession.CreateParamsOptions
andstripe.identity.VerificationSession.ModifyParamsOptions
, and resource classesstripe.identity.VerificationSession.Options
andstripe.identity.VerificationSession.VerifiedOutputs
- Add support for
verification_flow
on resourcesstripe.identity.VerificationReport
andstripe.identity.VerificationSession
and parameter classstripe.identity.VerificationSession.CreateParams
- Add support for
provided_details
on parameter classesstripe.identity.VerificationSession.CreateParams
andstripe.identity.VerificationSession.ModifyParams
and resourcestripe.identity.VerificationSession
- Add support for
allowed_merchant_countries
on parameter classesstripe.issuing.Card.CreateParamsSpendingControls
,stripe.issuing.Card.ModifyParamsSpendingControls
,stripe.issuing.Cardholder.CreateParamsSpendingControls
, andstripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classesstripe.issuing.Card.SpendingControls
andstripe.issuing.Cardholder.SpendingControls
- Add support for
blocked_merchant_countries
on parameter classesstripe.issuing.Card.CreateParamsSpendingControls
,stripe.issuing.Card.ModifyParamsSpendingControls
,stripe.issuing.Cardholder.CreateParamsSpendingControls
, andstripe.issuing.Cardholder.ModifyParamsSpendingControls
and resource classesstripe.issuing.Card.SpendingControls
andstripe.issuing.Cardholder.SpendingControls
- Change type of field
stripe.checkout.Session.CreateParamsPaymentMethodOptionsSwish
fromLiteral['']|str
tostr
ofreference
- Add support for
verification_flow
on enumsstripe.identity.VerificationReport.type
andstripe.identity.VerificationSession.type
- Add support for
email_unverified_other
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
email_verification_declined
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
phone_unverified_other
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
phone_verification_declined
on enumstripe.identity.VerificationSession.LastError.code
- Add support for
mobile_phone_reader
on enumsstripe.terminal.Reader.device_type
andstripe.terminal.Reader.ListParams.device_type
- Change type of field
stripe.identity.VerificationSession.CreateParams
fromLiteral['document', 'id_number']
toNotRequired[Literal['document', 'id_number']]
oftype
- Change type of fields
stripe.Invoice
andstripe.InvoiceLineItem
fromOptional[List[ExpandableField[Discount]]]
toList[ExpandableField[Discount]]
ofdiscounts
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
ofdata
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
ofimage_url_png
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode
fromOptional[str]
tostr
ofimage_url_svg
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[str]
tostr
ofhosted_instructions_url
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[str]
tostr
ofmobile_auth_url
- Change type of field
stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode
fromOptional[QrCode]
toQrCode
ofqr_code
- Add support for
-
#1289 Bump aiohttp from 3.9.0 to 3.9.2