tencentcloud-sdk-nodejs-intl-en 3.0.880 → 3.0.881
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.881";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -24,6 +24,7 @@ const GetSdkVerificationResultRequest = models.GetSdkVerificationResultRequest;
|
|
|
24
24
|
const ApplyWebVerificationBizTokenIntlResponse = models.ApplyWebVerificationBizTokenIntlResponse;
|
|
25
25
|
const LivenessCompareResponse = models.LivenessCompareResponse;
|
|
26
26
|
const CreateUploadUrlResponse = models.CreateUploadUrlResponse;
|
|
27
|
+
const ApplyCardVerificationResponse = models.ApplyCardVerificationResponse;
|
|
27
28
|
const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
|
|
28
29
|
const GetFaceIdTokenIntlRequest = models.GetFaceIdTokenIntlRequest;
|
|
29
30
|
const VideoLivenessCompareRequest = models.VideoLivenessCompareRequest;
|
|
@@ -45,7 +46,7 @@ const CardVerifyResult = models.CardVerifyResult;
|
|
|
45
46
|
const ApplyWebVerificationTokenRequest = models.ApplyWebVerificationTokenRequest;
|
|
46
47
|
const Address = models.Address;
|
|
47
48
|
const ApplyLivenessTokenResponse = models.ApplyLivenessTokenResponse;
|
|
48
|
-
const
|
|
49
|
+
const GetCardVerificationResultRequest = models.GetCardVerificationResultRequest;
|
|
49
50
|
const CardInfo = models.CardInfo;
|
|
50
51
|
const PhilippinesVoteID = models.PhilippinesVoteID;
|
|
51
52
|
const WebVerificationConfigIntl = models.WebVerificationConfigIntl;
|
|
@@ -59,15 +60,18 @@ const GetWebVerificationResultResponse = models.GetWebVerificationResultResponse
|
|
|
59
60
|
const FileInfo = models.FileInfo;
|
|
60
61
|
const ApplyLivenessTokenRequest = models.ApplyLivenessTokenRequest;
|
|
61
62
|
const PhilippinesDrivingLicense = models.PhilippinesDrivingLicense;
|
|
63
|
+
const GetCardVerificationResultResponse = models.GetCardVerificationResultResponse;
|
|
62
64
|
const GenerateReflectSequenceResponse = models.GenerateReflectSequenceResponse;
|
|
63
|
-
const
|
|
65
|
+
const GetWebVerificationResultIntlRequest = models.GetWebVerificationResultIntlRequest;
|
|
64
66
|
const GeneralCard = models.GeneralCard;
|
|
67
|
+
const PhilippinesUMID = models.PhilippinesUMID;
|
|
65
68
|
const PhilippinesTinID = models.PhilippinesTinID;
|
|
69
|
+
const ApplyCardVerificationRequest = models.ApplyCardVerificationRequest;
|
|
66
70
|
const LivenessCompareRequest = models.LivenessCompareRequest;
|
|
67
71
|
const MLIDCard = models.MLIDCard;
|
|
68
72
|
const OCRResult = models.OCRResult;
|
|
69
73
|
const GetFaceIdResultIntlResponse = models.GetFaceIdResultIntlResponse;
|
|
70
|
-
const
|
|
74
|
+
const GetLivenessResultRequest = models.GetLivenessResultRequest;
|
|
71
75
|
const CompareResult = models.CompareResult;
|
|
72
76
|
|
|
73
77
|
|
|
@@ -81,6 +85,17 @@ class FaceidClient extends AbstractClient {
|
|
|
81
85
|
super("faceid.tencentcloudapi.com", "2018-03-01", credential, region, profile);
|
|
82
86
|
}
|
|
83
87
|
|
|
88
|
+
/**
|
|
89
|
+
* The interface supports obtaining the certificate authentication result based on the token.
|
|
90
|
+
* @param {GetCardVerificationResultRequest} req
|
|
91
|
+
* @param {function(string, GetCardVerificationResultResponse):void} cb
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
GetCardVerificationResult(req, cb) {
|
|
95
|
+
let resp = new GetCardVerificationResultResponse();
|
|
96
|
+
this.request("GetCardVerificationResult", req, resp, cb);
|
|
97
|
+
}
|
|
98
|
+
|
|
84
99
|
/**
|
|
85
100
|
* This API is used to apply for a token before calling the liveness detection service each time. This token is required for initiating the verification process and getting the result after the verification is completed.
|
|
86
101
|
* @param {ApplyLivenessTokenRequest} req
|
|
@@ -139,6 +154,17 @@ The data generated with the SDK must be stored in COS, and the region of the COS
|
|
|
139
154
|
this.request("GenerateReflectSequence", req, resp, cb);
|
|
140
155
|
}
|
|
141
156
|
|
|
157
|
+
/**
|
|
158
|
+
* The types of national cards supported by the API and whether instructions on the back of the card are required are as follows: <table> <thead> <tr> <td style="width:200px"Nationality</td> <td style="width:200px">CardType</td> <td style="width:200px">Back side required</td> </tr> </thead> <tbody> <tr> <td>Indonesia</td> <td>ID card</td> <td>No</td> </tr> <tr> <td>Indonesia</td> <td>Drving license</td> <td>No</td> </tr> <tr> <td>Hongkong</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Thailand</td> <td>ID card</td> <td>No</td> </tr> <tr> <td>Thailand</td> <td>Drving license</td> <td>Yes</td> </tr> <tr> <td>Malaysia</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Malaysia</td> <td>Drving license</td> <td>Yes</td> </tr> <tr> <td>Singapore</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Singapore</td> <td>Drving license</td> <td>Yes</td> </tr> <tr> <td>Philippine</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Philippine</td> <td>Drving license</td> <td>No</td> </tr> <tr> <td>Japan</td> <td>ID card</td> <td>Yes</td> </tr> <tr> <td>Japan</td> <td>Drving license</td> <td>No</td> </tr> </tbody> </table>
|
|
159
|
+
* @param {ApplyCardVerificationRequest} req
|
|
160
|
+
* @param {function(string, ApplyCardVerificationResponse):void} cb
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
ApplyCardVerification(req, cb) {
|
|
164
|
+
let resp = new ApplyCardVerificationResponse();
|
|
165
|
+
this.request("ApplyCardVerification", req, resp, cb);
|
|
166
|
+
}
|
|
167
|
+
|
|
142
168
|
/**
|
|
143
169
|
* This API is used to pass in URLs of a video and a photo, determine whether the person in the video is real, and if yes, then determine whether the person in the video is the same as that in the photo.
|
|
144
170
|
* @param {VideoLivenessCompareRequest} req
|
|
@@ -504,6 +504,55 @@ class CreateUploadUrlResponse extends AbstractModel {
|
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
+
/**
|
|
508
|
+
* ApplyCardVerification response structure.
|
|
509
|
+
* @class
|
|
510
|
+
*/
|
|
511
|
+
class ApplyCardVerificationResponse extends AbstractModel {
|
|
512
|
+
constructor(){
|
|
513
|
+
super();
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* The token used to identify an verification process. It can be used to get the verification result after the process is completed.
|
|
517
|
+
* @type {string || null}
|
|
518
|
+
*/
|
|
519
|
+
this.CardVerificationToken = null;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* The maximum number of polls for calling the pull result interface polling.
|
|
523
|
+
* @type {number || null}
|
|
524
|
+
*/
|
|
525
|
+
this.AsyncCardVerificationMaxPollingTimes = null;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* The interval for polling when calling the pull result interface (in seconds).
|
|
529
|
+
* @type {number || null}
|
|
530
|
+
*/
|
|
531
|
+
this.AsyncCardVerificationPollingWaitTime = null;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
535
|
+
* @type {string || null}
|
|
536
|
+
*/
|
|
537
|
+
this.RequestId = null;
|
|
538
|
+
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @private
|
|
543
|
+
*/
|
|
544
|
+
deserialize(params) {
|
|
545
|
+
if (!params) {
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
this.CardVerificationToken = 'CardVerificationToken' in params ? params.CardVerificationToken : null;
|
|
549
|
+
this.AsyncCardVerificationMaxPollingTimes = 'AsyncCardVerificationMaxPollingTimes' in params ? params.AsyncCardVerificationMaxPollingTimes : null;
|
|
550
|
+
this.AsyncCardVerificationPollingWaitTime = 'AsyncCardVerificationPollingWaitTime' in params ? params.AsyncCardVerificationPollingWaitTime : null;
|
|
551
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
552
|
+
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
507
556
|
/**
|
|
508
557
|
* DetectReflectLivenessAndCompare request structure.
|
|
509
558
|
* @class
|
|
@@ -2038,18 +2087,18 @@ class ApplyLivenessTokenResponse extends AbstractModel {
|
|
|
2038
2087
|
}
|
|
2039
2088
|
|
|
2040
2089
|
/**
|
|
2041
|
-
*
|
|
2090
|
+
* GetCardVerificationResult request structure.
|
|
2042
2091
|
* @class
|
|
2043
2092
|
*/
|
|
2044
|
-
class
|
|
2093
|
+
class GetCardVerificationResultRequest extends AbstractModel {
|
|
2045
2094
|
constructor(){
|
|
2046
2095
|
super();
|
|
2047
2096
|
|
|
2048
2097
|
/**
|
|
2049
|
-
* The token used to identify an
|
|
2098
|
+
* The token used to identify an verification process. It can be used to get the verification result after the process is completed.
|
|
2050
2099
|
* @type {string || null}
|
|
2051
2100
|
*/
|
|
2052
|
-
this.
|
|
2101
|
+
this.CardVerificationToken = null;
|
|
2053
2102
|
|
|
2054
2103
|
}
|
|
2055
2104
|
|
|
@@ -2060,7 +2109,7 @@ class GetLivenessResultRequest extends AbstractModel {
|
|
|
2060
2109
|
if (!params) {
|
|
2061
2110
|
return;
|
|
2062
2111
|
}
|
|
2063
|
-
this.
|
|
2112
|
+
this.CardVerificationToken = 'CardVerificationToken' in params ? params.CardVerificationToken : null;
|
|
2064
2113
|
|
|
2065
2114
|
}
|
|
2066
2115
|
}
|
|
@@ -3075,24 +3124,66 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3075
3124
|
}
|
|
3076
3125
|
|
|
3077
3126
|
/**
|
|
3078
|
-
*
|
|
3127
|
+
* GetCardVerificationResult response structure.
|
|
3079
3128
|
* @class
|
|
3080
3129
|
*/
|
|
3081
|
-
class
|
|
3130
|
+
class GetCardVerificationResultResponse extends AbstractModel {
|
|
3082
3131
|
constructor(){
|
|
3083
3132
|
super();
|
|
3084
3133
|
|
|
3085
3134
|
/**
|
|
3086
|
-
*
|
|
3135
|
+
* Pass status. When Warning and Rejected are returned, please check the specific reasons in the WarnInfo structure return. Example values are as follows:
|
|
3136
|
+
Passed
|
|
3137
|
+
Warning
|
|
3138
|
+
Rejected
|
|
3087
3139
|
* @type {string || null}
|
|
3088
3140
|
*/
|
|
3089
|
-
this.
|
|
3141
|
+
this.Status = null;
|
|
3090
3142
|
|
|
3091
3143
|
/**
|
|
3092
|
-
*
|
|
3144
|
+
* Warning information returned by document verification.
|
|
3145
|
+
* @type {Array.<string> || null}
|
|
3146
|
+
*/
|
|
3147
|
+
this.WarnInfo = null;
|
|
3148
|
+
|
|
3149
|
+
/**
|
|
3150
|
+
* Nationality code. Complies with standard ISO 3166-1 alpha-3.
|
|
3151
|
+
|
|
3152
|
+
Example value: IDN
|
|
3093
3153
|
* @type {string || null}
|
|
3094
3154
|
*/
|
|
3095
|
-
this.
|
|
3155
|
+
this.Nationality = null;
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* Card Type. The supported options are:
|
|
3159
|
+
ID_CARD
|
|
3160
|
+
PASSPORT
|
|
3161
|
+
DRIVING_LICENSE
|
|
3162
|
+
AUTO
|
|
3163
|
+
|
|
3164
|
+
Example value: ID_CARD
|
|
3165
|
+
* @type {string || null}
|
|
3166
|
+
*/
|
|
3167
|
+
this.CardType = null;
|
|
3168
|
+
|
|
3169
|
+
/**
|
|
3170
|
+
* Subtype of the ID document.
|
|
3171
|
+
|
|
3172
|
+
* @type {string || null}
|
|
3173
|
+
*/
|
|
3174
|
+
this.CardSubType = null;
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* Recognition results of the ID document.
|
|
3178
|
+
* @type {CardInfo || null}
|
|
3179
|
+
*/
|
|
3180
|
+
this.CardInfo = null;
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* The token used to identify an verification process. It can be used to get the verification result after the process is completed.
|
|
3184
|
+
* @type {string || null}
|
|
3185
|
+
*/
|
|
3186
|
+
this.IDVerificationToken = null;
|
|
3096
3187
|
|
|
3097
3188
|
/**
|
|
3098
3189
|
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
@@ -3109,69 +3200,78 @@ class GenerateReflectSequenceResponse extends AbstractModel {
|
|
|
3109
3200
|
if (!params) {
|
|
3110
3201
|
return;
|
|
3111
3202
|
}
|
|
3112
|
-
this.
|
|
3113
|
-
this.
|
|
3203
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
3204
|
+
this.WarnInfo = 'WarnInfo' in params ? params.WarnInfo : null;
|
|
3205
|
+
this.Nationality = 'Nationality' in params ? params.Nationality : null;
|
|
3206
|
+
this.CardType = 'CardType' in params ? params.CardType : null;
|
|
3207
|
+
this.CardSubType = 'CardSubType' in params ? params.CardSubType : null;
|
|
3208
|
+
|
|
3209
|
+
if (params.CardInfo) {
|
|
3210
|
+
let obj = new CardInfo();
|
|
3211
|
+
obj.deserialize(params.CardInfo)
|
|
3212
|
+
this.CardInfo = obj;
|
|
3213
|
+
}
|
|
3214
|
+
this.IDVerificationToken = 'IDVerificationToken' in params ? params.IDVerificationToken : null;
|
|
3114
3215
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3115
3216
|
|
|
3116
3217
|
}
|
|
3117
3218
|
}
|
|
3118
3219
|
|
|
3119
3220
|
/**
|
|
3120
|
-
*
|
|
3221
|
+
* GenerateReflectSequence response structure.
|
|
3121
3222
|
* @class
|
|
3122
3223
|
*/
|
|
3123
|
-
class
|
|
3224
|
+
class GenerateReflectSequenceResponse extends AbstractModel {
|
|
3124
3225
|
constructor(){
|
|
3125
3226
|
super();
|
|
3126
3227
|
|
|
3127
3228
|
/**
|
|
3128
|
-
*
|
|
3129
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3229
|
+
* The resource URL of the light sequence, which needs to be downloaded and passed through to the SDK to start the identity verification process.
|
|
3130
3230
|
* @type {string || null}
|
|
3131
3231
|
*/
|
|
3132
|
-
this.
|
|
3232
|
+
this.ReflectSequenceUrl = null;
|
|
3133
3233
|
|
|
3134
3234
|
/**
|
|
3135
|
-
*
|
|
3136
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3235
|
+
* The MD5 hash value of the light sequence, which is used to check whether the light sequence is altered.
|
|
3137
3236
|
* @type {string || null}
|
|
3138
3237
|
*/
|
|
3139
|
-
this.
|
|
3238
|
+
this.ReflectSequenceMd5 = null;
|
|
3140
3239
|
|
|
3141
3240
|
/**
|
|
3142
|
-
*
|
|
3143
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3241
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
3144
3242
|
* @type {string || null}
|
|
3145
3243
|
*/
|
|
3146
|
-
this.
|
|
3244
|
+
this.RequestId = null;
|
|
3147
3245
|
|
|
3148
|
-
|
|
3149
|
-
* Gender
|
|
3150
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3151
|
-
* @type {string || null}
|
|
3152
|
-
*/
|
|
3153
|
-
this.Sex = null;
|
|
3246
|
+
}
|
|
3154
3247
|
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3248
|
+
/**
|
|
3249
|
+
* @private
|
|
3250
|
+
*/
|
|
3251
|
+
deserialize(params) {
|
|
3252
|
+
if (!params) {
|
|
3253
|
+
return;
|
|
3254
|
+
}
|
|
3255
|
+
this.ReflectSequenceUrl = 'ReflectSequenceUrl' in params ? params.ReflectSequenceUrl : null;
|
|
3256
|
+
this.ReflectSequenceMd5 = 'ReflectSequenceMd5' in params ? params.ReflectSequenceMd5 : null;
|
|
3257
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3161
3258
|
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
/**
|
|
3263
|
+
* GetWebVerificationResultIntl request structure.
|
|
3264
|
+
* @class
|
|
3265
|
+
*/
|
|
3266
|
+
class GetWebVerificationResultIntlRequest extends AbstractModel {
|
|
3267
|
+
constructor(){
|
|
3268
|
+
super();
|
|
3168
3269
|
|
|
3169
3270
|
/**
|
|
3170
|
-
*
|
|
3171
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3271
|
+
* The token for the web-based verification, which is generated using the `ApplyWebVerificationBizTokenIntl` API.
|
|
3172
3272
|
* @type {string || null}
|
|
3173
3273
|
*/
|
|
3174
|
-
this.
|
|
3274
|
+
this.BizToken = null;
|
|
3175
3275
|
|
|
3176
3276
|
}
|
|
3177
3277
|
|
|
@@ -3182,13 +3282,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3182
3282
|
if (!params) {
|
|
3183
3283
|
return;
|
|
3184
3284
|
}
|
|
3185
|
-
this.
|
|
3186
|
-
this.MiddleName = 'MiddleName' in params ? params.MiddleName : null;
|
|
3187
|
-
this.GivenName = 'GivenName' in params ? params.GivenName : null;
|
|
3188
|
-
this.Sex = 'Sex' in params ? params.Sex : null;
|
|
3189
|
-
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
3190
|
-
this.Address = 'Address' in params ? params.Address : null;
|
|
3191
|
-
this.CRN = 'CRN' in params ? params.CRN : null;
|
|
3285
|
+
this.BizToken = 'BizToken' in params ? params.BizToken : null;
|
|
3192
3286
|
|
|
3193
3287
|
}
|
|
3194
3288
|
}
|
|
@@ -3377,6 +3471,83 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3377
3471
|
}
|
|
3378
3472
|
}
|
|
3379
3473
|
|
|
3474
|
+
/**
|
|
3475
|
+
* Philippines UMID Card
|
|
3476
|
+
* @class
|
|
3477
|
+
*/
|
|
3478
|
+
class PhilippinesUMID extends AbstractModel {
|
|
3479
|
+
constructor(){
|
|
3480
|
+
super();
|
|
3481
|
+
|
|
3482
|
+
/**
|
|
3483
|
+
* Surname
|
|
3484
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3485
|
+
* @type {string || null}
|
|
3486
|
+
*/
|
|
3487
|
+
this.Surname = null;
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* Middle Name
|
|
3491
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3492
|
+
* @type {string || null}
|
|
3493
|
+
*/
|
|
3494
|
+
this.MiddleName = null;
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* First name
|
|
3498
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3499
|
+
* @type {string || null}
|
|
3500
|
+
*/
|
|
3501
|
+
this.GivenName = null;
|
|
3502
|
+
|
|
3503
|
+
/**
|
|
3504
|
+
* Gender
|
|
3505
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3506
|
+
* @type {string || null}
|
|
3507
|
+
*/
|
|
3508
|
+
this.Sex = null;
|
|
3509
|
+
|
|
3510
|
+
/**
|
|
3511
|
+
* Birthday
|
|
3512
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3513
|
+
* @type {string || null}
|
|
3514
|
+
*/
|
|
3515
|
+
this.Birthday = null;
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* Address
|
|
3519
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3520
|
+
* @type {string || null}
|
|
3521
|
+
*/
|
|
3522
|
+
this.Address = null;
|
|
3523
|
+
|
|
3524
|
+
/**
|
|
3525
|
+
* CRN code
|
|
3526
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3527
|
+
* @type {string || null}
|
|
3528
|
+
*/
|
|
3529
|
+
this.CRN = null;
|
|
3530
|
+
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
/**
|
|
3534
|
+
* @private
|
|
3535
|
+
*/
|
|
3536
|
+
deserialize(params) {
|
|
3537
|
+
if (!params) {
|
|
3538
|
+
return;
|
|
3539
|
+
}
|
|
3540
|
+
this.Surname = 'Surname' in params ? params.Surname : null;
|
|
3541
|
+
this.MiddleName = 'MiddleName' in params ? params.MiddleName : null;
|
|
3542
|
+
this.GivenName = 'GivenName' in params ? params.GivenName : null;
|
|
3543
|
+
this.Sex = 'Sex' in params ? params.Sex : null;
|
|
3544
|
+
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
3545
|
+
this.Address = 'Address' in params ? params.Address : null;
|
|
3546
|
+
this.CRN = 'CRN' in params ? params.CRN : null;
|
|
3547
|
+
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3380
3551
|
/**
|
|
3381
3552
|
* Philippines TinID Card
|
|
3382
3553
|
* @class
|
|
@@ -3438,6 +3609,81 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3438
3609
|
}
|
|
3439
3610
|
}
|
|
3440
3611
|
|
|
3612
|
+
/**
|
|
3613
|
+
* ApplyCardVerification request structure.
|
|
3614
|
+
* @class
|
|
3615
|
+
*/
|
|
3616
|
+
class ApplyCardVerificationRequest extends AbstractModel {
|
|
3617
|
+
constructor(){
|
|
3618
|
+
super();
|
|
3619
|
+
|
|
3620
|
+
/**
|
|
3621
|
+
* Please select the country code of ID document.
|
|
3622
|
+
IDN: Indonesia
|
|
3623
|
+
HKG: Hong Kong
|
|
3624
|
+
THA: Thailand
|
|
3625
|
+
MYS: Malaysia
|
|
3626
|
+
SGP: Singapore
|
|
3627
|
+
JPN: Japan
|
|
3628
|
+
AUTO: Automatic Identification
|
|
3629
|
+
* @type {string || null}
|
|
3630
|
+
*/
|
|
3631
|
+
this.Nationality = null;
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* Please select the type of ID document. The supported options are:
|
|
3635
|
+
ID_CARD
|
|
3636
|
+
PASSPORT
|
|
3637
|
+
DRIVING_LICENSE
|
|
3638
|
+
AUTO
|
|
3639
|
+
* @type {string || null}
|
|
3640
|
+
*/
|
|
3641
|
+
this.CardType = null;
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* Base64 value for the front of the document. Supported image formats: PNG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image cannot exceed 5M after Base64 encoding.
|
|
3645
|
+
The image download takes no more than 3 seconds. Supported image resolution: 8000*8000. One of ImageUrlFront and ImageBase64 Front of the image must be provided. If both are provided, only ImageUrlFront will be used.
|
|
3646
|
+
* @type {string || null}
|
|
3647
|
+
*/
|
|
3648
|
+
this.ImageBase64Front = null;
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
* Base64 value of the reverse side of the document. Supported image formats: PNG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image cannot exceed 5M after Base64 encoding. The image download takes no more than 3 seconds. Maximum supported image resolution: 8000*8000. For some certificates, one of ImageUrlBack and ImageBase64Back must be provided. If both are provided, only ImageUrlBack will be used.
|
|
3652
|
+
* @type {string || null}
|
|
3653
|
+
*/
|
|
3654
|
+
this.ImageBase64Back = null;
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* The URL value on the back of the certificate. Supported image formats: PNG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image cannot exceed 5M after Base64 encoding. The image download takes no more than 3 seconds. Maximum supported image resolution: 8000*8000. One of ImageUrlFront and ImageBase64Front of the image must be provided. If both are provided, only ImageUrlFront will be used.
|
|
3658
|
+
* @type {string || null}
|
|
3659
|
+
*/
|
|
3660
|
+
this.ImageUrlFront = null;
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* The URL value on the back of the certificate. Supported image formats: PNG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image cannot exceed 5M after Base64 encoding. The image download takes no more than 3 seconds. Maximum supported image resolution: 8000*8000. For some certificates, one of ImageUrlBack and ImageBase64Back must be provided. If both are provided, only ImageUrlBack will be used.
|
|
3664
|
+
* @type {string || null}
|
|
3665
|
+
*/
|
|
3666
|
+
this.ImageUrlBack = null;
|
|
3667
|
+
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
/**
|
|
3671
|
+
* @private
|
|
3672
|
+
*/
|
|
3673
|
+
deserialize(params) {
|
|
3674
|
+
if (!params) {
|
|
3675
|
+
return;
|
|
3676
|
+
}
|
|
3677
|
+
this.Nationality = 'Nationality' in params ? params.Nationality : null;
|
|
3678
|
+
this.CardType = 'CardType' in params ? params.CardType : null;
|
|
3679
|
+
this.ImageBase64Front = 'ImageBase64Front' in params ? params.ImageBase64Front : null;
|
|
3680
|
+
this.ImageBase64Back = 'ImageBase64Back' in params ? params.ImageBase64Back : null;
|
|
3681
|
+
this.ImageUrlFront = 'ImageUrlFront' in params ? params.ImageUrlFront : null;
|
|
3682
|
+
this.ImageUrlBack = 'ImageUrlBack' in params ? params.ImageUrlBack : null;
|
|
3683
|
+
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3441
3687
|
/**
|
|
3442
3688
|
* LivenessCompare request structure.
|
|
3443
3689
|
* @class
|
|
@@ -3744,18 +3990,18 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3744
3990
|
}
|
|
3745
3991
|
|
|
3746
3992
|
/**
|
|
3747
|
-
*
|
|
3993
|
+
* GetLivenessResult request structure.
|
|
3748
3994
|
* @class
|
|
3749
3995
|
*/
|
|
3750
|
-
class
|
|
3996
|
+
class GetLivenessResultRequest extends AbstractModel {
|
|
3751
3997
|
constructor(){
|
|
3752
3998
|
super();
|
|
3753
3999
|
|
|
3754
4000
|
/**
|
|
3755
|
-
* The token
|
|
4001
|
+
* The token used to identify an SDK-based verification process.
|
|
3756
4002
|
* @type {string || null}
|
|
3757
4003
|
*/
|
|
3758
|
-
this.
|
|
4004
|
+
this.SdkToken = null;
|
|
3759
4005
|
|
|
3760
4006
|
}
|
|
3761
4007
|
|
|
@@ -3766,7 +4012,7 @@ class GetWebVerificationResultIntlRequest extends AbstractModel {
|
|
|
3766
4012
|
if (!params) {
|
|
3767
4013
|
return;
|
|
3768
4014
|
}
|
|
3769
|
-
this.
|
|
4015
|
+
this.SdkToken = 'SdkToken' in params ? params.SdkToken : null;
|
|
3770
4016
|
|
|
3771
4017
|
}
|
|
3772
4018
|
}
|
|
@@ -3948,6 +4194,7 @@ module.exports = {
|
|
|
3948
4194
|
ApplyWebVerificationBizTokenIntlResponse: ApplyWebVerificationBizTokenIntlResponse,
|
|
3949
4195
|
LivenessCompareResponse: LivenessCompareResponse,
|
|
3950
4196
|
CreateUploadUrlResponse: CreateUploadUrlResponse,
|
|
4197
|
+
ApplyCardVerificationResponse: ApplyCardVerificationResponse,
|
|
3951
4198
|
DetectReflectLivenessAndCompareRequest: DetectReflectLivenessAndCompareRequest,
|
|
3952
4199
|
GetFaceIdTokenIntlRequest: GetFaceIdTokenIntlRequest,
|
|
3953
4200
|
VideoLivenessCompareRequest: VideoLivenessCompareRequest,
|
|
@@ -3969,7 +4216,7 @@ module.exports = {
|
|
|
3969
4216
|
ApplyWebVerificationTokenRequest: ApplyWebVerificationTokenRequest,
|
|
3970
4217
|
Address: Address,
|
|
3971
4218
|
ApplyLivenessTokenResponse: ApplyLivenessTokenResponse,
|
|
3972
|
-
|
|
4219
|
+
GetCardVerificationResultRequest: GetCardVerificationResultRequest,
|
|
3973
4220
|
CardInfo: CardInfo,
|
|
3974
4221
|
PhilippinesVoteID: PhilippinesVoteID,
|
|
3975
4222
|
WebVerificationConfigIntl: WebVerificationConfigIntl,
|
|
@@ -3983,15 +4230,18 @@ module.exports = {
|
|
|
3983
4230
|
FileInfo: FileInfo,
|
|
3984
4231
|
ApplyLivenessTokenRequest: ApplyLivenessTokenRequest,
|
|
3985
4232
|
PhilippinesDrivingLicense: PhilippinesDrivingLicense,
|
|
4233
|
+
GetCardVerificationResultResponse: GetCardVerificationResultResponse,
|
|
3986
4234
|
GenerateReflectSequenceResponse: GenerateReflectSequenceResponse,
|
|
3987
|
-
|
|
4235
|
+
GetWebVerificationResultIntlRequest: GetWebVerificationResultIntlRequest,
|
|
3988
4236
|
GeneralCard: GeneralCard,
|
|
4237
|
+
PhilippinesUMID: PhilippinesUMID,
|
|
3989
4238
|
PhilippinesTinID: PhilippinesTinID,
|
|
4239
|
+
ApplyCardVerificationRequest: ApplyCardVerificationRequest,
|
|
3990
4240
|
LivenessCompareRequest: LivenessCompareRequest,
|
|
3991
4241
|
MLIDCard: MLIDCard,
|
|
3992
4242
|
OCRResult: OCRResult,
|
|
3993
4243
|
GetFaceIdResultIntlResponse: GetFaceIdResultIntlResponse,
|
|
3994
|
-
|
|
4244
|
+
GetLivenessResultRequest: GetLivenessResultRequest,
|
|
3995
4245
|
CompareResult: CompareResult,
|
|
3996
4246
|
|
|
3997
4247
|
}
|