Debian Codegraph @

stripe/params/identity/_verification_session_update_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import Dict, List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class VerificationSessionUpdateParams(TypedDict):
8 expand: NotRequired[List[str]]
9 """
10 Specifies which fields in the response should be expanded.
11 """
12 metadata: NotRequired[Dict[str, str]]
13 """
14 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`.
15 """
16 options: NotRequired["VerificationSessionUpdateParamsOptions"]
17 """
18 A set of options for the session's verification checks.
19 """
20 provided_details: NotRequired[
21 "VerificationSessionUpdateParamsProvidedDetails"
22 ]
23 """
24 Details provided about the user being verified. These details may be shown to the user.
25 """
26 type: NotRequired[Literal["document", "id_number"]]
27 """
28 The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed.
29 """
30
31
32 class VerificationSessionUpdateParamsOptions(TypedDict):
33 document: NotRequired[
34 "Literal['']|VerificationSessionUpdateParamsOptionsDocument"
35 ]
36 """
37 Options that apply to the [document check](https://docs.stripe.com/identity/verification-checks?type=document).
38 """
39
40
41 class VerificationSessionUpdateParamsOptionsDocument(TypedDict):
42 allowed_types: NotRequired[
43 List[Literal["driving_license", "id_card", "passport"]]
44 ]
45 """
46 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.
47 """
48 require_id_number: NotRequired[bool]
49 """
50 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.
51 """
52 require_live_capture: NotRequired[bool]
53 """
54 Disable image uploads, identity document images have to be captured using the device's camera.
55 """
56 require_matching_selfie: NotRequired[bool]
57 """
58 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).
59 """
60
61
62 class VerificationSessionUpdateParamsProvidedDetails(TypedDict):
63 email: NotRequired[str]
64 """
65 Email of user being verified
66 """
67 phone: NotRequired[str]
68 """
69 Phone number of user being verified
70 """