44
55from box_sdk_gen .internal .utils import Date
66
7+ from box_sdk_gen .schemas .sign_request_signer_input_email_validation import (
8+ SignRequestSignerInputEmailValidation ,
9+ )
10+
11+ from box_sdk_gen .schemas .sign_request_signer_input_custom_validation import (
12+ SignRequestSignerInputCustomValidation ,
13+ )
14+
15+ from box_sdk_gen .schemas .sign_request_signer_input_zip_validation import (
16+ SignRequestSignerInputZipValidation ,
17+ )
18+
19+ from box_sdk_gen .schemas .sign_request_signer_input_zip_4_validation import (
20+ SignRequestSignerInputZip4Validation ,
21+ )
22+
23+ from box_sdk_gen .schemas .sign_request_signer_input_ssn_validation import (
24+ SignRequestSignerInputSsnValidation ,
25+ )
26+
27+ from box_sdk_gen .schemas .sign_request_signer_input_number_with_period_validation import (
28+ SignRequestSignerInputNumberWithPeriodValidation ,
29+ )
30+
31+ from box_sdk_gen .schemas .sign_request_signer_input_number_with_comma_validation import (
32+ SignRequestSignerInputNumberWithCommaValidation ,
33+ )
34+
35+ from box_sdk_gen .schemas .sign_request_signer_input_date_iso_validation import (
36+ SignRequestSignerInputDateIsoValidation ,
37+ )
38+
39+ from box_sdk_gen .schemas .sign_request_signer_input_date_us_validation import (
40+ SignRequestSignerInputDateUsValidation ,
41+ )
42+
43+ from box_sdk_gen .schemas .sign_request_signer_input_date_eu_validation import (
44+ SignRequestSignerInputDateEuValidation ,
45+ )
46+
47+ from box_sdk_gen .schemas .sign_request_signer_input_date_asia_validation import (
48+ SignRequestSignerInputDateAsiaValidation ,
49+ )
50+
751from box_sdk_gen .schemas .sign_request_prefill_tag import SignRequestPrefillTag
852
53+ from box_sdk_gen .schemas .sign_request_signer_input_validation import (
54+ SignRequestSignerInputValidation ,
55+ )
56+
957from box_sdk_gen .box .errors import BoxSDKError
1058
1159
@@ -44,29 +92,33 @@ def __init__(
4492 type : Optional [SignRequestSignerInputTypeField ] = None ,
4593 content_type : Optional [SignRequestSignerInputContentTypeField ] = None ,
4694 read_only : Optional [bool ] = None ,
95+ validation : Optional [SignRequestSignerInputValidation ] = None ,
4796 document_tag_id : Optional [str ] = None ,
4897 text_value : Optional [str ] = None ,
4998 checkbox_value : Optional [bool ] = None ,
5099 date_value : Optional [Date ] = None ,
51100 ** kwargs
52101 ):
53102 """
54- :param page_index: Index of page that the input is on.
55- :type page_index: int
56- :param type: Type of input., defaults to None
57- :type type: Optional[SignRequestSignerInputTypeField], optional
58- :param content_type: Content type of input., defaults to None
59- :type content_type: Optional[SignRequestSignerInputContentTypeField], optional
60- :param read_only: Whether this input was defined as read-only(immutable by signers) or not., defaults to None
61- :type read_only: Optional[bool], optional
62- :param document_tag_id: This references the ID of a specific tag contained in a file of the signature request., defaults to None
63- :type document_tag_id: Optional[str], optional
64- :param text_value: Text prefill value., defaults to None
65- :type text_value: Optional[str], optional
66- :param checkbox_value: Checkbox prefill value., defaults to None
67- :type checkbox_value: Optional[bool], optional
68- :param date_value: Date prefill value., defaults to None
69- :type date_value: Optional[Date], optional
103+ :param page_index: Index of page that the input is on.
104+ :type page_index: int
105+ :param type: Type of input., defaults to None
106+ :type type: Optional[SignRequestSignerInputTypeField], optional
107+ :param content_type: Content type of input., defaults to None
108+ :type content_type: Optional[SignRequestSignerInputContentTypeField], optional
109+ :param read_only: Indicates whether this input is read-only (cannot be modified by signers)., defaults to None
110+ :type read_only: Optional[bool], optional
111+ :param validation: Specifies the formatting rules that signers must follow for text field inputs.
112+ If set, this validation is mandatory., defaults to None
113+ :type validation: Optional[SignRequestSignerInputValidation], optional
114+ :param document_tag_id: This references the ID of a specific tag contained in a file of the signature request., defaults to None
115+ :type document_tag_id: Optional[str], optional
116+ :param text_value: Text prefill value., defaults to None
117+ :type text_value: Optional[str], optional
118+ :param checkbox_value: Checkbox prefill value., defaults to None
119+ :type checkbox_value: Optional[bool], optional
120+ :param date_value: Date prefill value., defaults to None
121+ :type date_value: Optional[Date], optional
70122 """
71123 super ().__init__ (
72124 document_tag_id = document_tag_id ,
@@ -79,3 +131,4 @@ def __init__(
79131 self .type = type
80132 self .content_type = content_type
81133 self .read_only = read_only
134+ self .validation = validation
0 commit comments