Skip to content

Commit 51c826c

Browse files
Merge pull request #1588 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 7321093 + 25624fd commit 51c826c

File tree

110 files changed

+4677
-875
lines changed

Some content is hidden

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

110 files changed

+4677
-875
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
97ac4c20201f71a2f3066399552c0ae2928742fc
1+
f214890b184859757abeea86489fc68a7016b54e

stripe/_account.py

Lines changed: 43 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ class SupportAddress(StripeObject):
9393
"""
9494
line1: Optional[str]
9595
"""
96-
Address line 1 (e.g., street, PO Box, or company name).
96+
Address line 1, such as the street, PO Box, or company name.
9797
"""
9898
line2: Optional[str]
9999
"""
100-
Address line 2 (e.g., apartment, suite, unit, or building).
100+
Address line 2, such as the apartment, suite, unit, or building.
101101
"""
102102
postal_code: Optional[str]
103103
"""
@@ -388,6 +388,10 @@ class Capabilities(StripeObject):
388388
"""
389389
The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges.
390390
"""
391+
paypay_payments: Optional[Literal["active", "inactive", "pending"]]
392+
"""
393+
The status of the Paypay capability of the account, or whether the account can directly process Paypay payments.
394+
"""
391395
payto_payments: Optional[Literal["active", "inactive", "pending"]]
392396
"""
393397
The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
@@ -521,11 +525,11 @@ class Address(StripeObject):
521525
"""
522526
line1: Optional[str]
523527
"""
524-
Address line 1 (e.g., street, PO Box, or company name).
528+
Address line 1, such as the street, PO Box, or company name.
525529
"""
526530
line2: Optional[str]
527531
"""
528-
Address line 2 (e.g., apartment, suite, unit, or building).
532+
Address line 2, such as the apartment, suite, unit, or building.
529533
"""
530534
postal_code: Optional[str]
531535
"""
@@ -862,6 +866,7 @@ class Alternative(StripeObject):
862866

863867
class Error(StripeObject):
864868
code: Literal[
869+
"external_request",
865870
"information_missing",
866871
"invalid_address_city_state_postal_code",
867872
"invalid_address_highway_contract_box",
@@ -904,6 +909,7 @@ class Error(StripeObject):
904909
"invalid_url_website_incomplete_under_construction",
905910
"invalid_url_website_other",
906911
"invalid_value_other",
912+
"unsupported_business_type",
907913
"verification_directors_mismatch",
908914
"verification_document_address_mismatch",
909915
"verification_document_address_missing",
@@ -1041,6 +1047,7 @@ class Alternative(StripeObject):
10411047

10421048
class Error(StripeObject):
10431049
code: Literal[
1050+
"external_request",
10441051
"information_missing",
10451052
"invalid_address_city_state_postal_code",
10461053
"invalid_address_highway_contract_box",
@@ -1083,6 +1090,7 @@ class Error(StripeObject):
10831090
"invalid_url_website_incomplete_under_construction",
10841091
"invalid_url_website_other",
10851092
"invalid_value_other",
1093+
"unsupported_business_type",
10861094
"verification_directors_mismatch",
10871095
"verification_document_address_mismatch",
10881096
"verification_document_address_missing",
@@ -1397,8 +1405,6 @@ class Schedule(StripeObject):
13971405
Literal[
13981406
"friday",
13991407
"monday",
1400-
"saturday",
1401-
"sunday",
14021408
"thursday",
14031409
"tuesday",
14041410
"wednesday",
@@ -1796,11 +1802,11 @@ class CreateParamsBusinessProfileSupportAddress(TypedDict):
17961802
"""
17971803
line1: NotRequired[str]
17981804
"""
1799-
Address line 1 (e.g., street, PO Box, or company name).
1805+
Address line 1, such as the street, PO Box, or company name.
18001806
"""
18011807
line2: NotRequired[str]
18021808
"""
1803-
Address line 2 (e.g., apartment, suite, unit, or building).
1809+
Address line 2, such as the apartment, suite, unit, or building.
18041810
"""
18051811
postal_code: NotRequired[str]
18061812
"""
@@ -2100,6 +2106,12 @@ class CreateParamsCapabilities(TypedDict):
21002106
"""
21012107
The paypal_payments capability.
21022108
"""
2109+
paypay_payments: NotRequired[
2110+
"Account.CreateParamsCapabilitiesPaypayPayments"
2111+
]
2112+
"""
2113+
The paypay_payments capability.
2114+
"""
21032115
payto_payments: NotRequired[
21042116
"Account.CreateParamsCapabilitiesPaytoPayments"
21052117
]
@@ -2535,6 +2547,12 @@ class CreateParamsCapabilitiesPaypalPayments(TypedDict):
25352547
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.
25362548
"""
25372549

