Skip to content

Commit

Permalink
Merge pull request #1422 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Nov 14, 2024
2 parents db9a7b0 + 2a3098f commit ab618a9
Show file tree
Hide file tree
Showing 37 changed files with 807 additions and 46 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1333
v1356
18 changes: 17 additions & 1 deletion stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ class Error(StripeObject):
"""
current_deadline: Optional[int]
"""
Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
"""
currently_due: Optional[List[str]]
"""
Expand Down Expand Up @@ -3658,6 +3658,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 @@ -3819,6 +3823,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 @@ -4239,6 +4247,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 @@ -4323,6 +4335,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
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"
2 changes: 1 addition & 1 deletion stripe/_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Error(StripeObject):
"""
current_deadline: Optional[int]
"""
Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
"""
currently_due: List[str]
"""
Expand Down
2 changes: 2 additions & 0 deletions stripe/_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class ListParams(RequestOptions):
"dispute_evidence",
"document_provider_identity_document",
"finance_report_run",
"financial_account_statement",
"identity_document",
"identity_document_downloadable",
"issuing_regulatory_reporting",
Expand Down Expand Up @@ -176,6 +177,7 @@ class RetrieveParams(RequestOptions):
"dispute_evidence",
"document_provider_identity_document",
"finance_report_run",
"financial_account_statement",
"identity_document",
"identity_document_downloadable",
"issuing_regulatory_reporting",
Expand Down
2 changes: 1 addition & 1 deletion stripe/_file_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CreateParams(RequestOptions):
"""
file: str
"""
The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
"""
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_file_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CreateParams(TypedDict):
"""
file: str
"""
The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
"""
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Expand Down
1 change: 1 addition & 0 deletions stripe/_file_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class ListParams(TypedDict):
"dispute_evidence",
"document_provider_identity_document",
"finance_report_run",
"financial_account_statement",
"identity_document",
"identity_document_downloadable",
"issuing_regulatory_reporting",
Expand Down
Loading

0 comments on commit ab618a9

Please sign in to comment.