|
6 | 6 |
|
7 | 7 | use AlibabaCloud\Endpoint\Endpoint; |
8 | 8 | use AlibabaCloud\OpenApiUtil\OpenApiUtilClient; |
| 9 | +use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\CheckResultRequest; |
| 10 | +use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\CheckResultResponse; |
9 | 11 | use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeRequest; |
10 | 12 | use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeResponse; |
11 | 13 | use AlibabaCloud\Tea\Utils\Utils; |
@@ -47,6 +49,61 @@ public function getEndpoint($productId, $regionId, $endpointRule, $network, $suf |
47 | 49 | return Endpoint::getEndpointRules($productId, $regionId, $endpointRule, $network, $suffix); |
48 | 50 | } |
49 | 51 |
|
| 52 | + /** |
| 53 | + * @param CheckResultRequest $request |
| 54 | + * @param RuntimeOptions $runtime |
| 55 | + * |
| 56 | + * @return CheckResultResponse |
| 57 | + */ |
| 58 | + public function checkResultWithOptions($request, $runtime) |
| 59 | + { |
| 60 | + Utils::validateModel($request); |
| 61 | + $query = []; |
| 62 | + if (!Utils::isUnset($request->extraImageControlList)) { |
| 63 | + $query['ExtraImageControlList'] = $request->extraImageControlList; |
| 64 | + } |
| 65 | + if (!Utils::isUnset($request->isReturnImage)) { |
| 66 | + $query['IsReturnImage'] = $request->isReturnImage; |
| 67 | + } |
| 68 | + if (!Utils::isUnset($request->merchantBizId)) { |
| 69 | + $query['MerchantBizId'] = $request->merchantBizId; |
| 70 | + } |
| 71 | + if (!Utils::isUnset($request->returnFiveCategorySpoofResult)) { |
| 72 | + $query['ReturnFiveCategorySpoofResult'] = $request->returnFiveCategorySpoofResult; |
| 73 | + } |
| 74 | + if (!Utils::isUnset($request->transactionId)) { |
| 75 | + $query['TransactionId'] = $request->transactionId; |
| 76 | + } |
| 77 | + $req = new OpenApiRequest([ |
| 78 | + 'query' => OpenApiUtilClient::query($query), |
| 79 | + ]); |
| 80 | + $params = new Params([ |
| 81 | + 'action' => 'CheckResult', |
| 82 | + 'version' => '2022-08-09', |
| 83 | + 'protocol' => 'HTTPS', |
| 84 | + 'pathname' => '/', |
| 85 | + 'method' => 'POST', |
| 86 | + 'authType' => 'AK', |
| 87 | + 'style' => 'RPC', |
| 88 | + 'reqBodyType' => 'formData', |
| 89 | + 'bodyType' => 'json', |
| 90 | + ]); |
| 91 | + |
| 92 | + return CheckResultResponse::fromMap($this->callApi($params, $req, $runtime)); |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * @param CheckResultRequest $request |
| 97 | + * |
| 98 | + * @return CheckResultResponse |
| 99 | + */ |
| 100 | + public function checkResult($request) |
| 101 | + { |
| 102 | + $runtime = new RuntimeOptions([]); |
| 103 | + |
| 104 | + return $this->checkResultWithOptions($request, $runtime); |
| 105 | + } |
| 106 | + |
50 | 107 | /** |
51 | 108 | * @param InitializeRequest $request |
52 | 109 | * @param RuntimeOptions $runtime |
|
0 commit comments