From b0ba17859bbe43ccdd3c9c60775551db241cbd3a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:14:12 +0000 Subject: [PATCH 01/15] Update generated code for v1334 --- OPENAPI_VERSION | 2 +- stripe/issuing/_authorization.py | 151 ++++++++++++++++++ .../issuing/_authorization_service.py | 54 +++++++ 3 files changed, 206 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b9cb5323f..732dc4c75 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1333 \ No newline at end of file +v1334 \ No newline at end of file diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index 5a4b83c95..20f1cf604 100644 --- a/stripe/issuing/_authorization.py +++ b/stripe/issuing/_authorization.py @@ -149,6 +149,24 @@ class Tax(StripeObject): "reported_breakdown": ReportedBreakdown, } + class FraudChallenge(StripeObject): + channel: Literal["sms"] + """ + The method by which the fraud challenge was delivered to the cardholder. + """ + status: Literal[ + "expired", "pending", "rejected", "undeliverable", "verified" + ] + """ + The status of the fraud challenge. + """ + undeliverable_reason: Optional[ + Literal["no_phone_number", "unsupported_phone_number"] + ] + """ + If the challenge is not deliverable, the reason why. + """ + class Fuel(StripeObject): industry_product_code: Optional[str] """ @@ -1550,6 +1568,16 @@ class ModifyParams(RequestOptions): 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`. """ + class RespondParams(RequestOptions): + confirmed: bool + """ + Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + class RetrieveParams(RequestOptions): expand: NotRequired[List[str]] """ @@ -1608,6 +1636,10 @@ class ReverseParams(RequestOptions): """ Fleet-specific information for authorizations using Fleet cards. """ + fraud_challenges: Optional[List[FraudChallenge]] + """ + Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons. + """ fuel: Optional[Fuel] """ Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. @@ -1666,6 +1698,10 @@ class ReverseParams(RequestOptions): [Treasury](https://stripe.com/docs/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://stripe.com/docs/api/treasury/financial_accounts). """ verification_data: VerificationData + verified_by_fraud_challenge: Optional[bool] + """ + Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant. + """ wallet: Optional[str] """ The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized. @@ -2506,6 +2542,120 @@ async def increment_async( # pyright: ignore[reportGeneralTypeIssues] ), ) + @classmethod + def _cls_respond( + cls, + authorization: str, + **params: Unpack["Authorization.RespondParams"], + ) -> "Authorization": + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + return cast( + "Authorization", + cls._static_request( + "post", + "/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond".format( + authorization=sanitize_id(authorization) + ), + params=params, + ), + ) + + @overload + @staticmethod + def respond( + authorization: str, **params: Unpack["Authorization.RespondParams"] + ) -> "Authorization": + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + ... + + @overload + def respond( + self, **params: Unpack["Authorization.RespondParams"] + ) -> "Authorization": + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + ... + + @class_method_variant("_cls_respond") + def respond( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["Authorization.RespondParams"] + ) -> "Authorization": + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + return cast( + "Authorization", + self.resource._request( + "post", + "/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond".format( + authorization=sanitize_id(self.resource.get("id")) + ), + params=params, + ), + ) + + @classmethod + async def _cls_respond_async( + cls, + authorization: str, + **params: Unpack["Authorization.RespondParams"], + ) -> "Authorization": + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + return cast( + "Authorization", + await cls._static_request_async( + "post", + "/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond".format( + authorization=sanitize_id(authorization) + ), + params=params, + ), + ) + + @overload + @staticmethod + async def respond_async( + authorization: str, **params: Unpack["Authorization.RespondParams"] + ) -> "Authorization": + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + ... + + @overload + async def respond_async( + self, **params: Unpack["Authorization.RespondParams"] + ) -> "Authorization": + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + ... + + @class_method_variant("_cls_respond_async") + async def respond_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["Authorization.RespondParams"] + ) -> "Authorization": + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + return cast( + "Authorization", + await self.resource._request_async( + "post", + "/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond".format( + authorization=sanitize_id(self.resource.get("id")) + ), + params=params, + ), + ) + @classmethod def _cls_reverse( cls, @@ -2627,6 +2777,7 @@ def test_helpers(self): _inner_class_types = { "amount_details": AmountDetails, "fleet": Fleet, + "fraud_challenges": FraudChallenge, "fuel": Fuel, "merchant_data": MerchantData, "network_data": NetworkData, diff --git a/stripe/test_helpers/issuing/_authorization_service.py b/stripe/test_helpers/issuing/_authorization_service.py index c81737ea1..4b97801a8 100644 --- a/stripe/test_helpers/issuing/_authorization_service.py +++ b/stripe/test_helpers/issuing/_authorization_service.py @@ -1053,6 +1053,16 @@ class IncrementParams(TypedDict): If set `true`, you may provide [amount](https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization. """ + class RespondParams(TypedDict): + confirmed: bool + """ + Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + class ReverseParams(TypedDict): expand: NotRequired[List[str]] """ @@ -1233,6 +1243,50 @@ async def finalize_amount_async( ), ) + def respond( + self, + authorization: str, + params: "AuthorizationService.RespondParams", + options: RequestOptions = {}, + ) -> Authorization: + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + return cast( + Authorization, + self._request( + "post", + "/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond".format( + authorization=sanitize_id(authorization), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def respond_async( + self, + authorization: str, + params: "AuthorizationService.RespondParams", + options: RequestOptions = {}, + ) -> Authorization: + """ + Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + """ + return cast( + Authorization, + await self._request_async( + "post", + "/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond".format( + authorization=sanitize_id(authorization), + ), + base_address="api", + params=params, + options=options, + ), + ) + def increment( self, authorization: str, From 08bc2793896244337e8f7857703ab1108c774404 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 01:22:41 +0000 Subject: [PATCH 02/15] Update generated code for v1335 --- OPENAPI_VERSION | 2 +- stripe/_file.py | 2 ++ stripe/_file_link.py | 2 +- stripe/_file_link_service.py | 2 +- stripe/_file_service.py | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 732dc4c75..c7db7027d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1334 \ No newline at end of file +v1335 \ No newline at end of file diff --git a/stripe/_file.py b/stripe/_file.py index 7c36c1e5b..c5cc7091d 100644 --- a/stripe/_file.py +++ b/stripe/_file.py @@ -101,6 +101,7 @@ class ListParams(RequestOptions): "dispute_evidence", "document_provider_identity_document", "finance_report_run", + "financial_account_statement", "identity_document", "identity_document_downloadable", "issuing_regulatory_reporting", @@ -176,6 +177,7 @@ class RetrieveParams(RequestOptions): "dispute_evidence", "document_provider_identity_document", "finance_report_run", + "financial_account_statement", "identity_document", "identity_document_downloadable", "issuing_regulatory_reporting", diff --git a/stripe/_file_link.py b/stripe/_file_link.py index 02e1f2168..824af7dce 100644 --- a/stripe/_file_link.py +++ b/stripe/_file_link.py @@ -44,7 +44,7 @@ class CreateParams(RequestOptions): """ file: str """ - The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. + The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. """ metadata: NotRequired["Literal['']|Dict[str, str]"] """ diff --git a/stripe/_file_link_service.py b/stripe/_file_link_service.py index 73e955371..6b9fca0af 100644 --- a/stripe/_file_link_service.py +++ b/stripe/_file_link_service.py @@ -21,7 +21,7 @@ class CreateParams(TypedDict): """ file: str """ - The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. + The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. """ metadata: NotRequired["Literal['']|Dict[str, str]"] """ diff --git a/stripe/_file_service.py b/stripe/_file_service.py index 4c29215c4..ee4f7f26a 100644 --- a/stripe/_file_service.py +++ b/stripe/_file_service.py @@ -81,6 +81,7 @@ class ListParams(TypedDict): "dispute_evidence", "document_provider_identity_document", "finance_report_run", + "financial_account_statement", "identity_document", "identity_document_downloadable", "issuing_regulatory_reporting", From 10869f27d3f2baa6de1d24801569aa4d9367af56 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:36:33 +0000 Subject: [PATCH 03/15] Update generated code for v1337 --- OPENAPI_VERSION | 2 +- stripe/_payment_link.py | 10 +++++++--- stripe/_payment_link_service.py | 8 ++++++-- stripe/_payout.py | 17 +++++++++++++++++ stripe/checkout/_session.py | 8 ++++++-- stripe/checkout/_session_service.py | 4 +++- 6 files changed, 40 insertions(+), 9 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c7db7027d..813163e51 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1335 \ No newline at end of file +v1337 \ No newline at end of file diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 56e462a83..f05fcef81 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -842,7 +842,9 @@ class CreateParams(RequestOptions): """ The shipping rate options to apply to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link. """ - submit_type: NotRequired[Literal["auto", "book", "donate", "pay"]] + submit_type: NotRequired[ + Literal["auto", "book", "donate", "pay", "subscribe"] + ] """ Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`). """ @@ -1702,7 +1704,9 @@ class ModifyParams(RequestOptions): """ Configuration for collecting the customer's shipping address. """ - submit_type: NotRequired[Literal["auto", "book", "donate", "pay"]] + submit_type: NotRequired[ + Literal["auto", "book", "donate", "pay", "subscribe"] + ] """ Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`). """ @@ -2497,7 +2501,7 @@ class RetrieveParams(RequestOptions): """ The shipping rate options applied to the session. """ - submit_type: Literal["auto", "book", "donate", "pay"] + submit_type: Literal["auto", "book", "donate", "pay", "subscribe"] """ Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button. """ diff --git a/stripe/_payment_link_service.py b/stripe/_payment_link_service.py index 2d752ac79..f2aba4845 100644 --- a/stripe/_payment_link_service.py +++ b/stripe/_payment_link_service.py @@ -185,7 +185,9 @@ class CreateParams(TypedDict): """ The shipping rate options to apply to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link. """ - submit_type: NotRequired[Literal["auto", "book", "donate", "pay"]] + submit_type: NotRequired[ + Literal["auto", "book", "donate", "pay", "subscribe"] + ] """ Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`). """ @@ -1045,7 +1047,9 @@ class UpdateParams(TypedDict): """ Configuration for collecting the customer's shipping address. """ - submit_type: NotRequired[Literal["auto", "book", "donate", "pay"]] + submit_type: NotRequired[ + Literal["auto", "book", "donate", "pay", "subscribe"] + ] """ Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`). """ diff --git a/stripe/_payout.py b/stripe/_payout.py index 62fbe67ee..852104d23 100644 --- a/stripe/_payout.py +++ b/stripe/_payout.py @@ -5,6 +5,7 @@ from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource from stripe._request_options import RequestOptions +from stripe._stripe_object import StripeObject from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import class_method_variant, sanitize_id from typing import ClassVar, Dict, List, Optional, Union, cast, overload @@ -41,6 +42,16 @@ class Payout( OBJECT_NAME: ClassVar[Literal["payout"]] = "payout" + class TraceId(StripeObject): + status: str + """ + Possible values are `pending`, `supported`, and `unsupported`. When `payout.status` is `pending` or `in_transit`, this will be `pending`. When the payout transitions to `paid`, `failed`, or `canceled`, this status will become `supported` or `unsupported` shortly after in most cases. In some cases, this may appear as `pending` for up to 10 days after `arrival_date` until transitioning to `supported` or `unsupported`. + """ + value: Optional[str] + """ + The trace ID value if `trace_id.status` is `supported`, otherwise `nil`. + """ + class CancelParams(RequestOptions): expand: NotRequired[List[str]] """ @@ -281,6 +292,10 @@ class ReverseParams(RequestOptions): """ Current status of the payout: `paid`, `pending`, `in_transit`, `canceled` or `failed`. A payout is `pending` until it's submitted to the bank, when it becomes `in_transit`. The status changes to `paid` if the transaction succeeds, or to `failed` or `canceled` (within 5 business days). Some payouts that fail might initially show as `paid`, then change to `failed`. """ + trace_id: Optional[TraceId] + """ + A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar. + """ type: Literal["bank_account", "card"] """ Can be `bank_account` or `card`. @@ -651,3 +666,5 @@ async def reverse_async( # pyright: ignore[reportGeneralTypeIssues] params=params, ), ) + + _inner_class_types = {"trace_id": TraceId} diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 49c6216fc..8aa87d856 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -2329,7 +2329,9 @@ class CreateParams(RequestOptions): """ The shipping rate options to apply to this Session. Up to a maximum of 5. """ - submit_type: NotRequired[Literal["auto", "book", "donate", "pay"]] + submit_type: NotRequired[ + Literal["auto", "book", "donate", "pay", "subscribe"] + ] """ Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. `submit_type` can only be @@ -4997,7 +4999,9 @@ class RetrieveParams(RequestOptions): """ The status of the Checkout Session, one of `open`, `complete`, or `expired`. """ - submit_type: Optional[Literal["auto", "book", "donate", "pay"]] + submit_type: Optional[ + Literal["auto", "book", "donate", "pay", "subscribe"] + ] """ Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. `submit_type` can only be diff --git a/stripe/checkout/_session_service.py b/stripe/checkout/_session_service.py index 790ebb828..1c66e280d 100644 --- a/stripe/checkout/_session_service.py +++ b/stripe/checkout/_session_service.py @@ -344,7 +344,9 @@ class CreateParams(TypedDict): """ The shipping rate options to apply to this Session. Up to a maximum of 5. """ - submit_type: NotRequired[Literal["auto", "book", "donate", "pay"]] + submit_type: NotRequired[ + Literal["auto", "book", "donate", "pay", "subscribe"] + ] """ Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. `submit_type` can only be From 09c1bc325eb286082b7dde63276a51a716ca514c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:07:56 +0000 Subject: [PATCH 04/15] Update generated code for v1339 --- OPENAPI_VERSION | 2 +- stripe/_invoice.py | 8 ++++---- stripe/_invoice_service.py | 4 ++-- stripe/_invoice_upcoming_lines_service.py | 2 +- stripe/_quote_line.py | 2 +- stripe/_quote_preview_invoice.py | 2 +- stripe/_quote_preview_subscription_schedule.py | 2 +- stripe/_refund.py | 8 ++++++++ stripe/_subscription.py | 10 +++++----- stripe/_subscription_schedule.py | 6 +++--- stripe/_subscription_schedule_service.py | 4 ++-- stripe/_subscription_service.py | 6 +++--- 12 files changed, 32 insertions(+), 24 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 813163e51..e299bd607 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1337 \ No newline at end of file +v1339 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 7598bf228..9408a8add 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1024,7 +1024,7 @@ class PauseCollection(StripeObject): """ pause_collection: Optional[PauseCollection] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ _inner_class_types = {"pause_collection": PauseCollection} @@ -3323,7 +3323,7 @@ class CreatePreviewParamsScheduleDetailsPhase(TypedDict): "Invoice.CreatePreviewParamsScheduleDetailsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] @@ -6171,7 +6171,7 @@ class UpcomingLinesParamsScheduleDetailsPhase(TypedDict): "Invoice.UpcomingLinesParamsScheduleDetailsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] @@ -8218,7 +8218,7 @@ class UpcomingParamsScheduleDetailsPhase(TypedDict): "Invoice.UpcomingParamsScheduleDetailsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 2fa4b9547..8b9e48a50 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -2216,7 +2216,7 @@ class CreatePreviewParamsScheduleDetailsPhase(TypedDict): "InvoiceService.CreatePreviewParamsScheduleDetailsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] @@ -4311,7 +4311,7 @@ class UpcomingParamsScheduleDetailsPhase(TypedDict): "InvoiceService.UpcomingParamsScheduleDetailsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index e1d611b65..fbec247f5 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -1223,7 +1223,7 @@ class ListParamsScheduleDetailsPhase(TypedDict): "InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/_quote_line.py b/stripe/_quote_line.py index 703df5afe..4f236c1cc 100644 --- a/stripe/_quote_line.py +++ b/stripe/_quote_line.py @@ -394,7 +394,7 @@ class Set(StripeObject): set: Optional[Set] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ type: Literal["remove", "set"] """ diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index bfcee6094..b2cee330d 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -1006,7 +1006,7 @@ class PauseCollection(StripeObject): """ pause_collection: Optional[PauseCollection] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ _inner_class_types = {"pause_collection": PauseCollection} diff --git a/stripe/_quote_preview_subscription_schedule.py b/stripe/_quote_preview_subscription_schedule.py index 5d1076424..ba427868f 100644 --- a/stripe/_quote_preview_subscription_schedule.py +++ b/stripe/_quote_preview_subscription_schedule.py @@ -499,7 +499,7 @@ class EndBehavior(StripeObject): """ pause_collection: Optional[PauseCollection] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: Literal[ "always_invoice", "create_prorations", "none" diff --git a/stripe/_refund.py b/stripe/_refund.py index d8f2c74b1..99724d0c5 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -61,6 +61,10 @@ class AuBankTransfer(StripeObject): pass class Blik(StripeObject): + network_decline_code: Optional[str] + """ + For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. + """ reference: Optional[str] """ The reference assigned to the refund. @@ -202,6 +206,10 @@ class Sofort(StripeObject): pass class Swish(StripeObject): + network_decline_code: Optional[str] + """ + For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. + """ reference: Optional[str] """ The reference assigned to the refund. diff --git a/stripe/_subscription.py b/stripe/_subscription.py index ca9d64e32..4fb2fc82a 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -1647,7 +1647,7 @@ class ModifyParams(RequestOptions): "Literal['']|Subscription.ModifyParamsPauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ payment_behavior: NotRequired[ Literal[ @@ -2551,7 +2551,7 @@ class SearchParams(RequestOptions): """ pause_collection: Optional[PauseCollection] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ payment_settings: Optional[PaymentSettings] """ @@ -2598,7 +2598,7 @@ class SearchParams(RequestOptions): A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. - A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. + A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). @@ -3000,7 +3000,7 @@ def modify( A trial starts or ends. - In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). + In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). @@ -3037,7 +3037,7 @@ async def modify_async( A trial starts or ends. - In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). + In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index fdfafddba..3ed9b76da 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -507,7 +507,7 @@ class EndBehavior(StripeObject): """ pause_collection: Optional[PauseCollection] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: Literal[ "always_invoice", "create_prorations", "none" @@ -1448,7 +1448,7 @@ class CreateParamsPhase(TypedDict): "SubscriptionSchedule.CreateParamsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] @@ -2242,7 +2242,7 @@ class ModifyParamsPhase(TypedDict): "SubscriptionSchedule.ModifyParamsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/_subscription_schedule_service.py b/stripe/_subscription_schedule_service.py index 21e9b1f58..8d3f19205 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -901,7 +901,7 @@ class CreateParamsPhase(TypedDict): "SubscriptionScheduleService.CreateParamsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] @@ -1717,7 +1717,7 @@ class UpdateParamsPhase(TypedDict): "SubscriptionScheduleService.UpdateParamsPhasePauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ proration_behavior: NotRequired[ Literal["always_invoice", "create_prorations", "none"] diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 4cfa4c443..57c81bba5 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -1188,7 +1188,7 @@ class UpdateParams(TypedDict): "Literal['']|SubscriptionService.UpdateParamsPauseCollection" ] """ - If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). """ payment_behavior: NotRequired[ Literal[ @@ -2045,7 +2045,7 @@ def update( A trial starts or ends. - In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). + In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). @@ -2089,7 +2089,7 @@ async def update_async( A trial starts or ends. - In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). + In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). From fff278f45ea48eff96650e437e4d419f51583603 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:47:01 +0000 Subject: [PATCH 05/15] Update generated code for v1340 --- OPENAPI_VERSION | 2 +- stripe/issuing/_card.py | 2 +- stripe/issuing/_cardholder.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e299bd607..5725c0c7b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1339 \ No newline at end of file +v1340 \ No newline at end of file diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py index 56420836e..b806d5eea 100644 --- a/stripe/issuing/_card.py +++ b/stripe/issuing/_card.py @@ -3428,7 +3428,7 @@ class SubmitCardParams(RequestOptions): """ An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. - Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder) + Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) """ created: int """ diff --git a/stripe/issuing/_cardholder.py b/stripe/issuing/_cardholder.py index 7c700b666..42d5ec744 100644 --- a/stripe/issuing/_cardholder.py +++ b/stripe/issuing/_cardholder.py @@ -29,7 +29,7 @@ class Cardholder( """ An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. - Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder) + Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) """ OBJECT_NAME: ClassVar[Literal["issuing.cardholder"]] = "issuing.cardholder" From 7232d3bd003dc090c863000cfaa0127215283dd9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:54:29 +0000 Subject: [PATCH 06/15] Update generated code for v1343 --- OPENAPI_VERSION | 2 +- stripe/_account.py | 16 ++++++++++++++++ stripe/_account_person_service.py | 12 ++++++++++++ stripe/_person.py | 4 ++++ stripe/_token.py | 4 ++++ stripe/_token_service.py | 4 ++++ 6 files changed, 41 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5725c0c7b..6a0dbc07f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1340 \ No newline at end of file +v1343 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 631743844..a51160c8a 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -3658,6 +3658,10 @@ class CreatePersonParamsRegisteredAddress(TypedDict): """ class CreatePersonParamsRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + Whether the person is the authorizer of the account's representative. + """ director: NotRequired[bool] """ Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -3819,6 +3823,10 @@ class ListPersonsParams(RequestOptions): """ class ListPersonsParamsRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + A filter on the list of people returned based on whether these people are authorizers of the account's representative. + """ director: NotRequired[bool] """ A filter on the list of people returned based on whether these people are directors of the account's company. @@ -4239,6 +4247,10 @@ class ModifyPersonParamsRegisteredAddress(TypedDict): """ class ModifyPersonParamsRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + Whether the person is the authorizer of the account's representative. + """ director: NotRequired[bool] """ Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -4323,6 +4335,10 @@ class PersonsParams(RequestOptions): """ class PersonsParamsRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + A filter on the list of people returned based on whether these people are authorizers of the account's representative. + """ director: NotRequired[bool] """ A filter on the list of people returned based on whether these people are directors of the account's company. diff --git a/stripe/_account_person_service.py b/stripe/_account_person_service.py index 903d8e370..d19b8e948 100644 --- a/stripe/_account_person_service.py +++ b/stripe/_account_person_service.py @@ -321,6 +321,10 @@ class CreateParamsRegisteredAddress(TypedDict): """ class CreateParamsRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + Whether the person is the authorizer of the account's representative. + """ director: NotRequired[bool] """ Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -412,6 +416,10 @@ class ListParams(TypedDict): """ class ListParamsRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + A filter on the list of people returned based on whether these people are authorizers of the account's representative. + """ director: NotRequired[bool] """ A filter on the list of people returned based on whether these people are directors of the account's company. @@ -750,6 +758,10 @@ class UpdateParamsRegisteredAddress(TypedDict): """ class UpdateParamsRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + Whether the person is the authorizer of the account's representative. + """ director: NotRequired[bool] """ Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. diff --git a/stripe/_person.py b/stripe/_person.py index 315874c14..2b9b5d1ac 100644 --- a/stripe/_person.py +++ b/stripe/_person.py @@ -313,6 +313,10 @@ class RegisteredAddress(StripeObject): """ class Relationship(StripeObject): + authorizer: Optional[bool] + """ + Whether the person is the authorizer of the account's representative. + """ director: Optional[bool] """ Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. diff --git a/stripe/_token.py b/stripe/_token.py index 03ef8faa1..4e8e7ba7a 100644 --- a/stripe/_token.py +++ b/stripe/_token.py @@ -991,6 +991,10 @@ class CreateParamsPersonRegisteredAddress(TypedDict): """ class CreateParamsPersonRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + Whether the person is the authorizer of the account's representative. + """ director: NotRequired[bool] """ Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. diff --git a/stripe/_token_service.py b/stripe/_token_service.py index 30be56d21..2dd639f21 100644 --- a/stripe/_token_service.py +++ b/stripe/_token_service.py @@ -970,6 +970,10 @@ class CreateParamsPersonRegisteredAddress(TypedDict): """ class CreateParamsPersonRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + Whether the person is the authorizer of the account's representative. + """ director: NotRequired[bool] """ Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. From 6b9027ca694c4c40c5f33823be456af5de2ad4da Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:39:40 +0000 Subject: [PATCH 07/15] Update generated code for v1345 --- OPENAPI_VERSION | 2 +- stripe/_api_version.py | 2 +- stripe/_webhook_endpoint.py | 1 + stripe/_webhook_endpoint_service.py | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6a0dbc07f..71fc9b78c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1343 \ No newline at end of file +v1345 \ No newline at end of file diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 16c42a5c5..4f7ee9878 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2024-10-28.acacia" + CURRENT = "2024-11-20.acacia" diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index b19550eff..799c322a6 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -136,6 +136,7 @@ class CreateParams(RequestOptions): "2024-06-20", "2024-09-30.acacia", "2024-10-28.acacia", + "2024-11-20.acacia", ] ] """ diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 4e7557453..92b2b2402 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -117,6 +117,7 @@ class CreateParams(TypedDict): "2024-06-20", "2024-09-30.acacia", "2024-10-28.acacia", + "2024-11-20.acacia", ] ] """ From 05a9d32e1b244443f249964bf63753f66d81c090 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:20:33 +0000 Subject: [PATCH 08/15] Update generated code for v1346 --- OPENAPI_VERSION | 2 +- stripe/_funding_instructions.py | 58 +++++++++++++++++++++++++++++++++ stripe/_payment_intent.py | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 71fc9b78c..c09b35a19 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1345 \ No newline at end of file +v1346 \ No newline at end of file diff --git a/stripe/_funding_instructions.py b/stripe/_funding_instructions.py index d3ee23e43..8c9f70111 100644 --- a/stripe/_funding_instructions.py +++ b/stripe/_funding_instructions.py @@ -101,10 +101,64 @@ class BankAddress(StripeObject): } class Iban(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account """ + bank_address: BankAddress bic: str """ The BIC/SWIFT code of the account. @@ -117,6 +171,10 @@ class Iban(StripeObject): """ The IBAN of the account. """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class SortCode(StripeObject): account_holder_name: str diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 50b9d39bc..1bb061dea 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -531,10 +531,64 @@ class BankAddress(StripeObject): } class Iban(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account """ + bank_address: BankAddress bic: str """ The BIC/SWIFT code of the account. @@ -547,6 +601,10 @@ class Iban(StripeObject): """ The IBAN of the account. """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class SortCode(StripeObject): account_holder_name: str From 15ad3792c8e67add24b4618998a119cae9156232 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:16:06 +0000 Subject: [PATCH 09/15] Update generated code for v1347 --- OPENAPI_VERSION | 2 +- stripe/_funding_instructions.py | 58 --------------------------------- stripe/_payment_intent.py | 58 --------------------------------- 3 files changed, 1 insertion(+), 117 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c09b35a19..7ab08411d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1346 \ No newline at end of file +v1347 \ No newline at end of file diff --git a/stripe/_funding_instructions.py b/stripe/_funding_instructions.py index 8c9f70111..d3ee23e43 100644 --- a/stripe/_funding_instructions.py +++ b/stripe/_funding_instructions.py @@ -101,64 +101,10 @@ class BankAddress(StripeObject): } class Iban(StripeObject): - class AccountHolderAddress(StripeObject): - city: Optional[str] - """ - City, district, suburb, town, or village. - """ - country: Optional[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: Optional[str] - """ - Address line 1 (e.g., street, PO Box, or company name). - """ - line2: Optional[str] - """ - Address line 2 (e.g., apartment, suite, unit, or building). - """ - postal_code: Optional[str] - """ - ZIP or postal code. - """ - state: Optional[str] - """ - State, county, province, or region. - """ - - class BankAddress(StripeObject): - city: Optional[str] - """ - City, district, suburb, town, or village. - """ - country: Optional[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: Optional[str] - """ - Address line 1 (e.g., street, PO Box, or company name). - """ - line2: Optional[str] - """ - Address line 2 (e.g., apartment, suite, unit, or building). - """ - postal_code: Optional[str] - """ - ZIP or postal code. - """ - state: Optional[str] - """ - State, county, province, or region. - """ - - account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account """ - bank_address: BankAddress bic: str """ The BIC/SWIFT code of the account. @@ -171,10 +117,6 @@ class BankAddress(StripeObject): """ The IBAN of the account. """ - _inner_class_types = { - "account_holder_address": AccountHolderAddress, - "bank_address": BankAddress, - } class SortCode(StripeObject): account_holder_name: str diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 1bb061dea..50b9d39bc 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -531,64 +531,10 @@ class BankAddress(StripeObject): } class Iban(StripeObject): - class AccountHolderAddress(StripeObject): - city: Optional[str] - """ - City, district, suburb, town, or village. - """ - country: Optional[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: Optional[str] - """ - Address line 1 (e.g., street, PO Box, or company name). - """ - line2: Optional[str] - """ - Address line 2 (e.g., apartment, suite, unit, or building). - """ - postal_code: Optional[str] - """ - ZIP or postal code. - """ - state: Optional[str] - """ - State, county, province, or region. - """ - - class BankAddress(StripeObject): - city: Optional[str] - """ - City, district, suburb, town, or village. - """ - country: Optional[str] - """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - """ - line1: Optional[str] - """ - Address line 1 (e.g., street, PO Box, or company name). - """ - line2: Optional[str] - """ - Address line 2 (e.g., apartment, suite, unit, or building). - """ - postal_code: Optional[str] - """ - ZIP or postal code. - """ - state: Optional[str] - """ - State, county, province, or region. - """ - - account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account """ - bank_address: BankAddress bic: str """ The BIC/SWIFT code of the account. @@ -601,10 +547,6 @@ class BankAddress(StripeObject): """ The IBAN of the account. """ - _inner_class_types = { - "account_holder_address": AccountHolderAddress, - "bank_address": BankAddress, - } class SortCode(StripeObject): account_holder_name: str From fe532a39f19db2151217b151f4af464f16bcb2cd Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 19:55:00 +0000 Subject: [PATCH 10/15] Update generated code for v1348 --- OPENAPI_VERSION | 2 +- stripe/_funding_instructions.py | 58 +++++++++++++++++++++++++++++++++ stripe/_payment_intent.py | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7ab08411d..b9e816d51 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1347 \ No newline at end of file +v1348 \ No newline at end of file diff --git a/stripe/_funding_instructions.py b/stripe/_funding_instructions.py index d3ee23e43..8c9f70111 100644 --- a/stripe/_funding_instructions.py +++ b/stripe/_funding_instructions.py @@ -101,10 +101,64 @@ class BankAddress(StripeObject): } class Iban(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account """ + bank_address: BankAddress bic: str """ The BIC/SWIFT code of the account. @@ -117,6 +171,10 @@ class Iban(StripeObject): """ The IBAN of the account. """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class SortCode(StripeObject): account_holder_name: str diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 50b9d39bc..1bb061dea 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -531,10 +531,64 @@ class BankAddress(StripeObject): } class Iban(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account """ + bank_address: BankAddress bic: str """ The BIC/SWIFT code of the account. @@ -547,6 +601,10 @@ class Iban(StripeObject): """ The IBAN of the account. """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class SortCode(StripeObject): account_holder_name: str From d5258d1ebbe11a8b2f1140005bb336212b6f6018 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:05:23 +0000 Subject: [PATCH 11/15] Update generated code for v1349 --- OPENAPI_VERSION | 2 +- stripe/_funding_instructions.py | 58 +++++++++++++++++++++++++++++++++ stripe/_payment_intent.py | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b9e816d51..a043fa4a4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1348 \ No newline at end of file +v1349 \ No newline at end of file diff --git a/stripe/_funding_instructions.py b/stripe/_funding_instructions.py index 8c9f70111..8a4b378fe 100644 --- a/stripe/_funding_instructions.py +++ b/stripe/_funding_instructions.py @@ -285,6 +285,59 @@ class BankAddress(StripeObject): } class Zengin(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: Optional[str] """ The account holder name @@ -297,6 +350,7 @@ class Zengin(StripeObject): """ The bank account type. In Japan, this can only be `futsu` or `toza`. """ + bank_address: BankAddress bank_code: Optional[str] """ The bank code of the account @@ -313,6 +367,10 @@ class Zengin(StripeObject): """ The branch name of the account """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } aba: Optional[Aba] """ diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 1bb061dea..d0a89eb99 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -715,6 +715,59 @@ class BankAddress(StripeObject): } class Zengin(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: Optional[str] """ The account holder name @@ -727,6 +780,7 @@ class Zengin(StripeObject): """ The bank account type. In Japan, this can only be `futsu` or `toza`. """ + bank_address: BankAddress bank_code: Optional[str] """ The bank code of the account @@ -743,6 +797,10 @@ class Zengin(StripeObject): """ The branch name of the account """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } aba: Optional[Aba] """ From 0c3f301ed2c98a7cc320addef3b972a140a36966 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:04:53 +0000 Subject: [PATCH 12/15] Update generated code for v1350 --- OPENAPI_VERSION | 2 +- stripe/_funding_instructions.py | 62 +++++++++++++++++++++++++++++++++ stripe/_payment_intent.py | 62 +++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a043fa4a4..6a2b4d0a8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1349 \ No newline at end of file +v1350 \ No newline at end of file diff --git a/stripe/_funding_instructions.py b/stripe/_funding_instructions.py index 8a4b378fe..c85b9d075 100644 --- a/stripe/_funding_instructions.py +++ b/stripe/_funding_instructions.py @@ -191,6 +191,64 @@ class SortCode(StripeObject): """ class Spei(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress + account_holder_name: str + """ + The account holder name + """ + bank_address: BankAddress bank_code: str """ The three-digit bank code @@ -203,6 +261,10 @@ class Spei(StripeObject): """ The CLABE number """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class Swift(StripeObject): class AccountHolderAddress(StripeObject): diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index d0a89eb99..2b9406025 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -621,6 +621,64 @@ class SortCode(StripeObject): """ class Spei(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress + account_holder_name: str + """ + The account holder name + """ + bank_address: BankAddress bank_code: str """ The three-digit bank code @@ -633,6 +691,10 @@ class Spei(StripeObject): """ The CLABE number """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class Swift(StripeObject): class AccountHolderAddress(StripeObject): From 11e54a3e6c8210b99d6dffdda099805167ac50f3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 00:02:58 +0000 Subject: [PATCH 13/15] Update generated code for v1352 --- OPENAPI_VERSION | 2 +- stripe/_account.py | 2 +- stripe/_capability.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6a2b4d0a8..1dec39260 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1350 \ No newline at end of file +v1352 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index a51160c8a..dd0a22664 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -873,7 +873,7 @@ class Error(StripeObject): """ current_deadline: Optional[int] """ - Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning. + Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning. """ currently_due: Optional[List[str]] """ diff --git a/stripe/_capability.py b/stripe/_capability.py index d83ba3b62..c4a565d9c 100644 --- a/stripe/_capability.py +++ b/stripe/_capability.py @@ -140,7 +140,7 @@ class Error(StripeObject): """ current_deadline: Optional[int] """ - Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning. + Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning. """ currently_due: List[str] """ From 7362d6e35465b161cc6dacaa831e9407356fae59 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:26:45 +0000 Subject: [PATCH 14/15] Update generated code for v1353 --- OPENAPI_VERSION | 2 +- stripe/_payment_intent.py | 8 ++++---- stripe/_payment_intent_service.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1dec39260..238faa68a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1352 \ No newline at end of file +v1353 \ No newline at end of file diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 2b9406025..f51e735fa 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2665,7 +2665,7 @@ class Sofort(StripeObject): class Swish(StripeObject): reference: Optional[str] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: Optional[Literal["none"]] """ @@ -7105,7 +7105,7 @@ class ConfirmParamsPaymentMethodOptionsSofort(TypedDict): class ConfirmParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ @@ -10761,7 +10761,7 @@ class CreateParamsPaymentMethodOptionsSofort(TypedDict): class CreateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ @@ -14527,7 +14527,7 @@ class ModifyParamsPaymentMethodOptionsSofort(TypedDict): class ModifyParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 7247b0c77..97af45246 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -4171,7 +4171,7 @@ class ConfirmParamsPaymentMethodOptionsSofort(TypedDict): class ConfirmParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ @@ -7881,7 +7881,7 @@ class CreateParamsPaymentMethodOptionsSofort(TypedDict): class CreateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ @@ -11753,7 +11753,7 @@ class UpdateParamsPaymentMethodOptionsSofort(TypedDict): class UpdateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ - The order ID displayed in the Swish app after the payment is authorized. + A reference for this payment to be displayed in the Swish app. """ setup_future_usage: NotRequired[Literal["none"]] """ From 2a3098fa7182f25130bfc75f0b9ff544c00a999e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 18:58:45 +0000 Subject: [PATCH 15/15] Update generated code for v1356 --- OPENAPI_VERSION | 2 +- stripe/_funding_instructions.py | 58 +++++++++++++++++++++++++++++++++ stripe/_payment_intent.py | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 238faa68a..20cbdd304 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1353 \ No newline at end of file +v1356 \ No newline at end of file diff --git a/stripe/_funding_instructions.py b/stripe/_funding_instructions.py index c85b9d075..adebafe34 100644 --- a/stripe/_funding_instructions.py +++ b/stripe/_funding_instructions.py @@ -177,6 +177,59 @@ class BankAddress(StripeObject): } class SortCode(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account @@ -185,10 +238,15 @@ class SortCode(StripeObject): """ The account number """ + bank_address: BankAddress sort_code: str """ The six-digit sort code """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class Spei(StripeObject): class AccountHolderAddress(StripeObject): diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index f51e735fa..4242a2f27 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -607,6 +607,59 @@ class BankAddress(StripeObject): } class SortCode(StripeObject): + class AccountHolderAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + class BankAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: Optional[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region. + """ + + account_holder_address: AccountHolderAddress account_holder_name: str """ The name of the person or business that owns the bank account @@ -615,10 +668,15 @@ class SortCode(StripeObject): """ The account number """ + bank_address: BankAddress sort_code: str """ The six-digit sort code """ + _inner_class_types = { + "account_holder_address": AccountHolderAddress, + "bank_address": BankAddress, + } class Spei(StripeObject): class AccountHolderAddress(StripeObject):