Skip to content

Commit

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

* Update generated code for v1347

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Nov 20, 2024
1 parent 5c18581 commit 62558c7
Show file tree
Hide file tree
Showing 62 changed files with 992 additions and 152 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1319
v1347
60 changes: 56 additions & 4 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,27 @@ class Error(StripeObject):
"""
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.
"""
disabled_reason: Optional[str]
disabled_reason: Optional[
Literal[
"action_required.requested_capabilities",
"listed",
"other",
"platform_paused",
"rejected.fraud",
"rejected.incomplete_verification",
"rejected.listed",
"rejected.other",
"rejected.platform_fraud",
"rejected.platform_other",
"rejected.platform_terms_of_service",
"rejected.terms_of_service",
"requirements.past_due",
"requirements.pending_verification",
"under_review",
]
]
"""
This is typed as a string for consistency with `requirements.disabled_reason`.
This is typed as an enum for consistency with `requirements.disabled_reason`.
"""
errors: Optional[List[Error]]
"""
Expand Down Expand Up @@ -954,9 +972,27 @@ class Error(StripeObject):
"""
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.
"""
disabled_reason: Optional[str]
disabled_reason: Optional[
Literal[
"action_required.requested_capabilities",
"listed",
"other",
"platform_paused",
"rejected.fraud",
"rejected.incomplete_verification",
"rejected.listed",
"rejected.other",
"rejected.platform_fraud",
"rejected.platform_other",
"rejected.platform_terms_of_service",
"rejected.terms_of_service",
"requirements.past_due",
"requirements.pending_verification",
"under_review",
]
]
"""
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`.
If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification).
"""
errors: Optional[List[Error]]
"""
Expand Down Expand Up @@ -3252,6 +3288,10 @@ class CreatePersonParamsRegisteredAddress(TypedDict):
"""

class CreatePersonParamsRelationship(TypedDict):
authorizer: NotRequired[bool]
"""
Whether the person is the authorizer of the account's representative.
"""
director: NotRequired[bool]
"""
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.
Expand Down Expand Up @@ -3413,6 +3453,10 @@ class ListPersonsParams(RequestOptions):
"""

class ListPersonsParamsRelationship(TypedDict):
authorizer: NotRequired[bool]
"""
A filter on the list of people returned based on whether these people are authorizers of the account's representative.
"""
director: NotRequired[bool]
"""
A filter on the list of people returned based on whether these people are directors of the account's company.
Expand Down Expand Up @@ -3833,6 +3877,10 @@ class ModifyPersonParamsRegisteredAddress(TypedDict):
"""

class ModifyPersonParamsRelationship(TypedDict):
authorizer: NotRequired[bool]
"""
Whether the person is the authorizer of the account's representative.
"""
director: NotRequired[bool]
"""
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.
Expand Down Expand Up @@ -3917,6 +3965,10 @@ class PersonsParams(RequestOptions):
"""

class PersonsParamsRelationship(TypedDict):
authorizer: NotRequired[bool]
"""
A filter on the list of people returned based on whether these people are authorizers of the account's representative.
"""
director: NotRequired[bool]
"""
A filter on the list of people returned based on whether these people are directors of the account's company.
Expand Down
12 changes: 12 additions & 0 deletions stripe/_account_person_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ class CreateParamsRegisteredAddress(TypedDict):
"""

class CreateParamsRelationship(TypedDict):
authorizer: NotRequired[bool]
"""
Whether the person is the authorizer of the account's representative.
"""
director: NotRequired[bool]
"""
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.
Expand Down Expand Up @@ -412,6 +416,10 @@ class ListParams(TypedDict):
"""

class ListParamsRelationship(TypedDict):
authorizer: NotRequired[bool]
"""
A filter on the list of people returned based on whether these people are authorizers of the account's representative.
"""
director: NotRequired[bool]
"""
A filter on the list of people returned based on whether these people are directors of the account's company.
Expand Down Expand Up @@ -750,6 +758,10 @@ class UpdateParamsRegisteredAddress(TypedDict):
"""

class UpdateParamsRelationship(TypedDict):
authorizer: NotRequired[bool]
"""
Whether the person is the authorizer of the account's representative.
"""
director: NotRequired[bool]
"""
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.
Expand Down
12 changes: 6 additions & 6 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from stripe._createable_api_resource import CreateableAPIResource
from stripe._request_options import RequestOptions
from stripe._stripe_object import StripeObject
from typing import ClassVar, List, Optional, cast
from typing import ClassVar, List, cast
from typing_extensions import Literal, NotRequired, TypedDict, Unpack


Expand All @@ -23,7 +23,7 @@ class AccountSession(CreateableAPIResource["AccountSession"]):
class Components(StripeObject):
class AccountManagement(StripeObject):
class Features(StripeObject):
disable_stripe_user_authentication: Optional[bool]
disable_stripe_user_authentication: bool
"""
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.
"""
Expand All @@ -41,7 +41,7 @@ class Features(StripeObject):

class AccountOnboarding(StripeObject):
class Features(StripeObject):
disable_stripe_user_authentication: Optional[bool]
disable_stripe_user_authentication: bool
"""
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.
"""
Expand All @@ -59,7 +59,7 @@ class Features(StripeObject):

class Balances(StripeObject):
class Features(StripeObject):
disable_stripe_user_authentication: Optional[bool]
disable_stripe_user_authentication: bool
"""
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.
"""
Expand Down Expand Up @@ -100,7 +100,7 @@ class Features(StripeObject):

class NotificationBanner(StripeObject):
class Features(StripeObject):
disable_stripe_user_authentication: Optional[bool]
disable_stripe_user_authentication: bool
"""
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.
"""
Expand Down Expand Up @@ -170,7 +170,7 @@ class Features(StripeObject):

class Payouts(StripeObject):
class Features(StripeObject):
disable_stripe_user_authentication: Optional[bool]
disable_stripe_user_authentication: bool
"""
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.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2024-10-28.acacia"
CURRENT = "2024-11-20.acacia"
10 changes: 5 additions & 5 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ class ShippingAddress(StripeObject):
"""
brand: Optional[str]
"""
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
"""
capture_before: Optional[int]
"""
Expand Down Expand Up @@ -779,7 +779,7 @@ class ShippingAddress(StripeObject):
multicapture: Optional[Multicapture]
network: Optional[str]
"""
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
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`.
"""
network_token: Optional[NetworkToken]
"""
Expand Down Expand Up @@ -871,7 +871,7 @@ class Wallet(StripeObject):
"""
brand: Optional[str]
"""
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
"""
brand_product: Optional[str]
"""
Expand Down Expand Up @@ -937,7 +937,7 @@ class Wallet(StripeObject):
"""
network: Optional[str]
"""
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
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`.
"""
network_transaction_id: Optional[str]
"""
Expand Down Expand Up @@ -1260,7 +1260,7 @@ class Receipt(StripeObject):
"""
network: Optional[str]
"""
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
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`.
"""
network_transaction_id: Optional[str]
"""
Expand Down
8 changes: 4 additions & 4 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class Wallet(StripeObject):
"""
brand: Optional[str]
"""
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
"""
brand_product: Optional[str]
"""
Expand Down Expand Up @@ -351,7 +351,7 @@ class Wallet(StripeObject):
"""
network: Optional[str]
"""
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
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`.
"""
network_transaction_id: Optional[str]
"""
Expand Down Expand Up @@ -630,7 +630,7 @@ class ShippingAddress(StripeObject):

brand: str
"""
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
"""
checks: Optional[Checks]
"""
Expand Down Expand Up @@ -733,7 +733,7 @@ class Wallet(StripeObject):

brand: Optional[str]
"""
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
"""
brand_product: Optional[str]
"""
Expand Down
6 changes: 4 additions & 2 deletions stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ class CreateParamsTaxIdDatum(TypedDict):
"kr_brn",
"kz_bin",
"li_uid",
"li_vat",
"ma_vat",
"md_vat",
"mx_rfc",
Expand Down Expand Up @@ -594,7 +595,7 @@ class CreateParamsTaxIdDatum(TypedDict):
"za_vat",
]
"""
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`
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`
"""
value: str
"""
Expand Down Expand Up @@ -668,6 +669,7 @@ class CreateTaxIdParams(RequestOptions):
"kr_brn",
"kz_bin",
"li_uid",
"li_vat",
"ma_vat",
"md_vat",
"mx_rfc",
Expand Down Expand Up @@ -704,7 +706,7 @@ class CreateTaxIdParams(RequestOptions):
"za_vat",
]
"""
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`
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`
"""
value: str
"""
Expand Down
Loading

0 comments on commit 62558c7

Please sign in to comment.