Skip to content

Commit a774ea6

Browse files
committed
Support API Mobile2MetaVerifyIntl.
1 parent 352ab16 commit a774ea6

File tree

9 files changed

+492
-8
lines changed

9 files changed

+492
-8
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-07-18 Version: 3.10.0
2+
- Support API Mobile2MetaVerifyIntl.
3+
4+
15
2025-07-15 Version: 3.9.1
26
- Update API DocOcrMax: add request parameters DocPage.
37

src/Cloudauthintl.php

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeResponse;
4646
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeShrinkRequest;
4747
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\KeepaliveIntlResponse;
48+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Mobile2MetaVerifyIntlRequest;
49+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Mobile2MetaVerifyIntlResponse;
4850
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Mobile3MetaVerifyIntlRequest;
4951
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Mobile3MetaVerifyIntlResponse;
5052
use AlibabaCloud\Tea\Exception\TeaError;
@@ -218,7 +220,9 @@ public function addressVerifyIntl($request)
218220
}
219221

220222
/**
221-
* @summary 银行卡核验
223+
* @summary Bank Card Verification
224+
* *
225+
* @description Verification of bank card elements, including: two-element verification (name + bank card number), three-element verification (name + ID number + bank card number), and four-element verification (name + ID number + phone number + bank card number) for consistency.
222226
* *
223227
* @param BankMetaVerifyIntlRequest $request BankMetaVerifyIntlRequest
224228
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
@@ -275,7 +279,9 @@ public function bankMetaVerifyIntlWithOptions($request, $runtime)
275279
}
276280

277281
/**
278-
* @summary 银行卡核验
282+
* @summary Bank Card Verification
283+
* *
284+
* @description Verification of bank card elements, including: two-element verification (name + bank card number), three-element verification (name + ID number + bank card number), and four-element verification (name + ID number + phone number + bank card number) for consistency.
279285
* *
280286
* @param BankMetaVerifyIntlRequest $request BankMetaVerifyIntlRequest
281287
*
@@ -1574,6 +1580,62 @@ public function keepaliveIntl()
15741580
return $this->keepaliveIntlWithOptions($runtime);
15751581
}
15761582

1583+
/**
1584+
* @summary 手机号二要素核验API
1585+
* *
1586+
* @param Mobile2MetaVerifyIntlRequest $request Mobile2MetaVerifyIntlRequest
1587+
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
1588+
*
1589+
* @return Mobile2MetaVerifyIntlResponse Mobile2MetaVerifyIntlResponse
1590+
*/
1591+
public function mobile2MetaVerifyIntlWithOptions($request, $runtime)
1592+
{
1593+
Utils::validateModel($request);
1594+
$body = [];
1595+
if (!Utils::isUnset($request->mobile)) {
1596+
$body['Mobile'] = $request->mobile;
1597+
}
1598+
if (!Utils::isUnset($request->paramType)) {
1599+
$body['ParamType'] = $request->paramType;
1600+
}
1601+
if (!Utils::isUnset($request->productCode)) {
1602+
$body['ProductCode'] = $request->productCode;
1603+
}
1604+
if (!Utils::isUnset($request->userName)) {
1605+
$body['UserName'] = $request->userName;
1606+
}
1607+
$req = new OpenApiRequest([
1608+
'body' => OpenApiUtilClient::parseToMap($body),
1609+
]);
1610+
$params = new Params([
1611+
'action' => 'Mobile2MetaVerifyIntl',
1612+
'version' => '2022-08-09',
1613+
'protocol' => 'HTTPS',
1614+
'pathname' => '/',
1615+
'method' => 'POST',
1616+
'authType' => 'AK',
1617+
'style' => 'RPC',
1618+
'reqBodyType' => 'formData',
1619+
'bodyType' => 'json',
1620+
]);
1621+
1622+
return Mobile2MetaVerifyIntlResponse::fromMap($this->callApi($params, $req, $runtime));
1623+
}
1624+
1625+
/**
1626+
* @summary 手机号二要素核验API
1627+
* *
1628+
* @param Mobile2MetaVerifyIntlRequest $request Mobile2MetaVerifyIntlRequest
1629+
*
1630+
* @return Mobile2MetaVerifyIntlResponse Mobile2MetaVerifyIntlResponse
1631+
*/
1632+
public function mobile2MetaVerifyIntl($request)
1633+
{
1634+
$runtime = new RuntimeOptions([]);
1635+
1636+
return $this->mobile2MetaVerifyIntlWithOptions($request, $runtime);
1637+
}
1638+
15771639
/**
15781640
* @summary 手机号三要素国际版接口
15791641
* *

src/Models/BankMetaVerifyIntlRequest.php

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,78 @@
99
class BankMetaVerifyIntlRequest extends Model
1010
{
1111
/**
12-
* @description This parameter is required.
12+
* @description Bank card number.
13+
*
14+
* - When paramType is set to normal, enter the plaintext bank card number.
15+
* - When paramType is set to md5, enter the plaintext part of the card number except the last 6 digits, followed by the MD5 value of the last 6 digits (32-character lowercase).
16+
*
17+
* This parameter is required.
18+
*
19+
* @example ● 明文:12345678******
20+
* ● 密文:
21+
* 12345678f8ee21920e37807b43e7e912ab829b6e
1322
*
1423
* @var string
1524
*/
1625
public $bankCard;
1726

