From 0a325945b87a3c422809586bc0651e373c2abf55 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 05:07:53 +0000 Subject: [PATCH 1/7] Update generated code for v1126 --- OPENAPI_VERSION | 2 +- stripe/_payment_method_domain.py | 2 +- stripe/identity/_verification_report.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index af6e36838..c903c3517 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1123 \ No newline at end of file +v1126 \ No newline at end of file diff --git a/stripe/_payment_method_domain.py b/stripe/_payment_method_domain.py index 60e544186..533bdf5ba 100644 --- a/stripe/_payment_method_domain.py +++ b/stripe/_payment_method_domain.py @@ -20,7 +20,7 @@ class PaymentMethodDomain( A payment method domain represents a web domain that you have registered with Stripe. Stripe Elements use registered payment method domains to control where certain payment methods are shown. - Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration). + Related guide: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration). """ OBJECT_NAME: ClassVar[Literal["payment_method_domain"]] = ( diff --git a/stripe/identity/_verification_report.py b/stripe/identity/_verification_report.py index a8e721ac7..9846ed5bd 100644 --- a/stripe/identity/_verification_report.py +++ b/stripe/identity/_verification_report.py @@ -20,7 +20,7 @@ class VerificationReport(ListableAPIResource["VerificationReport"]): API. To configure and create VerificationReports, use the [VerificationSession](https://stripe.com/docs/api/identity/verification_sessions) API. - Related guides: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results). + Related guide: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results). """ OBJECT_NAME: ClassVar[Literal["identity.verification_report"]] = ( From 2c141ecb2b710debd189ad628604cbbfcb334169 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:59:41 +0000 Subject: [PATCH 2/7] Update generated code for v1127 --- OPENAPI_VERSION | 2 +- stripe/_subscription.py | 6 +++--- stripe/_subscription_service.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c903c3517..e4da61275 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1126 \ No newline at end of file +v1127 \ No newline at end of file diff --git a/stripe/_subscription.py b/stripe/_subscription.py index cc3fdd500..b49f20abb 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -394,7 +394,7 @@ class Filters(StripeObject): Literal["off", "on_subscription"] ] """ - Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds. + Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`. """ _inner_class_types = {"payment_method_options": PaymentMethodOptions} @@ -929,7 +929,7 @@ class CreateParamsPaymentSettings(TypedDict): Literal["off", "on_subscription"] ] """ - Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds. + Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified. """ class CreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): @@ -1758,7 +1758,7 @@ class ModifyParamsPaymentSettings(TypedDict): Literal["off", "on_subscription"] ] """ - Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds. + Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified. """ class ModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 7d124a20c..db4ba9fe9 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -496,7 +496,7 @@ class CreateParamsPaymentSettings(TypedDict): Literal["off", "on_subscription"] ] """ - Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds. + Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified. """ class CreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): @@ -1381,7 +1381,7 @@ class UpdateParamsPaymentSettings(TypedDict): Literal["off", "on_subscription"] ] """ - Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds. + Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified. """ class UpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): From 34a93458aeaaad81b17aed0316e49696d5c66fce Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 19:13:27 +0000 Subject: [PATCH 3/7] Update generated code for v1128 --- OPENAPI_VERSION | 2 +- stripe/_confirmation_token.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e4da61275..b157acd30 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1127 \ No newline at end of file +v1128 \ No newline at end of file diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 37d8e0045..f8cca02c5 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -17,6 +17,7 @@ if TYPE_CHECKING: from stripe._charge import Charge + from stripe._customer import Customer from stripe._setup_attempt import SetupAttempt @@ -1233,6 +1234,10 @@ class Zip(StripeObject): card: Optional[Card] card_present: Optional[CardPresent] cashapp: Optional[Cashapp] + customer: Optional[ExpandableField["Customer"]] + """ + The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer. + """ customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] From 3a10e1c97d3e5ee8f93b658048adec8df8fc958f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:46:31 +0000 Subject: [PATCH 4/7] Update generated code for v1131 --- OPENAPI_VERSION | 2 +- stripe/_dispute.py | 3 +++ stripe/_dispute_service.py | 3 +++ stripe/_event.py | 4 ++-- stripe/_event_service.py | 4 ++-- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b157acd30..87ed6dbb7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1128 \ No newline at end of file +v1131 \ No newline at end of file diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 092b2986b..7ee593ed2 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -212,6 +212,9 @@ class ListParams(RequestOptions): Only return disputes associated to the charge specified by this charge ID. """ created: NotRequired["Dispute.ListParamsCreated|int"] + """ + Only return disputes that were created during the given date interval. + """ ending_before: NotRequired[str] """ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/stripe/_dispute_service.py b/stripe/_dispute_service.py index fb5c273b4..1502f1e50 100644 --- a/stripe/_dispute_service.py +++ b/stripe/_dispute_service.py @@ -22,6 +22,9 @@ class ListParams(TypedDict): Only return disputes associated to the charge specified by this charge ID. """ created: NotRequired["DisputeService.ListParamsCreated|int"] + """ + Only return disputes that were created during the given date interval. + """ ending_before: NotRequired[str] """ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/stripe/_event.py b/stripe/_event.py index 40164c169..7ec69c03d 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -437,7 +437,7 @@ def retrieve( cls, id: str, **params: Unpack["Event.RetrieveParams"] ) -> "Event": """ - Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook. + Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook. """ instance = cls(id, **params) instance.refresh() @@ -448,7 +448,7 @@ async def retrieve_async( cls, id: str, **params: Unpack["Event.RetrieveParams"] ) -> "Event": """ - Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook. + Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook. """ instance = cls(id, **params) await instance.refresh_async() diff --git a/stripe/_event_service.py b/stripe/_event_service.py index 2cdaf6709..89d21c043 100644 --- a/stripe/_event_service.py +++ b/stripe/_event_service.py @@ -115,7 +115,7 @@ def retrieve( options: RequestOptions = {}, ) -> Event: """ - Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook. + Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook. """ return cast( Event, @@ -136,7 +136,7 @@ async def retrieve_async( options: RequestOptions = {}, ) -> Event: """ - Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook. + Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook. """ return cast( Event, From 0848a83bf6c647734100a9a154b2a1cfe29893e8 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jul 2024 12:19:19 +0000 Subject: [PATCH 5/7] Update generated code for v1132 --- OPENAPI_VERSION | 2 +- stripe/_invoice.py | 5 +++-- stripe/_invoice_service.py | 4 ++-- stripe/_subscription.py | 5 +++-- stripe/_subscription_service.py | 4 ++-- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 87ed6dbb7..73e167f6f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1131 \ No newline at end of file +v1132 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index b08e395b2..44b6d10ea 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -753,6 +753,7 @@ class Filters(StripeObject): "ideal", "konbini", "link", + "multibanco", "p24", "paynow", "paypal", @@ -1421,7 +1422,7 @@ class CreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -3106,7 +3107,7 @@ class ModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index ec8fa7c77..d11af31dd 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -443,7 +443,7 @@ class CreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -3549,7 +3549,7 @@ class UpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/_subscription.py b/stripe/_subscription.py index b49f20abb..5f2478489 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -373,6 +373,7 @@ class Filters(StripeObject): "ideal", "konbini", "link", + "multibanco", "p24", "paynow", "paypal", @@ -920,7 +921,7 @@ class CreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -1749,7 +1750,7 @@ class ModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index db4ba9fe9..77483b8d7 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -487,7 +487,7 @@ class CreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -1372,7 +1372,7 @@ class UpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). From d74e225f231273e76c678c481fe9409027c0c57b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:15:29 +0000 Subject: [PATCH 6/7] Update generated code for v1134 --- OPENAPI_VERSION | 2 +- stripe/terminal/_reader.py | 4 +++- stripe/terminal/_reader_service.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 73e167f6f..7a33bf614 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1132 \ No newline at end of file +v1134 \ No newline at end of file diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index d7e455aa4..eaf24cf5a 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -271,6 +271,7 @@ class ListParams(RequestOptions): "mobile_phone_reader", "simulated_wisepos_e", "stripe_m2", + "stripe_s700", "verifone_P400", ] ] @@ -531,10 +532,11 @@ class SetReaderDisplayParamsCartLineItem(TypedDict): "mobile_phone_reader", "simulated_wisepos_e", "stripe_m2", + "stripe_s700", "verifone_P400", ] """ - Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`. + Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `stripe_s700`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`. """ id: str """ diff --git a/stripe/terminal/_reader_service.py b/stripe/terminal/_reader_service.py index 3019e4843..89aec481e 100644 --- a/stripe/terminal/_reader_service.py +++ b/stripe/terminal/_reader_service.py @@ -50,6 +50,7 @@ class ListParams(TypedDict): "mobile_phone_reader", "simulated_wisepos_e", "stripe_m2", + "stripe_s700", "verifone_P400", ] ] From e576caa3caba7927054cd19b0269f408bd0bc19d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:47:44 +0000 Subject: [PATCH 7/7] Update generated code for v1135 --- OPENAPI_VERSION | 2 +- stripe/_event.py | 1 + stripe/_webhook_endpoint.py | 2 ++ stripe/_webhook_endpoint_service.py | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7a33bf614..6e73fe685 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1134 \ No newline at end of file +v1135 \ No newline at end of file diff --git a/stripe/_event.py b/stripe/_event.py index 7ec69c03d..3720b47c5 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -263,6 +263,7 @@ class RetrieveParams(RequestOptions): "issuing_dispute.closed", "issuing_dispute.created", "issuing_dispute.funds_reinstated", + "issuing_dispute.funds_rescinded", "issuing_dispute.submitted", "issuing_dispute.updated", "issuing_personalization_design.activated", diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index a8d934cb8..acc5dcca6 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -257,6 +257,7 @@ class CreateParams(RequestOptions): "issuing_dispute.closed", "issuing_dispute.created", "issuing_dispute.funds_reinstated", + "issuing_dispute.funds_rescinded", "issuing_dispute.submitted", "issuing_dispute.updated", "issuing_personalization_design.activated", @@ -542,6 +543,7 @@ class ModifyParams(RequestOptions): "issuing_dispute.closed", "issuing_dispute.created", "issuing_dispute.funds_reinstated", + "issuing_dispute.funds_rescinded", "issuing_dispute.submitted", "issuing_dispute.updated", "issuing_personalization_design.activated", diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 7b3c2c745..22525b41e 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -238,6 +238,7 @@ class CreateParams(TypedDict): "issuing_dispute.closed", "issuing_dispute.created", "issuing_dispute.funds_reinstated", + "issuing_dispute.funds_rescinded", "issuing_dispute.submitted", "issuing_dispute.updated", "issuing_personalization_design.activated", @@ -529,6 +530,7 @@ class UpdateParams(TypedDict): "issuing_dispute.closed", "issuing_dispute.created", "issuing_dispute.funds_reinstated", + "issuing_dispute.funds_rescinded", "issuing_dispute.submitted", "issuing_dispute.updated", "issuing_personalization_design.activated",