@@ -53,6 +53,11 @@ export interface SignRequestCreateSigner {
53
53
* an existing account, they will have the option to create
54
54
* a free Box account. */
55
55
readonly loginRequired ?: boolean | null ;
56
+ /**
57
+ * If set, this phone number will be used to verify the signer
58
+ * via two-factor authentication before they are able to sign the document.
59
+ * Cannot be selected in combination with `login_required`. */
60
+ readonly verificationPhoneNumber ?: string | null ;
56
61
/**
57
62
* If set, the signer is required to enter the password before they are able
58
63
* to sign a document. This field is write only. */
@@ -110,6 +115,7 @@ export function serializeSignRequestCreateSigner(
110
115
[ 'redirect_url' ] : val . redirectUrl ,
111
116
[ 'declined_redirect_url' ] : val . declinedRedirectUrl ,
112
117
[ 'login_required' ] : val . loginRequired ,
118
+ [ 'verification_phone_number' ] : val . verificationPhoneNumber ,
113
119
[ 'password' ] : val . password ,
114
120
[ 'signer_group_id' ] : val . signerGroupId ,
115
121
[ 'suppress_notifications' ] : val . suppressNotifications ,
@@ -187,6 +193,19 @@ export function deserializeSignRequestCreateSigner(
187
193
}
188
194
const loginRequired : undefined | boolean =
189
195
val . login_required == void 0 ? void 0 : val . login_required ;
196
+ if (
197
+ ! ( val . verification_phone_number == void 0 ) &&
198
+ ! sdIsString ( val . verification_phone_number )
199
+ ) {
200
+ throw new BoxSdkError ( {
201
+ message :
202
+ 'Expecting string for "verification_phone_number" of type "SignRequestCreateSigner"' ,
203
+ } ) ;
204
+ }
205
+ const verificationPhoneNumber : undefined | string =
206
+ val . verification_phone_number == void 0
207
+ ? void 0
208
+ : val . verification_phone_number ;
190
209
if ( ! ( val . password == void 0 ) && ! sdIsString ( val . password ) ) {
191
210
throw new BoxSdkError ( {
192
211
message :
@@ -223,6 +242,7 @@ export function deserializeSignRequestCreateSigner(
223
242
redirectUrl : redirectUrl ,
224
243
declinedRedirectUrl : declinedRedirectUrl ,
225
244
loginRequired : loginRequired ,
245
+ verificationPhoneNumber : verificationPhoneNumber ,
226
246
password : password ,
227
247
signerGroupId : signerGroupId ,
228
248
suppressNotifications : suppressNotifications ,
0 commit comments