This commit is contained in:
Iliyan Angelov
2025-11-17 18:26:30 +02:00
parent 48353cde9c
commit 0c59fe1173
2535 changed files with 278997 additions and 2480 deletions

View File

@@ -0,0 +1,148 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from importlib import import_module
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
from stripe.params.identity._verification_report_list_params import (
VerificationReportListParams as VerificationReportListParams,
VerificationReportListParamsCreated as VerificationReportListParamsCreated,
)
from stripe.params.identity._verification_report_retrieve_params import (
VerificationReportRetrieveParams as VerificationReportRetrieveParams,
)
from stripe.params.identity._verification_session_cancel_params import (
VerificationSessionCancelParams as VerificationSessionCancelParams,
)
from stripe.params.identity._verification_session_create_params import (
VerificationSessionCreateParams as VerificationSessionCreateParams,
VerificationSessionCreateParamsOptions as VerificationSessionCreateParamsOptions,
VerificationSessionCreateParamsOptionsDocument as VerificationSessionCreateParamsOptionsDocument,
VerificationSessionCreateParamsProvidedDetails as VerificationSessionCreateParamsProvidedDetails,
VerificationSessionCreateParamsRelatedPerson as VerificationSessionCreateParamsRelatedPerson,
)
from stripe.params.identity._verification_session_list_params import (
VerificationSessionListParams as VerificationSessionListParams,
VerificationSessionListParamsCreated as VerificationSessionListParamsCreated,
)
from stripe.params.identity._verification_session_modify_params import (
VerificationSessionModifyParams as VerificationSessionModifyParams,
VerificationSessionModifyParamsOptions as VerificationSessionModifyParamsOptions,
VerificationSessionModifyParamsOptionsDocument as VerificationSessionModifyParamsOptionsDocument,
VerificationSessionModifyParamsProvidedDetails as VerificationSessionModifyParamsProvidedDetails,
)
from stripe.params.identity._verification_session_redact_params import (
VerificationSessionRedactParams as VerificationSessionRedactParams,
)
from stripe.params.identity._verification_session_retrieve_params import (
VerificationSessionRetrieveParams as VerificationSessionRetrieveParams,
)
from stripe.params.identity._verification_session_update_params import (
VerificationSessionUpdateParams as VerificationSessionUpdateParams,
VerificationSessionUpdateParamsOptions as VerificationSessionUpdateParamsOptions,
VerificationSessionUpdateParamsOptionsDocument as VerificationSessionUpdateParamsOptionsDocument,
VerificationSessionUpdateParamsProvidedDetails as VerificationSessionUpdateParamsProvidedDetails,
)
# name -> (import_target, is_submodule)
_import_map = {
"VerificationReportListParams": (
"stripe.params.identity._verification_report_list_params",
False,
),
"VerificationReportListParamsCreated": (
"stripe.params.identity._verification_report_list_params",
False,
),
"VerificationReportRetrieveParams": (
"stripe.params.identity._verification_report_retrieve_params",
False,
),
"VerificationSessionCancelParams": (
"stripe.params.identity._verification_session_cancel_params",
False,
),
"VerificationSessionCreateParams": (
"stripe.params.identity._verification_session_create_params",
False,
),
"VerificationSessionCreateParamsOptions": (
"stripe.params.identity._verification_session_create_params",
False,
),
"VerificationSessionCreateParamsOptionsDocument": (
"stripe.params.identity._verification_session_create_params",
False,
),
"VerificationSessionCreateParamsProvidedDetails": (
"stripe.params.identity._verification_session_create_params",
False,
),
"VerificationSessionCreateParamsRelatedPerson": (
"stripe.params.identity._verification_session_create_params",
False,
),
"VerificationSessionListParams": (
"stripe.params.identity._verification_session_list_params",
False,
),
"VerificationSessionListParamsCreated": (
"stripe.params.identity._verification_session_list_params",
False,
),
"VerificationSessionModifyParams": (
"stripe.params.identity._verification_session_modify_params",
False,
),
"VerificationSessionModifyParamsOptions": (
"stripe.params.identity._verification_session_modify_params",
False,
),
"VerificationSessionModifyParamsOptionsDocument": (
"stripe.params.identity._verification_session_modify_params",
False,
),
"VerificationSessionModifyParamsProvidedDetails": (
"stripe.params.identity._verification_session_modify_params",
False,
),
"VerificationSessionRedactParams": (
"stripe.params.identity._verification_session_redact_params",
False,
),
"VerificationSessionRetrieveParams": (
"stripe.params.identity._verification_session_retrieve_params",
False,
),
"VerificationSessionUpdateParams": (
"stripe.params.identity._verification_session_update_params",
False,
),
"VerificationSessionUpdateParamsOptions": (
"stripe.params.identity._verification_session_update_params",
False,
),
"VerificationSessionUpdateParamsOptionsDocument": (
"stripe.params.identity._verification_session_update_params",
False,
),
"VerificationSessionUpdateParamsProvidedDetails": (
"stripe.params.identity._verification_session_update_params",
False,
),
}
if not TYPE_CHECKING:
def __getattr__(name):
try:
target, is_submodule = _import_map[name]
module = import_module(target)
if is_submodule:
return module
return getattr(
module,
name,
)
except KeyError:
raise AttributeError()

