Skip to content

Commit 46d65cd

Browse files
stripe-openapi[bot]xavdid-stripehelenye-stripe
authored
Update generated code (#1443)
* 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 <109395161+xavdid-stripe@users.noreply.github.com> Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>
1 parent 288290b commit 46d65cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1511
-17
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1412
1+
v1455

stripe/_account.py

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ class Capabilities(StripeObject):
316316
"""
317317
The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
318318
"""
319+
pay_by_bank_payments: Optional[
320+
Literal["active", "inactive", "pending"]
321+
]
322+
"""
323+
The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.
324+
"""
319325
payco_payments: Optional[Literal["active", "inactive", "pending"]]
320326
"""
321327
The status of the Payco capability of the account, or whether the account can directly process Payco payments.
@@ -486,6 +492,20 @@ class AddressKanji(StripeObject):
486492
Town/cho-me.
487493
"""
488494

495+
class DirectorshipDeclaration(StripeObject):
496+
date: Optional[int]
497+
"""
498+
The Unix timestamp marking when the directorship declaration attestation was made.
499+
"""
500+
ip: Optional[str]
501+
"""
502+
The IP address from which the directorship declaration attestation was made.
503+
"""
504+
user_agent: Optional[str]
505+
"""
506+
The user-agent string from the browser where the directorship declaration attestation was made.
507+
"""
508+
489509
class OwnershipDeclaration(StripeObject):
490510
date: Optional[int]
491511
"""
@@ -535,6 +555,10 @@ class Document(StripeObject):
535555
"""
536556
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).
537557
"""
558+
directorship_declaration: Optional[DirectorshipDeclaration]
559+
"""
560+
This hash is used to attest that the director information provided to Stripe is both current and correct.
561+
"""
538562
executives_provided: Optional[bool]
539563
"""
540564
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.
@@ -567,6 +591,12 @@ class Document(StripeObject):
567591
"""
568592
This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
569593
"""
594+
ownership_exemption_reason: Optional[
595+
Literal[
596+
"qualified_entity_exceeds_ownership_threshold",
597+
"qualifies_as_financial_institution",
598+
]
599+
]
570600
phone: Optional[str]
571601
"""
572602
The company's phone number (used for verification).
@@ -621,6 +651,7 @@ class Document(StripeObject):
621651
"address": Address,
622652
"address_kana": AddressKana,
623653
"address_kanji": AddressKanji,
654+
"directorship_declaration": DirectorshipDeclaration,
624655
"ownership_declaration": OwnershipDeclaration,
625656
"verification": Verification,
626657
}
@@ -1731,6 +1762,12 @@ class CreateParamsCapabilities(TypedDict):
17311762
"""
17321763
The p24_payments capability.
17331764
"""
1765+
pay_by_bank_payments: NotRequired[
1766+
"Account.CreateParamsCapabilitiesPayByBankPayments"
1767+
]
1768+
"""
1769+
The pay_by_bank_payments capability.
1770+
"""
17341771
payco_payments: NotRequired[
17351772
"Account.CreateParamsCapabilitiesPaycoPayments"
17361773
]
@@ -2046,6 +2083,12 @@ class CreateParamsCapabilitiesP24Payments(TypedDict):
20462083
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.
20472084
"""
20482085

2086+
class CreateParamsCapabilitiesPayByBankPayments(TypedDict):
2087+
requested: NotRequired[bool]
2088+
"""
2089+
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.
2090+
"""
2091+
20492092
class CreateParamsCapabilitiesPaycoPayments(TypedDict):
20502093
requested: NotRequired[bool]
20512094
"""
@@ -2190,6 +2233,12 @@ class CreateParamsCompany(TypedDict):
21902233
"""
21912234
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.
21922235
"""
2236+
directorship_declaration: NotRequired[
2237+
"Account.CreateParamsCompanyDirectorshipDeclaration"
2238+
]
2239+
"""
2240+
This hash is used to attest that the directors information provided to Stripe is both current and correct.
2241+
"""
21932242
executives_provided: NotRequired[bool]
21942243
"""
21952244
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.
@@ -2224,6 +2273,9 @@ class CreateParamsCompany(TypedDict):
22242273
"""
22252274
This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
22262275
"""
2276+
ownership_exemption_reason: NotRequired[
2277+
"Literal['']|Literal['qualified_entity_exceeds_ownership_threshold', 'qualifies_as_financial_institution']"
2278+
]
22272279
phone: NotRequired[str]
22282280
"""
22292281
The company's phone number (used for verification).
@@ -2341,6 +2393,20 @@ class CreateParamsCompanyAddressKanji(TypedDict):
23412393
Town or cho-me.
23422394
"""
23432395

