Skip to content

Commit

Permalink
Update generated code for v1318
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 23, 2024
1 parent 32d3485 commit 4df9949
Show file tree
Hide file tree
Showing 16 changed files with 547 additions and 22 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1317
v1318
4 changes: 2 additions & 2 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -5279,7 +5279,7 @@ def create_login_link(
cls, account: str, **params: Unpack["Account.CreateLoginLinkParams"]
) -> "LoginLink":
"""
Creates a single-use login link for a connected account to access the Express Dashboard.
Creates a login link for a connected account to access the Express Dashboard.
You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
"""
Expand All @@ -5299,7 +5299,7 @@ async def create_login_link_async(
cls, account: str, **params: Unpack["Account.CreateLoginLinkParams"]
) -> "LoginLink":
"""
Creates a single-use login link for a connected account to access the Express Dashboard.
Creates a login link for a connected account to access the Express Dashboard.
You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_login_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def create(
options: RequestOptions = {},
) -> LoginLink:
"""
Creates a single-use login link for a connected account to access the Express Dashboard.
Creates a login link for a connected account to access the Express Dashboard.
You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
"""
Expand All @@ -46,7 +46,7 @@ async def create_async(
options: RequestOptions = {},
) -> LoginLink:
"""
Creates a single-use login link for a connected account to access the Express Dashboard.
Creates a login link for a connected account to access the Express Dashboard.
You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
"""
Expand Down
14 changes: 10 additions & 4 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ class CreateParamsComponents(TypedDict):
recipients: NotRequired[
"AccountSession.CreateParamsComponentsRecipients"
]
"""
Configuration for the recipients component.
"""
reporting_chart: NotRequired[
"AccountSession.CreateParamsComponentsReportingChart"
]
Expand Down Expand Up @@ -643,6 +646,9 @@ class CreateParamsComponentsFinancialAccount(TypedDict):
features: NotRequired[
"AccountSession.CreateParamsComponentsFinancialAccountFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsFinancialAccountFeatures(TypedDict):
disable_stripe_user_authentication: NotRequired[bool]
Expand Down Expand Up @@ -882,12 +888,12 @@ class CreateParamsComponentsRecipients(TypedDict):
features: NotRequired[
"AccountSession.CreateParamsComponentsRecipientsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsRecipientsFeatures(TypedDict):
pass
send_money: NotRequired[bool]
"""
Whether to allow sending money.
"""

class CreateParamsComponentsReportingChart(TypedDict):
enabled: bool
Expand Down
14 changes: 10 additions & 4 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ class CreateParamsComponents(TypedDict):
recipients: NotRequired[
"AccountSessionService.CreateParamsComponentsRecipients"
]
"""
Configuration for the recipients component.
"""
reporting_chart: NotRequired[
"AccountSessionService.CreateParamsComponentsReportingChart"
]
Expand Down Expand Up @@ -362,6 +365,9 @@ class CreateParamsComponentsFinancialAccount(TypedDict):
features: NotRequired[
"AccountSessionService.CreateParamsComponentsFinancialAccountFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsFinancialAccountFeatures(TypedDict):
disable_stripe_user_authentication: NotRequired[bool]
Expand Down Expand Up @@ -601,12 +607,12 @@ class CreateParamsComponentsRecipients(TypedDict):
features: NotRequired[
"AccountSessionService.CreateParamsComponentsRecipientsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsRecipientsFeatures(TypedDict):
pass
send_money: NotRequired[bool]
"""
Whether to allow sending money.
"""

class CreateParamsComponentsReportingChart(TypedDict):
enabled: bool
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2024-09-30.acacia"
CURRENT = "2024-10-28.acacia"
8 changes: 3 additions & 5 deletions stripe/_dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class ShippingAddress(StripeObject):
"""
The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.
"""
enhanced_evidence: Optional[EnhancedEvidence]
enhanced_evidence: EnhancedEvidence
product_description: Optional[str]
"""
A description of the product or service that was sold.
Expand Down Expand Up @@ -323,7 +323,7 @@ class VisaCompellingEvidence3(StripeObject):
"""
Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.
"""
enhanced_eligibility: Optional[EnhancedEligibility]
enhanced_eligibility: EnhancedEligibility
has_evidence: bool
"""
Whether evidence has been staged for this dispute.
Expand Down Expand Up @@ -764,9 +764,7 @@ class RetrieveParams(RequestOptions):
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
enhanced_eligibility_types: Optional[
List[Literal["visa_compelling_evidence_3"]]
]
enhanced_eligibility_types: List[Literal["visa_compelling_evidence_3"]]
"""
List of eligibility types that are included in `enhanced_evidence`.
"""
Expand Down
8 changes: 8 additions & 0 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,10 @@ class CreateParams(RequestOptions):
"""
Settings for automatic tax lookup for this invoice.
"""
automatically_finalizes_at: NotRequired[int]
"""
The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state.
"""
collection_method: NotRequired[
Literal["charge_automatically", "send_invoice"]
]
Expand Down Expand Up @@ -4176,6 +4180,10 @@ class ModifyParams(RequestOptions):
"""
Settings for automatic tax lookup for this invoice.
"""
automatically_finalizes_at: NotRequired[int]
"""
The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false.
"""
collection_method: NotRequired[
Literal["charge_automatically", "send_invoice"]
]
Expand Down
8 changes: 8 additions & 0 deletions stripe/_invoice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ class CreateParams(TypedDict):
"""
Settings for automatic tax lookup for this invoice.
"""
automatically_finalizes_at: NotRequired[int]
"""
The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state.
"""
collection_method: NotRequired[
Literal["charge_automatically", "send_invoice"]
]
Expand Down Expand Up @@ -5406,6 +5410,10 @@ class UpdateParams(TypedDict):
"""
Settings for automatic tax lookup for this invoice.
"""
automatically_finalizes_at: NotRequired[int]
"""
The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false.
"""
collection_method: NotRequired[
Literal["charge_automatically", "send_invoice"]
]
Expand Down
Loading

0 comments on commit 4df9949

Please sign in to comment.