Skip to content

Commit 6f57ab8

Browse files
Update generated code (#1662)
* Update generated code for v2109 and * Update generated code for v2111 and * Update generated code for v2111 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 2b4c14a commit 6f57ab8

16 files changed

+72
-35
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
07c094f7c1f64823539941252667a6620cc6bb44
1+
6d15a7f20cb77c2c22091a30e499cb89d7e3248c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2108
1+
v2111

stripe/_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ class Invoices(StripeObject):
12671267
Literal["always", "never", "offer"]
12681268
]
12691269
"""
1270-
Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1270+
Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
12711271
"""
12721272

12731273
class Payments(StripeObject):

stripe/_invoice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ class TaxRateDetails(StripeObject):
12571257
* `subscription_cycle`: A subscription advanced into a new period.
12581258
* `subscription_threshold`: A subscription reached a billing threshold.
12591259
* `subscription_update`: A subscription was updated.
1260-
* `upcoming`: Reserved for simulated invoices, per the upcoming invoice endpoint.
1260+
* `upcoming`: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription.
12611261
"""
12621262
collection_method: Literal["charge_automatically", "send_invoice"]
12631263
"""

stripe/_payment_intent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,6 +1834,10 @@ class Routing(StripeObject):
18341834
Requested routing priority
18351835
"""
18361836

1837+
capture_method: Optional[Literal["manual", "manual_preferred"]]
1838+
"""
1839+
Controls when the funds will be captured from the customer's account.
1840+
"""
18371841
request_extended_authorization: Optional[bool]
18381842
"""
18391843
Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)

stripe/params/_account_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ class AccountCreateParamsSettingsInvoices(TypedDict):
18641864
Literal["always", "never", "offer"]
18651865
]
18661866
"""
1867-
Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1867+
Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
18681868
"""
18691869

18701870

stripe/params/_account_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ class AccountUpdateParamsSettingsInvoices(TypedDict):
18101810
Literal["always", "never", "offer"]
18111811
]
18121812
"""
1813-
Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1813+
Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
18141814
"""
18151815

18161816

stripe/params/_customer_session_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class CustomerSessionCreateParams(RequestOptions):
99
components: "CustomerSessionCreateParamsComponents"
1010
"""
11-
Configuration for each component. Exactly 1 component must be enabled.
11+
Configuration for each component. At least 1 component must be enabled.
1212
"""
1313
customer: str
1414
"""

stripe/params/_payment_intent_confirm_params.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,6 +2029,14 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptio
20292029

20302030

20312031
class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict):
2032+
capture_method: NotRequired[Literal["manual", "manual_preferred"]]
2033+
"""
2034+
Controls when the funds are captured from the customer's account.
2035+
2036+
If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2037+
2038+
If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2039+
"""
20322040
request_extended_authorization: NotRequired[bool]
20332041
"""
20342042
Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)

stripe/params/_payment_intent_create_params.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,6 +2148,14 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOption
21482148

21492149

21502150
class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict):
2151+
capture_method: NotRequired[Literal["manual", "manual_preferred"]]
2152+
"""
2153+
Controls when the funds are captured from the customer's account.
2154+
2155+
If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2156+
2157+
If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2158+
"""
21512159
request_extended_authorization: NotRequired[bool]
21522160
"""
21532161
Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)

0 commit comments

Comments
 (0)