@@ -14,11 +14,21 @@ class TwoFactorVerifyRequestSchema(object):
1414 TODO: type model description here.
1515
1616 Attributes:
17- to (string): TODO: type description here.
18- mfrom (string): TODO: type description here.
19- application_id (string): TODO: type description here.
20- scope (string): TODO: type description here.
21- code (string): TODO: type description here.
17+ to (string): The phone number to send the 2fa code to.
18+ mfrom (string): The application phone number, the sender of the 2fa
19+ code.
20+ application_id (string): The application unique ID, obtained from
21+ Bandwidth.
22+ scope (string): An optional field to denote what scope or action the
23+ 2fa code is addressing. If not supplied, defaults to "2FA".
24+ digits (float): The number of digits for your 2fa code. The valid
25+ number ranges from 2 to 8, inclusively.
26+ expiration_time_in_minutes (float): The time period, in minutes, to
27+ validate the 2fa code. By setting this to 3 minutes, it will mean
28+ any code generated within the last 3 minutes are still valid. The
29+ valid range for expiration time is between 0 and 15 minutes,
30+ exclusively and inclusively, respectively.
31+ code (string): The generated 2fa code to check if valid
2232
2333 """
2434
@@ -27,23 +37,29 @@ class TwoFactorVerifyRequestSchema(object):
2737 "to" : 'to' ,
2838 "mfrom" : 'from' ,
2939 "application_id" : 'applicationId' ,
30- "scope" : 'scope' ,
31- "code" : 'code'
40+ "digits" : 'digits' ,
41+ "expiration_time_in_minutes" : 'expirationTimeInMinutes' ,
42+ "code" : 'code' ,
43+ "scope" : 'scope'
3244 }
3345
3446 def __init__ (self ,
3547 to = None ,
3648 mfrom = None ,
3749 application_id = None ,
38- scope = None ,
39- code = None ):
50+ digits = None ,
51+ expiration_time_in_minutes = None ,
52+ code = None ,
53+ scope = None ):
4054 """Constructor for the TwoFactorVerifyRequestSchema class"""
4155
4256 # Initialize members of the class
4357 self .to = to
4458 self .mfrom = mfrom
4559 self .application_id = application_id
4660 self .scope = scope
61+ self .digits = digits
62+ self .expiration_time_in_minutes = expiration_time_in_minutes
4763 self .code = code
4864
4965 @classmethod
@@ -67,12 +83,16 @@ def from_dictionary(cls,
6783 to = dictionary .get ('to' )
6884 mfrom = dictionary .get ('from' )
6985 application_id = dictionary .get ('applicationId' )
70- scope = dictionary .get ('scope' )
86+ digits = dictionary .get ('digits' )
87+ expiration_time_in_minutes = dictionary .get ('expirationTimeInMinutes' )
7188 code = dictionary .get ('code' )
89+ scope = dictionary .get ('scope' )
7290
7391 # Return an object of this model
7492 return cls (to ,
7593 mfrom ,
7694 application_id ,
77- scope ,
78- code )
95+ digits ,
96+ expiration_time_in_minutes ,
97+ code ,
98+ scope )
0 commit comments