88
99class InitializeRequest extends Model
1010{
11+ /**
12+ * @var string
13+ */
14+ public $ crop ;
15+
1116 /**
1217 * @var string
1318 */
@@ -28,6 +33,16 @@ class InitializeRequest extends Model
2833 */
2934 public $ flowType ;
3035
36+ /**
37+ * @var string
38+ */
39+ public $ idFaceQuality ;
40+
41+ /**
42+ * @var string
43+ */
44+ public $ idSpoof ;
45+
3146 /**
3247 * @var string
3348 */
@@ -43,6 +58,11 @@ class InitializeRequest extends Model
4358 */
4459 public $ metaInfo ;
4560
61+ /**
62+ * @var string
63+ */
64+ public $ ocr ;
65+
4666 /**
4767 * @var string
4868 */
@@ -63,6 +83,11 @@ class InitializeRequest extends Model
6383 */
6484 public $ productConfig ;
6585
86+ /**
87+ * @var string
88+ */
89+ public $ returnUrl ;
90+
6691 /**
6792 * @var string
6893 */
@@ -73,17 +98,22 @@ class InitializeRequest extends Model
7398 */
7499 public $ serviceLevel ;
75100 protected $ _name = [
101+ 'crop ' => 'Crop ' ,
76102 'docType ' => 'DocType ' ,
77103 'facePictureBase64 ' => 'FacePictureBase64 ' ,
78104 'facePictureUrl ' => 'FacePictureUrl ' ,
79105 'flowType ' => 'FlowType ' ,
106+ 'idFaceQuality ' => 'IdFaceQuality ' ,
107+ 'idSpoof ' => 'IdSpoof ' ,
80108 'merchantBizId ' => 'MerchantBizId ' ,
81109 'merchantUserId ' => 'MerchantUserId ' ,
82110 'metaInfo ' => 'MetaInfo ' ,
111+ 'ocr ' => 'Ocr ' ,
83112 'operationMode ' => 'OperationMode ' ,
84113 'pages ' => 'Pages ' ,
85114 'productCode ' => 'ProductCode ' ,
86115 'productConfig ' => 'ProductConfig ' ,
116+ 'returnUrl ' => 'ReturnUrl ' ,
87117 'sceneCode ' => 'SceneCode ' ,
88118 'serviceLevel ' => 'ServiceLevel ' ,
89119 ];
@@ -95,6 +125,9 @@ public function validate()
95125 public function toMap ()
96126 {
97127 $ res = [];
128+ if (null !== $ this ->crop ) {
129+ $ res ['Crop ' ] = $ this ->crop ;
130+ }
98131 if (null !== $ this ->docType ) {
99132 $ res ['DocType ' ] = $ this ->docType ;
100133 }
@@ -107,6 +140,12 @@ public function toMap()
107140 if (null !== $ this ->flowType ) {
108141 $ res ['FlowType ' ] = $ this ->flowType ;
109142 }
143+ if (null !== $ this ->idFaceQuality ) {
144+ $ res ['IdFaceQuality ' ] = $ this ->idFaceQuality ;
145+ }
146+ if (null !== $ this ->idSpoof ) {
147+ $ res ['IdSpoof ' ] = $ this ->idSpoof ;
148+ }
110149 if (null !== $ this ->merchantBizId ) {
111150 $ res ['MerchantBizId ' ] = $ this ->merchantBizId ;
112151 }
@@ -116,6 +155,9 @@ public function toMap()
116155 if (null !== $ this ->metaInfo ) {
117156 $ res ['MetaInfo ' ] = $ this ->metaInfo ;
118157 }
158+ if (null !== $ this ->ocr ) {
159+ $ res ['Ocr ' ] = $ this ->ocr ;
160+ }
119161 if (null !== $ this ->operationMode ) {
120162 $ res ['OperationMode ' ] = $ this ->operationMode ;
121163 }
@@ -128,6 +170,9 @@ public function toMap()
128170 if (null !== $ this ->productConfig ) {
129171 $ res ['ProductConfig ' ] = $ this ->productConfig ;
130172 }
173+ if (null !== $ this ->returnUrl ) {
174+ $ res ['ReturnUrl ' ] = $ this ->returnUrl ;
175+ }
131176 if (null !== $ this ->sceneCode ) {
132177 $ res ['SceneCode ' ] = $ this ->sceneCode ;
133178 }
@@ -146,6 +191,9 @@ public function toMap()
146191 public static function fromMap ($ map = [])
147192 {
148193 $ model = new self ();
194+ if (isset ($ map ['Crop ' ])) {
195+ $ model ->crop = $ map ['Crop ' ];
196+ }
149197 if (isset ($ map ['DocType ' ])) {
150198 $ model ->docType = $ map ['DocType ' ];
151199 }
@@ -158,6 +206,12 @@ public static function fromMap($map = [])
158206 if (isset ($ map ['FlowType ' ])) {
159207 $ model ->flowType = $ map ['FlowType ' ];
160208 }
209+ if (isset ($ map ['IdFaceQuality ' ])) {
210+ $ model ->idFaceQuality = $ map ['IdFaceQuality ' ];
211+ }
212+ if (isset ($ map ['IdSpoof ' ])) {
213+ $ model ->idSpoof = $ map ['IdSpoof ' ];
214+ }
161215 if (isset ($ map ['MerchantBizId ' ])) {
162216 $ model ->merchantBizId = $ map ['MerchantBizId ' ];
163217 }
@@ -167,6 +221,9 @@ public static function fromMap($map = [])
167221 if (isset ($ map ['MetaInfo ' ])) {
168222 $ model ->metaInfo = $ map ['MetaInfo ' ];
169223 }
224+ if (isset ($ map ['Ocr ' ])) {
225+ $ model ->ocr = $ map ['Ocr ' ];
226+ }
170227 if (isset ($ map ['OperationMode ' ])) {
171228 $ model ->operationMode = $ map ['OperationMode ' ];
172229 }
@@ -179,6 +236,9 @@ public static function fromMap($map = [])
179236 if (isset ($ map ['ProductConfig ' ])) {
180237 $ model ->productConfig = $ map ['ProductConfig ' ];
181238 }
239+ if (isset ($ map ['ReturnUrl ' ])) {
240+ $ model ->returnUrl = $ map ['ReturnUrl ' ];
241+ }
182242 if (isset ($ map ['SceneCode ' ])) {
183243 $ model ->sceneCode = $ map ['SceneCode ' ];
184244 }
0 commit comments