Skip to content

Commit

Permalink
Update generated code for v1275
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 8, 2024
1 parent 570833d commit 866e054
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1273
v1275
21 changes: 21 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,12 @@ class Error(StripeObject):
"""
_inner_class_types = {"alternatives": Alternative, "errors": Error}

class Groups(StripeObject):
payments_pricing: Optional[str]
"""
The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
"""

class Requirements(StripeObject):
class Alternative(StripeObject):
alternative_fields_due: List[str]
Expand Down Expand Up @@ -1370,6 +1376,10 @@ class CreateParams(RequestOptions):
By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/api#account_create_bank_account) or [card creation](https://stripe.com/api#account_create_card) APIs. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
"""
groups: NotRequired["Account.CreateParamsGroups"]
"""
A hash of account group type to tokens. These are account groups this account should be added to
"""
individual: NotRequired["Account.CreateParamsIndividual"]
"""
Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
Expand Down Expand Up @@ -2511,6 +2521,12 @@ class CreateParamsDocumentsProofOfRegistration(TypedDict):
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class CreateParamsGroups(TypedDict):
payments_pricing: NotRequired["Literal['']|str"]
"""
The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
"""

class CreateParamsIndividual(TypedDict):
address: NotRequired["Account.CreateParamsIndividualAddress"]
"""
Expand Down Expand Up @@ -4100,6 +4116,10 @@ class RetrievePersonParams(RequestOptions):
External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true.
"""
future_requirements: Optional[FutureRequirements]
groups: Optional[Groups]
"""
The groups associated with the account.
"""
id: str
"""
Unique identifier for the object.
Expand Down Expand Up @@ -5236,6 +5256,7 @@ async def list_persons_async(
"company": Company,
"controller": Controller,
"future_requirements": FutureRequirements,
"groups": Groups,
"requirements": Requirements,
"risk_controls": RiskControls,
"settings": Settings,
Expand Down
20 changes: 20 additions & 0 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ class CreateParams(TypedDict):
By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/api#account_create_bank_account) or [card creation](https://stripe.com/api#account_create_card) APIs. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
"""
groups: NotRequired["AccountService.CreateParamsGroups"]
"""
A hash of account group type to tokens. These are account groups this account should be added to
"""
individual: NotRequired["AccountService.CreateParamsIndividual"]
"""
Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
Expand Down Expand Up @@ -1242,6 +1246,12 @@ class CreateParamsDocumentsProofOfRegistration(TypedDict):
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class CreateParamsGroups(TypedDict):
payments_pricing: NotRequired["Literal['']|str"]
"""
The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
"""

class CreateParamsIndividual(TypedDict):
address: NotRequired["AccountService.CreateParamsIndividualAddress"]
"""
Expand Down Expand Up @@ -1909,6 +1919,10 @@ class UpdateParams(TypedDict):
By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/api#account_create_bank_account) or [card creation](https://stripe.com/api#account_create_card) APIs. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
"""
groups: NotRequired["AccountService.UpdateParamsGroups"]
"""
A hash of account group type to tokens. These are account groups this account should be added to
"""
individual: NotRequired["AccountService.UpdateParamsIndividual"]
"""
Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
Expand Down Expand Up @@ -2990,6 +3004,12 @@ class UpdateParamsDocumentsProofOfRegistration(TypedDict):
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""

class UpdateParamsGroups(TypedDict):
payments_pricing: NotRequired["Literal['']|str"]
"""
The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
"""

class UpdateParamsIndividual(TypedDict):
address: NotRequired["AccountService.UpdateParamsIndividualAddress"]
"""
Expand Down

0 comments on commit 866e054

Please sign in to comment.