添加协议接口
This commit is contained in:
parent
7bf56d18e2
commit
376c8128bd
@ -28,6 +28,7 @@ use app\common\model\user\UserBill;
|
||||
use app\common\model\user\UserRecharge;
|
||||
use app\common\repositories\store\order\StoreOrderRepository;
|
||||
use app\common\repositories\store\order\StoreRefundOrderRepository;
|
||||
use app\common\repositories\system\CacheRepository;
|
||||
use app\common\repositories\user\UserRepository;
|
||||
use app\common\repositories\user\UserSignRepository;
|
||||
use app\common\repositories\wechat\RoutineQrcodeRepository;
|
||||
@ -861,4 +862,18 @@ class Auth extends BaseController
|
||||
return app('json')->success($repository->returnToken($targetUser, $tokenInfo));
|
||||
}
|
||||
|
||||
//获取交易申请协议
|
||||
public function businessAgree()
|
||||
{
|
||||
/** @var CacheRepository $repository */
|
||||
$repository = app()->make(CacheRepository::class);
|
||||
$type = $this->request->get('type', 'sys_intention_agree');
|
||||
$typeArray = ['sys_intention_agree', 'business_apply_agree', 'mer_services_agree', 'mer_supply_agree', 'consign_product_agree', 'mer_settlement_agree'];
|
||||
if (!in_array($type, $typeArray)) {
|
||||
return app('json')->fail('协议key错误');
|
||||
}
|
||||
$data = $repository->getResult($type);
|
||||
return app('json')->success($data);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -14,6 +14,11 @@
|
||||
namespace app\controller\api;
|
||||
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseRequest;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Ocr;
|
||||
use AlibabaCloud\Tea\Exception\TeaError;
|
||||
use AlibabaCloud\Tea\Utils\Utils;
|
||||
use AlibabaCloud\Tea\Utils\Utils\RuntimeOptions;
|
||||
use app\common\repositories\delivery\DeliveryOrderRepository;
|
||||
use app\common\repositories\store\product\ProductAssistSetRepository;
|
||||
use app\common\repositories\store\product\ProductGroupBuyingRepository;
|
||||
@ -41,6 +46,7 @@ use crmeb\services\MiniProgramService;
|
||||
use crmeb\services\QrcodeService;
|
||||
use crmeb\services\UploadService;
|
||||
use crmeb\services\WechatService;
|
||||
use Darabonba\OpenApi\Models\Config;
|
||||
use Exception;
|
||||
use Joypack\Tencent\Map\Bundle\Location;
|
||||
use Joypack\Tencent\Map\Bundle\LocationOption;
|
||||
@ -672,4 +678,46 @@ class Common extends BaseController
|
||||
return app('json')->success();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 商户营业执照
|
||||
*/
|
||||
public function merchant_license_identify($image)
|
||||
{
|
||||
$config = new Config([
|
||||
// 必填,您的 AccessKey ID
|
||||
"accessKeyId" => 'LTAI5t7mhH3ij2cNWs1zhPmv',
|
||||
// 必填,您的 AccessKey Secret
|
||||
"accessKeySecret" => 'gqo2wMpvi8h5bDBmCpMje6BaiXvcPu'
|
||||
]);
|
||||
// Endpoint 请参考 https://api.aliyun.com/product/ocr
|
||||
$config->endpoint = "ocr.cn-shanghai.aliyuncs.com";
|
||||
$client = new Ocr($config);
|
||||
$recognizeBusinessLicenseRequest = new RecognizeBusinessLicenseRequest([
|
||||
"imageURL" => $image
|
||||
]);
|
||||
$runtime = new RuntimeOptions([]);
|
||||
try {
|
||||
// 复制代码运行请自行打印 API 的返回值
|
||||
$resp = $client->recognizeBusinessLicenseWithOptions($recognizeBusinessLicenseRequest, $runtime);
|
||||
$a = Utils::toArray($resp->body);
|
||||
$data = [];
|
||||
if ($a) {
|
||||
$data['address'] = $a['Data']['Address'];
|
||||
$data['business'] = $a['Data']['Business'];
|
||||
$data['legal_person'] = $a['Data']['LegalPerson'];
|
||||
$data['name'] = $a['Data']['Name'];
|
||||
$data['register_number'] = $a['Data']['RegisterNumber'];
|
||||
$data['type'] = $a['Data']['Type'];
|
||||
}
|
||||
return app('json')->success($data);
|
||||
} catch (Exception $error) {
|
||||
if (!($error instanceof TeaError)) {
|
||||
$error = new TeaError([], $error->getMessage(), $error->getCode(), $error);
|
||||
}
|
||||
$a = Utils::assertAsString($error->message);
|
||||
return app('json')->fail($a);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -342,7 +342,9 @@ class MerchantIntention extends BaseController
|
||||
app()->make(MerchantIntentionValidate::class)->check($data);
|
||||
$check = app()->make(SmsService::class)->checkSmsCode($data['phone'], $data['code'], 'intention');
|
||||
$data['mer_type_id'] = (int)$data['mer_type_id'];
|
||||
if (!$check) throw new ValidateException('验证码不正确');
|
||||
if (!env('APP_DEBUG') && !$check) {
|
||||
if (!$check) throw new ValidateException('验证码不正确');
|
||||
}
|
||||
// if (!app()->make(MerchantCategoryRepository::class)->get($data['merchant_category_id'])) throw new ValidateException('商户分类不存在');
|
||||
if ($data['mer_type_id'] && !app()->make(MerchantTypeRepository::class)->exists($data['mer_type_id']))
|
||||
throw new ValidateException('店铺类型不存在');
|
||||
|
@ -56,7 +56,8 @@
|
||||
"alibabacloud/dysmsapi-20170525": "2.0.9",
|
||||
"fastknife/ajcaptcha": "^1.1",
|
||||
"async-aws/s3": "^1.13",
|
||||
"overtrue/pinyin": "^4.1"
|
||||
"overtrue/pinyin": "^4.1",
|
||||
"alibabacloud/ocr-20191230": "^2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/var-dumper": "^4.2",
|
||||
|
404
composer.lock
generated
404
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "da2c189b652770be2e7d5f13cadfd1a6",
|
||||
"content-hash": "3463ff31dac55926d049c9cdc73d3d70",
|
||||
"packages": [
|
||||
{
|
||||
"name": "adbario/php-dot-notation",
|
||||
@ -344,6 +344,54 @@
|
||||
},
|
||||
"time": "2021-12-07T04:41:11+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/ocr-20191230",
|
||||
"version": "2.0.10",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/Ocr-20191230.git",
|
||||
"reference": "bc46b387bb116d057a6d2c8154054a90e06df97f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/Ocr-20191230/zipball/bc46b387bb116d057a6d2c8154054a90e06df97f",
|
||||
"reference": "bc46b387bb116d057a6d2c8154054a90e06df97f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/darabonba-openapi": "^0.2.5",
|
||||
"alibabacloud/endpoint-util": "^0.1.0",
|
||||
"alibabacloud/openapi-util": "^0.1.10",
|
||||
"alibabacloud/openplatform-20191219": "^1.0.3",
|
||||
"alibabacloud/tea-fileform": "^0.3.0",
|
||||
"alibabacloud/tea-oss-sdk": "^0.3.0",
|
||||
"alibabacloud/tea-oss-utils": "^0.2.0",
|
||||
"alibabacloud/tea-rpc": "^0.1.5",
|
||||
"alibabacloud/tea-utils": "^0.2.0",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\Ocr\\V20191230\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud OCR (20191230) SDK Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/Ocr-20191230/tree/2.0.10"
|
||||
},
|
||||
"time": "2022-06-21T07:40:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/openapi-util",
|
||||
"version": "0.1.11",
|
||||
@ -396,6 +444,48 @@
|
||||
},
|
||||
"time": "2021-12-28T07:57:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/openplatform-20191219",
|
||||
"version": "1.0.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/OpenPlatform-20191219.git",
|
||||
"reference": "8b3ee6ed5c388d71c27377b304fb5a6e5bd17fe4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/OpenPlatform-20191219/zipball/8b3ee6ed5c388d71c27377b304fb5a6e5bd17fe4",
|
||||
"reference": "8b3ee6ed5c388d71c27377b304fb5a6e5bd17fe4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/endpoint-util": "^0.1.0",
|
||||
"alibabacloud/tea-rpc": "^0.1.5",
|
||||
"alibabacloud/tea-utils": "^0.2.0",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\OpenPlatform\\V20191219\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud OpenPlatform (20191219) SDK Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/OpenPlatform-20191219/tree/1.0.3"
|
||||
},
|
||||
"time": "2021-07-27T09:10:56+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea",
|
||||
"version": "3.1.23",
|
||||
@ -467,6 +557,229 @@
|
||||
},
|
||||
"time": "2021-12-20T02:32:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-fileform",
|
||||
"version": "0.3.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-fileform.git",
|
||||
"reference": "4bf0c75a045c8115aa8cb1a394bd08d8bb833181"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-fileform/zipball/4bf0c75a045c8115aa8cb1a394bd08d8bb833181",
|
||||
"reference": "4bf0c75a045c8115aa8cb1a394bd08d8bb833181",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/tea": "^3.0",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35|^5.4.3"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\Tea\\FileForm\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud Tea File Library for PHP",
|
||||
"support": {
|
||||
"issues": "https://github.com/alibabacloud-sdk-php/tea-fileform/issues",
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-fileform/tree/0.3.4"
|
||||
},
|
||||
"time": "2020-12-01T07:24:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-oss-sdk",
|
||||
"version": "0.3.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-oss-sdk.git",
|
||||
"reference": "7f9c7ef0f6c05f3d6fb6b95195ba95d6929403e1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-oss-sdk/zipball/7f9c7ef0f6c05f3d6fb6b95195ba95d6929403e1",
|
||||
"reference": "7f9c7ef0f6c05f3d6fb6b95195ba95d6929403e1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/credentials": "^1.1",
|
||||
"alibabacloud/tea-fileform": "^0.3.0",
|
||||
"alibabacloud/tea-oss-utils": "^0.2.0",
|
||||
"alibabacloud/tea-utils": "^0.2.0",
|
||||
"alibabacloud/tea-xml": "^0.2",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\OSS\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Aliyun Tea OSS SDK Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-oss-sdk/tree/0.3.5"
|
||||
},
|
||||
"time": "2020-11-30T06:10:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-oss-utils",
|
||||
"version": "0.2.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-oss-utils.git",
|
||||
"reference": "03939d52d97a9e5faa637b111cf18e43cad2e93e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-oss-utils/zipball/03939d52d97a9e5faa637b111cf18e43cad2e93e",
|
||||
"reference": "03939d52d97a9e5faa637b111cf18e43cad2e93e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/tea": "^3.0",
|
||||
"guzzlehttp/psr7": "^1.0",
|
||||
"php": ">5.5",
|
||||
"ralouphie/mimey": "^2.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35|^5.4.3"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\Tea\\OSSUtils\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud Tea OSS Utils Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-oss-utils/tree/0.2.3"
|
||||
},
|
||||
"time": "2022-05-11T12:11:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-rpc",
|
||||
"version": "0.1.11",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-rpc.git",
|
||||
"reference": "35f0fda2c5fc1bde6ad4276f3e476dcc7bfdc5e8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-rpc/zipball/35f0fda2c5fc1bde6ad4276f3e476dcc7bfdc5e8",
|
||||
"reference": "35f0fda2c5fc1bde6ad4276f3e476dcc7bfdc5e8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/credentials": "^1.1",
|
||||
"alibabacloud/tea-rpc-utils": "^0.2.0",
|
||||
"alibabacloud/tea-utils": "^0.2.0",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35|^5.4.3",
|
||||
"symfony/var-dumper": "^5.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\Tea\\Rpc\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud RPC Client",
|
||||
"support": {
|
||||
"issues": "https://github.com/alibabacloud-sdk-php/tea-rpc/issues",
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-rpc/tree/0.1.11"
|
||||
},
|
||||
"time": "2020-09-29T08:29:19+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-rpc-utils",
|
||||
"version": "0.2.9",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-rpc-utils.git",
|
||||
"reference": "8e7d3f8849ab08eae7cd75cbb7363f6040997c56"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-rpc-utils/zipball/8e7d3f8849ab08eae7cd75cbb7363f6040997c56",
|
||||
"reference": "8e7d3f8849ab08eae7cd75cbb7363f6040997c56",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/tea": "^3.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35|^5.4.3"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\Tea\\RpcUtils\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud RPC Utils SDK for PHP",
|
||||
"support": {
|
||||
"issues": "https://github.com/alibabacloud-sdk-php/tea-rpc-utils/issues",
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-rpc-utils/tree/0.2.9"
|
||||
},
|
||||
"time": "2020-09-29T03:30:34+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-utils",
|
||||
"version": "0.2.14",
|
||||
@ -514,6 +827,49 @@
|
||||
},
|
||||
"time": "2021-02-02T10:10:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-xml",
|
||||
"version": "0.2.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-xml.git",
|
||||
"reference": "3e0c000bf536224eebbac913c371bef174c0a16a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-xml/zipball/3e0c000bf536224eebbac913c371bef174c0a16a",
|
||||
"reference": "3e0c000bf536224eebbac913c371bef174c0a16a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">5.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "*",
|
||||
"symfony/var-dumper": "*"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\Tea\\XML\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud Tea XML Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-xml/tree/0.2.4"
|
||||
},
|
||||
"time": "2022-08-02T04:12:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "aliyuncs/oss-sdk-php",
|
||||
"version": "v2.3.1",
|
||||
@ -3598,6 +3954,50 @@
|
||||
],
|
||||
"time": "2019-10-28T10:23:23+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ralouphie/mimey",
|
||||
"version": "2.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ralouphie/mimey.git",
|
||||
"reference": "8f74e6da73f9df7bd965e4e123f3d8fb9acb89ba"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/ralouphie/mimey/zipball/8f74e6da73f9df7bd965e4e123f3d8fb9acb89ba",
|
||||
"reference": "8f74e6da73f9df7bd965e4e123f3d8fb9acb89ba",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^5.4|^7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"php-coveralls/php-coveralls": "^1.1",
|
||||
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Mimey\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ralph Khattar",
|
||||
"email": "ralph.khattar@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "PHP package for converting file extensions to MIME types and vice versa.",
|
||||
"support": {
|
||||
"issues": "https://github.com/ralouphie/mimey/issues",
|
||||
"source": "https://github.com/ralouphie/mimey/tree/develop"
|
||||
},
|
||||
"time": "2019-03-08T08:49:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "riverslei/payment",
|
||||
"version": "v5.1.0",
|
||||
@ -6042,5 +6442,5 @@
|
||||
"ext-swoole": "^4.4.0"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.3.0"
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ Route::group('api/', function () {
|
||||
Route::any('promote_writing', 'api.Common/promote_writing');
|
||||
Route::any('applet', 'api.Common/applet');
|
||||
Route::any('promote_writing', 'api.Common/promoteWriting');
|
||||
Route::get('business/agree', 'api.Auth/businessAgree');
|
||||
//强制登录
|
||||
Route::group(function () {
|
||||
Route::group('v2', function () {
|
||||
@ -42,6 +43,7 @@ Route::group('api/', function () {
|
||||
|
||||
//绑定推荐人
|
||||
Route::post('user/spread', 'api.Auth/spread');
|
||||
Route::post('merchant_license_identify', 'api.Common/merchant_license_identify');//营业执照识别
|
||||
|
||||
//优惠券
|
||||
Route::group('coupon', function () {
|
||||
|
15
vendor/alibabacloud/ocr-20191230/.gitignore
vendored
Normal file
15
vendor/alibabacloud/ocr-20191230/.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
composer.phar
|
||||
/vendor/
|
||||
|
||||
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
|
||||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
|
||||
composer.lock
|
||||
|
||||
.vscode/
|
||||
.idea
|
||||
.DS_Store
|
||||
|
||||
cache/
|
||||
*.cache
|
||||
runtime/
|
||||
.php_cs.cache
|
65
vendor/alibabacloud/ocr-20191230/.php_cs.dist
vendored
Normal file
65
vendor/alibabacloud/ocr-20191230/.php_cs.dist
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
* This document has been generated with
|
||||
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.15|configurator
|
||||
* you can change this configuration by importing this file.
|
||||
*/
|
||||
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRiskyAllowed(true)
|
||||
->setIndent(' ')
|
||||
->setRules([
|
||||
'@PSR2' => true,
|
||||
'@PhpCsFixer' => true,
|
||||
'@Symfony:risky' => true,
|
||||
'concat_space' => ['spacing' => 'one'],
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'array_indentation' => true,
|
||||
'combine_consecutive_unsets' => true,
|
||||
'method_separation' => true,
|
||||
'single_quote' => true,
|
||||
'declare_equal_normalize' => true,
|
||||
'function_typehint_space' => true,
|
||||
'hash_to_slash_comment' => true,
|
||||
'include' => true,
|
||||
'lowercase_cast' => true,
|
||||
'no_multiline_whitespace_before_semicolons' => true,
|
||||
'no_leading_import_slash' => true,
|
||||
'no_multiline_whitespace_around_double_arrow' => true,
|
||||
'no_spaces_around_offset' => true,
|
||||
'no_unneeded_control_parentheses' => true,
|
||||
'no_unused_imports' => true,
|
||||
'no_whitespace_before_comma_in_array' => true,
|
||||
'no_whitespace_in_blank_line' => true,
|
||||
'object_operator_without_whitespace' => true,
|
||||
'single_blank_line_before_namespace' => true,
|
||||
'single_class_element_per_statement' => true,
|
||||
'space_after_semicolon' => true,
|
||||
'standardize_not_equals' => true,
|
||||
'ternary_operator_spaces' => true,
|
||||
'trailing_comma_in_multiline_array' => true,
|
||||
'trim_array_spaces' => true,
|
||||
'unary_operator_spaces' => true,
|
||||
'whitespace_after_comma_in_array' => true,
|
||||
'no_extra_consecutive_blank_lines' => [
|
||||
'curly_brace_block',
|
||||
'extra',
|
||||
'parenthesis_brace_block',
|
||||
'square_brace_block',
|
||||
'throw',
|
||||
'use',
|
||||
],
|
||||
'binary_operator_spaces' => [
|
||||
'align_double_arrow' => true,
|
||||
'align_equals' => true,
|
||||
],
|
||||
'braces' => [
|
||||
'allow_single_line_closure' => true,
|
||||
],
|
||||
])
|
||||
->setFinder(
|
||||
PhpCsFixer\Finder::create()
|
||||
->exclude('vendor')
|
||||
->exclude('tests')
|
||||
->in(__DIR__)
|
||||
);
|
39
vendor/alibabacloud/ocr-20191230/ChangeLog.md
vendored
Normal file
39
vendor/alibabacloud/ocr-20191230/ChangeLog.md
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
2022-06-21 Version: 2.0.10
|
||||
- Release RecognizeTurkeyIdentityCard RecognizeMalaysiaIdentityCard RecognizeRussiaIdentityCard RecognizeIndonesiaIdentityCard RecognizeUkraineIdentityCard RecognizeVietnamIdentityCard.
|
||||
|
||||
2022-05-25 Version: 2.0.9
|
||||
- Release RecognizeTurkeyIdentityCard RecognizeMalaysiaIdentityCard RecognizeRussiaIdentityCard RecognizeIndonesiaIdentityCard RecognizeIndonesiaIdentityCard.
|
||||
|
||||
2022-05-05 Version: 2.0.8
|
||||
- Release RecognizeUkraineIdentityCard.
|
||||
|
||||
2022-03-09 Version: 2.0.7
|
||||
- Release RecognizeVideoCastCrewList.
|
||||
|
||||
2022-03-03 Version: 2.0.6
|
||||
- RecognizeVideoCharacter add output field inputFile.
|
||||
|
||||
2021-12-15 Version: 2.0.5
|
||||
- RecognizeVideoCharacter add output field inputFile.
|
||||
|
||||
2021-11-23 Version: 1.0.5
|
||||
- Update RecognizeCharacter.
|
||||
|
||||
2021-07-02 Version: 1.0.4
|
||||
- Release RecognizeQuotaInvoice RecognizeTicketInvoice RecognizePdf.
|
||||
|
||||
2021-05-10 Version: 1.0.3
|
||||
- Update RecognizeDriverLicense RecognizeLicensePlate.
|
||||
|
||||
2021-03-25 Version: 1.0.2
|
||||
- Generated php 2019-12-30 for ocr.
|
||||
|
||||
2021-03-04 Version: 1.0.1
|
||||
- Update Ocr.
|
||||
|
||||
2021-01-29 Version: 1.0.0
|
||||
- Generated php 2019-12-30 for ocr.
|
||||
|
||||
2020-11-13 Version: 0.1.16
|
||||
- Release DetectCardScreenshot RecognizePoiName.
|
||||
|
201
vendor/alibabacloud/ocr-20191230/LICENSE
vendored
Normal file
201
vendor/alibabacloud/ocr-20191230/LICENSE
vendored
Normal file
@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
35
vendor/alibabacloud/ocr-20191230/README-CN.md
vendored
Normal file
35
vendor/alibabacloud/ocr-20191230/README-CN.md
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
[English](README.md) | 简体中文
|
||||
|
||||

|
||||
|
||||
# Alibaba Cloud ocr SDK for PHP
|
||||
|
||||
## 安装
|
||||
|
||||
### Composer
|
||||
|
||||
```bash
|
||||
composer require alibabacloud/ocr-20191230
|
||||
```
|
||||
|
||||
## 问题
|
||||
|
||||
[提交 Issue](https://github.com/aliyun/alibabacloud-php-sdk/issues/new),不符合指南的问题可能会立即关闭。
|
||||
|
||||
## 使用说明
|
||||
|
||||
[快速使用](https://github.com/aliyun/alibabacloud-php-sdk/blob/master/docs/0-Examples-CN.md#%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8)
|
||||
|
||||
## 发行说明
|
||||
|
||||
每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。
|
||||
|
||||
## 相关
|
||||
|
||||
* [最新源码](https://github.com/aliyun/alibabacloud-php-sdk/)
|
||||
|
||||
## 许可证
|
||||
|
||||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
35
vendor/alibabacloud/ocr-20191230/README.md
vendored
Normal file
35
vendor/alibabacloud/ocr-20191230/README.md
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
English | [简体中文](README-CN.md)
|
||||
|
||||

|
||||
|
||||
# Alibaba Cloud ocr SDK for PHP
|
||||
|
||||
## Installation
|
||||
|
||||
### Composer
|
||||
|
||||
```bash
|
||||
composer require alibabacloud/ocr-20191230
|
||||
```
|
||||
|
||||
## Issues
|
||||
|
||||
[Opening an Issue](https://github.com/aliyun/alibabacloud-php-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
|
||||
|
||||
## Usage
|
||||
|
||||
[Quick Examples](https://github.com/aliyun/alibabacloud-php-sdk/blob/master/docs/0-Examples-EN.md#quick-examples)
|
||||
|
||||
## Changelog
|
||||
|
||||
Detailed changes for each release are documented in the [release notes](./ChangeLog.txt).
|
||||
|
||||
## References
|
||||
|
||||
* [Latest Release](https://github.com/aliyun/alibabacloud-php-sdk/)
|
||||
|
||||
## License
|
||||
|
||||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
17
vendor/alibabacloud/ocr-20191230/autoload.php
vendored
Normal file
17
vendor/alibabacloud/ocr-20191230/autoload.php
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
if (file_exists(__DIR__ . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR . 'autoload.php')) {
|
||||
require_once __DIR__ . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR . 'autoload.php';
|
||||
}
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
$name = str_replace('AlibabaCloud\\SDK\\Ocr\\V20191230\\', '', $class);
|
||||
$file = __DIR__ . \DIRECTORY_SEPARATOR . 'src' . \DIRECTORY_SEPARATOR . str_replace('\\', \DIRECTORY_SEPARATOR, $name) . '.php';
|
||||
if (file_exists($file)) {
|
||||
require_once $file;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
38
vendor/alibabacloud/ocr-20191230/composer.json
vendored
Normal file
38
vendor/alibabacloud/ocr-20191230/composer.json
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "alibabacloud/ocr-20191230",
|
||||
"description": "Alibaba Cloud OCR (20191230) SDK Library for PHP",
|
||||
"type": "library",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">5.5",
|
||||
"alibabacloud/tea-utils": "^0.2.0",
|
||||
"alibabacloud/tea-oss-sdk": "^0.3.0",
|
||||
"alibabacloud/tea-rpc": "^0.1.5",
|
||||
"alibabacloud/openplatform-20191219": "^1.0.3",
|
||||
"alibabacloud/tea-oss-utils": "^0.2.0",
|
||||
"alibabacloud/tea-fileform": "^0.3.0",
|
||||
"alibabacloud/darabonba-openapi": "^0.2.5",
|
||||
"alibabacloud/openapi-util": "^0.1.10",
|
||||
"alibabacloud/endpoint-util": "^0.1.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\Ocr\\V20191230\\": "src"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"fixer": "php-cs-fixer fix ./"
|
||||
},
|
||||
"config": {
|
||||
"sort-packages": true,
|
||||
"preferred-install": "dist",
|
||||
"optimize-autoloader": true
|
||||
},
|
||||
"prefer-stable": true
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotAdvanceRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class DetectCardScreenshotAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DetectCardScreenshotAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
47
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotRequest.php
vendored
Normal file
47
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotRequest.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class DetectCardScreenshotRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DetectCardScreenshotRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class DetectCardScreenshotResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var DetectCardScreenshotResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DetectCardScreenshotResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = DetectCardScreenshotResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\DetectCardScreenshotResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class DetectCardScreenshotResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DetectCardScreenshotResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
72
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotResponseBody/data.php
vendored
Normal file
72
vendor/alibabacloud/ocr-20191230/src/Models/DetectCardScreenshotResponseBody/data.php
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\DetectCardScreenshotResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\DetectCardScreenshotResponseBody\data\spoofResult;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $isBlur;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $isCard;
|
||||
|
||||
/**
|
||||
* @var spoofResult
|
||||
*/
|
||||
public $spoofResult;
|
||||
protected $_name = [
|
||||
'isBlur' => 'IsBlur',
|
||||
'isCard' => 'IsCard',
|
||||
'spoofResult' => 'SpoofResult',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->isBlur) {
|
||||
$res['IsBlur'] = $this->isBlur;
|
||||
}
|
||||
if (null !== $this->isCard) {
|
||||
$res['IsCard'] = $this->isCard;
|
||||
}
|
||||
if (null !== $this->spoofResult) {
|
||||
$res['SpoofResult'] = null !== $this->spoofResult ? $this->spoofResult->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['IsBlur'])) {
|
||||
$model->isBlur = $map['IsBlur'];
|
||||
}
|
||||
if (isset($map['IsCard'])) {
|
||||
$model->isCard = $map['IsCard'];
|
||||
}
|
||||
if (isset($map['SpoofResult'])) {
|
||||
$model->spoofResult = spoofResult::fromMap($map['SpoofResult']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\DetectCardScreenshotResponseBody\data;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\DetectCardScreenshotResponseBody\data\spoofResult\resultMap;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class spoofResult extends Model
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $isSpoof;
|
||||
|
||||
/**
|
||||
* @var resultMap
|
||||
*/
|
||||
public $resultMap;
|
||||
protected $_name = [
|
||||
'isSpoof' => 'IsSpoof',
|
||||
'resultMap' => 'ResultMap',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->isSpoof) {
|
||||
$res['IsSpoof'] = $this->isSpoof;
|
||||
}
|
||||
if (null !== $this->resultMap) {
|
||||
$res['ResultMap'] = null !== $this->resultMap ? $this->resultMap->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return spoofResult
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['IsSpoof'])) {
|
||||
$model->isSpoof = $map['IsSpoof'];
|
||||
}
|
||||
if (isset($map['ResultMap'])) {
|
||||
$model->resultMap = resultMap::fromMap($map['ResultMap']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\DetectCardScreenshotResponseBody\data\spoofResult;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class resultMap extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $screenScore;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $screenThreshold;
|
||||
protected $_name = [
|
||||
'screenScore' => 'ScreenScore',
|
||||
'screenThreshold' => 'ScreenThreshold',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->screenScore) {
|
||||
$res['ScreenScore'] = $this->screenScore;
|
||||
}
|
||||
if (null !== $this->screenThreshold) {
|
||||
$res['ScreenThreshold'] = $this->screenThreshold;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return resultMap
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ScreenScore'])) {
|
||||
$model->screenScore = $map['ScreenScore'];
|
||||
}
|
||||
if (isset($map['ScreenThreshold'])) {
|
||||
$model->screenThreshold = $map['ScreenThreshold'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
47
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultRequest.php
vendored
Normal file
47
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultRequest.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetAsyncJobResultRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $jobId;
|
||||
protected $_name = [
|
||||
'jobId' => 'JobId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->jobId) {
|
||||
$res['JobId'] = $this->jobId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetAsyncJobResultRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['JobId'])) {
|
||||
$model->jobId = $map['JobId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetAsyncJobResultResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var GetAsyncJobResultResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetAsyncJobResultResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = GetAsyncJobResultResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\GetAsyncJobResultResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetAsyncJobResultResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetAsyncJobResultResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
95
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody/data.php
vendored
Normal file
95
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody/data.php
vendored
Normal file
@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\GetAsyncJobResultResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $errorCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $errorMessage;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $jobId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $result;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $status;
|
||||
protected $_name = [
|
||||
'errorCode' => 'ErrorCode',
|
||||
'errorMessage' => 'ErrorMessage',
|
||||
'jobId' => 'JobId',
|
||||
'result' => 'Result',
|
||||
'status' => 'Status',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->errorCode) {
|
||||
$res['ErrorCode'] = $this->errorCode;
|
||||
}
|
||||
if (null !== $this->errorMessage) {
|
||||
$res['ErrorMessage'] = $this->errorMessage;
|
||||
}
|
||||
if (null !== $this->jobId) {
|
||||
$res['JobId'] = $this->jobId;
|
||||
}
|
||||
if (null !== $this->result) {
|
||||
$res['Result'] = $this->result;
|
||||
}
|
||||
if (null !== $this->status) {
|
||||
$res['Status'] = $this->status;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ErrorCode'])) {
|
||||
$model->errorCode = $map['ErrorCode'];
|
||||
}
|
||||
if (isset($map['ErrorMessage'])) {
|
||||
$model->errorMessage = $map['ErrorMessage'];
|
||||
}
|
||||
if (isset($map['JobId'])) {
|
||||
$model->jobId = $map['JobId'];
|
||||
}
|
||||
if (isset($map['Result'])) {
|
||||
$model->result = $map['Result'];
|
||||
}
|
||||
if (isset($map['Status'])) {
|
||||
$model->status = $map['Status'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageAdvanceRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeAccountPageAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeAccountPageAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageRequest.php
vendored
Normal file
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageRequest.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeAccountPageRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeAccountPageRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeAccountPageResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeAccountPageResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeAccountPageResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeAccountPageResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeAccountPageResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeAccountPageResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
256
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageResponseBody/data.php
vendored
Normal file
256
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageResponseBody/data.php
vendored
Normal file
@ -0,0 +1,256 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data\invalidStampAreas;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data\otherStampAreas;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data\registerStampAreas;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data\titleArea;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data\undertakeStampAreas;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $angle;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $birthDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $birthPlace;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $gender;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $IDNumber;
|
||||
|
||||
/**
|
||||
* @var invalidStampAreas[]
|
||||
*/
|
||||
public $invalidStampAreas;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nationality;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nativePlace;
|
||||
|
||||
/**
|
||||
* @var otherStampAreas[]
|
||||
*/
|
||||
public $otherStampAreas;
|
||||
|
||||
/**
|
||||
* @var registerStampAreas[]
|
||||
*/
|
||||
public $registerStampAreas;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $relation;
|
||||
|
||||
/**
|
||||
* @var titleArea
|
||||
*/
|
||||
public $titleArea;
|
||||
|
||||
/**
|
||||
* @var undertakeStampAreas[]
|
||||
*/
|
||||
public $undertakeStampAreas;
|
||||
protected $_name = [
|
||||
'angle' => 'Angle',
|
||||
'birthDate' => 'BirthDate',
|
||||
'birthPlace' => 'BirthPlace',
|
||||
'gender' => 'Gender',
|
||||
'IDNumber' => 'IDNumber',
|
||||
'invalidStampAreas' => 'InvalidStampAreas',
|
||||
'name' => 'Name',
|
||||
'nationality' => 'Nationality',
|
||||
'nativePlace' => 'NativePlace',
|
||||
'otherStampAreas' => 'OtherStampAreas',
|
||||
'registerStampAreas' => 'RegisterStampAreas',
|
||||
'relation' => 'Relation',
|
||||
'titleArea' => 'TitleArea',
|
||||
'undertakeStampAreas' => 'UndertakeStampAreas',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->angle) {
|
||||
$res['Angle'] = $this->angle;
|
||||
}
|
||||
if (null !== $this->birthDate) {
|
||||
$res['BirthDate'] = $this->birthDate;
|
||||
}
|
||||
if (null !== $this->birthPlace) {
|
||||
$res['BirthPlace'] = $this->birthPlace;
|
||||
}
|
||||
if (null !== $this->gender) {
|
||||
$res['Gender'] = $this->gender;
|
||||
}
|
||||
if (null !== $this->IDNumber) {
|
||||
$res['IDNumber'] = $this->IDNumber;
|
||||
}
|
||||
if (null !== $this->invalidStampAreas) {
|
||||
$res['InvalidStampAreas'] = [];
|
||||
if (null !== $this->invalidStampAreas && \is_array($this->invalidStampAreas)) {
|
||||
$n = 0;
|
||||
foreach ($this->invalidStampAreas as $item) {
|
||||
$res['InvalidStampAreas'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->nationality) {
|
||||
$res['Nationality'] = $this->nationality;
|
||||
}
|
||||
if (null !== $this->nativePlace) {
|
||||
$res['NativePlace'] = $this->nativePlace;
|
||||
}
|
||||
if (null !== $this->otherStampAreas) {
|
||||
$res['OtherStampAreas'] = [];
|
||||
if (null !== $this->otherStampAreas && \is_array($this->otherStampAreas)) {
|
||||
$n = 0;
|
||||
foreach ($this->otherStampAreas as $item) {
|
||||
$res['OtherStampAreas'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null !== $this->registerStampAreas) {
|
||||
$res['RegisterStampAreas'] = [];
|
||||
if (null !== $this->registerStampAreas && \is_array($this->registerStampAreas)) {
|
||||
$n = 0;
|
||||
foreach ($this->registerStampAreas as $item) {
|
||||
$res['RegisterStampAreas'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null !== $this->relation) {
|
||||
$res['Relation'] = $this->relation;
|
||||
}
|
||||
if (null !== $this->titleArea) {
|
||||
$res['TitleArea'] = null !== $this->titleArea ? $this->titleArea->toMap() : null;
|
||||
}
|
||||
if (null !== $this->undertakeStampAreas) {
|
||||
$res['UndertakeStampAreas'] = [];
|
||||
if (null !== $this->undertakeStampAreas && \is_array($this->undertakeStampAreas)) {
|
||||
$n = 0;
|
||||
foreach ($this->undertakeStampAreas as $item) {
|
||||
$res['UndertakeStampAreas'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Angle'])) {
|
||||
$model->angle = $map['Angle'];
|
||||
}
|
||||
if (isset($map['BirthDate'])) {
|
||||
$model->birthDate = $map['BirthDate'];
|
||||
}
|
||||
if (isset($map['BirthPlace'])) {
|
||||
$model->birthPlace = $map['BirthPlace'];
|
||||
}
|
||||
if (isset($map['Gender'])) {
|
||||
$model->gender = $map['Gender'];
|
||||
}
|
||||
if (isset($map['IDNumber'])) {
|
||||
$model->IDNumber = $map['IDNumber'];
|
||||
}
|
||||
if (isset($map['InvalidStampAreas'])) {
|
||||
if (!empty($map['InvalidStampAreas'])) {
|
||||
$model->invalidStampAreas = [];
|
||||
$n = 0;
|
||||
foreach ($map['InvalidStampAreas'] as $item) {
|
||||
$model->invalidStampAreas[$n++] = null !== $item ? invalidStampAreas::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['Nationality'])) {
|
||||
$model->nationality = $map['Nationality'];
|
||||
}
|
||||
if (isset($map['NativePlace'])) {
|
||||
$model->nativePlace = $map['NativePlace'];
|
||||
}
|
||||
if (isset($map['OtherStampAreas'])) {
|
||||
if (!empty($map['OtherStampAreas'])) {
|
||||
$model->otherStampAreas = [];
|
||||
$n = 0;
|
||||
foreach ($map['OtherStampAreas'] as $item) {
|
||||
$model->otherStampAreas[$n++] = null !== $item ? otherStampAreas::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($map['RegisterStampAreas'])) {
|
||||
if (!empty($map['RegisterStampAreas'])) {
|
||||
$model->registerStampAreas = [];
|
||||
$n = 0;
|
||||
foreach ($map['RegisterStampAreas'] as $item) {
|
||||
$model->registerStampAreas[$n++] = null !== $item ? registerStampAreas::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($map['Relation'])) {
|
||||
$model->relation = $map['Relation'];
|
||||
}
|
||||
if (isset($map['TitleArea'])) {
|
||||
$model->titleArea = titleArea::fromMap($map['TitleArea']);
|
||||
}
|
||||
if (isset($map['UndertakeStampAreas'])) {
|
||||
if (!empty($map['UndertakeStampAreas'])) {
|
||||
$model->undertakeStampAreas = [];
|
||||
$n = 0;
|
||||
foreach ($map['UndertakeStampAreas'] as $item) {
|
||||
$model->undertakeStampAreas[$n++] = null !== $item ? undertakeStampAreas::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class invalidStampAreas extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return invalidStampAreas
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class otherStampAreas extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return otherStampAreas
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class registerStampAreas extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return registerStampAreas
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageResponseBody/data/titleArea.php
vendored
Normal file
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeAccountPageResponseBody/data/titleArea.php
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class titleArea extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return titleArea
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeAccountPageResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class undertakeStampAreas extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return undertakeStampAreas
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardAdvanceRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeBankCardAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBankCardAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardRequest.php
vendored
Normal file
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardRequest.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBankCardRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBankCardRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBankCardResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeBankCardResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBankCardResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeBankCardResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBankCardResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBankCardResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBankCardResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
71
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody/data.php
vendored
Normal file
71
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody/data.php
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBankCardResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $bankName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $cardNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $validDate;
|
||||
protected $_name = [
|
||||
'bankName' => 'BankName',
|
||||
'cardNumber' => 'CardNumber',
|
||||
'validDate' => 'ValidDate',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->bankName) {
|
||||
$res['BankName'] = $this->bankName;
|
||||
}
|
||||
if (null !== $this->cardNumber) {
|
||||
$res['CardNumber'] = $this->cardNumber;
|
||||
}
|
||||
if (null !== $this->validDate) {
|
||||
$res['ValidDate'] = $this->validDate;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['BankName'])) {
|
||||
$model->bankName = $map['BankName'];
|
||||
}
|
||||
if (isset($map['CardNumber'])) {
|
||||
$model->cardNumber = $map['CardNumber'];
|
||||
}
|
||||
if (isset($map['ValidDate'])) {
|
||||
$model->validDate = $map['ValidDate'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardAdvanceRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeBusinessCardAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessCardAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardRequest.php
vendored
Normal file
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardRequest.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessCardRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessCardRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessCardResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeBusinessCardResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessCardResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeBusinessCardResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessCardResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessCardResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessCardResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
145
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody/data.php
vendored
Normal file
145
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody/data.php
vendored
Normal file
@ -0,0 +1,145 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessCardResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $addresses;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $cellPhoneNumbers;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $companies;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $departments;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $emails;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $officePhoneNumbers;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $titles;
|
||||
protected $_name = [
|
||||
'addresses' => 'Addresses',
|
||||
'cellPhoneNumbers' => 'CellPhoneNumbers',
|
||||
'companies' => 'Companies',
|
||||
'departments' => 'Departments',
|
||||
'emails' => 'Emails',
|
||||
'name' => 'Name',
|
||||
'officePhoneNumbers' => 'OfficePhoneNumbers',
|
||||
'titles' => 'Titles',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->addresses) {
|
||||
$res['Addresses'] = $this->addresses;
|
||||
}
|
||||
if (null !== $this->cellPhoneNumbers) {
|
||||
$res['CellPhoneNumbers'] = $this->cellPhoneNumbers;
|
||||
}
|
||||
if (null !== $this->companies) {
|
||||
$res['Companies'] = $this->companies;
|
||||
}
|
||||
if (null !== $this->departments) {
|
||||
$res['Departments'] = $this->departments;
|
||||
}
|
||||
if (null !== $this->emails) {
|
||||
$res['Emails'] = $this->emails;
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->officePhoneNumbers) {
|
||||
$res['OfficePhoneNumbers'] = $this->officePhoneNumbers;
|
||||
}
|
||||
if (null !== $this->titles) {
|
||||
$res['Titles'] = $this->titles;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Addresses'])) {
|
||||
if (!empty($map['Addresses'])) {
|
||||
$model->addresses = $map['Addresses'];
|
||||
}
|
||||
}
|
||||
if (isset($map['CellPhoneNumbers'])) {
|
||||
if (!empty($map['CellPhoneNumbers'])) {
|
||||
$model->cellPhoneNumbers = $map['CellPhoneNumbers'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Companies'])) {
|
||||
if (!empty($map['Companies'])) {
|
||||
$model->companies = $map['Companies'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Departments'])) {
|
||||
if (!empty($map['Departments'])) {
|
||||
$model->departments = $map['Departments'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Emails'])) {
|
||||
if (!empty($map['Emails'])) {
|
||||
$model->emails = $map['Emails'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['OfficePhoneNumbers'])) {
|
||||
if (!empty($map['OfficePhoneNumbers'])) {
|
||||
$model->officePhoneNumbers = $map['OfficePhoneNumbers'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Titles'])) {
|
||||
if (!empty($map['Titles'])) {
|
||||
$model->titles = $map['Titles'];
|
||||
}
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseAdvanceRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeBusinessLicenseAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessLicenseAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseRequest.php
vendored
Normal file
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseRequest.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessLicenseRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessLicenseRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessLicenseResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeBusinessLicenseResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessLicenseResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeBusinessLicenseResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessLicenseResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessLicenseResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
207
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data.php
vendored
Normal file
207
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data.php
vendored
Normal file
@ -0,0 +1,207 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data\emblem;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data\QRCode;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data\stamp;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data\title;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $address;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $angle;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $business;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $capital;
|
||||
|
||||
/**
|
||||
* @var emblem
|
||||
*/
|
||||
public $emblem;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $establishDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $legalPerson;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var QRCode
|
||||
*/
|
||||
public $QRCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $registerNumber;
|
||||
|
||||
/**
|
||||
* @var stamp
|
||||
*/
|
||||
public $stamp;
|
||||
|
||||
/**
|
||||
* @var title
|
||||
*/
|
||||
public $title;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $validPeriod;
|
||||
protected $_name = [
|
||||
'address' => 'Address',
|
||||
'angle' => 'Angle',
|
||||
'business' => 'Business',
|
||||
'capital' => 'Capital',
|
||||
'emblem' => 'Emblem',
|
||||
'establishDate' => 'EstablishDate',
|
||||
'legalPerson' => 'LegalPerson',
|
||||
'name' => 'Name',
|
||||
'QRCode' => 'QRCode',
|
||||
'registerNumber' => 'RegisterNumber',
|
||||
'stamp' => 'Stamp',
|
||||
'title' => 'Title',
|
||||
'type' => 'Type',
|
||||
'validPeriod' => 'ValidPeriod',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->address) {
|
||||
$res['Address'] = $this->address;
|
||||
}
|
||||
if (null !== $this->angle) {
|
||||
$res['Angle'] = $this->angle;
|
||||
}
|
||||
if (null !== $this->business) {
|
||||
$res['Business'] = $this->business;
|
||||
}
|
||||
if (null !== $this->capital) {
|
||||
$res['Capital'] = $this->capital;
|
||||
}
|
||||
if (null !== $this->emblem) {
|
||||
$res['Emblem'] = null !== $this->emblem ? $this->emblem->toMap() : null;
|
||||
}
|
||||
if (null !== $this->establishDate) {
|
||||
$res['EstablishDate'] = $this->establishDate;
|
||||
}
|
||||
if (null !== $this->legalPerson) {
|
||||
$res['LegalPerson'] = $this->legalPerson;
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->QRCode) {
|
||||
$res['QRCode'] = null !== $this->QRCode ? $this->QRCode->toMap() : null;
|
||||
}
|
||||
if (null !== $this->registerNumber) {
|
||||
$res['RegisterNumber'] = $this->registerNumber;
|
||||
}
|
||||
if (null !== $this->stamp) {
|
||||
$res['Stamp'] = null !== $this->stamp ? $this->stamp->toMap() : null;
|
||||
}
|
||||
if (null !== $this->title) {
|
||||
$res['Title'] = null !== $this->title ? $this->title->toMap() : null;
|
||||
}
|
||||
if (null !== $this->type) {
|
||||
$res['Type'] = $this->type;
|
||||
}
|
||||
if (null !== $this->validPeriod) {
|
||||
$res['ValidPeriod'] = $this->validPeriod;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Address'])) {
|
||||
$model->address = $map['Address'];
|
||||
}
|
||||
if (isset($map['Angle'])) {
|
||||
$model->angle = $map['Angle'];
|
||||
}
|
||||
if (isset($map['Business'])) {
|
||||
$model->business = $map['Business'];
|
||||
}
|
||||
if (isset($map['Capital'])) {
|
||||
$model->capital = $map['Capital'];
|
||||
}
|
||||
if (isset($map['Emblem'])) {
|
||||
$model->emblem = emblem::fromMap($map['Emblem']);
|
||||
}
|
||||
if (isset($map['EstablishDate'])) {
|
||||
$model->establishDate = $map['EstablishDate'];
|
||||
}
|
||||
if (isset($map['LegalPerson'])) {
|
||||
$model->legalPerson = $map['LegalPerson'];
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['QRCode'])) {
|
||||
$model->QRCode = QRCode::fromMap($map['QRCode']);
|
||||
}
|
||||
if (isset($map['RegisterNumber'])) {
|
||||
$model->registerNumber = $map['RegisterNumber'];
|
||||
}
|
||||
if (isset($map['Stamp'])) {
|
||||
$model->stamp = stamp::fromMap($map['Stamp']);
|
||||
}
|
||||
if (isset($map['Title'])) {
|
||||
$model->title = title::fromMap($map['Title']);
|
||||
}
|
||||
if (isset($map['Type'])) {
|
||||
$model->type = $map['Type'];
|
||||
}
|
||||
if (isset($map['ValidPeriod'])) {
|
||||
$model->validPeriod = $map['ValidPeriod'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/QRCode.php
vendored
Normal file
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/QRCode.php
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class QRCode extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return QRCode
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/emblem.php
vendored
Normal file
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/emblem.php
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class emblem extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return emblem
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/stamp.php
vendored
Normal file
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/stamp.php
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class stamp extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return stamp
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/title.php
vendored
Normal file
83
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/title.php
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class title extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return title
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
73
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterAdvanceRequest.php
vendored
Normal file
73
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeCharacterAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $minHeight;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $outputProbability;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
'minHeight' => 'MinHeight',
|
||||
'outputProbability' => 'OutputProbability',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
if (null !== $this->minHeight) {
|
||||
$res['MinHeight'] = $this->minHeight;
|
||||
}
|
||||
if (null !== $this->outputProbability) {
|
||||
$res['OutputProbability'] = $this->outputProbability;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeCharacterAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
if (isset($map['MinHeight'])) {
|
||||
$model->minHeight = $map['MinHeight'];
|
||||
}
|
||||
if (isset($map['OutputProbability'])) {
|
||||
$model->outputProbability = $map['OutputProbability'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
71
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterRequest.php
vendored
Normal file
71
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterRequest.php
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeCharacterRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $minHeight;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $outputProbability;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
'minHeight' => 'MinHeight',
|
||||
'outputProbability' => 'OutputProbability',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
if (null !== $this->minHeight) {
|
||||
$res['MinHeight'] = $this->minHeight;
|
||||
}
|
||||
if (null !== $this->outputProbability) {
|
||||
$res['OutputProbability'] = $this->outputProbability;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeCharacterRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
if (isset($map['MinHeight'])) {
|
||||
$model->minHeight = $map['MinHeight'];
|
||||
}
|
||||
if (isset($map['OutputProbability'])) {
|
||||
$model->outputProbability = $map['OutputProbability'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeCharacterResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeCharacterResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeCharacterResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeCharacterResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeCharacterResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeCharacterResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data\results;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var results[]
|
||||
*/
|
||||
public $results;
|
||||
protected $_name = [
|
||||
'results' => 'Results',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->results) {
|
||||
$res['Results'] = [];
|
||||
if (null !== $this->results && \is_array($this->results)) {
|
||||
$n = 0;
|
||||
foreach ($this->results as $item) {
|
||||
$res['Results'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Results'])) {
|
||||
if (!empty($map['Results'])) {
|
||||
$model->results = [];
|
||||
$n = 0;
|
||||
foreach ($map['Results'] as $item) {
|
||||
$model->results[$n++] = null !== $item ? results::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
72
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results.php
vendored
Normal file
72
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results.php
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data\results\textRectangles;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class results extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $probability;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $text;
|
||||
|
||||
/**
|
||||
* @var textRectangles
|
||||
*/
|
||||
public $textRectangles;
|
||||
protected $_name = [
|
||||
'probability' => 'Probability',
|
||||
'text' => 'Text',
|
||||
'textRectangles' => 'TextRectangles',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->probability) {
|
||||
$res['Probability'] = $this->probability;
|
||||
}
|
||||
if (null !== $this->text) {
|
||||
$res['Text'] = $this->text;
|
||||
}
|
||||
if (null !== $this->textRectangles) {
|
||||
$res['TextRectangles'] = null !== $this->textRectangles ? $this->textRectangles->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return results
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Probability'])) {
|
||||
$model->probability = $map['Probability'];
|
||||
}
|
||||
if (isset($map['Text'])) {
|
||||
$model->text = $map['Text'];
|
||||
}
|
||||
if (isset($map['TextRectangles'])) {
|
||||
$model->textRectangles = textRectangles::fromMap($map['TextRectangles']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data\results;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class textRectangles extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $angle;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'angle' => 'Angle',
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->angle) {
|
||||
$res['Angle'] = $this->angle;
|
||||
}
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return textRectangles
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Angle'])) {
|
||||
$model->angle = $map['Angle'];
|
||||
}
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportAdvanceRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeChinapassportAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeChinapassportAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportRequest.php
vendored
Normal file
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportRequest.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeChinapassportRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeChinapassportRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeChinapassportResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeChinapassportResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeChinapassportResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeChinapassportResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeChinapassportResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeChinapassportResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeChinapassportResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
299
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportResponseBody/data.php
vendored
Normal file
299
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeChinapassportResponseBody/data.php
vendored
Normal file
@ -0,0 +1,299 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeChinapassportResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authority;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $birthDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $birthDay;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $birthPlace;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $birthPlaceRaw;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $country;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $expiryDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $expiryDay;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $issueDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $issuePlace;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $issuePlaceRaw;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lineOne;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $lineZero;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nameChinese;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nameChineseRaw;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $passportNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $personId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sex;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sourceCountry;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
protected $_name = [
|
||||
'authority' => 'Authority',
|
||||
'birthDate' => 'BirthDate',
|
||||
'birthDay' => 'BirthDay',
|
||||
'birthPlace' => 'BirthPlace',
|
||||
'birthPlaceRaw' => 'BirthPlaceRaw',
|
||||
'country' => 'Country',
|
||||
'expiryDate' => 'ExpiryDate',
|
||||
'expiryDay' => 'ExpiryDay',
|
||||
'issueDate' => 'IssueDate',
|
||||
'issuePlace' => 'IssuePlace',
|
||||
'issuePlaceRaw' => 'IssuePlaceRaw',
|
||||
'lineOne' => 'LineOne',
|
||||
'lineZero' => 'LineZero',
|
||||
'name' => 'Name',
|
||||
'nameChinese' => 'NameChinese',
|
||||
'nameChineseRaw' => 'NameChineseRaw',
|
||||
'passportNo' => 'PassportNo',
|
||||
'personId' => 'PersonId',
|
||||
'sex' => 'Sex',
|
||||
'sourceCountry' => 'SourceCountry',
|
||||
'success' => 'Success',
|
||||
'type' => 'Type',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->authority) {
|
||||
$res['Authority'] = $this->authority;
|
||||
}
|
||||
if (null !== $this->birthDate) {
|
||||
$res['BirthDate'] = $this->birthDate;
|
||||
}
|
||||
if (null !== $this->birthDay) {
|
||||
$res['BirthDay'] = $this->birthDay;
|
||||
}
|
||||
if (null !== $this->birthPlace) {
|
||||
$res['BirthPlace'] = $this->birthPlace;
|
||||
}
|
||||
if (null !== $this->birthPlaceRaw) {
|
||||
$res['BirthPlaceRaw'] = $this->birthPlaceRaw;
|
||||
}
|
||||
if (null !== $this->country) {
|
||||
$res['Country'] = $this->country;
|
||||
}
|
||||
if (null !== $this->expiryDate) {
|
||||
$res['ExpiryDate'] = $this->expiryDate;
|
||||
}
|
||||
if (null !== $this->expiryDay) {
|
||||
$res['ExpiryDay'] = $this->expiryDay;
|
||||
}
|
||||
if (null !== $this->issueDate) {
|
||||
$res['IssueDate'] = $this->issueDate;
|
||||
}
|
||||
if (null !== $this->issuePlace) {
|
||||
$res['IssuePlace'] = $this->issuePlace;
|
||||
}
|
||||
if (null !== $this->issuePlaceRaw) {
|
||||
$res['IssuePlaceRaw'] = $this->issuePlaceRaw;
|
||||
}
|
||||
if (null !== $this->lineOne) {
|
||||
$res['LineOne'] = $this->lineOne;
|
||||
}
|
||||
if (null !== $this->lineZero) {
|
||||
$res['LineZero'] = $this->lineZero;
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->nameChinese) {
|
||||
$res['NameChinese'] = $this->nameChinese;
|
||||
}
|
||||
if (null !== $this->nameChineseRaw) {
|
||||
$res['NameChineseRaw'] = $this->nameChineseRaw;
|
||||
}
|
||||
if (null !== $this->passportNo) {
|
||||
$res['PassportNo'] = $this->passportNo;
|
||||
}
|
||||
if (null !== $this->personId) {
|
||||
$res['PersonId'] = $this->personId;
|
||||
}
|
||||
if (null !== $this->sex) {
|
||||
$res['Sex'] = $this->sex;
|
||||
}
|
||||
if (null !== $this->sourceCountry) {
|
||||
$res['SourceCountry'] = $this->sourceCountry;
|
||||
}
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
if (null !== $this->type) {
|
||||
$res['Type'] = $this->type;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Authority'])) {
|
||||
$model->authority = $map['Authority'];
|
||||
}
|
||||
if (isset($map['BirthDate'])) {
|
||||
$model->birthDate = $map['BirthDate'];
|
||||
}
|
||||
if (isset($map['BirthDay'])) {
|
||||
$model->birthDay = $map['BirthDay'];
|
||||
}
|
||||
if (isset($map['BirthPlace'])) {
|
||||
$model->birthPlace = $map['BirthPlace'];
|
||||
}
|
||||
if (isset($map['BirthPlaceRaw'])) {
|
||||
$model->birthPlaceRaw = $map['BirthPlaceRaw'];
|
||||
}
|
||||
if (isset($map['Country'])) {
|
||||
$model->country = $map['Country'];
|
||||
}
|
||||
if (isset($map['ExpiryDate'])) {
|
||||
$model->expiryDate = $map['ExpiryDate'];
|
||||
}
|
||||
if (isset($map['ExpiryDay'])) {
|
||||
$model->expiryDay = $map['ExpiryDay'];
|
||||
}
|
||||
if (isset($map['IssueDate'])) {
|
||||
$model->issueDate = $map['IssueDate'];
|
||||
}
|
||||
if (isset($map['IssuePlace'])) {
|
||||
$model->issuePlace = $map['IssuePlace'];
|
||||
}
|
||||
if (isset($map['IssuePlaceRaw'])) {
|
||||
$model->issuePlaceRaw = $map['IssuePlaceRaw'];
|
||||
}
|
||||
if (isset($map['LineOne'])) {
|
||||
$model->lineOne = $map['LineOne'];
|
||||
}
|
||||
if (isset($map['LineZero'])) {
|
||||
$model->lineZero = $map['LineZero'];
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['NameChinese'])) {
|
||||
$model->nameChinese = $map['NameChinese'];
|
||||
}
|
||||
if (isset($map['NameChineseRaw'])) {
|
||||
$model->nameChineseRaw = $map['NameChineseRaw'];
|
||||
}
|
||||
if (isset($map['PassportNo'])) {
|
||||
$model->passportNo = $map['PassportNo'];
|
||||
}
|
||||
if (isset($map['PersonId'])) {
|
||||
$model->personId = $map['PersonId'];
|
||||
}
|
||||
if (isset($map['Sex'])) {
|
||||
$model->sex = $map['Sex'];
|
||||
}
|
||||
if (isset($map['SourceCountry'])) {
|
||||
$model->sourceCountry = $map['SourceCountry'];
|
||||
}
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
if (isset($map['Type'])) {
|
||||
$model->type = $map['Type'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseAdvanceRequest.php
vendored
Normal file
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeDriverLicenseAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $side;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
'side' => 'Side',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
if (null !== $this->side) {
|
||||
$res['Side'] = $this->side;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDriverLicenseAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
if (isset($map['Side'])) {
|
||||
$model->side = $map['Side'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
59
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseRequest.php
vendored
Normal file
59
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseRequest.php
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDriverLicenseRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $side;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
'side' => 'Side',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
if (null !== $this->side) {
|
||||
$res['Side'] = $this->side;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDriverLicenseRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
if (isset($map['Side'])) {
|
||||
$model->side = $map['Side'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDriverLicenseResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeDriverLicenseResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDriverLicenseResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeDriverLicenseResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDriverLicenseResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDriverLicenseResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data.php
vendored
Normal file
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody\data\backResult;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody\data\faceResult;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var backResult
|
||||
*/
|
||||
public $backResult;
|
||||
|
||||
/**
|
||||
* @var faceResult
|
||||
*/
|
||||
public $faceResult;
|
||||
protected $_name = [
|
||||
'backResult' => 'BackResult',
|
||||
'faceResult' => 'FaceResult',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->backResult) {
|
||||
$res['BackResult'] = null !== $this->backResult ? $this->backResult->toMap() : null;
|
||||
}
|
||||
if (null !== $this->faceResult) {
|
||||
$res['FaceResult'] = null !== $this->faceResult ? $this->faceResult->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['BackResult'])) {
|
||||
$model->backResult = backResult::fromMap($map['BackResult']);
|
||||
}
|
||||
if (isset($map['FaceResult'])) {
|
||||
$model->faceResult = faceResult::fromMap($map['FaceResult']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class backResult extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $archiveNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $cardNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $record;
|
||||
protected $_name = [
|
||||
'archiveNumber' => 'ArchiveNumber',
|
||||
'cardNumber' => 'CardNumber',
|
||||
'name' => 'Name',
|
||||
'record' => 'Record',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->archiveNumber) {
|
||||
$res['ArchiveNumber'] = $this->archiveNumber;
|
||||
}
|
||||
if (null !== $this->cardNumber) {
|
||||
$res['CardNumber'] = $this->cardNumber;
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->record) {
|
||||
$res['Record'] = $this->record;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return backResult
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ArchiveNumber'])) {
|
||||
$model->archiveNumber = $map['ArchiveNumber'];
|
||||
}
|
||||
if (isset($map['CardNumber'])) {
|
||||
$model->cardNumber = $map['CardNumber'];
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['Record'])) {
|
||||
$model->record = $map['Record'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
143
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/faceResult.php
vendored
Normal file
143
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data/faceResult.php
vendored
Normal file
@ -0,0 +1,143 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class faceResult extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $address;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $endDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $gender;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $issueDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $issueUnit;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $licenseNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $startDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $vehicleType;
|
||||
protected $_name = [
|
||||
'address' => 'Address',
|
||||
'endDate' => 'EndDate',
|
||||
'gender' => 'Gender',
|
||||
'issueDate' => 'IssueDate',
|
||||
'issueUnit' => 'IssueUnit',
|
||||
'licenseNumber' => 'LicenseNumber',
|
||||
'name' => 'Name',
|
||||
'startDate' => 'StartDate',
|
||||
'vehicleType' => 'VehicleType',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->address) {
|
||||
$res['Address'] = $this->address;
|
||||
}
|
||||
if (null !== $this->endDate) {
|
||||
$res['EndDate'] = $this->endDate;
|
||||
}
|
||||
if (null !== $this->gender) {
|
||||
$res['Gender'] = $this->gender;
|
||||
}
|
||||
if (null !== $this->issueDate) {
|
||||
$res['IssueDate'] = $this->issueDate;
|
||||
}
|
||||
if (null !== $this->issueUnit) {
|
||||
$res['IssueUnit'] = $this->issueUnit;
|
||||
}
|
||||
if (null !== $this->licenseNumber) {
|
||||
$res['LicenseNumber'] = $this->licenseNumber;
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->startDate) {
|
||||
$res['StartDate'] = $this->startDate;
|
||||
}
|
||||
if (null !== $this->vehicleType) {
|
||||
$res['VehicleType'] = $this->vehicleType;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return faceResult
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Address'])) {
|
||||
$model->address = $map['Address'];
|
||||
}
|
||||
if (isset($map['EndDate'])) {
|
||||
$model->endDate = $map['EndDate'];
|
||||
}
|
||||
if (isset($map['Gender'])) {
|
||||
$model->gender = $map['Gender'];
|
||||
}
|
||||
if (isset($map['IssueDate'])) {
|
||||
$model->issueDate = $map['IssueDate'];
|
||||
}
|
||||
if (isset($map['IssueUnit'])) {
|
||||
$model->issueUnit = $map['IssueUnit'];
|
||||
}
|
||||
if (isset($map['LicenseNumber'])) {
|
||||
$model->licenseNumber = $map['LicenseNumber'];
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['StartDate'])) {
|
||||
$model->startDate = $map['StartDate'];
|
||||
}
|
||||
if (isset($map['VehicleType'])) {
|
||||
$model->vehicleType = $map['VehicleType'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseAdvanceRequest.php
vendored
Normal file
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeDrivingLicenseAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $side;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
'side' => 'Side',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
if (null !== $this->side) {
|
||||
$res['Side'] = $this->side;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDrivingLicenseAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
if (isset($map['Side'])) {
|
||||
$model->side = $map['Side'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
59
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseRequest.php
vendored
Normal file
59
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseRequest.php
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDrivingLicenseRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $side;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
'side' => 'Side',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
if (null !== $this->side) {
|
||||
$res['Side'] = $this->side;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDrivingLicenseRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
if (isset($map['Side'])) {
|
||||
$model->side = $map['Side'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDrivingLicenseResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeDrivingLicenseResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDrivingLicenseResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeDrivingLicenseResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDrivingLicenseResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDrivingLicenseResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDrivingLicenseResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data.php
vendored
Normal file
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDrivingLicenseResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDrivingLicenseResponseBody\data\backResult;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDrivingLicenseResponseBody\data\faceResult;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var backResult
|
||||
*/
|
||||
public $backResult;
|
||||
|
||||
/**
|
||||
* @var faceResult
|
||||
*/
|
||||
public $faceResult;
|
||||
protected $_name = [
|
||||
'backResult' => 'BackResult',
|
||||
'faceResult' => 'FaceResult',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->backResult) {
|
||||
$res['BackResult'] = null !== $this->backResult ? $this->backResult->toMap() : null;
|
||||
}
|
||||
if (null !== $this->faceResult) {
|
||||
$res['FaceResult'] = null !== $this->faceResult ? $this->faceResult->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['BackResult'])) {
|
||||
$model->backResult = backResult::fromMap($map['BackResult']);
|
||||
}
|
||||
if (isset($map['FaceResult'])) {
|
||||
$model->faceResult = faceResult::fromMap($map['FaceResult']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
155
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/backResult.php
vendored
Normal file
155
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/backResult.php
vendored
Normal file
@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDrivingLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class backResult extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $approvedLoad;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $approvedPassengerCapacity;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $energyType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $fileNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $grossMass;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $inspectionRecord;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $overallDimension;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $plateNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $tractionMass;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $unladenMass;
|
||||
protected $_name = [
|
||||
'approvedLoad' => 'ApprovedLoad',
|
||||
'approvedPassengerCapacity' => 'ApprovedPassengerCapacity',
|
||||
'energyType' => 'EnergyType',
|
||||
'fileNumber' => 'FileNumber',
|
||||
'grossMass' => 'GrossMass',
|
||||
'inspectionRecord' => 'InspectionRecord',
|
||||
'overallDimension' => 'OverallDimension',
|
||||
'plateNumber' => 'PlateNumber',
|
||||
'tractionMass' => 'TractionMass',
|
||||
'unladenMass' => 'UnladenMass',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->approvedLoad) {
|
||||
$res['ApprovedLoad'] = $this->approvedLoad;
|
||||
}
|
||||
if (null !== $this->approvedPassengerCapacity) {
|
||||
$res['ApprovedPassengerCapacity'] = $this->approvedPassengerCapacity;
|
||||
}
|
||||
if (null !== $this->energyType) {
|
||||
$res['EnergyType'] = $this->energyType;
|
||||
}
|
||||
if (null !== $this->fileNumber) {
|
||||
$res['FileNumber'] = $this->fileNumber;
|
||||
}
|
||||
if (null !== $this->grossMass) {
|
||||
$res['GrossMass'] = $this->grossMass;
|
||||
}
|
||||
if (null !== $this->inspectionRecord) {
|
||||
$res['InspectionRecord'] = $this->inspectionRecord;
|
||||
}
|
||||
if (null !== $this->overallDimension) {
|
||||
$res['OverallDimension'] = $this->overallDimension;
|
||||
}
|
||||
if (null !== $this->plateNumber) {
|
||||
$res['PlateNumber'] = $this->plateNumber;
|
||||
}
|
||||
if (null !== $this->tractionMass) {
|
||||
$res['TractionMass'] = $this->tractionMass;
|
||||
}
|
||||
if (null !== $this->unladenMass) {
|
||||
$res['UnladenMass'] = $this->unladenMass;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return backResult
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ApprovedLoad'])) {
|
||||
$model->approvedLoad = $map['ApprovedLoad'];
|
||||
}
|
||||
if (isset($map['ApprovedPassengerCapacity'])) {
|
||||
$model->approvedPassengerCapacity = $map['ApprovedPassengerCapacity'];
|
||||
}
|
||||
if (isset($map['EnergyType'])) {
|
||||
$model->energyType = $map['EnergyType'];
|
||||
}
|
||||
if (isset($map['FileNumber'])) {
|
||||
$model->fileNumber = $map['FileNumber'];
|
||||
}
|
||||
if (isset($map['GrossMass'])) {
|
||||
$model->grossMass = $map['GrossMass'];
|
||||
}
|
||||
if (isset($map['InspectionRecord'])) {
|
||||
$model->inspectionRecord = $map['InspectionRecord'];
|
||||
}
|
||||
if (isset($map['OverallDimension'])) {
|
||||
$model->overallDimension = $map['OverallDimension'];
|
||||
}
|
||||
if (isset($map['PlateNumber'])) {
|
||||
$model->plateNumber = $map['PlateNumber'];
|
||||
}
|
||||
if (isset($map['TractionMass'])) {
|
||||
$model->tractionMass = $map['TractionMass'];
|
||||
}
|
||||
if (isset($map['UnladenMass'])) {
|
||||
$model->unladenMass = $map['UnladenMass'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
155
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/faceResult.php
vendored
Normal file
155
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponseBody/data/faceResult.php
vendored
Normal file
@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDrivingLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class faceResult extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $address;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $engineNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $issueDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $model;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $owner;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $plateNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $registerDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $useCharacter;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $vehicleType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $vin;
|
||||
protected $_name = [
|
||||
'address' => 'Address',
|
||||
'engineNumber' => 'EngineNumber',
|
||||
'issueDate' => 'IssueDate',
|
||||
'model' => 'Model',
|
||||
'owner' => 'Owner',
|
||||
'plateNumber' => 'PlateNumber',
|
||||
'registerDate' => 'RegisterDate',
|
||||
'useCharacter' => 'UseCharacter',
|
||||
'vehicleType' => 'VehicleType',
|
||||
'vin' => 'Vin',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->address) {
|
||||
$res['Address'] = $this->address;
|
||||
}
|
||||
if (null !== $this->engineNumber) {
|
||||
$res['EngineNumber'] = $this->engineNumber;
|
||||
}
|
||||
if (null !== $this->issueDate) {
|
||||
$res['IssueDate'] = $this->issueDate;
|
||||
}
|
||||
if (null !== $this->model) {
|
||||
$res['Model'] = $this->model;
|
||||
}
|
||||
if (null !== $this->owner) {
|
||||
$res['Owner'] = $this->owner;
|
||||
}
|
||||
if (null !== $this->plateNumber) {
|
||||
$res['PlateNumber'] = $this->plateNumber;
|
||||
}
|
||||
if (null !== $this->registerDate) {
|
||||
$res['RegisterDate'] = $this->registerDate;
|
||||
}
|
||||
if (null !== $this->useCharacter) {
|
||||
$res['UseCharacter'] = $this->useCharacter;
|
||||
}
|
||||
if (null !== $this->vehicleType) {
|
||||
$res['VehicleType'] = $this->vehicleType;
|
||||
}
|
||||
if (null !== $this->vin) {
|
||||
$res['Vin'] = $this->vin;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return faceResult
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Address'])) {
|
||||
$model->address = $map['Address'];
|
||||
}
|
||||
if (isset($map['EngineNumber'])) {
|
||||
$model->engineNumber = $map['EngineNumber'];
|
||||
}
|
||||
if (isset($map['IssueDate'])) {
|
||||
$model->issueDate = $map['IssueDate'];
|
||||
}
|
||||
if (isset($map['Model'])) {
|
||||
$model->model = $map['Model'];
|
||||
}
|
||||
if (isset($map['Owner'])) {
|
||||
$model->owner = $map['Owner'];
|
||||
}
|
||||
if (isset($map['PlateNumber'])) {
|
||||
$model->plateNumber = $map['PlateNumber'];
|
||||
}
|
||||
if (isset($map['RegisterDate'])) {
|
||||
$model->registerDate = $map['RegisterDate'];
|
||||
}
|
||||
if (isset($map['UseCharacter'])) {
|
||||
$model->useCharacter = $map['UseCharacter'];
|
||||
}
|
||||
if (isset($map['VehicleType'])) {
|
||||
$model->vehicleType = $map['VehicleType'];
|
||||
}
|
||||
if (isset($map['Vin'])) {
|
||||
$model->vin = $map['Vin'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardAdvanceRequest.php
vendored
Normal file
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeIdentityCardAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $side;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURLObject',
|
||||
'side' => 'Side',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageURLObject', $this->imageURLObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURLObject'] = $this->imageURLObject;
|
||||
}
|
||||
if (null !== $this->side) {
|
||||
$res['Side'] = $this->side;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeIdentityCardAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURLObject'])) {
|
||||
$model->imageURLObject = $map['ImageURLObject'];
|
||||
}
|
||||
if (isset($map['Side'])) {
|
||||
$model->side = $map['Side'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
59
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardRequest.php
vendored
Normal file
59
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardRequest.php
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeIdentityCardRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $side;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
'side' => 'Side',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
if (null !== $this->side) {
|
||||
$res['Side'] = $this->side;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeIdentityCardRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
if (isset($map['Side'])) {
|
||||
$model->side = $map['Side'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeIdentityCardResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeIdentityCardResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeIdentityCardResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeIdentityCardResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeIdentityCardResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeIdentityCardResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data.php
vendored
Normal file
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\backResult;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var backResult
|
||||
*/
|
||||
public $backResult;
|
||||
|
||||
/**
|
||||
* @var frontResult
|
||||
*/
|
||||
public $frontResult;
|
||||
protected $_name = [
|
||||
'backResult' => 'BackResult',
|
||||
'frontResult' => 'FrontResult',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->backResult) {
|
||||
$res['BackResult'] = null !== $this->backResult ? $this->backResult->toMap() : null;
|
||||
}
|
||||
if (null !== $this->frontResult) {
|
||||
$res['FrontResult'] = null !== $this->frontResult ? $this->frontResult->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['BackResult'])) {
|
||||
$model->backResult = backResult::fromMap($map['BackResult']);
|
||||
}
|
||||
if (isset($map['FrontResult'])) {
|
||||
$model->frontResult = frontResult::fromMap($map['FrontResult']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class backResult extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $endDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $issue;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $startDate;
|
||||
protected $_name = [
|
||||
'endDate' => 'EndDate',
|
||||
'issue' => 'Issue',
|
||||
'startDate' => 'StartDate',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->endDate) {
|
||||
$res['EndDate'] = $this->endDate;
|
||||
}
|
||||
if (null !== $this->issue) {
|
||||
$res['Issue'] = $this->issue;
|
||||
}
|
||||
if (null !== $this->startDate) {
|
||||
$res['StartDate'] = $this->startDate;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return backResult
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['EndDate'])) {
|
||||
$model->endDate = $map['EndDate'];
|
||||
}
|
||||
if (isset($map['Issue'])) {
|
||||
$model->issue = $map['Issue'];
|
||||
}
|
||||
if (isset($map['StartDate'])) {
|
||||
$model->startDate = $map['StartDate'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
170
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult.php
vendored
Normal file
170
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIdentityCardResponseBody/data/frontResult.php
vendored
Normal file
@ -0,0 +1,170 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult\cardAreas;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult\faceRectangle;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult\faceRectVertices;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class frontResult extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $address;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $birthDate;
|
||||
|
||||
/**
|
||||
* @var cardAreas[]
|
||||
*/
|
||||
public $cardAreas;
|
||||
|
||||
/**
|
||||
* @var faceRectVertices[]
|
||||
*/
|
||||
public $faceRectVertices;
|
||||
|
||||
/**
|
||||
* @var faceRectangle
|
||||
*/
|
||||
public $faceRectangle;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $gender;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $IDNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nationality;
|
||||
protected $_name = [
|
||||
'address' => 'Address',
|
||||
'birthDate' => 'BirthDate',
|
||||
'cardAreas' => 'CardAreas',
|
||||
'faceRectVertices' => 'FaceRectVertices',
|
||||
'faceRectangle' => 'FaceRectangle',
|
||||
'gender' => 'Gender',
|
||||
'IDNumber' => 'IDNumber',
|
||||
'name' => 'Name',
|
||||
'nationality' => 'Nationality',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->address) {
|
||||
$res['Address'] = $this->address;
|
||||
}
|
||||
if (null !== $this->birthDate) {
|
||||
$res['BirthDate'] = $this->birthDate;
|
||||
}
|
||||
if (null !== $this->cardAreas) {
|
||||
$res['CardAreas'] = [];
|
||||
if (null !== $this->cardAreas && \is_array($this->cardAreas)) {
|
||||
$n = 0;
|
||||
foreach ($this->cardAreas as $item) {
|
||||
$res['CardAreas'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null !== $this->faceRectVertices) {
|
||||
$res['FaceRectVertices'] = [];
|
||||
if (null !== $this->faceRectVertices && \is_array($this->faceRectVertices)) {
|
||||
$n = 0;
|
||||
foreach ($this->faceRectVertices as $item) {
|
||||
$res['FaceRectVertices'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null !== $this->faceRectangle) {
|
||||
$res['FaceRectangle'] = null !== $this->faceRectangle ? $this->faceRectangle->toMap() : null;
|
||||
}
|
||||
if (null !== $this->gender) {
|
||||
$res['Gender'] = $this->gender;
|
||||
}
|
||||
if (null !== $this->IDNumber) {
|
||||
$res['IDNumber'] = $this->IDNumber;
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->nationality) {
|
||||
$res['Nationality'] = $this->nationality;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return frontResult
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Address'])) {
|
||||
$model->address = $map['Address'];
|
||||
}
|
||||
if (isset($map['BirthDate'])) {
|
||||
$model->birthDate = $map['BirthDate'];
|
||||
}
|
||||
if (isset($map['CardAreas'])) {
|
||||
if (!empty($map['CardAreas'])) {
|
||||
$model->cardAreas = [];
|
||||
$n = 0;
|
||||
foreach ($map['CardAreas'] as $item) {
|
||||
$model->cardAreas[$n++] = null !== $item ? cardAreas::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($map['FaceRectVertices'])) {
|
||||
if (!empty($map['FaceRectVertices'])) {
|
||||
$model->faceRectVertices = [];
|
||||
$n = 0;
|
||||
foreach ($map['FaceRectVertices'] as $item) {
|
||||
$model->faceRectVertices[$n++] = null !== $item ? faceRectVertices::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($map['FaceRectangle'])) {
|
||||
$model->faceRectangle = faceRectangle::fromMap($map['FaceRectangle']);
|
||||
}
|
||||
if (isset($map['Gender'])) {
|
||||
$model->gender = $map['Gender'];
|
||||
}
|
||||
if (isset($map['IDNumber'])) {
|
||||
$model->IDNumber = $map['IDNumber'];
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['Nationality'])) {
|
||||
$model->nationality = $map['Nationality'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class cardAreas extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $x;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $y;
|
||||
protected $_name = [
|
||||
'x' => 'X',
|
||||
'y' => 'Y',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->x) {
|
||||
$res['X'] = $this->x;
|
||||
}
|
||||
if (null !== $this->y) {
|
||||
$res['Y'] = $this->y;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return cardAreas
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['X'])) {
|
||||
$model->x = $map['X'];
|
||||
}
|
||||
if (isset($map['Y'])) {
|
||||
$model->y = $map['Y'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class faceRectVertices extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $x;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $y;
|
||||
protected $_name = [
|
||||
'x' => 'X',
|
||||
'y' => 'Y',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->x) {
|
||||
$res['X'] = $this->x;
|
||||
}
|
||||
if (null !== $this->y) {
|
||||
$res['Y'] = $this->y;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return faceRectVertices
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['X'])) {
|
||||
$model->x = $map['X'];
|
||||
}
|
||||
if (isset($map['Y'])) {
|
||||
$model->y = $map['Y'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult\faceRectangle\center;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult\faceRectangle\size;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class faceRectangle extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $angle;
|
||||
|
||||
/**
|
||||
* @var center
|
||||
*/
|
||||
public $center;
|
||||
|
||||
/**
|
||||
* @var size
|
||||
*/
|
||||
public $size;
|
||||
protected $_name = [
|
||||
'angle' => 'Angle',
|
||||
'center' => 'Center',
|
||||
'size' => 'Size',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->angle) {
|
||||
$res['Angle'] = $this->angle;
|
||||
}
|
||||
if (null !== $this->center) {
|
||||
$res['Center'] = null !== $this->center ? $this->center->toMap() : null;
|
||||
}
|
||||
if (null !== $this->size) {
|
||||
$res['Size'] = null !== $this->size ? $this->size->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return faceRectangle
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Angle'])) {
|
||||
$model->angle = $map['Angle'];
|
||||
}
|
||||
if (isset($map['Center'])) {
|
||||
$model->center = center::fromMap($map['Center']);
|
||||
}
|
||||
if (isset($map['Size'])) {
|
||||
$model->size = size::fromMap($map['Size']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult\faceRectangle;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class center extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $x;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $y;
|
||||
protected $_name = [
|
||||
'x' => 'X',
|
||||
'y' => 'Y',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->x) {
|
||||
$res['X'] = $this->x;
|
||||
}
|
||||
if (null !== $this->y) {
|
||||
$res['Y'] = $this->y;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return center
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['X'])) {
|
||||
$model->x = $map['X'];
|
||||
}
|
||||
if (isset($map['Y'])) {
|
||||
$model->y = $map['Y'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIdentityCardResponseBody\data\frontResult\faceRectangle;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class size extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return size
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardAdvanceRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeIndonesiaIdentityCardAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageUrlObject;
|
||||
protected $_name = [
|
||||
'imageUrlObject' => 'ImageUrlObject',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('imageUrlObject', $this->imageUrlObject, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageUrlObject) {
|
||||
$res['ImageUrlObject'] = $this->imageUrlObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeIndonesiaIdentityCardAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageUrlObject'])) {
|
||||
$model->imageUrlObject = $map['ImageUrlObject'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardRequest.php
vendored
Normal file
47
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardRequest.php
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeIndonesiaIdentityCardRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $imageUrl;
|
||||
protected $_name = [
|
||||
'imageUrl' => 'ImageUrl',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageUrl) {
|
||||
$res['ImageUrl'] = $this->imageUrl;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeIndonesiaIdentityCardRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageUrl'])) {
|
||||
$model->imageUrl = $map['ImageUrl'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeIndonesiaIdentityCardResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeIndonesiaIdentityCardResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeIndonesiaIdentityCardResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeIndonesiaIdentityCardResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardResponseBody.php
vendored
Normal file
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardResponseBody.php
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeIndonesiaIdentityCardResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @description Id of the request
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeIndonesiaIdentityCardResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
321
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardResponseBody/data.php
vendored
Normal file
321
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeIndonesiaIdentityCardResponseBody/data.php
vendored
Normal file
@ -0,0 +1,321 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\addressFifthLine;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\addressFirstLine;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\addressFourthLine;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\addressSecondLine;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\addressThirdLine;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\birthDate;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\birthPlace;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\cardBox;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\expiryDate;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\gender;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\height;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\idNumber;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\licenseNumber;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\maritalStatus;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\nameFirstLine;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\nameSecondLine;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\nationality;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\occupation;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\portraitBox;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\province;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\religion;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\sex;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var addressFifthLine
|
||||
*/
|
||||
public $addressFifthLine;
|
||||
|
||||
/**
|
||||
* @var addressFirstLine
|
||||
*/
|
||||
public $addressFirstLine;
|
||||
|
||||
/**
|
||||
* @var addressFourthLine
|
||||
*/
|
||||
public $addressFourthLine;
|
||||
|
||||
/**
|
||||
* @var addressSecondLine
|
||||
*/
|
||||
public $addressSecondLine;
|
||||
|
||||
/**
|
||||
* @var addressThirdLine
|
||||
*/
|
||||
public $addressThirdLine;
|
||||
|
||||
/**
|
||||
* @var birthDate
|
||||
*/
|
||||
public $birthDate;
|
||||
|
||||
/**
|
||||
* @var birthPlace
|
||||
*/
|
||||
public $birthPlace;
|
||||
|
||||
/**
|
||||
* @var cardBox
|
||||
*/
|
||||
public $cardBox;
|
||||
|
||||
/**
|
||||
* @var expiryDate
|
||||
*/
|
||||
public $expiryDate;
|
||||
|
||||
/**
|
||||
* @var gender
|
||||
*/
|
||||
public $gender;
|
||||
|
||||
/**
|
||||
* @var height
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @var idNumber
|
||||
*/
|
||||
public $idNumber;
|
||||
|
||||
/**
|
||||
* @var licenseNumber
|
||||
*/
|
||||
public $licenseNumber;
|
||||
|
||||
/**
|
||||
* @var maritalStatus
|
||||
*/
|
||||
public $maritalStatus;
|
||||
|
||||
/**
|
||||
* @var nameFirstLine
|
||||
*/
|
||||
public $nameFirstLine;
|
||||
|
||||
/**
|
||||
* @var nameSecondLine
|
||||
*/
|
||||
public $nameSecondLine;
|
||||
|
||||
/**
|
||||
* @var nationality
|
||||
*/
|
||||
public $nationality;
|
||||
|
||||
/**
|
||||
* @var occupation
|
||||
*/
|
||||
public $occupation;
|
||||
|
||||
/**
|
||||
* @var portraitBox
|
||||
*/
|
||||
public $portraitBox;
|
||||
|
||||
/**
|
||||
* @var province
|
||||
*/
|
||||
public $province;
|
||||
|
||||
/**
|
||||
* @var religion
|
||||
*/
|
||||
public $religion;
|
||||
|
||||
/**
|
||||
* @var sex
|
||||
*/
|
||||
public $sex;
|
||||
protected $_name = [
|
||||
'addressFifthLine' => 'AddressFifthLine',
|
||||
'addressFirstLine' => 'AddressFirstLine',
|
||||
'addressFourthLine' => 'AddressFourthLine',
|
||||
'addressSecondLine' => 'AddressSecondLine',
|
||||
'addressThirdLine' => 'AddressThirdLine',
|
||||
'birthDate' => 'BirthDate',
|
||||
'birthPlace' => 'BirthPlace',
|
||||
'cardBox' => 'CardBox',
|
||||
'expiryDate' => 'ExpiryDate',
|
||||
'gender' => 'Gender',
|
||||
'height' => 'Height',
|
||||
'idNumber' => 'IdNumber',
|
||||
'licenseNumber' => 'LicenseNumber',
|
||||
'maritalStatus' => 'MaritalStatus',
|
||||
'nameFirstLine' => 'NameFirstLine',
|
||||
'nameSecondLine' => 'NameSecondLine',
|
||||
'nationality' => 'Nationality',
|
||||
'occupation' => 'Occupation',
|
||||
'portraitBox' => 'PortraitBox',
|
||||
'province' => 'Province',
|
||||
'religion' => 'Religion',
|
||||
'sex' => 'Sex',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->addressFifthLine) {
|
||||
$res['AddressFifthLine'] = null !== $this->addressFifthLine ? $this->addressFifthLine->toMap() : null;
|
||||
}
|
||||
if (null !== $this->addressFirstLine) {
|
||||
$res['AddressFirstLine'] = null !== $this->addressFirstLine ? $this->addressFirstLine->toMap() : null;
|
||||
}
|
||||
if (null !== $this->addressFourthLine) {
|
||||
$res['AddressFourthLine'] = null !== $this->addressFourthLine ? $this->addressFourthLine->toMap() : null;
|
||||
}
|
||||
if (null !== $this->addressSecondLine) {
|
||||
$res['AddressSecondLine'] = null !== $this->addressSecondLine ? $this->addressSecondLine->toMap() : null;
|
||||
}
|
||||
if (null !== $this->addressThirdLine) {
|
||||
$res['AddressThirdLine'] = null !== $this->addressThirdLine ? $this->addressThirdLine->toMap() : null;
|
||||
}
|
||||
if (null !== $this->birthDate) {
|
||||
$res['BirthDate'] = null !== $this->birthDate ? $this->birthDate->toMap() : null;
|
||||
}
|
||||
if (null !== $this->birthPlace) {
|
||||
$res['BirthPlace'] = null !== $this->birthPlace ? $this->birthPlace->toMap() : null;
|
||||
}
|
||||
if (null !== $this->cardBox) {
|
||||
$res['CardBox'] = null !== $this->cardBox ? $this->cardBox->toMap() : null;
|
||||
}
|
||||
if (null !== $this->expiryDate) {
|
||||
$res['ExpiryDate'] = null !== $this->expiryDate ? $this->expiryDate->toMap() : null;
|
||||
}
|
||||
if (null !== $this->gender) {
|
||||
$res['Gender'] = null !== $this->gender ? $this->gender->toMap() : null;
|
||||
}
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = null !== $this->height ? $this->height->toMap() : null;
|
||||
}
|
||||
if (null !== $this->idNumber) {
|
||||
$res['IdNumber'] = null !== $this->idNumber ? $this->idNumber->toMap() : null;
|
||||
}
|
||||
if (null !== $this->licenseNumber) {
|
||||
$res['LicenseNumber'] = null !== $this->licenseNumber ? $this->licenseNumber->toMap() : null;
|
||||
}
|
||||
if (null !== $this->maritalStatus) {
|
||||
$res['MaritalStatus'] = null !== $this->maritalStatus ? $this->maritalStatus->toMap() : null;
|
||||
}
|
||||
if (null !== $this->nameFirstLine) {
|
||||
$res['NameFirstLine'] = null !== $this->nameFirstLine ? $this->nameFirstLine->toMap() : null;
|
||||
}
|
||||
if (null !== $this->nameSecondLine) {
|
||||
$res['NameSecondLine'] = null !== $this->nameSecondLine ? $this->nameSecondLine->toMap() : null;
|
||||
}
|
||||
if (null !== $this->nationality) {
|
||||
$res['Nationality'] = null !== $this->nationality ? $this->nationality->toMap() : null;
|
||||
}
|
||||
if (null !== $this->occupation) {
|
||||
$res['Occupation'] = null !== $this->occupation ? $this->occupation->toMap() : null;
|
||||
}
|
||||
if (null !== $this->portraitBox) {
|
||||
$res['PortraitBox'] = null !== $this->portraitBox ? $this->portraitBox->toMap() : null;
|
||||
}
|
||||
if (null !== $this->province) {
|
||||
$res['Province'] = null !== $this->province ? $this->province->toMap() : null;
|
||||
}
|
||||
if (null !== $this->religion) {
|
||||
$res['Religion'] = null !== $this->religion ? $this->religion->toMap() : null;
|
||||
}
|
||||
if (null !== $this->sex) {
|
||||
$res['Sex'] = null !== $this->sex ? $this->sex->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AddressFifthLine'])) {
|
||||
$model->addressFifthLine = addressFifthLine::fromMap($map['AddressFifthLine']);
|
||||
}
|
||||
if (isset($map['AddressFirstLine'])) {
|
||||
$model->addressFirstLine = addressFirstLine::fromMap($map['AddressFirstLine']);
|
||||
}
|
||||
if (isset($map['AddressFourthLine'])) {
|
||||
$model->addressFourthLine = addressFourthLine::fromMap($map['AddressFourthLine']);
|
||||
}
|
||||
if (isset($map['AddressSecondLine'])) {
|
||||
$model->addressSecondLine = addressSecondLine::fromMap($map['AddressSecondLine']);
|
||||
}
|
||||
if (isset($map['AddressThirdLine'])) {
|
||||
$model->addressThirdLine = addressThirdLine::fromMap($map['AddressThirdLine']);
|
||||
}
|
||||
if (isset($map['BirthDate'])) {
|
||||
$model->birthDate = birthDate::fromMap($map['BirthDate']);
|
||||
}
|
||||
if (isset($map['BirthPlace'])) {
|
||||
$model->birthPlace = birthPlace::fromMap($map['BirthPlace']);
|
||||
}
|
||||
if (isset($map['CardBox'])) {
|
||||
$model->cardBox = cardBox::fromMap($map['CardBox']);
|
||||
}
|
||||
if (isset($map['ExpiryDate'])) {
|
||||
$model->expiryDate = expiryDate::fromMap($map['ExpiryDate']);
|
||||
}
|
||||
if (isset($map['Gender'])) {
|
||||
$model->gender = gender::fromMap($map['Gender']);
|
||||
}
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = height::fromMap($map['Height']);
|
||||
}
|
||||
if (isset($map['IdNumber'])) {
|
||||
$model->idNumber = idNumber::fromMap($map['IdNumber']);
|
||||
}
|
||||
if (isset($map['LicenseNumber'])) {
|
||||
$model->licenseNumber = licenseNumber::fromMap($map['LicenseNumber']);
|
||||
}
|
||||
if (isset($map['MaritalStatus'])) {
|
||||
$model->maritalStatus = maritalStatus::fromMap($map['MaritalStatus']);
|
||||
}
|
||||
if (isset($map['NameFirstLine'])) {
|
||||
$model->nameFirstLine = nameFirstLine::fromMap($map['NameFirstLine']);
|
||||
}
|
||||
if (isset($map['NameSecondLine'])) {
|
||||
$model->nameSecondLine = nameSecondLine::fromMap($map['NameSecondLine']);
|
||||
}
|
||||
if (isset($map['Nationality'])) {
|
||||
$model->nationality = nationality::fromMap($map['Nationality']);
|
||||
}
|
||||
if (isset($map['Occupation'])) {
|
||||
$model->occupation = occupation::fromMap($map['Occupation']);
|
||||
}
|
||||
if (isset($map['PortraitBox'])) {
|
||||
$model->portraitBox = portraitBox::fromMap($map['PortraitBox']);
|
||||
}
|
||||
if (isset($map['Province'])) {
|
||||
$model->province = province::fromMap($map['Province']);
|
||||
}
|
||||
if (isset($map['Religion'])) {
|
||||
$model->religion = religion::fromMap($map['Religion']);
|
||||
}
|
||||
if (isset($map['Sex'])) {
|
||||
$model->sex = sex::fromMap($map['Sex']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\addressFifthLine\keyPoints;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class addressFifthLine extends Model
|
||||
{
|
||||
/**
|
||||
* @var keyPoints[]
|
||||
*/
|
||||
public $keyPoints;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $score;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $text;
|
||||
protected $_name = [
|
||||
'keyPoints' => 'KeyPoints',
|
||||
'score' => 'Score',
|
||||
'text' => 'Text',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->keyPoints) {
|
||||
$res['KeyPoints'] = [];
|
||||
if (null !== $this->keyPoints && \is_array($this->keyPoints)) {
|
||||
$n = 0;
|
||||
foreach ($this->keyPoints as $item) {
|
||||
$res['KeyPoints'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null !== $this->score) {
|
||||
$res['Score'] = $this->score;
|
||||
}
|
||||
if (null !== $this->text) {
|
||||
$res['Text'] = $this->text;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return addressFifthLine
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['KeyPoints'])) {
|
||||
if (!empty($map['KeyPoints'])) {
|
||||
$model->keyPoints = [];
|
||||
$n = 0;
|
||||
foreach ($map['KeyPoints'] as $item) {
|
||||
$model->keyPoints[$n++] = null !== $item ? keyPoints::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($map['Score'])) {
|
||||
$model->score = $map['Score'];
|
||||
}
|
||||
if (isset($map['Text'])) {
|
||||
$model->text = $map['Text'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\addressFifthLine;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class keyPoints extends Model
|
||||
{
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $x;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $y;
|
||||
protected $_name = [
|
||||
'x' => 'X',
|
||||
'y' => 'Y',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->x) {
|
||||
$res['X'] = $this->x;
|
||||
}
|
||||
if (null !== $this->y) {
|
||||
$res['Y'] = $this->y;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return keyPoints
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['X'])) {
|
||||
$model->x = $map['X'];
|
||||
}
|
||||
if (isset($map['Y'])) {
|
||||
$model->y = $map['Y'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeIndonesiaIdentityCardResponseBody\data\addressFirstLine\keyPoints;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class addressFirstLine extends Model
|
||||
{
|
||||
/**
|
||||
* @var keyPoints[]
|
||||
*/
|
||||
public $keyPoints;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
public $score;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $text;
|
||||
protected $_name = [
|
||||
'keyPoints' => 'KeyPoints',
|
||||
'score' => 'Score',
|
||||
'text' => 'Text',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->keyPoints) {
|
||||
$res['KeyPoints'] = [];
|
||||
if (null !== $this->keyPoints && \is_array($this->keyPoints)) {
|
||||
$n = 0;
|
||||
foreach ($this->keyPoints as $item) {
|
||||
$res['KeyPoints'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null !== $this->score) {
|
||||
$res['Score'] = $this->score;
|
||||
}
|
||||
if (null !== $this->text) {
|
||||
$res['Text'] = $this->text;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return addressFirstLine
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['KeyPoints'])) {
|
||||
if (!empty($map['KeyPoints'])) {
|
||||
$model->keyPoints = [];
|
||||
$n = 0;
|
||||
foreach ($map['KeyPoints'] as $item) {
|
||||
$model->keyPoints[$n++] = null !== $item ? keyPoints::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($map['Score'])) {
|
||||
$model->score = $map['Score'];
|
||||
}
|
||||
if (isset($map['Text'])) {
|
||||
$model->text = $map['Text'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user