View File

@@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import Literal, NotRequired, TypedDict
class VerificationReportListParams(RequestOptions):
client_reference_id: NotRequired[str]
"""
A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
"""
created: NotRequired["VerificationReportListParamsCreated|int"]
"""
Only return VerificationReports that were created during the given date interval.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
type: NotRequired[Literal["document", "id_number"]]
"""
Only return VerificationReports of this type
"""
verification_session: NotRequired[str]
"""
Only return VerificationReports created by this VerificationSession ID. It is allowed to provide a VerificationIntent ID.
"""
class VerificationReportListParamsCreated(TypedDict):
gt: NotRequired[int]
"""
Minimum value to filter by (exclusive)
"""
gte: NotRequired[int]
"""
Minimum value to filter by (inclusive)
"""
lt: NotRequired[int]
"""
Maximum value to filter by (exclusive)
"""
lte: NotRequired[int]
"""
Maximum value to filter by (inclusive)
"""

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class VerificationReportRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class VerificationSessionCancelParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,102 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
class VerificationSessionCreateParams(RequestOptions):
client_reference_id: NotRequired[str]
"""
A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
options: NotRequired["VerificationSessionCreateParamsOptions"]
"""
A set of options for the session's verification checks.
"""
provided_details: NotRequired[
"VerificationSessionCreateParamsProvidedDetails"
]
"""
Details provided about the user being verified. These details may be shown to the user.
"""
related_customer: NotRequired[str]
"""
Customer ID
"""
related_person: NotRequired["VerificationSessionCreateParamsRelatedPerson"]
"""
Tokens referencing a Person resource and it's associated account.
"""
return_url: NotRequired[str]
"""
The URL that the user will be redirected to upon completing the verification flow.
"""
type: NotRequired[Literal["document", "id_number"]]
"""
The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed. You must provide a `type` if not passing `verification_flow`.
"""
verification_flow: NotRequired[str]
"""
The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows.
"""
class VerificationSessionCreateParamsOptions(TypedDict):
document: NotRequired[
"Literal['']|VerificationSessionCreateParamsOptionsDocument"
]
"""
Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
"""
class VerificationSessionCreateParamsOptionsDocument(TypedDict):
allowed_types: NotRequired[
List[Literal["driving_license", "id_card", "passport"]]
]
"""
Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
"""
require_id_number: NotRequired[bool]
"""
Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
"""
require_live_capture: NotRequired[bool]
"""
Disable image uploads, identity document images have to be captured using the device's camera.
"""
require_matching_selfie: NotRequired[bool]
"""
Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://stripe.com/docs/identity/selfie).
"""
class VerificationSessionCreateParamsProvidedDetails(TypedDict):
email: NotRequired[str]
"""
Email of user being verified
"""
phone: NotRequired[str]
"""
Phone number of user being verified
"""
class VerificationSessionCreateParamsRelatedPerson(TypedDict):
account: str
"""
A token representing a connected account. If provided, the person parameter is also required and must be associated with the account.
"""
person: str
"""
A token referencing a Person resource that this verification is being used to verify.
"""

