Skip to content

Commit

Permalink
Update generated code (#1362)
Browse files Browse the repository at this point in the history
* Update generated code for v1126

* Update generated code for v1127

* Update generated code for v1128

* Update generated code for v1131

* Update generated code for v1132

* Update generated code for v1134

* Update generated code for v1135

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 18, 2024
1 parent 773fb51 commit ddcc1e5
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 21 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1123
v1135
5 changes: 5 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

if TYPE_CHECKING:
from stripe._charge import Charge
from stripe._customer import Customer
from stripe._setup_attempt import SetupAttempt


Expand Down Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions stripe/_dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_dispute_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions stripe/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -437,7 +438,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()
Expand All @@ -448,7 +449,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()
Expand Down
4 changes: 2 additions & 2 deletions stripe/_event_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ class Filters(StripeObject):
"ideal",
"konbini",
"link",
"multibanco",
"p24",
"paynow",
"paypal",
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -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).
Expand Down
4 changes: 2 additions & 2 deletions stripe/_invoice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion stripe/_payment_method_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]] = (
Expand Down
11 changes: 6 additions & 5 deletions stripe/_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ class Filters(StripeObject):
"ideal",
"konbini",
"link",
"multibanco",
"p24",
"paynow",
"paypal",
Expand All @@ -394,7 +395,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}

Expand Down Expand Up @@ -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).
Expand All @@ -929,7 +930,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):
Expand Down Expand Up @@ -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).
Expand All @@ -1758,7 +1759,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):
Expand Down
8 changes: 4 additions & 4 deletions stripe/_subscription_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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):
Expand Down Expand Up @@ -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).
Expand All @@ -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):
Expand Down
Loading

0 comments on commit ddcc1e5

Please sign in to comment.