| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._request_options import RequestOptions |
| 4 |
from typing import Dict, List |
| 5 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class VerificationSessionCreateParams(RequestOptions): |
| 9 |
client_reference_id: NotRequired[str] |
| 10 |
""" |
| 11 |
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. |
| 12 |
""" |
| 13 |
expand: NotRequired[List[str]] |
| 14 |
""" |
| 15 |
Specifies which fields in the response should be expanded. |
| 16 |
""" |
| 17 |
metadata: NotRequired[Dict[str, str]] |
| 18 |
""" |
| 19 |
Set of [key-value pairs](https://docs.stripe.com/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`. |
| 20 |
""" |
| 21 |
options: NotRequired["VerificationSessionCreateParamsOptions"] |
| 22 |
""" |
| 23 |
A set of options for the session's verification checks. |
| 24 |
""" |
| 25 |
provided_details: NotRequired[ |
| 26 |
"VerificationSessionCreateParamsProvidedDetails" |
| 27 |
] |
| 28 |
""" |
| 29 |
Details provided about the user being verified. These details may be shown to the user. |
| 30 |
""" |
| 31 |
related_customer: NotRequired[str] |
| 32 |
""" |
| 33 |
Customer ID |
| 34 |
""" |
| 35 |
related_customer_account: NotRequired[str] |
| 36 |
""" |
| 37 |
The ID of the Account representing a customer. |
| 38 |
""" |
| 39 |
related_person: NotRequired["VerificationSessionCreateParamsRelatedPerson"] |
| 40 |
""" |
| 41 |
Tokens referencing a Person resource and it's associated account. |
| 42 |
""" |
| 43 |
return_url: NotRequired[str] |
| 44 |
""" |
| 45 |
The URL that the user will be redirected to upon completing the verification flow. |
| 46 |
""" |
| 47 |
type: NotRequired[Literal["document", "id_number"]] |
| 48 |
""" |
| 49 |
The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. You must provide a `type` if not passing `verification_flow`. |
| 50 |
""" |
| 51 |
verification_flow: NotRequired[str] |
| 52 |
""" |
| 53 |
The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows. |
| 54 |
""" |
| 55 |
|
| 56 |
|
| 57 |
class VerificationSessionCreateParamsOptions(TypedDict): |
| 58 |
document: NotRequired[ |
| 59 |
"Literal['']|VerificationSessionCreateParamsOptionsDocument" |
| 60 |
] |
| 61 |
""" |
| 62 |
Options that apply to the [document check](https://docs.stripe.com/identity/verification-checks?type=document). |
| 63 |
""" |
| 64 |
|
| 65 |
|
| 66 |
class VerificationSessionCreateParamsOptionsDocument(TypedDict): |
| 67 |
allowed_types: NotRequired[ |
| 68 |
List[Literal["driving_license", "id_card", "passport"]] |
| 69 |
] |
| 70 |
""" |
| 71 |
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. |
| 72 |
""" |
| 73 |
require_id_number: NotRequired[bool] |
| 74 |
""" |
| 75 |
Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth. |
| 76 |
""" |
| 77 |
require_live_capture: NotRequired[bool] |
| 78 |
""" |
| 79 |
Disable image uploads, identity document images have to be captured using the device's camera. |
| 80 |
""" |
| 81 |
require_matching_selfie: NotRequired[bool] |
| 82 |
""" |
| 83 |
Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie). |
| 84 |
""" |
| 85 |
|
| 86 |
|
| 87 |
class VerificationSessionCreateParamsProvidedDetails(TypedDict): |
| 88 |
email: NotRequired[str] |
| 89 |
""" |
| 90 |
Email of user being verified |
| 91 |
""" |
| 92 |
phone: NotRequired[str] |
| 93 |
""" |
| 94 |
Phone number of user being verified |
| 95 |
""" |
| 96 |
|
| 97 |
|
| 98 |
class VerificationSessionCreateParamsRelatedPerson(TypedDict): |
| 99 |
account: str |
| 100 |
""" |
| 101 |
A token representing a connected account. If provided, the person parameter is also required and must be associated with the account. |
| 102 |
""" |
| 103 |
person: str |
| 104 |
""" |
| 105 |
A token referencing a Person resource that this verification is being used to verify. |
| 106 |
""" |