Skip to content

Commit 62558c7

Browse files
Update generated code (#1424)
* Update generated code for v1341 * Update generated code for v1347 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 5c18581 commit 62558c7

Some content is hidden

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

62 files changed

+992
-152
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1319
1+
v1347

stripe/_account.py

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,27 @@ class Error(StripeObject):
798798
"""
799799
Fields that need to be collected to keep the account enabled. If not collected by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.
800800
"""
801-
disabled_reason: Optional[str]
801+
disabled_reason: Optional[
802+
Literal[
803+
"action_required.requested_capabilities",
804+
"listed",
805+
"other",
806+
"platform_paused",
807+
"rejected.fraud",
808+
"rejected.incomplete_verification",
809+
"rejected.listed",
810+
"rejected.other",
811+
"rejected.platform_fraud",
812+
"rejected.platform_other",
813+
"rejected.platform_terms_of_service",
814+
"rejected.terms_of_service",
815+
"requirements.past_due",
816+
"requirements.pending_verification",
817+
"under_review",
818+
]
819+
]
802820
"""
803-
This is typed as a string for consistency with `requirements.disabled_reason`.
821+
This is typed as an enum for consistency with `requirements.disabled_reason`.
804822
"""
805823
errors: Optional[List[Error]]
806824
"""
@@ -954,9 +972,27 @@ class Error(StripeObject):
954972
"""
955973
Fields that need to be collected to keep the account enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled.
956974
"""
957-
disabled_reason: Optional[str]
975+
disabled_reason: Optional[
976+
Literal[
977+
"action_required.requested_capabilities",
978+
"listed",
979+
"other",
980+
"platform_paused",
981+
"rejected.fraud",
982+
"rejected.incomplete_verification",
983+
"rejected.listed",
984+
"rejected.other",
985+
"rejected.platform_fraud",
986+
"rejected.platform_other",
987+
"rejected.platform_terms_of_service",
988+
"rejected.terms_of_service",
989+
"requirements.past_due",
990+
"requirements.pending_verification",
991+
"under_review",
992+
]
993+
]
958994
"""
959-
If the account is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `action_required.requested_capabilities`, `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.incomplete_verification`, `rejected.listed`, `rejected.other`, `rejected.terms_of_service`, `under_review`, or `other`.
995+
If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification).
960996
"""
961997
errors: Optional[List[Error]]
962998
"""
@@ -3252,6 +3288,10 @@ class CreatePersonParamsRegisteredAddress(TypedDict):
32523288
"""
32533289

32543290
class CreatePersonParamsRelationship(TypedDict):
3291+
authorizer: NotRequired[bool]
3292+
"""
3293+
Whether the person is the authorizer of the account's representative.
3294+
"""
32553295
director: NotRequired[bool]
32563296
"""
32573297
Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
@@ -3413,6 +3453,10 @@ class ListPersonsParams(RequestOptions):
34133453
"""
34143454

34153455
class ListPersonsParamsRelationship(TypedDict):
3456+
authorizer: NotRequired[bool]
3457+
"""
3458+
A filter on the list of people returned based on whether these people are authorizers of the account's representative.
3459+
"""
34163460
director: NotRequired[bool]
34173461
"""
34183462
A filter on the list of people returned based on whether these people are directors of the account's company.
@@ -3833,6 +3877,10 @@ class ModifyPersonParamsRegisteredAddress(TypedDict):
38333877
"""
38343878

38353879
class ModifyPersonParamsRelationship(TypedDict):
3880+
authorizer: NotRequired[bool]
3881+
"""
3882+
Whether the person is the authorizer of the account's representative.
3883+
"""
38363884
director: NotRequired[bool]
38373885
"""
38383886
Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
@@ -3917,6 +3965,10 @@ class PersonsParams(RequestOptions):
39173965
"""
39183966

39193967
class PersonsParamsRelationship(TypedDict):
3968+
authorizer: NotRequired[bool]
3969+
"""
3970+
A filter on the list of people returned based on whether these people are authorizers of the account's representative.
3971+
"""
39203972
director: NotRequired[bool]
39213973
"""
39223974
A filter on the list of people returned based on whether these people are directors of the account's company.

stripe/_account_person_service.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ class CreateParamsRegisteredAddress(TypedDict):
321321
"""
322322

323323
class CreateParamsRelationship(TypedDict):
324+
authorizer: NotRequired[bool]
325+
"""
326+
Whether the person is the authorizer of the account's representative.
327+
"""
324328
director: NotRequired[bool]
325329
"""
326330
Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
@@ -412,6 +416,10 @@ class ListParams(TypedDict):
412416
"""
413417

414418
class ListParamsRelationship(TypedDict):
419+
authorizer: NotRequired[bool]
420+
"""
421+
A filter on the list of people returned based on whether these people are authorizers of the account's representative.
422+
"""
415423
director: NotRequired[bool]
416424
"""
417425
A filter on the list of people returned based on whether these people are directors of the account's company.
@@ -750,6 +758,10 @@ class UpdateParamsRegisteredAddress(TypedDict):
750758
"""
751759

752760
class UpdateParamsRelationship(TypedDict):
761+
authorizer: NotRequired[bool]
762+
"""
763+
Whether the person is the authorizer of the account's representative.
764+
"""
753765
director: NotRequired[bool]
754766
"""
755767
Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.

