Skip to content

Commit

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

* Update generated code for v1233

* Update generated code for v1235

* Update generated code for v1238

* Update generated code for v1243

* Update generated code for v1244

* Update generated code for v1245

* Update generated code for v1246

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Sep 5, 2024
1 parent 3d0426f commit 90f59fc
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 13 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1230
v1246
6 changes: 3 additions & 3 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,7 @@ class CreatePreviewParams(RequestOptions):
List["Invoice.CreatePreviewParamsInvoiceItem"]
]
"""
List of invoice items to add or update in the upcoming invoice preview.
List of invoice items to add or update in the upcoming invoice preview (up to 250).
"""
issuer: NotRequired["Invoice.CreatePreviewParamsIssuer"]
"""
Expand Down Expand Up @@ -3647,7 +3647,7 @@ class UpcomingLinesParams(RequestOptions):
List["Invoice.UpcomingLinesParamsInvoiceItem"]
]
"""
List of invoice items to add or update in the upcoming invoice preview.
List of invoice items to add or update in the upcoming invoice preview (up to 250).
"""
issuer: NotRequired["Invoice.UpcomingLinesParamsIssuer"]
"""
Expand Down Expand Up @@ -4794,7 +4794,7 @@ class UpcomingParams(RequestOptions):
"""
invoice_items: NotRequired[List["Invoice.UpcomingParamsInvoiceItem"]]
"""
List of invoice items to add or update in the upcoming invoice preview.
List of invoice items to add or update in the upcoming invoice preview (up to 250).
"""
issuer: NotRequired["Invoice.UpcomingParamsIssuer"]
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_invoice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ class CreatePreviewParams(TypedDict):
List["InvoiceService.CreatePreviewParamsInvoiceItem"]
]
"""
List of invoice items to add or update in the upcoming invoice preview.
List of invoice items to add or update in the upcoming invoice preview (up to 250).
"""
issuer: NotRequired["InvoiceService.CreatePreviewParamsIssuer"]
"""
Expand Down Expand Up @@ -2060,7 +2060,7 @@ class UpcomingParams(TypedDict):
List["InvoiceService.UpcomingParamsInvoiceItem"]
]
"""
List of invoice items to add or update in the upcoming invoice preview.
List of invoice items to add or update in the upcoming invoice preview (up to 250).
"""
issuer: NotRequired["InvoiceService.UpcomingParamsIssuer"]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_invoice_upcoming_lines_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ListParams(TypedDict):
List["InvoiceUpcomingLinesService.ListParamsInvoiceItem"]
]
"""
List of invoice items to add or update in the upcoming invoice preview.
List of invoice items to add or update in the upcoming invoice preview (up to 250).
"""
issuer: NotRequired["InvoiceUpcomingLinesService.ListParamsIssuer"]
"""
Expand Down
24 changes: 24 additions & 0 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -9767,6 +9767,9 @@ def _cls_confirm(
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
return cast(
"PaymentIntent",
Expand Down Expand Up @@ -9807,6 +9810,9 @@ def confirm(
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
...

Expand Down Expand Up @@ -9837,6 +9843,9 @@ def confirm(
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
...

Expand Down Expand Up @@ -9867,6 +9876,9 @@ def confirm( # pyright: ignore[reportGeneralTypeIssues]
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
return cast(
"PaymentIntent",
Expand Down Expand Up @@ -9906,6 +9918,9 @@ async def _cls_confirm_async(
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
return cast(
"PaymentIntent",
Expand Down Expand Up @@ -9946,6 +9961,9 @@ async def confirm_async(
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
...

Expand Down Expand Up @@ -9976,6 +9994,9 @@ async def confirm_async(
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
...

Expand Down Expand Up @@ -10006,6 +10027,9 @@ async def confirm_async( # pyright: ignore[reportGeneralTypeIssues]
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
return cast(
"PaymentIntent",
Expand Down
6 changes: 6 additions & 0 deletions stripe/_payment_intent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7630,6 +7630,9 @@ def confirm(
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
return cast(
PaymentIntent,
Expand Down Expand Up @@ -7673,6 +7676,9 @@ async def confirm_async(
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt.
There is a variable upper limit on how many times a PaymentIntent can be confirmed.
After this limit is reached, any further calls to this endpoint will
transition the PaymentIntent to the canceled state.
"""
return cast(
PaymentIntent,
Expand Down
2 changes: 1 addition & 1 deletion stripe/_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class RetrieveReversalParams(RequestOptions):
"""
source_transaction: Optional[ExpandableField["Charge"]]
"""
ID of the charge or payment that was used to fund the transfer. If null, the transfer was funded from the available balance.
ID of the charge that was used to fund the transfer. If null, the transfer was funded from the available balance.
"""
source_type: Optional[str]
"""
Expand Down
8 changes: 8 additions & 0 deletions stripe/billing/_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ class CreateParamsFilter(TypedDict):
"""
Limit the scope to this alert only to this customer.
"""
subscription: NotRequired[str]
"""
Limit the scope of this rated usage alert to this subscription.
"""
subscription_item: NotRequired[str]
"""
Limit the scope of this rated usage alert to this subscription item.
"""

class CreateParamsUsageThresholdConfig(TypedDict):
gte: int
Expand Down
8 changes: 8 additions & 0 deletions stripe/billing/_alert_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ class CreateParamsFilter(TypedDict):
"""
Limit the scope to this alert only to this customer.
"""
subscription: NotRequired[str]
"""
Limit the scope of this rated usage alert to this subscription.
"""
subscription_item: NotRequired[str]
"""
Limit the scope of this rated usage alert to this subscription item.
"""

class CreateParamsUsageThresholdConfig(TypedDict):
gte: int
Expand Down
4 changes: 2 additions & 2 deletions stripe/checkout/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ class CreateParams(RequestOptions):
Literal["always", "if_required", "never"]
]
"""
This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
"""
return_url: NotRequired[str]
"""
Expand Down Expand Up @@ -4109,7 +4109,7 @@ class RetrieveParams(RequestOptions):
"""
redirect_on_completion: Optional[Literal["always", "if_required", "never"]]
"""
This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
"""
return_url: Optional[str]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/checkout/_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class CreateParams(TypedDict):
Literal["always", "if_required", "never"]
]
"""
This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
"""
return_url: NotRequired[str]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/terminal/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class ProcessPaymentIntentParamsProcessConfigTipping(TypedDict):
"""

class ProcessSetupIntentParams(RequestOptions):
customer_consent_collected: bool
customer_consent_collected: NotRequired[bool]
"""
Customer Consent Collected
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/terminal/_reader_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ProcessPaymentIntentParamsProcessConfigTipping(TypedDict):
"""

class ProcessSetupIntentParams(TypedDict):
customer_consent_collected: bool
customer_consent_collected: NotRequired[bool]
"""
Customer Consent Collected
"""
Expand Down

0 comments on commit 90f59fc

Please sign in to comment.