Skip to content

Commit

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

* Update generated code for v1455

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: David Brownman <[email protected]>
Co-authored-by: helenye-stripe <[email protected]>
  • Loading branch information
3 people authored Jan 27, 2025
1 parent 288290b commit 46d65cd
Show file tree
Hide file tree
Showing 43 changed files with 1,511 additions and 17 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1412
v1455
78 changes: 78 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ class Capabilities(StripeObject):
"""
The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
"""
pay_by_bank_payments: Optional[
Literal["active", "inactive", "pending"]
]
"""
The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.
"""
payco_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Payco capability of the account, or whether the account can directly process Payco payments.
Expand Down Expand Up @@ -486,6 +492,20 @@ class AddressKanji(StripeObject):
Town/cho-me.
"""

class DirectorshipDeclaration(StripeObject):
date: Optional[int]
"""
The Unix timestamp marking when the directorship declaration attestation was made.
"""
ip: Optional[str]
"""
The IP address from which the directorship declaration attestation was made.
"""
user_agent: Optional[str]
"""
The user-agent string from the browser where the directorship declaration attestation was made.
"""

class OwnershipDeclaration(StripeObject):
date: Optional[int]
"""
Expand Down Expand Up @@ -535,6 +555,10 @@ class Document(StripeObject):
"""
Whether the company's directors have been provided. This Boolean will be `true` if you've manually indicated that all directors are provided via [the `directors_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-directors_provided).
"""
directorship_declaration: Optional[DirectorshipDeclaration]
"""
This hash is used to attest that the director information provided to Stripe is both current and correct.
"""
executives_provided: Optional[bool]
"""
Whether the company's executives have been provided. This Boolean will be `true` if you've manually indicated that all executives are provided via [the `executives_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-executives_provided), or if Stripe determined that sufficient executives were provided.
Expand Down Expand Up @@ -567,6 +591,12 @@ class Document(StripeObject):
"""
This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
"""
ownership_exemption_reason: Optional[
Literal[
"qualified_entity_exceeds_ownership_threshold",
"qualifies_as_financial_institution",
]
]
phone: Optional[str]
"""
The company's phone number (used for verification).
Expand Down Expand Up @@ -621,6 +651,7 @@ class Document(StripeObject):
"address": Address,
"address_kana": AddressKana,
"address_kanji": AddressKanji,
"directorship_declaration": DirectorshipDeclaration,
"ownership_declaration": OwnershipDeclaration,
"verification": Verification,
}
Expand Down Expand Up @@ -1731,6 +1762,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The p24_payments capability.
"""
pay_by_bank_payments: NotRequired[
"Account.CreateParamsCapabilitiesPayByBankPayments"
]
"""
The pay_by_bank_payments capability.
"""
payco_payments: NotRequired[
"Account.CreateParamsCapabilitiesPaycoPayments"
]
Expand Down Expand Up @@ -2046,6 +2083,12 @@ class CreateParamsCapabilitiesP24Payments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesPayByBankPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesPaycoPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -2190,6 +2233,12 @@ class CreateParamsCompany(TypedDict):
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
"""
directorship_declaration: NotRequired[
"Account.CreateParamsCompanyDirectorshipDeclaration"
]
"""
This hash is used to attest that the directors information provided to Stripe is both current and correct.
"""
executives_provided: NotRequired[bool]
"""
Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
Expand Down Expand Up @@ -2224,6 +2273,9 @@ class CreateParamsCompany(TypedDict):
"""
This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
"""
ownership_exemption_reason: NotRequired[
"Literal['']|Literal['qualified_entity_exceeds_ownership_threshold', 'qualifies_as_financial_institution']"
]
phone: NotRequired[str]
"""
The company's phone number (used for verification).
Expand Down Expand Up @@ -2341,6 +2393,20 @@ class CreateParamsCompanyAddressKanji(TypedDict):
Town or cho-me.
"""

class CreateParamsCompanyDirectorshipDeclaration(TypedDict):
date: NotRequired[int]
"""
The Unix timestamp marking when the directorship declaration attestation was made.
"""
ip: NotRequired[str]
"""
The IP address from which the directorship declaration attestation was made.
"""
user_agent: NotRequired[str]
"""
The user agent of the browser from which the directorship declaration attestation was made.
"""

class CreateParamsCompanyOwnershipDeclaration(TypedDict):
date: NotRequired[int]
"""
Expand Down Expand Up @@ -2454,6 +2520,12 @@ class CreateParamsDocuments(TypedDict):
"""
One or more documents showing the company's proof of registration with the national business registry.
"""
proof_of_ultimate_beneficial_ownership: NotRequired[
"Account.CreateParamsDocumentsProofOfUltimateBeneficialOwnership"
]
"""
One or more documents that demonstrate proof of ultimate beneficial ownership.
"""