2396+
class CreateParamsCompanyDirectorshipDeclaration(TypedDict):
2397+
date: NotRequired[int]
2398+
"""
2399+
The Unix timestamp marking when the directorship declaration attestation was made.
2400+
"""
2401+
ip: NotRequired[str]
2402+
"""
2403+
The IP address from which the directorship declaration attestation was made.
2404+
"""
2405+
user_agent: NotRequired[str]
2406+
"""
2407+
The user agent of the browser from which the directorship declaration attestation was made.
2408+
"""
2409+
23442410
class CreateParamsCompanyOwnershipDeclaration(TypedDict):
23452411
date: NotRequired[int]
23462412
"""
@@ -2454,6 +2520,12 @@ class CreateParamsDocuments(TypedDict):
24542520
"""
24552521
One or more documents showing the company's proof of registration with the national business registry.
24562522
"""
2523+
proof_of_ultimate_beneficial_ownership: NotRequired[
2524+
"Account.CreateParamsDocumentsProofOfUltimateBeneficialOwnership"
2525+
]
2526+
"""
2527+
One or more documents that demonstrate proof of ultimate beneficial ownership.
2528+
"""
24572529

24582530
class CreateParamsDocumentsBankAccountOwnershipVerification(TypedDict):
24592531
files: NotRequired[List[str]]
@@ -2497,6 +2569,12 @@ class CreateParamsDocumentsProofOfRegistration(TypedDict):
24972569
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
24982570
"""
24992571

2572+
class CreateParamsDocumentsProofOfUltimateBeneficialOwnership(TypedDict):
2573+
files: NotRequired[List[str]]
2574+
"""
2575+
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
2576+
"""
2577+
25002578
class CreateParamsGroups(TypedDict):
25012579
payments_pricing: NotRequired["Literal['']|str"]
25022580
"""

stripe/_account_service.py

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,12 @@ class CreateParamsCapabilities(TypedDict):
458458
"""
459459
The p24_payments capability.
460460
"""
461+
pay_by_bank_payments: NotRequired[
462+
"AccountService.CreateParamsCapabilitiesPayByBankPayments"
463+
]
464+
"""
465+
The pay_by_bank_payments capability.
466+
"""
461467
payco_payments: NotRequired[
462468
"AccountService.CreateParamsCapabilitiesPaycoPayments"
463469
]
@@ -777,6 +783,12 @@ class CreateParamsCapabilitiesP24Payments(TypedDict):
777783
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.
778784
"""
779785

786+
class CreateParamsCapabilitiesPayByBankPayments(TypedDict):
787+
requested: NotRequired[bool]
788+
"""
789+
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.
790+
"""
791+
780792
class CreateParamsCapabilitiesPaycoPayments(TypedDict):
781793
requested: NotRequired[bool]
782794
"""
@@ -925,6 +937,12 @@ class CreateParamsCompany(TypedDict):
925937
"""
926938
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.
927939
"""
940+
directorship_declaration: NotRequired[
941+
"AccountService.CreateParamsCompanyDirectorshipDeclaration"
942+
]
943+
"""
944+
This hash is used to attest that the directors information provided to Stripe is both current and correct.
945+
"""
928946
executives_provided: NotRequired[bool]
929947
"""
930948
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.
@@ -959,6 +977,9 @@ class CreateParamsCompany(TypedDict):
959977
"""
960978
This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
961979
"""
980+
ownership_exemption_reason: NotRequired[
981+
"Literal['']|Literal['qualified_entity_exceeds_ownership_threshold', 'qualifies_as_financial_institution']"
982+
]
962983
phone: NotRequired[str]
963984
"""
964985
The company's phone number (used for verification).
@@ -1078,6 +1099,20 @@ class CreateParamsCompanyAddressKanji(TypedDict):
10781099
Town or cho-me.
10791100
"""
10801101

1102+
class CreateParamsCompanyDirectorshipDeclaration(TypedDict):
1103+
date: NotRequired[int]
1104+
"""
1105+
The Unix timestamp marking when the directorship declaration attestation was made.
1106+
"""
1107+
ip: NotRequired[str]
1108+
"""
1109+
The IP address from which the directorship declaration attestation was made.
1110+
"""
1111+
user_agent: NotRequired[str]
1112+
"""
1113+
The user agent of the browser from which the directorship declaration attestation was made.
1114+
"""
1115+
10811116
class CreateParamsCompanyOwnershipDeclaration(TypedDict):
10821117
date: NotRequired[int]
10831118
"""
@@ -1191,6 +1226,12 @@ class CreateParamsDocuments(TypedDict):
11911226
"""
11921227
One or more documents showing the company's proof of registration with the national business registry.
11931228
"""
1229+
proof_of_ultimate_beneficial_ownership: NotRequired[
1230+
"AccountService.CreateParamsDocumentsProofOfUltimateBeneficialOwnership"
1231+
]
1232+
"""
1233+
One or more documents that demonstrate proof of ultimate beneficial ownership.
1234+
"""
11941235

11951236
class CreateParamsDocumentsBankAccountOwnershipVerification(TypedDict):
11961237
files: NotRequired[List[str]]
@@ -1234,6 +1275,12 @@ class CreateParamsDocumentsProofOfRegistration(TypedDict):
12341275
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
12351276
"""
12361277