1827
/**
28+
* @description ID number:
29+
* - When paramType is normal: Enter the plaintext ID number.
30+
* - When paramType is md5:
31+
* - First 6 digits of the ID number (plaintext) + date of birth (ciphertext) + last 4 digits of the ID number (plaintext).
32+
* - For other IDs, encrypt the last two digits with MD5.
33+
*
34+
* Important
35+
* This field is required when ProductType is one of the following:
36+
* - BANK_CARD_3_META
37+
* - BANK_CARD_4_META
38+
*
39+
* @example ● 明文:429001********8211
40+
* ● 密文:
41+
* 42900132fa7bcd874161bea8ec8fd98f390ec98211
42+
*
1943
* @var string
2044
*/
2145
public $identifyNum;
2246

2347
/**
48+
* @description ID type (default to ID card if left empty, see the table below for other types).
49+
*
2450
* @example 01
2551
*
2652
* @var string
2753
*/
2854
public $identityType;
2955

3056
/**
57+
* @description Phone number:
58+
* - When paramType is normal: Enter the plaintext phone number.
59+
* - When paramType is md5: Enter the ciphertext phone number.
60+
*
61+
* Important
62+
*
63+
* - This field is required when ProductType = BANK_CARD_4_META.
64+
*
65+
* @example ● 明文:186****2055
66+
* ● 密文:
67+
* 849169cd3b20621c1c78bd61a11a4fc2
68+
*
3169
* @var string
3270
*/
3371
public $mobile;
3472

3573
/**
36-
* @description This parameter is required.
74+
* @description Encryption method:
75+
* - normal: no encryption
76+
* - md5: md5 encryption
77+
*
78+
* Important:
79+
*
80+
* - All encrypted parameters should be in the form of a 32-character lowercase MD5 string.
81+
* - The ciphertext generated by different MD5 tools may vary. If the interface works before encryption but not after, try changing the MD5 tool.
82+
*
83+
* This parameter is required.
3784
*
3885
* @example normal
3986
*
@@ -42,7 +89,9 @@ class BankMetaVerifyIntlRequest extends Model
4289
public $paramType;
4390

4491
/**
45-
* @description This parameter is required.
92+
* @description Fixed value: BANK_CARD_N_META
93+
*
94+
* This parameter is required.
4695
*
4796
* @example BANK_CARD_N_META
4897
*
@@ -51,7 +100,13 @@ class BankMetaVerifyIntlRequest extends Model
51100
public $productCode;
52101

53102
/**
54-
* @description This parameter is required.
103+
* @description Product type to call:
104+
*
105+
* - BANK_CARD_2_META: Bank card number + name verification.
106+
* - BANK_CARD_3_META: Bank card number + name + ID number verification.
107+
* - BANK_CARD_4_META: Bank card number + name + ID number + phone number verification.
108+
*
109+
* This parameter is required.
55110
*
56111
* @example BANK_CARD_4_META
57112
*
@@ -60,14 +115,23 @@ class BankMetaVerifyIntlRequest extends Model
60115
public $productType;
61116

62117
/**
63-
* @description This parameter is required.
118+
* @description Name.
119+
*
120+
* - When paramType is set to normal, enter the plaintext name.
121+
* - When paramType is set to md5, encrypt the first character of the name with MD5 (32-character lowercase MD5) and append the rest of the name in plaintext.
122+
*
123+
* This parameter is required.
124+
*
125+
* @example 张*
64126
*
65127
* @var string
66128
*/
67129
public $userName;
68130

