Skip to content

Commit d90faea

Browse files
fix: add verification_phone_number property to create sign request (box/box-openapi#515) (#427)
1 parent 4dc5dc1 commit d90faea

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "41feeaa", "specHash": "3dc6f70", "version": "1.8.0" }
1+
{ "engineHash": "41feeaa", "specHash": "1080bb4", "version": "1.8.0" }

Box.Sdk.Gen/Schemas/SignRequestCreateSigner/SignRequestCreateSigner.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public class SignRequestCreateSigner : ISerializable {
2525
[JsonPropertyName("_islogin_requiredSet")]
2626
protected bool _isLoginRequiredSet { get; set; }
2727

28+
[JsonInclude]
29+
[JsonPropertyName("_isverification_phone_numberSet")]
30+
protected bool _isVerificationPhoneNumberSet { get; set; }
31+
2832
[JsonInclude]
2933
[JsonPropertyName("_ispasswordSet")]
3034
protected bool _isPasswordSet { get; set; }
@@ -47,6 +51,8 @@ public class SignRequestCreateSigner : ISerializable {
4751

4852
protected bool? _loginRequired { get; set; }
4953

54+
protected string? _verificationPhoneNumber { get; set; }
55+
5056
protected string? _password { get; set; }
5157

5258
protected string? _signerGroupId { get; set; }
@@ -119,6 +125,14 @@ public class SignRequestCreateSigner : ISerializable {
119125
[JsonPropertyName("login_required")]
120126
public bool? LoginRequired { get => _loginRequired; init { _loginRequired = value; _isLoginRequiredSet = true; } }
121127

128+
/// <summary>
129+
/// If set, this phone number will be used to verify the signer
130+
/// via two-factor authentication before they are able to sign the document.
131+
/// Cannot be selected in combination with `login_required`.
132+
/// </summary>
133+
[JsonPropertyName("verification_phone_number")]
134+
public string? VerificationPhoneNumber { get => _verificationPhoneNumber; init { _verificationPhoneNumber = value; _isVerificationPhoneNumberSet = true; } }
135+
122136
/// <summary>
123137
/// If set, the signer is required to enter the password before they are able
124138
/// to sign a document. This field is write only.

0 commit comments

Comments
 (0)