1278+
class CreateParamsDocumentsProofOfUltimateBeneficialOwnership(TypedDict):
1279+
files: NotRequired[List[str]]
1280+
"""
1281+
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1282+
"""
1283+
12371284
class CreateParamsGroups(TypedDict):
12381285
payments_pricing: NotRequired["Literal['']|str"]
12391286
"""
@@ -2226,6 +2273,12 @@ class UpdateParamsCapabilities(TypedDict):
22262273
"""
22272274
The p24_payments capability.
22282275
"""
2276+
pay_by_bank_payments: NotRequired[
2277+
"AccountService.UpdateParamsCapabilitiesPayByBankPayments"
2278+
]
2279+
"""
2280+
The pay_by_bank_payments capability.
2281+
"""
22292282
payco_payments: NotRequired[
22302283
"AccountService.UpdateParamsCapabilitiesPaycoPayments"
22312284
]
@@ -2545,6 +2598,12 @@ class UpdateParamsCapabilitiesP24Payments(TypedDict):
25452598
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.
25462599
"""
25472600

2601+
class UpdateParamsCapabilitiesPayByBankPayments(TypedDict):
2602+
requested: NotRequired[bool]
2603+
"""
2604+
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.
2605+
"""
2606+
25482607
class UpdateParamsCapabilitiesPaycoPayments(TypedDict):
25492608
requested: NotRequired[bool]
25502609
"""
@@ -2693,6 +2752,12 @@ class UpdateParamsCompany(TypedDict):
26932752
"""
26942753
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.
26952754
"""
2755+
directorship_declaration: NotRequired[
2756+
"AccountService.UpdateParamsCompanyDirectorshipDeclaration"
2757+
]
2758+
"""
2759+
This hash is used to attest that the directors information provided to Stripe is both current and correct.
2760+
"""
26962761
executives_provided: NotRequired[bool]
26972762
"""
26982763
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.
@@ -2727,6 +2792,9 @@ class UpdateParamsCompany(TypedDict):
27272792
"""
27282793
This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
27292794
"""
2795+
ownership_exemption_reason: NotRequired[
2796+
"Literal['']|Literal['qualified_entity_exceeds_ownership_threshold', 'qualifies_as_financial_institution']"
2797+
]
27302798
phone: NotRequired[str]
27312799
"""
27322800
The company's phone number (used for verification).
@@ -2846,6 +2914,20 @@ class UpdateParamsCompanyAddressKanji(TypedDict):
28462914
Town or cho-me.
28472915
"""
28482916

2917+
class UpdateParamsCompanyDirectorshipDeclaration(TypedDict):
2918+
date: NotRequired[int]
2919+
"""
2920+
The Unix timestamp marking when the directorship declaration attestation was made.
2921+
"""
2922+
ip: NotRequired[str]
2923+
"""
2924+
The IP address from which the directorship declaration attestation was made.
2925+
"""
2926+
user_agent: NotRequired[str]
2927+
"""
2928+
The user agent of the browser from which the directorship declaration attestation was made.
2929+
"""
2930+
28492931
class UpdateParamsCompanyOwnershipDeclaration(TypedDict):
28502932
date: NotRequired[int]
28512933
"""
@@ -2921,6 +3003,12 @@ class UpdateParamsDocuments(TypedDict):
29213003
"""
29223004
One or more documents showing the company's proof of registration with the national business registry.
29233005
"""
3006+
proof_of_ultimate_beneficial_ownership: NotRequired[
3007+
"AccountService.UpdateParamsDocumentsProofOfUltimateBeneficialOwnership"
3008+
]
3009+
"""
3010+
One or more documents that demonstrate proof of ultimate beneficial ownership.
3011+
"""
29243012

29253013
class UpdateParamsDocumentsBankAccountOwnershipVerification(TypedDict):
29263014
files: NotRequired[List[str]]
@@ -2964,6 +3052,12 @@ class UpdateParamsDocumentsProofOfRegistration(TypedDict):
29643052
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
29653053
"""
29663054

3055+
class UpdateParamsDocumentsProofOfUltimateBeneficialOwnership(TypedDict):
3056+
files: NotRequired[List[str]]
3057+
"""
3058+
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3059+
"""
3060+
29673061
class UpdateParamsGroups(TypedDict):
29683062
payments_pricing: NotRequired["Literal['']|str"]
29693063
"""

0 commit comments

Comments
 (0)