@@ -33,6 +33,21 @@ class InitializeRequest extends Model
3333 */
3434 public $ crop ;
3535
36+ /**
37+ * @var string
38+ */
39+ public $ dateOfBirth ;
40+
41+ /**
42+ * @var string
43+ */
44+ public $ dateOfExpiry ;
45+
46+ /**
47+ * @var string[]
48+ */
49+ public $ docPageConfig ;
50+
3651 /**
3752 * @var string
3853 */
@@ -48,6 +63,11 @@ class InitializeRequest extends Model
4863 */
4964 public $ docVideo ;
5065
66+ /**
67+ * @var string
68+ */
69+ public $ documentNumber ;
70+
5171 /**
5272 * @var string
5373 */
@@ -83,6 +103,11 @@ class InitializeRequest extends Model
83103 */
84104 public $ languageConfig ;
85105
106+ /**
107+ * @var string
108+ */
109+ public $ MRTDInput ;
110+
86111 /**
87112 * @var string
88113 */
@@ -157,22 +182,32 @@ class InitializeRequest extends Model
157182 * @var string
158183 */
159184 public $ styleConfig ;
185+
186+ /**
187+ * @var string
188+ */
189+ public $ useNFC ;
160190 protected $ _name = [
161191 'appQualityCheck ' => 'AppQualityCheck ' ,
162192 'authorize ' => 'Authorize ' ,
163193 'callbackToken ' => 'CallbackToken ' ,
164194 'callbackUrl ' => 'CallbackUrl ' ,
165195 'crop ' => 'Crop ' ,
196+ 'dateOfBirth ' => 'DateOfBirth ' ,
197+ 'dateOfExpiry ' => 'DateOfExpiry ' ,
198+ 'docPageConfig ' => 'DocPageConfig ' ,
166199 'docScanMode ' => 'DocScanMode ' ,
167200 'docType ' => 'DocType ' ,
168201 'docVideo ' => 'DocVideo ' ,
202+ 'documentNumber ' => 'DocumentNumber ' ,
169203 'experienceCode ' => 'ExperienceCode ' ,
170204 'facePictureBase64 ' => 'FacePictureBase64 ' ,
171205 'facePictureUrl ' => 'FacePictureUrl ' ,
172206 'idFaceQuality ' => 'IdFaceQuality ' ,
173207 'idSpoof ' => 'IdSpoof ' ,
174208 'idThreshold ' => 'IdThreshold ' ,
175209 'languageConfig ' => 'LanguageConfig ' ,
210+ 'MRTDInput ' => 'MRTDInput ' ,
176211 'merchantBizId ' => 'MerchantBizId ' ,
177212 'merchantUserId ' => 'MerchantUserId ' ,
178213 'metaInfo ' => 'MetaInfo ' ,
@@ -188,10 +223,14 @@ class InitializeRequest extends Model
188223 'showGuidePage ' => 'ShowGuidePage ' ,
189224 'showOcrResult ' => 'ShowOcrResult ' ,
190225 'styleConfig ' => 'StyleConfig ' ,
226+ 'useNFC ' => 'UseNFC ' ,
191227 ];
192228
193229 public function validate ()
194230 {
231+ if (\is_array ($ this ->docPageConfig )) {
232+ Model::validateArray ($ this ->docPageConfig );
233+ }
195234 parent ::validate ();
196235 }
197236
@@ -218,6 +257,24 @@ public function toArray($noStream = false)
218257 $ res ['Crop ' ] = $ this ->crop ;
219258 }
220259
260+ if (null !== $ this ->dateOfBirth ) {
261+ $ res ['DateOfBirth ' ] = $ this ->dateOfBirth ;
262+ }
263+
264+ if (null !== $ this ->dateOfExpiry ) {
265+ $ res ['DateOfExpiry ' ] = $ this ->dateOfExpiry ;
266+ }
267+
268+ if (null !== $ this ->docPageConfig ) {
269+ if (\is_array ($ this ->docPageConfig )) {
270+ $ res ['DocPageConfig ' ] = [];
271+ $ n1 = 0 ;
272+ foreach ($ this ->docPageConfig as $ item1 ) {
273+ $ res ['DocPageConfig ' ][$ n1 ++] = $ item1 ;
274+ }
275+ }
276+ }
277+
221278 if (null !== $ this ->docScanMode ) {
222279 $ res ['DocScanMode ' ] = $ this ->docScanMode ;
223280 }
@@ -230,6 +287,10 @@ public function toArray($noStream = false)
230287 $ res ['DocVideo ' ] = $ this ->docVideo ;
231288 }
232289
290+ if (null !== $ this ->documentNumber ) {
291+ $ res ['DocumentNumber ' ] = $ this ->documentNumber ;
292+ }
293+
233294 if (null !== $ this ->experienceCode ) {
234295 $ res ['ExperienceCode ' ] = $ this ->experienceCode ;
235296 }
@@ -258,6 +319,10 @@ public function toArray($noStream = false)
258319 $ res ['LanguageConfig ' ] = $ this ->languageConfig ;
259320 }
260321
322+ if (null !== $ this ->MRTDInput ) {
323+ $ res ['MRTDInput ' ] = $ this ->MRTDInput ;
324+ }
325+
261326 if (null !== $ this ->merchantBizId ) {
262327 $ res ['MerchantBizId ' ] = $ this ->merchantBizId ;
263328 }
@@ -318,6 +383,10 @@ public function toArray($noStream = false)
318383 $ res ['StyleConfig ' ] = $ this ->styleConfig ;
319384 }
320385
386+ if (null !== $ this ->useNFC ) {
387+ $ res ['UseNFC ' ] = $ this ->useNFC ;
388+ }
389+
321390 return $ res ;
322391 }
323392
@@ -349,6 +418,24 @@ public static function fromMap($map = [])
349418 $ model ->crop = $ map ['Crop ' ];
350419 }
351420
421+ if (isset ($ map ['DateOfBirth ' ])) {
422+ $ model ->dateOfBirth = $ map ['DateOfBirth ' ];
423+ }
424+
425+ if (isset ($ map ['DateOfExpiry ' ])) {
426+ $ model ->dateOfExpiry = $ map ['DateOfExpiry ' ];
427+ }
428+
429+ if (isset ($ map ['DocPageConfig ' ])) {
430+ if (!empty ($ map ['DocPageConfig ' ])) {
431+ $ model ->docPageConfig = [];
432+ $ n1 = 0 ;
433+ foreach ($ map ['DocPageConfig ' ] as $ item1 ) {
434+ $ model ->docPageConfig [$ n1 ++] = $ item1 ;
435+ }
436+ }
437+ }
438+
352439 if (isset ($ map ['DocScanMode ' ])) {
353440 $ model ->docScanMode = $ map ['DocScanMode ' ];
354441 }
@@ -361,6 +448,10 @@ public static function fromMap($map = [])
361448 $ model ->docVideo = $ map ['DocVideo ' ];
362449 }
363450
451+ if (isset ($ map ['DocumentNumber ' ])) {
452+ $ model ->documentNumber = $ map ['DocumentNumber ' ];
453+ }
454+
364455 if (isset ($ map ['ExperienceCode ' ])) {
365456 $ model ->experienceCode = $ map ['ExperienceCode ' ];
366457 }
@@ -389,6 +480,10 @@ public static function fromMap($map = [])
389480 $ model ->languageConfig = $ map ['LanguageConfig ' ];
390481 }
391482
483+ if (isset ($ map ['MRTDInput ' ])) {
484+ $ model ->MRTDInput = $ map ['MRTDInput ' ];
485+ }
486+
392487 if (isset ($ map ['MerchantBizId ' ])) {
393488 $ model ->merchantBizId = $ map ['MerchantBizId ' ];
394489 }
@@ -449,6 +544,10 @@ public static function fromMap($map = [])
449544 $ model ->styleConfig = $ map ['StyleConfig ' ];
450545 }
451546
547+ if (isset ($ map ['UseNFC ' ])) {
548+ $ model ->useNFC = $ map ['UseNFC ' ];
549+ }
550+
452551 return $ model ;
453552 }
454553}
0 commit comments