Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #1396

Merged
merged 13 commits into from
Oct 8, 2024
Merged
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Changelog

## 11.2.0b1 - 2024-10-03
* [#1407](https://github.com/stripe/stripe-python/pull/1407) Updates beta branch with changes in master & update generated code
* Add support for `reporting_chart` on parameter class `stripe.AccountSession.CreateParamsComponents`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1268
v1278
27 changes: 24 additions & 3 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 @@ -2552,7 +2568,7 @@ class CreateParamsIndividual(TypedDict):
"""
gender: NotRequired[str]
"""
The individual's gender (International regulations require either "male" or "female").
The individual's gender
"""
id_number: NotRequired[str]
"""
Expand Down Expand Up @@ -4071,7 +4087,7 @@ class RetrievePersonParams(RequestOptions):
capabilities: Optional[Capabilities]
charges_enabled: Optional[bool]
"""
Whether the account can create live charges.
Whether the account can process charges.
"""
company: Optional[Company]
controller: Optional[Controller]
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 All @@ -4122,7 +4142,7 @@ class RetrievePersonParams(RequestOptions):
"""
payouts_enabled: Optional[bool]
"""
Whether Stripe can send payouts to this account.
Whether the funds in this account can be paid out.
"""
requirements: Optional[Requirements]
risk_controls: Optional[RiskControls]
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
24 changes: 22 additions & 2 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 @@ -1287,7 +1297,7 @@ class CreateParamsIndividual(TypedDict):
"""
gender: NotRequired[str]
"""
The individual's gender (International regulations require either "male" or "female").
The individual's gender
"""
id_number: NotRequired[str]
"""
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 Expand Up @@ -3035,7 +3055,7 @@ class UpdateParamsIndividual(TypedDict):
"""
gender: NotRequired[str]
"""
The individual's gender (International regulations require either "male" or "female").
The individual's gender
"""
id_number: NotRequired[str]
"""
Expand Down
Loading
Loading