stripe/_account_session.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from stripe._createable_api_resource import CreateableAPIResource
44
from stripe._request_options import RequestOptions
55
from stripe._stripe_object import StripeObject
6-
from typing import ClassVar, List, Optional, cast
6+
from typing import ClassVar, List, cast
77
from typing_extensions import Literal, NotRequired, TypedDict, Unpack
88

99

@@ -23,7 +23,7 @@ class AccountSession(CreateableAPIResource["AccountSession"]):
2323
class Components(StripeObject):
2424
class AccountManagement(StripeObject):
2525
class Features(StripeObject):
26-
disable_stripe_user_authentication: Optional[bool]
26+
disable_stripe_user_authentication: bool
2727
"""
2828
Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
2929
"""
@@ -41,7 +41,7 @@ class Features(StripeObject):
4141

4242
class AccountOnboarding(StripeObject):
4343
class Features(StripeObject):
44-
disable_stripe_user_authentication: Optional[bool]
44+
disable_stripe_user_authentication: bool
4545
"""
4646
Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
4747
"""
@@ -59,7 +59,7 @@ class Features(StripeObject):
5959

6060
class Balances(StripeObject):
6161
class Features(StripeObject):
62-
disable_stripe_user_authentication: Optional[bool]
62+
disable_stripe_user_authentication: bool
6363
"""
6464
Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
6565
"""
@@ -100,7 +100,7 @@ class Features(StripeObject):
100100

101101
class NotificationBanner(StripeObject):
102102
class Features(StripeObject):
103-
disable_stripe_user_authentication: Optional[bool]
103+
disable_stripe_user_authentication: bool
104104
"""
105105
Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
106106
"""
@@ -170,7 +170,7 @@ class Features(StripeObject):
170170

171171
class Payouts(StripeObject):
172172
class Features(StripeObject):
173-
disable_stripe_user_authentication: Optional[bool]
173+
disable_stripe_user_authentication: bool
174174
"""
175175
Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
176176
"""

stripe/_api_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
class _ApiVersion:
4-
CURRENT = "2024-10-28.acacia"
4+
CURRENT = "2024-11-20.acacia"

stripe/_charge.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ class ShippingAddress(StripeObject):
712712
"""
713713
brand: Optional[str]
714714
"""
715-
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
715+
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
716716
"""
717717
capture_before: Optional[int]
718718
"""
@@ -779,7 +779,7 @@ class ShippingAddress(StripeObject):
779779
multicapture: Optional[Multicapture]
780780
network: Optional[str]
781781
"""
782-
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
782+
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
783783
"""
784784
network_token: Optional[NetworkToken]
785785
"""
@@ -871,7 +871,7 @@ class Wallet(StripeObject):
871871
"""
872872
brand: Optional[str]
873873
"""
874-
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
874+
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
875875
"""
876876
brand_product: Optional[str]
877877
"""
@@ -937,7 +937,7 @@ class Wallet(StripeObject):
937937
"""
938938
network: Optional[str]
939939
"""
940-
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
940+
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
941941
"""
942942
network_transaction_id: Optional[str]
943943
"""
@@ -1260,7 +1260,7 @@ class Receipt(StripeObject):
12601260
"""
12611261
network: Optional[str]
12621262
"""
1263-
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
1263+
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
12641264
"""
12651265
network_transaction_id: Optional[str]
12661266
"""

stripe/_confirmation_token.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class Wallet(StripeObject):
285285
"""
286286
brand: Optional[str]
287287
"""
288-
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
288+
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
289289
"""
290290
brand_product: Optional[str]
291291
"""
@@ -351,7 +351,7 @@ class Wallet(StripeObject):
351351
"""
352352
network: Optional[str]
353353
"""
354-
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
354+
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
355355
"""
356356
network_transaction_id: Optional[str]
357357
"""
@@ -630,7 +630,7 @@ class ShippingAddress(StripeObject):
630630

631631
brand: str
632632
"""
633-
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
633+
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
634634
"""
635635
checks: Optional[Checks]
636636
"""
@@ -733,7 +733,7 @@ class Wallet(StripeObject):
733733

734734
brand: Optional[str]
735735
"""
736-
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
736+
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
737737
"""
738738
brand_product: Optional[str]
739739
"""

stripe/_customer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ class CreateParamsTaxIdDatum(TypedDict):
558558
"kr_brn",
559559
"kz_bin",
560560
"li_uid",
561+
"li_vat",
561562
"ma_vat",
562563
"md_vat",
563564
"mx_rfc",
@@ -594,7 +595,7 @@ class CreateParamsTaxIdDatum(TypedDict):
594595
"za_vat",
595596
]
596597
"""
597-
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
598+
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
598599
"""
599600
value: str
600601
"""
@@ -668,6 +669,7 @@ class CreateTaxIdParams(RequestOptions):
668669
"kr_brn",
669670
"kz_bin",
670671
"li_uid",
672+
"li_vat",
671673
"ma_vat",
672674
"md_vat",
673675
"mx_rfc",
@@ -704,7 +706,7 @@ class CreateTaxIdParams(RequestOptions):
704706
"za_vat",
705707
]
706708
"""
707-
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
709+
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
708710
"""
709711
value: str
710712
"""

0 commit comments

Comments
 (0)