2550+
class CreateParamsCapabilitiesPaypayPayments(TypedDict):
2551+
requested: NotRequired[bool]
2552+
"""
2553+
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.
2554+
"""
2555+
25382556
class CreateParamsCapabilitiesPaytoPayments(TypedDict):
25392557
requested: NotRequired[bool]
25402558
"""
@@ -2821,11 +2839,11 @@ class CreateParamsCompanyAddress(TypedDict):
28212839
"""
28222840
line1: NotRequired[str]
28232841
"""
2824-
Address line 1 (e.g., street, PO Box, or company name).
2842+
Address line 1, such as the street, PO Box, or company name.
28252843
"""
28262844
line2: NotRequired[str]
28272845
"""
2828-
Address line 2 (e.g., apartment, suite, unit, or building).
2846+
Address line 2, such as the apartment, suite, unit, or building.
28292847
"""
28302848
postal_code: NotRequired[str]
28312849
"""
@@ -3247,11 +3265,11 @@ class CreateParamsIndividualAddress(TypedDict):
32473265
"""
32483266
line1: NotRequired[str]
32493267
"""
3250-
Address line 1 (e.g., street, PO Box, or company name).
3268+
Address line 1, such as the street, PO Box, or company name.
32513269
"""
32523270
line2: NotRequired[str]
32533271
"""
3254-
Address line 2 (e.g., apartment, suite, unit, or building).
3272+
Address line 2, such as the apartment, suite, unit, or building.
32553273
"""
32563274
postal_code: NotRequired[str]
32573275
"""
@@ -3347,11 +3365,11 @@ class CreateParamsIndividualRegisteredAddress(TypedDict):
33473365
"""
33483366
line1: NotRequired[str]
33493367
"""
3350-
Address line 1 (e.g., street, PO Box, or company name).
3368+
Address line 1, such as the street, PO Box, or company name.
33513369
"""
33523370
line2: NotRequired[str]
33533371
"""
3354-
Address line 2 (e.g., apartment, suite, unit, or building).
3372+
Address line 2, such as the apartment, suite, unit, or building.
33553373
"""
33563374
postal_code: NotRequired[str]
33573375
"""
@@ -3653,23 +3671,15 @@ class CreateParamsSettingsPayoutsSchedule(TypedDict):
36533671
]
36543672
]
36553673
"""
3656-
The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
3674+
The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. Required and applicable only if `interval` is `weekly`.
36573675
"""
36583676
weekly_payout_days: NotRequired[
36593677
List[
3660-
Literal[
3661-
"friday",
3662-
"monday",
3663-
"saturday",
3664-
"sunday",
3665-
"thursday",
3666-
"tuesday",
3667-
"wednesday",
3668-
]
3678+
Literal["friday", "monday", "thursday", "tuesday", "wednesday"]
36693679
]
36703680
]
36713681
"""
3672-
The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
3682+
The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.
36733683
"""
36743684

36753685
class CreateParamsSettingsTaxForms(TypedDict):
@@ -3873,11 +3883,11 @@ class CreatePersonParamsAddress(TypedDict):
38733883
"""
38743884
line1: NotRequired[str]
38753885
"""
3876-
Address line 1 (e.g., street, PO Box, or company name).
3886+
Address line 1, such as the street, PO Box, or company name.
38773887
"""
38783888
line2: NotRequired[str]
38793889
"""
3880-
Address line 2 (e.g., apartment, suite, unit, or building).
3890+
Address line 2, such as the apartment, suite, unit, or building.
38813891
"""
38823892
postal_code: NotRequired[str]
38833893
"""
@@ -4007,11 +4017,11 @@ class CreatePersonParamsRegisteredAddress(TypedDict):
40074017
"""
40084018
line1: NotRequired[str]
40094019
"""
4010-
Address line 1 (e.g., street, PO Box, or company name).
4020+
Address line 1, such as the street, PO Box, or company name.
40114021
"""
40124022
line2: NotRequired[str]
40134023
"""
4014-
Address line 2 (e.g., apartment, suite, unit, or building).
4024+
Address line 2, such as the apartment, suite, unit, or building.
40154025
"""
40164026
postal_code: NotRequired[str]
40174027
"""
@@ -4545,11 +4555,11 @@ class ModifyPersonParamsAddress(TypedDict):
45454555
"""
45464556
line1: NotRequired[str]
45474557
"""
4548-
Address line 1 (e.g., street, PO Box, or company name).
4558+
Address line 1, such as the street, PO Box, or company name.
45494559
"""
45504560
line2: NotRequired[str]
45514561
"""
4552-
Address line 2 (e.g., apartment, suite, unit, or building).
4562+
Address line 2, such as the apartment, suite, unit, or building.
45534563
"""
45544564
postal_code: NotRequired[str]
45554565
"""
@@ -4679,11 +4689,11 @@ class ModifyPersonParamsRegisteredAddress(TypedDict):
46794689
"""
46804690
line1: NotRequired[str]
46814691
"""
4682-
Address line 1 (e.g., street, PO Box, or company name).
4692+
Address line 1, such as the street, PO Box, or company name.
46834693
"""
46844694
line2: NotRequired[str]
46854695
"""
4686-
Address line 2 (e.g., apartment, suite, unit, or building).
4696+
Address line 2, such as the apartment, suite, unit, or building.
46874697
"""
46884698
postal_code: NotRequired[str]
46894699
"""

stripe/_account_person_service.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ class CreateParamsAddress(TypedDict):
175175
"""
176176
line1: NotRequired[str]
177177
"""
178-
Address line 1 (e.g., street, PO Box, or company name).
178+
Address line 1, such as the street, PO Box, or company name.
179179
"""
180180
line2: NotRequired[str]
181181
"""
182-
Address line 2 (e.g., apartment, suite, unit, or building).
182+
Address line 2, such as the apartment, suite, unit, or building.
183183
"""
184184
postal_code: NotRequired[str]
185185
"""
@@ -311,11 +311,11 @@ class CreateParamsRegisteredAddress(TypedDict):
311311
"""
312312
line1: NotRequired[str]
313313
"""
314-
Address line 1 (e.g., street, PO Box, or company name).
314+
Address line 1, such as the street, PO Box, or company name.
315315
"""
316316
line2: NotRequired[str]
317317
"""
318-
Address line 2 (e.g., apartment, suite, unit, or building).
318+
Address line 2, such as the apartment, suite, unit, or building.
319319
"""
320320
postal_code: NotRequired[str]
321321
"""
@@ -697,11 +697,11 @@ class UpdateParamsAddress(TypedDict):
697697
"""
698698
line1: NotRequired[str]
699699
"""
700-
Address line 1 (e.g., street, PO Box, or company name).
700+
Address line 1, such as the street, PO Box, or company name.
701701
"""
702702
line2: NotRequired[str]
703703
"""
704-
Address line 2 (e.g., apartment, suite, unit, or building).
704+
Address line 2, such as the apartment, suite, unit, or building.
705705
"""
706706
postal_code: NotRequired[str]
707707
"""
@@ -833,11 +833,11 @@ class UpdateParamsRegisteredAddress(TypedDict):
833833
"""
834834
line1: NotRequired[str]
835835
"""
836-
Address line 1 (e.g., street, PO Box, or company name).
836+
Address line 1, such as the street, PO Box, or company name.
837837
"""
838838
line2: NotRequired[str]
839839
"""
840-
Address line 2 (e.g., apartment, suite, unit, or building).
840+
Address line 2, such as the apartment, suite, unit, or building.
841841
"""
842842
postal_code: NotRequired[str]
843843
"""

0 commit comments

Comments
 (0)