View File

@@ -0,0 +1,58 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import Literal, NotRequired, TypedDict
class VerificationSessionListParams(RequestOptions):
client_reference_id: NotRequired[str]
"""
A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
"""
created: NotRequired["VerificationSessionListParamsCreated|int"]
"""
Only return VerificationSessions that were created during the given date interval.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
related_customer: NotRequired[str]
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
status: NotRequired[
Literal["canceled", "processing", "requires_input", "verified"]
]
"""
Only return VerificationSessions with this status. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
"""
class VerificationSessionListParamsCreated(TypedDict):
gt: NotRequired[int]
"""
Minimum value to filter by (exclusive)
"""
gte: NotRequired[int]
"""
Minimum value to filter by (inclusive)
"""
lt: NotRequired[int]
"""
Maximum value to filter by (exclusive)
"""
lte: NotRequired[int]
"""
Maximum value to filter by (inclusive)
"""

View File

@@ -0,0 +1,71 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
class VerificationSessionModifyParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
options: NotRequired["VerificationSessionModifyParamsOptions"]
"""
A set of options for the session's verification checks.
"""
provided_details: NotRequired[
"VerificationSessionModifyParamsProvidedDetails"
]
"""
Details provided about the user being verified. These details may be shown to the user.
"""
type: NotRequired[Literal["document", "id_number"]]
"""
The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
"""
class VerificationSessionModifyParamsOptions(TypedDict):
document: NotRequired[
"Literal['']|VerificationSessionModifyParamsOptionsDocument"
]
"""
Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
"""
class VerificationSessionModifyParamsOptionsDocument(TypedDict):
allowed_types: NotRequired[
List[Literal["driving_license", "id_card", "passport"]]
]
"""
Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
"""
require_id_number: NotRequired[bool]
"""
Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
"""
require_live_capture: NotRequired[bool]
"""
Disable image uploads, identity document images have to be captured using the device's camera.
"""
require_matching_selfie: NotRequired[bool]
"""
Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://stripe.com/docs/identity/selfie).
"""
class VerificationSessionModifyParamsProvidedDetails(TypedDict):
email: NotRequired[str]
"""
Email of user being verified
"""
phone: NotRequired[str]
"""
Phone number of user being verified
"""

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class VerificationSessionRedactParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
from typing_extensions import NotRequired
class VerificationSessionRetrieveParams(RequestOptions):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

View File

@@ -0,0 +1,70 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
class VerificationSessionUpdateParams(TypedDict):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
options: NotRequired["VerificationSessionUpdateParamsOptions"]
"""
A set of options for the session's verification checks.
"""
provided_details: NotRequired[
"VerificationSessionUpdateParamsProvidedDetails"
]
"""
Details provided about the user being verified. These details may be shown to the user.
"""
type: NotRequired[Literal["document", "id_number"]]
"""
The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
"""
class VerificationSessionUpdateParamsOptions(TypedDict):
document: NotRequired[
"Literal['']|VerificationSessionUpdateParamsOptionsDocument"
]
"""
Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
"""
class VerificationSessionUpdateParamsOptionsDocument(TypedDict):
allowed_types: NotRequired[
List[Literal["driving_license", "id_card", "passport"]]
]
"""
Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
"""
require_id_number: NotRequired[bool]
"""
Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
"""
require_live_capture: NotRequired[bool]
"""
Disable image uploads, identity document images have to be captured using the device's camera.
"""
require_matching_selfie: NotRequired[bool]
"""
Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://stripe.com/docs/identity/selfie).
"""
class VerificationSessionUpdateParamsProvidedDetails(TypedDict):
email: NotRequired[str]
"""
Email of user being verified
"""
phone: NotRequired[str]
"""
Phone number of user being verified
"""