class CreateParamsDocumentsBankAccountOwnershipVerification(TypedDict):
files: NotRequired[List[str]]
Expand Down Expand Up @@ -2497,6 +2569,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 CreateParamsDocumentsProofOfUltimateBeneficialOwnership(TypedDict):
files: NotRequired[List[str]]
"""
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"]
"""
Expand Down
94 changes: 94 additions & 0 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The p24_payments capability.
"""
pay_by_bank_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesPayByBankPayments"
]
"""
The pay_by_bank_payments capability.
"""
payco_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesPaycoPayments"
]
Expand Down Expand Up @@ -777,6 +783,12 @@ class CreateParamsCapabilitiesP24Payments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesPayByBankPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesPaycoPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -925,6 +937,12 @@ class CreateParamsCompany(TypedDict):
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
"""
directorship_declaration: NotRequired[
"AccountService.CreateParamsCompanyDirectorshipDeclaration"
]
"""
This hash is used to attest that the directors information provided to Stripe is both current and correct.
"""
executives_provided: NotRequired[bool]
"""
Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
Expand Down Expand Up @@ -959,6 +977,9 @@ class CreateParamsCompany(TypedDict):
"""
This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
"""
ownership_exemption_reason: NotRequired[
"Literal['']|Literal['qualified_entity_exceeds_ownership_threshold', 'qualifies_as_financial_institution']"
]
phone: NotRequired[str]
"""
The company's phone number (used for verification).
Expand Down Expand Up @@ -1078,6 +1099,20 @@ class CreateParamsCompanyAddressKanji(TypedDict):
Town or cho-me.
"""

class CreateParamsCompanyDirectorshipDeclaration(TypedDict):
date: NotRequired[int]
"""
The Unix timestamp marking when the directorship declaration attestation was made.
"""
ip: NotRequired[str]
"""
The IP address from which the directorship declaration attestation was made.
"""
user_agent: NotRequired[str]
"""
The user agent of the browser from which the directorship declaration attestation was made.
"""

class CreateParamsCompanyOwnershipDeclaration(TypedDict):
date: NotRequired[int]
"""
Expand Down Expand Up @@ -1191,6 +1226,12 @@ class CreateParamsDocuments(TypedDict):
"""
One or more documents showing the company's proof of registration with the national business registry.
"""
proof_of_ultimate_beneficial_ownership: NotRequired[
"AccountService.CreateParamsDocumentsProofOfUltimateBeneficialOwnership"
]
"""
One or more documents that demonstrate proof of ultimate beneficial ownership.
"""

class CreateParamsDocumentsBankAccountOwnershipVerification(TypedDict):
files: NotRequired[List[str]]
Expand Down Expand Up @@ -1234,6 +1275,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 CreateParamsDocumentsProofOfUltimateBeneficialOwnership(TypedDict):
files: NotRequired[List[str]]
"""
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"]
"""
Expand Down Expand Up @@ -2226,6 +2273,12 @@ class UpdateParamsCapabilities(TypedDict):
"""
The p24_payments capability.
"""
pay_by_bank_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesPayByBankPayments"
]
"""
The pay_by_bank_payments capability.
"""
payco_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesPaycoPayments"
]
Expand Down Expand Up @@ -2545,6 +2598,12 @@ class UpdateParamsCapabilitiesP24Payments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class UpdateParamsCapabilitiesPayByBankPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class UpdateParamsCapabilitiesPaycoPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -2693,6 +2752,12 @@ class UpdateParamsCompany(TypedDict):
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
"""
directorship_declaration: NotRequired[
"AccountService.UpdateParamsCompanyDirectorshipDeclaration"
]
"""
This hash is used to attest that the directors information provided to Stripe is both current and correct.
"""
executives_provided: NotRequired[bool]
"""
Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
Expand Down Expand Up @@ -2727,6 +2792,9 @@ class UpdateParamsCompany(TypedDict):
"""
This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
"""
ownership_exemption_reason: NotRequired[
"Literal['']|Literal['qualified_entity_exceeds_ownership_threshold', 'qualifies_as_financial_institution']"
]
phone: NotRequired[str]
"""
The company's phone number (used for verification).
Expand Down Expand Up @@ -2846,6 +2914,20 @@ class UpdateParamsCompanyAddressKanji(TypedDict):
Town or cho-me.
"""

class UpdateParamsCompanyDirectorshipDeclaration(TypedDict):
date: NotRequired[int]
"""
The Unix timestamp marking when the directorship declaration attestation was made.
"""
ip: NotRequired[str]
"""
The IP address from which the directorship declaration attestation was made.
"""
user_agent: NotRequired[str]
"""
The user agent of the browser from which the directorship declaration attestation was made.
"""

class UpdateParamsCompanyOwnershipDeclaration(TypedDict):
date: NotRequired[int]
"""
Expand Down Expand Up @@ -2921,6 +3003,12 @@ class UpdateParamsDocuments(TypedDict):
"""
One or more documents showing the company's proof of registration with the national business registry.
"""
proof_of_ultimate_beneficial_ownership: NotRequired[
"AccountService.UpdateParamsDocumentsProofOfUltimateBeneficialOwnership"
]
"""
One or more documents that demonstrate proof of ultimate beneficial ownership.
"""

class UpdateParamsDocumentsBankAccountOwnershipVerification(TypedDict):
files: NotRequired[List[str]]
Expand Down Expand Up @@ -2964,6 +3052,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 UpdateParamsDocumentsProofOfUltimateBeneficialOwnership(TypedDict):
files: NotRequired[List[str]]
"""
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"]
"""
Expand Down
Loading

0 comments on commit 46d65cd

Please sign in to comment.