69131
/**
70-
* @description This parameter is required.
132+
* @description VERIFY_BANK_CARD: Bank card authentication mode. This indicates whether the provided bank card number matches the user\\"s real name, ID number, and phone number.
133+
*
134+
* This parameter is required.
71135
*
72136
* @example VERIFY_BANK_CARD
73137
*

src/Models/BankMetaVerifyIntlResponseBody.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,35 @@
1010
class BankMetaVerifyIntlResponseBody extends Model
1111
{
1212
/**
13+
* @description Return code: 200 for success, others for failure.
14+
*
1315
* @example 200
1416
*
1517
* @var string
1618
*/
1719
public $code;
1820

1921
/**
22+
* @description Return message
23+
*
2024
* @example success
2125
*
2226
* @var string
2327
*/
2428
public $message;
2529

2630
/**
31+
* @description Request ID.
32+
*
2733
* @example 4EB35****87EBA1
2834
*
2935
* @var string
3036
*/
3137
public $requestId;
3238

3339
/**
40+
* @description Returned result information
41+
*
3442
* @var resultObject
3543
*/
3644
public $resultObject;

src/Models/BankMetaVerifyIntlResponseBody/resultObject.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,44 @@
99
class resultObject extends Model
1010
{
1111
/**
12+
* @description Verification result code.
13+
* - 1: Consistent (charged)
14+
* - 2: Inconsistent (charged)
15+
* - 3: No record found (not charged)
16+
*
1217
* @example 1
1318
*
1419
* @var string
1520
*/
1621
public $bizCode;
1722

1823
/**
24+
* @description Verification details:
25+
*
26+
* - **101**: Verification passed.
27+
* - **201**: Authentication information does not match, cardholder information is incorrect.
28+
* - **202**: Authentication information does not match, bank card has not been activated for authenticated payments.
29+
* - **203**: Authentication information does not match, bank card has expired.
30+
* - **204**: Authentication information does not match, bank card is a restricted card.
31+
* - **205**: Authentication information does not match, this card has been confiscated.
32+
* - **206**: Authentication information does not match, bank card is invalid.
33+
* - **207**: Authentication information does not match, this card has no corresponding issuing bank.
34+
* - **208**: Authentication information does not match, this card is uninitialized or dormant.
35+
* - **209**: Authentication information does not match, this card is a cheating card or swallowed card.
36+
* - **210**: Authentication information does not match, this card has been reported lost.
37+
* - **211**: Authentication information does not match, password error limit exceeded.
38+
* - **212**: Authentication information does not match, issuing bank does not support this transaction.
39+
* - **213**: Authentication information does not match, card status is abnormal or card is invalid.
40+
* - **214**: Authentication information does not match, no phone number reserved.
41+
* - **215**: Authentication information does not match, entered password, expiration date, or CVN2 is incorrect.
42+
* - **216**: Authentication information does not match, other card anomalies.
43+
* - **301**: Unable to verify, bank card does not support this service.
44+
* - **302**: Unable to verify, verification failed or bank refused verification, please contact the issuing bank.
45+
* - **303**: Unable to verify, bank card does not currently support phone number verification.
46+
* - **304**: Unable to verify, bank card number is incorrect.
47+
* - **305**: Unable to verify, other reasons.
48+
* - **306**: Unable to verify, verification attempt limit exceeded.
49+
*
1950
* @example 101
2051
*
2152
* @var string

0 commit comments

Comments
 (0)