Debian Codegraph @

stripe/params/identity/_verification_session_modify_params.py

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