Skip to content

Commit

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

* Update generated code for v975

* Update generated code for v976

* Update generated code for v977

* Update generated code for v979

* Update generated code for v982

* Update generated code for v983

* Update generated code for v985

* Update generated code for v987

* Update generated code for v988

* Update generated code for v989

* Update generated code for v990

* Update generated code for v991

* Update generated code for v992

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and anniel-stripe committed Apr 25, 2024
1 parent 7cce756 commit b28a836
Show file tree
Hide file tree
Showing 36 changed files with 423 additions and 259 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v972
v992
157 changes: 97 additions & 60 deletions stripe/_account.py

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions stripe/_account_external_account_service.py
Expand Up @@ -310,9 +310,14 @@ def update(
options: RequestOptions = {},
) -> Union[BankAccount, Card]:
"""
Updates the metadata, account holder name, account holder type of a bank account belonging to a [Custom account](https://stripe.com/docs/connect/custom-accounts), and optionally sets it as the default for its currency. Other bank account details are not editable by design.
Updates the metadata, account holder name, account holder type of a bank account belonging to
a connected account and optionally sets it as the default for its currency. Other bank account
details are not editable by design.
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).
You can re-enable a disabled bank account by performing an update call without providing any
arguments or changes.
"""
return cast(
Union[BankAccount, Card],
Expand All @@ -337,9 +342,14 @@ async def update_async(
options: RequestOptions = {},
) -> Union[BankAccount, Card]:
"""
Updates the metadata, account holder name, account holder type of a bank account belonging to a [Custom account](https://stripe.com/docs/connect/custom-accounts), and optionally sets it as the default for its currency. Other bank account details are not editable by design.
Updates the metadata, account holder name, account holder type of a bank account belonging to
a connected account and optionally sets it as the default for its currency. Other bank account
details are not editable by design.
You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
You can re-enable a disabled bank account by performing an update call without providing any
arguments or changes.
"""
return cast(
Union[BankAccount, Card],
Expand Down
8 changes: 4 additions & 4 deletions stripe/_account_login_link_service.py
Expand Up @@ -22,9 +22,9 @@ def create(
options: RequestOptions = {},
) -> LoginLink:
"""
Creates a single-use login link for an Express account to access their Stripe dashboard.
Creates a single-use login link for a connected account to access the Express Dashboard.
You may only create login links for [Express accounts](https://stripe.com/docs/connect/express-accounts) connected to your platform.
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.
"""
return cast(
LoginLink,
Expand All @@ -47,9 +47,9 @@ async def create_async(
options: RequestOptions = {},
) -> LoginLink:
"""
Creates a single-use login link for an Express account to access their Stripe dashboard.
Creates a single-use login link for a connected account to access the Express Dashboard.
You may only create login links for [Express accounts](https://stripe.com/docs/connect/express-accounts) connected to your platform.
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.
"""
return cast(
LoginLink,
Expand Down
92 changes: 59 additions & 33 deletions stripe/_account_service.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion stripe/_balance.py
Expand Up @@ -173,7 +173,7 @@ class RetrieveParams(RequestOptions):
"""
connect_reserved: Optional[List[ConnectReserved]]
"""
Funds held due to negative balances on connected Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
"""
instant_available: Optional[List[InstantAvailable]]
"""
Expand Down
7 changes: 4 additions & 3 deletions stripe/_bank_account.py
Expand Up @@ -25,11 +25,12 @@ class BankAccount(
"""
These bank accounts are payment methods on `Customer` objects.
On the other hand [External Accounts](https://stripe.com/docs/api#external_accounts) are transfer
destinations on `Account` objects for [Custom accounts](https://stripe.com/docs/connect/custom-accounts).
On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer
destinations on `Account` objects for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
is `application`, which includes [Custom accounts](https://stripe.com/connect/custom-accounts).
They can be bank accounts or debit cards as well, and are documented in the links above.
Related guide: [Bank debits and transfers](https://stripe.com/docs/payments/bank-debits-transfers)
Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers)
"""

OBJECT_NAME: ClassVar[Literal["bank_account"]] = "bank_account"
Expand Down
8 changes: 4 additions & 4 deletions stripe/_capability.py
Expand Up @@ -294,13 +294,13 @@ class Error(StripeObject):
"""
disabled_reason: Optional[str]
"""
If the capability is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.terms_of_service`, `rejected.other`, `under_review`, or `other`.
If the capability is disabled, this string describes why. Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.fraud`, `rejected.other`, `platform_paused`, `action_required.requested_capabilities`, `rejected.inactivty`, or `rejected.unsupported_business`.
`rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service:
`rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service, such as in [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses).
- [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses)
`rejected.inactivity` means that the capability has been paused for inactivity. This disabled reason currently only applies to the Issuing capability. See [Issuing: Managing Inactive Connects](https://support.stripe.com/questions/issuing-managing-inactive-connect-accounts) for more details.
If you believe that the rejection is in error, please contact support at https://support.stripe.com/contact/ for assistance.
If you believe that a rejection is in error, please contact support at https://support.stripe.com/contact/ for assistance.
"""
errors: List[Error]
"""
Expand Down
6 changes: 3 additions & 3 deletions stripe/_card.py
Expand Up @@ -38,7 +38,7 @@ class DeleteParams(RequestOptions):

account: Optional[ExpandableField["Account"]]
"""
The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead.
The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
"""
address_city: Optional[str]
"""
Expand Down Expand Up @@ -86,7 +86,7 @@ class DeleteParams(RequestOptions):
"""
currency: Optional[str]
"""
Three-letter [ISO code for currency](https://stripe.com/docs/payouts). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency.
Three-letter [ISO code for currency](https://stripe.com/docs/payouts). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
"""
customer: Optional[ExpandableField["Customer"]]
"""
Expand All @@ -98,7 +98,7 @@ class DeleteParams(RequestOptions):
"""
default_for_currency: Optional[bool]
"""
Whether this card is the default external account for its currency.
Whether this card is the default external account for its currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
"""
description: Optional[str]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_confirmation_token.py
Expand Up @@ -1861,7 +1861,7 @@ class RetrieveParams(RequestOptions):
"""
expires_at: Optional[int]
"""
Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent. This is set to null once this ConfirmationToken has been used.
Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent.
"""
id: str
"""
Expand Down
8 changes: 4 additions & 4 deletions stripe/_event.py
Expand Up @@ -31,10 +31,10 @@ class Event(ListableAPIResource["Event"]):
`Event` objects directly to an endpoint on your server. You can manage
webhooks in your
[account settings](https://dashboard.stripe.com/account/webhooks). Learn how
to [listen for events](https://stripe.com/docs/webhooks)
to [listen for events](https://docs.stripe.com/webhooks)
so that your integration can automatically trigger reactions.
When using [Connect](https://stripe.com/docs/connect), you can also receive event notifications
When using [Connect](https://docs.stripe.com/connect), you can also receive event notifications
that occur in connected accounts. For these events, there's an
additional `account` attribute in the received `Event` object.
Expand Down Expand Up @@ -391,7 +391,7 @@ class RetrieveParams(RequestOptions):
@classmethod
def list(cls, **params: Unpack["Event.ListParams"]) -> ListObject["Event"]:
"""
List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://stripe.com/docs/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
"""
result = cls._static_request(
"get",
Expand All @@ -412,7 +412,7 @@ async def list_async(
cls, **params: Unpack["Event.ListParams"]
) -> ListObject["Event"]:
"""
List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://stripe.com/docs/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
"""
result = await cls._static_request_async(
"get",
Expand Down
4 changes: 2 additions & 2 deletions stripe/_event_service.py
Expand Up @@ -74,7 +74,7 @@ def list(
options: RequestOptions = {},
) -> ListObject[Event]:
"""
List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://stripe.com/docs/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
"""
return cast(
ListObject[Event],
Expand All @@ -94,7 +94,7 @@ async def list_async(
options: RequestOptions = {},
) -> ListObject[Event]:
"""
List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://stripe.com/docs/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
"""
return cast(
ListObject[Event],
Expand Down

0 comments on commit b28a836

Please sign in to comment.