feat: 添加阿里云短信服务支持并优化验证码逻辑
- 引入 alibabacloud/dysmsapi-20170525 依赖,集成阿里云短信服务 - 将短信验证码从6位改为4位,优化用户体验 - 添加聚水潭商品按时间范围同步功能,支持分页拉取 - 增强Cron任务异常处理,添加错误日志记录 - 修复系统附件服务中图片路径处理逻辑 - 更新阿里云SDK相关组件至最新版本 - 添加think-trace调试扩展,便于问题排查 - 优化跨域中间件,使用str_contains替代strpos
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
<?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()
|
||||
use PhpCsFixer\Config;
|
||||
use PhpCsFixer\Finder;
|
||||
|
||||
return (new Config())
|
||||
->setRiskyAllowed(true)
|
||||
->setIndent(' ')
|
||||
->setRules([
|
||||
@@ -16,14 +20,12 @@ return PhpCsFixer\Config::create()
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'array_indentation' => true,
|
||||
'combine_consecutive_unsets' => true,
|
||||
'method_separation' => true,
|
||||
'phpdoc_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,
|
||||
@@ -32,34 +34,33 @@ return PhpCsFixer\Config::create()
|
||||
'no_whitespace_before_comma_in_array' => true,
|
||||
'no_whitespace_in_blank_line' => true,
|
||||
'object_operator_without_whitespace' => true,
|
||||
'single_blank_line_before_namespace' => true,
|
||||
'blank_lines_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,
|
||||
'trailing_comma_in_multiline' => 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,
|
||||
'no_extra_blank_lines' => [
|
||||
'tokens' => [
|
||||
'curly_brace_block',
|
||||
'extra',
|
||||
'parenthesis_brace_block',
|
||||
'square_brace_block',
|
||||
'throw',
|
||||
'use',
|
||||
]
|
||||
],
|
||||
'braces' => [
|
||||
'allow_single_line_closure' => true,
|
||||
],
|
||||
])
|
||||
->setFinder(
|
||||
PhpCsFixer\Finder::create()
|
||||
(new Finder())
|
||||
->exclude('vendor')
|
||||
->exclude('tests')
|
||||
->in(__DIR__)
|
||||
);
|
||||
)
|
||||
;
|
||||
159
vendor/alibabacloud/dysmsapi-20170525/ChangeLog.md
vendored
159
vendor/alibabacloud/dysmsapi-20170525/ChangeLog.md
vendored
@@ -1,3 +1,162 @@
|
||||
2026-04-07 Version: 4.5.1
|
||||
- Update API GetSmsTemplate: add response parameters Body.SignList.
|
||||
- Update API GetSmsTemplateList: add response parameters Body.Data.List.$.TemplateContent.
|
||||
|
||||
|
||||
2026-02-10 Version: 4.5.0
|
||||
- Support API CreateDigitalSignOrder.
|
||||
- Support API CreateDigitalSmsTemplate.
|
||||
- Support API QueryDigitalSignByName.
|
||||
|
||||
|
||||
2026-01-05 Version: 4.4.0
|
||||
- Support API CreateSmsAppIcpRecord.
|
||||
- Support API CreateSmsTrademark.
|
||||
- Support API GetSmsTemplateList.
|
||||
- Support API QuerySmsAppIcpRecord.
|
||||
- Support API QuerySmsTrademark.
|
||||
|
||||
|
||||
2025-12-11 Version: 4.3.1
|
||||
- Update API CreateSmsSign: add request parameters AppIcpRecordId.
|
||||
- Update API CreateSmsSign: add request parameters TrademarkId.
|
||||
- Update API GetSmsSign: add response parameters Body.AppIcpRecordId.
|
||||
- Update API GetSmsSign: add response parameters Body.TrademarkId.
|
||||
- Update API QuerySmsSignList: add response parameters Body.SmsSignList.$.AppIcpRecordId.
|
||||
- Update API QuerySmsSignList: add response parameters Body.SmsSignList.$.TrademarkId.
|
||||
- Update API UpdateSmsSign: add request parameters AppIcpRecordId.
|
||||
- Update API UpdateSmsSign: add request parameters TrademarkId.
|
||||
|
||||
|
||||
2025-11-27 Version: 4.3.0
|
||||
- Support API GetSmsOcrOssInfo.
|
||||
- Update API QuerySmsTemplateList: add response parameters Body.SmsTemplateList.$.TrafficDriving.
|
||||
|
||||
|
||||
2025-09-17 Version: 4.2.0
|
||||
- Support API SendLogisticsSms.
|
||||
- Support API VerifyLogisticsSmsMailNo.
|
||||
|
||||
|
||||
2025-09-11 Version: 4.1.3
|
||||
- Update API CreateSmsTemplate: add request parameters TrafficDriving.
|
||||
- Update API QuerySmsTemplateList: add response parameters Body.SmsTemplateList.$.SignatureName.
|
||||
- Update API UpdateSmsTemplate: add request parameters TrafficDriving.
|
||||
|
||||
|
||||
2025-09-11 Version: 4.1.3
|
||||
- Update API CreateSmsTemplate: add request parameters TrafficDriving.
|
||||
- Update API QuerySmsTemplateList: add response parameters Body.SmsTemplateList.$.SignatureName.
|
||||
- Update API UpdateSmsTemplate: add request parameters TrafficDriving.
|
||||
|
||||
|
||||
2025-06-30 Version: 4.1.2
|
||||
- Update API GetSmsSign: add response parameters Body.SignIspRegisterDetailList.
|
||||
|
||||
|
||||
2025-05-27 Version: 4.1.1
|
||||
- Update API QueryMobilesCardSupport: add request parameters EncryptType.
|
||||
|
||||
|
||||
2025-04-23 Version: 4.1.0
|
||||
- Support API DeleteSmsQualification.
|
||||
- Support API QuerySingleSmsQualification.
|
||||
- Support API QuerySmsQualificationRecord.
|
||||
- Support API RequiredPhoneCode.
|
||||
- Support API SubmitSmsQualification.
|
||||
- Support API UpdateSmsQualification.
|
||||
- Support API ValidPhoneCode.
|
||||
|
||||
|
||||
2025-04-22 Version: 4.0.0
|
||||
- Support API ChangeSignatureQualification.
|
||||
- Support API CreateSmsAuthorizationLetter.
|
||||
- Support API GetQualificationOssInfo.
|
||||
- Support API QuerySmsAuthorizationLetter.
|
||||
- Update API CreateSmsSign: update request parameters AuthorizationLetterId' type has changed.
|
||||
- Update API CreateSmsSign: update request parameters AuthorizationLetterId' format has changed.
|
||||
- Update API GetSmsSign: update response parameters Body.AuthorizationLetterId' type has changed.
|
||||
- Update API GetSmsSign: update response parameters Body.AuthorizationLetterId' format has changed.
|
||||
- Update API QuerySmsSignList: update response parameters Body.SmsSignList.$.AuthorizationLetterId' type has changed.
|
||||
- Update API QuerySmsSignList: update response parameters Body.SmsSignList.$.AuthorizationLetterId' format has changed.
|
||||
- Update API UpdateSmsSign: update request parameters AuthorizationLetterId' type has changed.
|
||||
- Update API UpdateSmsSign: update request parameters AuthorizationLetterId' format has changed.
|
||||
|
||||
|
||||
2025-04-16 Version: 3.1.3
|
||||
- Update API CreateSmsSign: add request parameters AuthorizationLetterId.
|
||||
- Update API GetSmsSign: add response parameters Body.AuthorizationLetterAuditPass.
|
||||
- Update API GetSmsSign: add response parameters Body.AuthorizationLetterId.
|
||||
- Update API QuerySmsSignList: add response parameters Body.SmsSignList.$.AuthorizationLetterId.
|
||||
- Update API QuerySmsSignList: add response parameters Body.SmsSignList.$.authorizationLetterAuditPass.
|
||||
- Update API UpdateSmsSign: add request parameters AuthorizationLetterId.
|
||||
|
||||
|
||||
2025-03-26 Version: 3.1.2
|
||||
- Update API GetSmsTemplate: add response parameters Body.VendorAuditStatus.
|
||||
|
||||
|
||||
2025-01-03 Version: 3.1.1
|
||||
- Update API GetSmsSign: update response param.
|
||||
- Update API QueryExtCodeSign: update param ExtCode.
|
||||
- Update API QueryExtCodeSign: update param SignName.
|
||||
|
||||
|
||||
2024-10-24 Version: 3.1.0
|
||||
- Support API AddExtCodeSign.
|
||||
- Support API DeleteExtCodeSign.
|
||||
- Support API GetCardSmsDetails.
|
||||
- Support API QueryExtCodeSign.
|
||||
- Support API UpdateExtCodeSign.
|
||||
|
||||
|
||||
2024-06-25 Version: 3.0.0
|
||||
- Support API CreateSmsSign.
|
||||
- Support API CreateSmsTemplate.
|
||||
- Support API GetOSSInfoForUploadFile.
|
||||
- Support API GetSmsSign.
|
||||
- Support API GetSmsTemplate.
|
||||
- Support API UpdateSmsSign.
|
||||
- Support API UpdateSmsTemplate.
|
||||
- Update API CreateSmartShortUrl: add param OutId.
|
||||
- Update API CreateSmartShortUrl: delete param Expiration.
|
||||
- Update API CreateSmartShortUrl: delete param SourceName.
|
||||
- Update API CreateSmartShortUrl: update param PhoneNumbers.
|
||||
- Update API CreateSmartShortUrl: update param SourceUrl.
|
||||
- Update API QueryPageSmartShortUrlLog: delete param ClickState.
|
||||
- Update API QueryPageSmartShortUrlLog: delete param EndId.
|
||||
- Update API QueryPageSmartShortUrlLog: delete param ShortName.
|
||||
- Update API QueryPageSmartShortUrlLog: delete param StartId.
|
||||
- Update API QueryPageSmartShortUrlLog: update param CreateDateEnd.
|
||||
- Update API QueryPageSmartShortUrlLog: update param CreateDateStart.
|
||||
- Update API QueryPageSmartShortUrlLog: update param PageNo.
|
||||
- Update API QueryPageSmartShortUrlLog: update param PageSize.
|
||||
|
||||
|
||||
2023-07-04 Version: 2.0.24
|
||||
- Add CreateSmartShortUrl api.
|
||||
|
||||
2022-11-29 Version: 2.0.23
|
||||
- Add custom content for QueryCardSmsTemplateReport.
|
||||
|
||||
2022-10-11 Version: 2.0.22
|
||||
- Add custom content for QueryCardSmsTemplateReport.
|
||||
|
||||
2022-09-30 Version: 2.0.21
|
||||
- Add custom content for SendBatchSms.
|
||||
|
||||
2022-09-29 Version: 2.0.20
|
||||
- Add outId for SendBatchSms.
|
||||
|
||||
2022-09-28 Version: 2.0.19
|
||||
- Upgrade formdata for CheckMobilesCardTemplateSupport.
|
||||
|
||||
2022-08-11 Version: 2.0.18
|
||||
- Upgrade formdata for SendBatchSms.
|
||||
|
||||
2022-08-03 Version: 2.0.17
|
||||
- Upgrade Service for SmsStatistics.
|
||||
|
||||
2022-07-14 Version: 2.0.16
|
||||
- Upgrade Service for SmsTemplate.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ if (file_exists(__DIR__ . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR
|
||||
}
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
$name = str_replace('AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\', '', $class);
|
||||
$name = str_replace('AlibabaCloud\SDK\Dysmsapi\V20170525\\', '', $class);
|
||||
$file = __DIR__ . \DIRECTORY_SEPARATOR . 'src' . \DIRECTORY_SEPARATOR . str_replace('\\', \DIRECTORY_SEPARATOR, $name) . '.php';
|
||||
if (file_exists($file)) {
|
||||
require_once $file;
|
||||
|
||||
3
vendor/alibabacloud/dysmsapi-20170525/bootstrap.php
vendored
Normal file
3
vendor/alibabacloud/dysmsapi-20170525/bootstrap.php
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
require dirname(__DIR__) . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR . 'autoload.php';
|
||||
@@ -1,21 +1,16 @@
|
||||
{
|
||||
"name": "alibabacloud/dysmsapi-20170525",
|
||||
"description": "Alibaba Cloud Dysmsapi (20170525) SDK Library for PHP",
|
||||
"type": "library",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Alibaba Cloud Dysmsapi (20170525) SDK Library for PHP",
|
||||
"github": "https://github.com/aliyun/alibabacloud-php-sdk",
|
||||
"main": "src/Client.php",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">5.5",
|
||||
"alibabacloud/tea-utils": "^0.2.16",
|
||||
"alibabacloud/darabonba-openapi": "^0.2.5",
|
||||
"alibabacloud/openapi-util": "^0.1.10",
|
||||
"alibabacloud/endpoint-util": "^0.1.0"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\": "src"
|
||||
@@ -29,5 +24,10 @@
|
||||
"preferred-install": "dist",
|
||||
"optimize-autoloader": true
|
||||
},
|
||||
"require": {
|
||||
"php": ">5.5",
|
||||
"alibabacloud/darabonba": "^1.0.0",
|
||||
"alibabacloud/openapi-core": "^1.0.0"
|
||||
},
|
||||
"prefer-stable": true
|
||||
}
|
||||
5842
vendor/alibabacloud/dysmsapi-20170525/src/Dysmsapi.php
vendored
5842
vendor/alibabacloud/dysmsapi-20170525/src/Dysmsapi.php
vendored
File diff suppressed because it is too large
Load Diff
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/AddExtCodeSignRequest.php
vendored
Normal file
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/AddExtCodeSignRequest.php
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddExtCodeSignRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $extCode;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signName;
|
||||
protected $_name = [
|
||||
'extCode' => 'ExtCode',
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signName' => 'SignName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->extCode) {
|
||||
$res['ExtCode'] = $this->extCode;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ExtCode'])) {
|
||||
$model->extCode = $map['ExtCode'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/AddExtCodeSignResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/AddExtCodeSignResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddExtCodeSignResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var AddExtCodeSignResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = AddExtCodeSignResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/AddExtCodeSignResponseBody.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/AddExtCodeSignResponseBody.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddExtCodeSignResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = $map['Data'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddShortUrlRequest extends Model
|
||||
{
|
||||
@@ -38,36 +38,42 @@ class AddShortUrlRequest extends Model
|
||||
*/
|
||||
public $sourceUrl;
|
||||
protected $_name = [
|
||||
'effectiveDays' => 'EffectiveDays',
|
||||
'ownerId' => 'OwnerId',
|
||||
'effectiveDays' => 'EffectiveDays',
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'shortUrlName' => 'ShortUrlName',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'shortUrlName' => 'ShortUrlName',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->effectiveDays) {
|
||||
$res['EffectiveDays'] = $this->effectiveDays;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->shortUrlName) {
|
||||
$res['ShortUrlName'] = $this->shortUrlName;
|
||||
}
|
||||
|
||||
if (null !== $this->sourceUrl) {
|
||||
$res['SourceUrl'] = $this->sourceUrl;
|
||||
}
|
||||
@@ -75,29 +81,34 @@ class AddShortUrlRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddShortUrlRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['EffectiveDays'])) {
|
||||
$model->effectiveDays = $map['EffectiveDays'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ShortUrlName'])) {
|
||||
$model->shortUrlName = $map['ShortUrlName'];
|
||||
}
|
||||
|
||||
if (isset($map['SourceUrl'])) {
|
||||
$model->sourceUrl = $map['SourceUrl'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddShortUrlResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class AddShortUrlResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddShortUrlResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = AddShortUrlResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class AddShortUrlResponseBody extends Model
|
||||
{
|
||||
@@ -29,28 +29,35 @@ class AddShortUrlResponseBody extends Model
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (null !== $this->data) {
|
||||
$this->data->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
@@ -58,23 +65,26 @@ class AddShortUrlResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddShortUrlResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
@@ -24,23 +24,26 @@ class data extends Model
|
||||
public $sourceUrl;
|
||||
protected $_name = [
|
||||
'expireDate' => 'ExpireDate',
|
||||
'shortUrl' => 'ShortUrl',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
'shortUrl' => 'ShortUrl',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->expireDate) {
|
||||
$res['ExpireDate'] = $this->expireDate;
|
||||
}
|
||||
|
||||
if (null !== $this->shortUrl) {
|
||||
$res['ShortUrl'] = $this->shortUrl;
|
||||
}
|
||||
|
||||
if (null !== $this->sourceUrl) {
|
||||
$res['SourceUrl'] = $this->sourceUrl;
|
||||
}
|
||||
@@ -48,20 +51,22 @@ class data extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ExpireDate'])) {
|
||||
$model->expireDate = $map['ExpireDate'];
|
||||
}
|
||||
|
||||
if (isset($map['ShortUrl'])) {
|
||||
$model->shortUrl = $map['ShortUrl'];
|
||||
}
|
||||
|
||||
if (isset($map['SourceUrl'])) {
|
||||
$model->sourceUrl = $map['SourceUrl'];
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsSignRequest\signFileList;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class AddSmsSignRequest extends Model
|
||||
{
|
||||
@@ -49,50 +49,62 @@ class AddSmsSignRequest extends Model
|
||||
*/
|
||||
public $signType;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'remark' => 'Remark',
|
||||
'ownerId' => 'OwnerId',
|
||||
'remark' => 'Remark',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signFileList' => 'SignFileList',
|
||||
'signName' => 'SignName',
|
||||
'signSource' => 'SignSource',
|
||||
'signType' => 'SignType',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signFileList' => 'SignFileList',
|
||||
'signName' => 'SignName',
|
||||
'signSource' => 'SignSource',
|
||||
'signType' => 'SignType',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->signFileList)) {
|
||||
Model::validateArray($this->signFileList);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->remark) {
|
||||
$res['Remark'] = $this->remark;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signFileList) {
|
||||
$res['SignFileList'] = [];
|
||||
if (null !== $this->signFileList && \is_array($this->signFileList)) {
|
||||
$n = 0;
|
||||
foreach ($this->signFileList as $item) {
|
||||
$res['SignFileList'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
if (\is_array($this->signFileList)) {
|
||||
$res['SignFileList'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->signFileList as $item1) {
|
||||
$res['SignFileList'][$n1] = null !== $item1 ? $item1->toArray($noStream) : $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
if (null !== $this->signSource) {
|
||||
$res['SignSource'] = $this->signSource;
|
||||
}
|
||||
|
||||
if (null !== $this->signType) {
|
||||
$res['SignType'] = $this->signType;
|
||||
}
|
||||
@@ -100,41 +112,49 @@ class AddSmsSignRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddSmsSignRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['Remark'])) {
|
||||
$model->remark = $map['Remark'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignFileList'])) {
|
||||
if (!empty($map['SignFileList'])) {
|
||||
$model->signFileList = [];
|
||||
$n = 0;
|
||||
foreach ($map['SignFileList'] as $item) {
|
||||
$model->signFileList[$n++] = null !== $item ? signFileList::fromMap($item) : $item;
|
||||
$n1 = 0;
|
||||
foreach ($map['SignFileList'] as $item1) {
|
||||
$model->signFileList[$n1] = signFileList::fromMap($item1);
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
if (isset($map['SignSource'])) {
|
||||
$model->signSource = $map['SignSource'];
|
||||
}
|
||||
|
||||
if (isset($map['SignType'])) {
|
||||
$model->signType = $map['SignType'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsSignRequest;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class signFileList extends Model
|
||||
{
|
||||
@@ -19,19 +19,21 @@ class signFileList extends Model
|
||||
public $fileSuffix;
|
||||
protected $_name = [
|
||||
'fileContents' => 'FileContents',
|
||||
'fileSuffix' => 'FileSuffix',
|
||||
'fileSuffix' => 'FileSuffix',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->fileContents) {
|
||||
$res['FileContents'] = $this->fileContents;
|
||||
}
|
||||
|
||||
if (null !== $this->fileSuffix) {
|
||||
$res['FileSuffix'] = $this->fileSuffix;
|
||||
}
|
||||
@@ -39,17 +41,18 @@ class signFileList extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return signFileList
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['FileContents'])) {
|
||||
$model->fileContents = $map['FileContents'];
|
||||
}
|
||||
|
||||
if (isset($map['FileSuffix'])) {
|
||||
$model->fileSuffix = $map['FileSuffix'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddSmsSignResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class AddSmsSignResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddSmsSignResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = AddSmsSignResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddSmsSignResponseBody extends Model
|
||||
{
|
||||
@@ -28,28 +28,32 @@ class AddSmsSignResponseBody extends Model
|
||||
*/
|
||||
public $signName;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'signName' => 'SignName',
|
||||
'signName' => 'SignName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
@@ -57,23 +61,26 @@ class AddSmsSignResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddSmsSignResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddSmsTemplateRequest extends Model
|
||||
{
|
||||
@@ -43,40 +43,47 @@ class AddSmsTemplateRequest extends Model
|
||||
*/
|
||||
public $templateType;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'remark' => 'Remark',
|
||||
'ownerId' => 'OwnerId',
|
||||
'remark' => 'Remark',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'templateContent' => 'TemplateContent',
|
||||
'templateName' => 'TemplateName',
|
||||
'templateType' => 'TemplateType',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'templateContent' => 'TemplateContent',
|
||||
'templateName' => 'TemplateName',
|
||||
'templateType' => 'TemplateType',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->remark) {
|
||||
$res['Remark'] = $this->remark;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->templateContent) {
|
||||
$res['TemplateContent'] = $this->templateContent;
|
||||
}
|
||||
|
||||
if (null !== $this->templateName) {
|
||||
$res['TemplateName'] = $this->templateName;
|
||||
}
|
||||
|
||||
if (null !== $this->templateType) {
|
||||
$res['TemplateType'] = $this->templateType;
|
||||
}
|
||||
@@ -84,32 +91,38 @@ class AddSmsTemplateRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddSmsTemplateRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['Remark'])) {
|
||||
$model->remark = $map['Remark'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateContent'])) {
|
||||
$model->templateContent = $map['TemplateContent'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateName'])) {
|
||||
$model->templateName = $map['TemplateName'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateType'])) {
|
||||
$model->templateType = $map['TemplateType'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddSmsTemplateResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class AddSmsTemplateResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddSmsTemplateResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = AddSmsTemplateResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class AddSmsTemplateResponseBody extends Model
|
||||
{
|
||||
@@ -28,28 +28,32 @@ class AddSmsTemplateResponseBody extends Model
|
||||
*/
|
||||
public $templateCode;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'templateCode' => 'TemplateCode',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->templateCode) {
|
||||
$res['TemplateCode'] = $this->templateCode;
|
||||
}
|
||||
@@ -57,23 +61,26 @@ class AddSmsTemplateResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddSmsTemplateResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateCode'])) {
|
||||
$model->templateCode = $map['TemplateCode'];
|
||||
}
|
||||
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/ChangeSignatureQualificationRequest.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/ChangeSignatureQualificationRequest.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class ChangeSignatureQualificationRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $authorizationLetterId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $qualificationId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signatureName;
|
||||
protected $_name = [
|
||||
'authorizationLetterId' => 'AuthorizationLetterId',
|
||||
'ownerId' => 'OwnerId',
|
||||
'qualificationId' => 'QualificationId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signatureName' => 'SignatureName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->authorizationLetterId) {
|
||||
$res['AuthorizationLetterId'] = $this->authorizationLetterId;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->qualificationId) {
|
||||
$res['QualificationId'] = $this->qualificationId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signatureName) {
|
||||
$res['SignatureName'] = $this->signatureName;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AuthorizationLetterId'])) {
|
||||
$model->authorizationLetterId = $map['AuthorizationLetterId'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['QualificationId'])) {
|
||||
$model->qualificationId = $map['QualificationId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignatureName'])) {
|
||||
$model->signatureName = $map['SignatureName'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/ChangeSignatureQualificationResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/ChangeSignatureQualificationResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class ChangeSignatureQualificationResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var ChangeSignatureQualificationResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = ChangeSignatureQualificationResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
122
vendor/alibabacloud/dysmsapi-20170525/src/Models/ChangeSignatureQualificationResponseBody.php
vendored
Normal file
122
vendor/alibabacloud/dysmsapi-20170525/src/Models/ChangeSignatureQualificationResponseBody.php
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ChangeSignatureQualificationResponseBody\data;
|
||||
|
||||
class ChangeSignatureQualificationResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (null !== $this->data) {
|
||||
$this->data->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
103
vendor/alibabacloud/dysmsapi-20170525/src/Models/ChangeSignatureQualificationResponseBody/data.php
vendored
Normal file
103
vendor/alibabacloud/dysmsapi-20170525/src/Models/ChangeSignatureQualificationResponseBody/data.php
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ChangeSignatureQualificationResponseBody;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var mixed[]
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $errCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $errMessage;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'errCode' => 'ErrCode',
|
||||
'errMessage' => 'ErrMessage',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->data)) {
|
||||
Model::validateArray($this->data);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
if (\is_array($this->data)) {
|
||||
$res['Data'] = [];
|
||||
foreach ($this->data as $key1 => $value1) {
|
||||
$res['Data'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->errCode) {
|
||||
$res['ErrCode'] = $this->errCode;
|
||||
}
|
||||
|
||||
if (null !== $this->errMessage) {
|
||||
$res['ErrMessage'] = $this->errMessage;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
if (!empty($map['Data'])) {
|
||||
$model->data = [];
|
||||
foreach ($map['Data'] as $key1 => $value1) {
|
||||
$model->data[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['ErrCode'])) {
|
||||
$model->errCode = $map['ErrCode'];
|
||||
}
|
||||
|
||||
if (isset($map['ErrMessage'])) {
|
||||
$model->errMessage = $map['ErrMessage'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CheckMobilesCardSupportRequest extends Model
|
||||
{
|
||||
@@ -18,20 +18,37 @@ class CheckMobilesCardSupportRequest extends Model
|
||||
*/
|
||||
public $templateCode;
|
||||
protected $_name = [
|
||||
'mobiles' => 'Mobiles',
|
||||
'mobiles' => 'Mobiles',
|
||||
'templateCode' => 'TemplateCode',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->mobiles)) {
|
||||
Model::validateArray($this->mobiles);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->mobiles) {
|
||||
$res['Mobiles'] = $this->mobiles;
|
||||
if (\is_array($this->mobiles)) {
|
||||
$res['Mobiles'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->mobiles as $item1) {
|
||||
if (\is_array($item1)) {
|
||||
$res['Mobiles'][$n1] = [];
|
||||
foreach ($item1 as $key2 => $value2) {
|
||||
$res['Mobiles'][$n1][$key2] = $value2;
|
||||
}
|
||||
}
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->templateCode) {
|
||||
$res['TemplateCode'] = $this->templateCode;
|
||||
}
|
||||
@@ -39,19 +56,30 @@ class CheckMobilesCardSupportRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return CheckMobilesCardSupportRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Mobiles'])) {
|
||||
if (!empty($map['Mobiles'])) {
|
||||
$model->mobiles = $map['Mobiles'];
|
||||
$model->mobiles = [];
|
||||
$n1 = 0;
|
||||
foreach ($map['Mobiles'] as $item1) {
|
||||
if (!empty($item1)) {
|
||||
$model->mobiles[$n1] = [];
|
||||
foreach ($item1 as $key2 => $value2) {
|
||||
$model->mobiles[$n1][$key2] = $value2;
|
||||
}
|
||||
}
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['TemplateCode'])) {
|
||||
$model->templateCode = $map['TemplateCode'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CheckMobilesCardSupportResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class CheckMobilesCardSupportResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return CheckMobilesCardSupportResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CheckMobilesCardSupportResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CheckMobilesCardSupportResponseBody\data;
|
||||
|
||||
class CheckMobilesCardSupportResponseBody extends Model
|
||||
{
|
||||
@@ -14,7 +15,7 @@ class CheckMobilesCardSupportResponseBody extends Model
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var mixed[][]
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
@@ -28,28 +29,35 @@ class CheckMobilesCardSupportResponseBody extends Model
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (null !== $this->data) {
|
||||
$this->data->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = $this->data;
|
||||
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
@@ -57,25 +65,26 @@ class CheckMobilesCardSupportResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return CheckMobilesCardSupportResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
if (!empty($map['Data'])) {
|
||||
$model->data = $map['Data'];
|
||||
}
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
66
vendor/alibabacloud/dysmsapi-20170525/src/Models/CheckMobilesCardSupportResponseBody/data.php
vendored
Normal file
66
vendor/alibabacloud/dysmsapi-20170525/src/Models/CheckMobilesCardSupportResponseBody/data.php
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CheckMobilesCardSupportResponseBody;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CheckMobilesCardSupportResponseBody\data\queryResult;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var queryResult[]
|
||||
*/
|
||||
public $queryResult;
|
||||
protected $_name = [
|
||||
'queryResult' => 'queryResult',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->queryResult)) {
|
||||
Model::validateArray($this->queryResult);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->queryResult) {
|
||||
if (\is_array($this->queryResult)) {
|
||||
$res['queryResult'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->queryResult as $item1) {
|
||||
$res['queryResult'][$n1] = null !== $item1 ? $item1->toArray($noStream) : $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['queryResult'])) {
|
||||
if (!empty($map['queryResult'])) {
|
||||
$model->queryResult = [];
|
||||
$n1 = 0;
|
||||
foreach ($map['queryResult'] as $item1) {
|
||||
$model->queryResult[$n1] = queryResult::fromMap($item1);
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CheckMobilesCardSupportResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class queryResult extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $mobile;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $support;
|
||||
protected $_name = [
|
||||
'mobile' => 'mobile',
|
||||
'support' => 'support',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->mobile) {
|
||||
$res['mobile'] = $this->mobile;
|
||||
}
|
||||
|
||||
if (null !== $this->support) {
|
||||
$res['support'] = $this->support;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['mobile'])) {
|
||||
$model->mobile = $map['mobile'];
|
||||
}
|
||||
|
||||
if (isset($map['support'])) {
|
||||
$model->support = $map['support'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/ConversionDataIntlRequest.php
vendored
Normal file
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/ConversionDataIntlRequest.php
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class ConversionDataIntlRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $conversionRate;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $reportTime;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
protected $_name = [
|
||||
'conversionRate' => 'ConversionRate',
|
||||
'ownerId' => 'OwnerId',
|
||||
'reportTime' => 'ReportTime',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->conversionRate) {
|
||||
$res['ConversionRate'] = $this->conversionRate;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->reportTime) {
|
||||
$res['ReportTime'] = $this->reportTime;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ConversionRate'])) {
|
||||
$model->conversionRate = $map['ConversionRate'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ReportTime'])) {
|
||||
$model->reportTime = $map['ReportTime'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/ConversionDataIntlResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/ConversionDataIntlResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class ConversionDataIntlResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var ConversionDataIntlResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = ConversionDataIntlResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
76
vendor/alibabacloud/dysmsapi-20170525/src/Models/ConversionDataIntlResponseBody.php
vendored
Normal file
76
vendor/alibabacloud/dysmsapi-20170525/src/Models/ConversionDataIntlResponseBody.php
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class ConversionDataIntlResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateCardSmsTemplateRequest extends Model
|
||||
{
|
||||
@@ -28,28 +28,40 @@ class CreateCardSmsTemplateRequest extends Model
|
||||
*/
|
||||
public $templateName;
|
||||
protected $_name = [
|
||||
'factorys' => 'Factorys',
|
||||
'memo' => 'Memo',
|
||||
'template' => 'Template',
|
||||
'factorys' => 'Factorys',
|
||||
'memo' => 'Memo',
|
||||
'template' => 'Template',
|
||||
'templateName' => 'TemplateName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->template)) {
|
||||
Model::validateArray($this->template);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->factorys) {
|
||||
$res['Factorys'] = $this->factorys;
|
||||
}
|
||||
|
||||
if (null !== $this->memo) {
|
||||
$res['Memo'] = $this->memo;
|
||||
}
|
||||
|
||||
if (null !== $this->template) {
|
||||
$res['Template'] = $this->template;
|
||||
if (\is_array($this->template)) {
|
||||
$res['Template'] = [];
|
||||
foreach ($this->template as $key1 => $value1) {
|
||||
$res['Template'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->templateName) {
|
||||
$res['TemplateName'] = $this->templateName;
|
||||
}
|
||||
@@ -57,23 +69,31 @@ class CreateCardSmsTemplateRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return CreateCardSmsTemplateRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Factorys'])) {
|
||||
$model->factorys = $map['Factorys'];
|
||||
}
|
||||
|
||||
if (isset($map['Memo'])) {
|
||||
$model->memo = $map['Memo'];
|
||||
}
|
||||
|
||||
if (isset($map['Template'])) {
|
||||
$model->template = $map['Template'];
|
||||
if (!empty($map['Template'])) {
|
||||
$model->template = [];
|
||||
foreach ($map['Template'] as $key1 => $value1) {
|
||||
$model->template[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['TemplateName'])) {
|
||||
$model->templateName = $map['TemplateName'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateCardSmsTemplateResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class CreateCardSmsTemplateResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return CreateCardSmsTemplateResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateCardSmsTemplateResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateCardSmsTemplateResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class CreateCardSmsTemplateResponseBody extends Model
|
||||
{
|
||||
@@ -29,28 +29,35 @@ class CreateCardSmsTemplateResponseBody extends Model
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (null !== $this->data) {
|
||||
$this->data->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
@@ -58,23 +65,26 @@ class CreateCardSmsTemplateResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return CreateCardSmsTemplateResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateCardSmsTemplateResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
@@ -18,9 +18,10 @@ class data extends Model
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->templateCode) {
|
||||
@@ -30,11 +31,11 @@ class data extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateCardSmsTemplateShrinkRequest extends Model
|
||||
{
|
||||
@@ -28,28 +28,32 @@ class CreateCardSmsTemplateShrinkRequest extends Model
|
||||
*/
|
||||
public $templateName;
|
||||
protected $_name = [
|
||||
'factorys' => 'Factorys',
|
||||
'memo' => 'Memo',
|
||||
'factorys' => 'Factorys',
|
||||
'memo' => 'Memo',
|
||||
'templateShrink' => 'Template',
|
||||
'templateName' => 'TemplateName',
|
||||
'templateName' => 'TemplateName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->factorys) {
|
||||
$res['Factorys'] = $this->factorys;
|
||||
}
|
||||
|
||||
if (null !== $this->memo) {
|
||||
$res['Memo'] = $this->memo;
|
||||
}
|
||||
|
||||
if (null !== $this->templateShrink) {
|
||||
$res['Template'] = $this->templateShrink;
|
||||
}
|
||||
|
||||
if (null !== $this->templateName) {
|
||||
$res['TemplateName'] = $this->templateName;
|
||||
}
|
||||
@@ -57,23 +61,26 @@ class CreateCardSmsTemplateShrinkRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return CreateCardSmsTemplateShrinkRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Factorys'])) {
|
||||
$model->factorys = $map['Factorys'];
|
||||
}
|
||||
|
||||
if (isset($map['Memo'])) {
|
||||
$model->memo = $map['Memo'];
|
||||
}
|
||||
|
||||
if (isset($map['Template'])) {
|
||||
$model->templateShrink = $map['Template'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateName'])) {
|
||||
$model->templateName = $map['TemplateName'];
|
||||
}
|
||||
|
||||
229
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSignOrderRequest.php
vendored
Normal file
229
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSignOrderRequest.php
vendored
Normal file
@@ -0,0 +1,229 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateDigitalSignOrderRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $extendMessage;
|
||||
|
||||
/**
|
||||
* @var mixed[]
|
||||
*/
|
||||
public $orderContext;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $orderType;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $qualificationId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $qualificationVersion;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signIndustry;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signName;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signSource;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $submitter;
|
||||
protected $_name = [
|
||||
'extendMessage' => 'ExtendMessage',
|
||||
'orderContext' => 'OrderContext',
|
||||
'orderType' => 'OrderType',
|
||||
'ownerId' => 'OwnerId',
|
||||
'qualificationId' => 'QualificationId',
|
||||
'qualificationVersion' => 'QualificationVersion',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signId' => 'SignId',
|
||||
'signIndustry' => 'SignIndustry',
|
||||
'signName' => 'SignName',
|
||||
'signSource' => 'SignSource',
|
||||
'submitter' => 'Submitter',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->orderContext)) {
|
||||
Model::validateArray($this->orderContext);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->extendMessage) {
|
||||
$res['ExtendMessage'] = $this->extendMessage;
|
||||
}
|
||||
|
||||
if (null !== $this->orderContext) {
|
||||
if (\is_array($this->orderContext)) {
|
||||
$res['OrderContext'] = [];
|
||||
foreach ($this->orderContext as $key1 => $value1) {
|
||||
$res['OrderContext'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->orderType) {
|
||||
$res['OrderType'] = $this->orderType;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->qualificationId) {
|
||||
$res['QualificationId'] = $this->qualificationId;
|
||||
}
|
||||
|
||||
if (null !== $this->qualificationVersion) {
|
||||
$res['QualificationVersion'] = $this->qualificationVersion;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signId) {
|
||||
$res['SignId'] = $this->signId;
|
||||
}
|
||||
|
||||
if (null !== $this->signIndustry) {
|
||||
$res['SignIndustry'] = $this->signIndustry;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
if (null !== $this->signSource) {
|
||||
$res['SignSource'] = $this->signSource;
|
||||
}
|
||||
|
||||
if (null !== $this->submitter) {
|
||||
$res['Submitter'] = $this->submitter;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ExtendMessage'])) {
|
||||
$model->extendMessage = $map['ExtendMessage'];
|
||||
}
|
||||
|
||||
if (isset($map['OrderContext'])) {
|
||||
if (!empty($map['OrderContext'])) {
|
||||
$model->orderContext = [];
|
||||
foreach ($map['OrderContext'] as $key1 => $value1) {
|
||||
$model->orderContext[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['OrderType'])) {
|
||||
$model->orderType = $map['OrderType'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['QualificationId'])) {
|
||||
$model->qualificationId = $map['QualificationId'];
|
||||
}
|
||||
|
||||
if (isset($map['QualificationVersion'])) {
|
||||
$model->qualificationVersion = $map['QualificationVersion'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignId'])) {
|
||||
$model->signId = $map['SignId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignIndustry'])) {
|
||||
$model->signIndustry = $map['SignIndustry'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
if (isset($map['SignSource'])) {
|
||||
$model->signSource = $map['SignSource'];
|
||||
}
|
||||
|
||||
if (isset($map['Submitter'])) {
|
||||
$model->submitter = $map['Submitter'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSignOrderResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSignOrderResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateDigitalSignOrderResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var CreateDigitalSignOrderResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateDigitalSignOrderResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
131
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSignOrderResponseBody.php
vendored
Normal file
131
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSignOrderResponseBody.php
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateDigitalSignOrderResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var mixed[]
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->data)) {
|
||||
Model::validateArray($this->data);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
if (\is_array($this->data)) {
|
||||
$res['Data'] = [];
|
||||
foreach ($this->data as $key1 => $value1) {
|
||||
$res['Data'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
if (!empty($map['Data'])) {
|
||||
$model->data = [];
|
||||
foreach ($map['Data'] as $key1 => $value1) {
|
||||
$model->data[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
216
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSignOrderShrinkRequest.php
vendored
Normal file
216
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSignOrderShrinkRequest.php
vendored
Normal file
@@ -0,0 +1,216 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateDigitalSignOrderShrinkRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $extendMessage;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $orderContextShrink;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $orderType;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $qualificationId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $qualificationVersion;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signIndustry;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signName;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signSource;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $submitter;
|
||||
protected $_name = [
|
||||
'extendMessage' => 'ExtendMessage',
|
||||
'orderContextShrink' => 'OrderContext',
|
||||
'orderType' => 'OrderType',
|
||||
'ownerId' => 'OwnerId',
|
||||
'qualificationId' => 'QualificationId',
|
||||
'qualificationVersion' => 'QualificationVersion',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signId' => 'SignId',
|
||||
'signIndustry' => 'SignIndustry',
|
||||
'signName' => 'SignName',
|
||||
'signSource' => 'SignSource',
|
||||
'submitter' => 'Submitter',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->extendMessage) {
|
||||
$res['ExtendMessage'] = $this->extendMessage;
|
||||
}
|
||||
|
||||
if (null !== $this->orderContextShrink) {
|
||||
$res['OrderContext'] = $this->orderContextShrink;
|
||||
}
|
||||
|
||||
if (null !== $this->orderType) {
|
||||
$res['OrderType'] = $this->orderType;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->qualificationId) {
|
||||
$res['QualificationId'] = $this->qualificationId;
|
||||
}
|
||||
|
||||
if (null !== $this->qualificationVersion) {
|
||||
$res['QualificationVersion'] = $this->qualificationVersion;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signId) {
|
||||
$res['SignId'] = $this->signId;
|
||||
}
|
||||
|
||||
if (null !== $this->signIndustry) {
|
||||
$res['SignIndustry'] = $this->signIndustry;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
if (null !== $this->signSource) {
|
||||
$res['SignSource'] = $this->signSource;
|
||||
}
|
||||
|
||||
if (null !== $this->submitter) {
|
||||
$res['Submitter'] = $this->submitter;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ExtendMessage'])) {
|
||||
$model->extendMessage = $map['ExtendMessage'];
|
||||
}
|
||||
|
||||
if (isset($map['OrderContext'])) {
|
||||
$model->orderContextShrink = $map['OrderContext'];
|
||||
}
|
||||
|
||||
if (isset($map['OrderType'])) {
|
||||
$model->orderType = $map['OrderType'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['QualificationId'])) {
|
||||
$model->qualificationId = $map['QualificationId'];
|
||||
}
|
||||
|
||||
if (isset($map['QualificationVersion'])) {
|
||||
$model->qualificationVersion = $map['QualificationVersion'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignId'])) {
|
||||
$model->signId = $map['SignId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignIndustry'])) {
|
||||
$model->signIndustry = $map['SignIndustry'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
if (isset($map['SignSource'])) {
|
||||
$model->signSource = $map['SignSource'];
|
||||
}
|
||||
|
||||
if (isset($map['Submitter'])) {
|
||||
$model->submitter = $map['Submitter'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
150
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSmsTemplateRequest.php
vendored
Normal file
150
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSmsTemplateRequest.php
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateDigitalSmsTemplateRequest\templateContents;
|
||||
|
||||
class CreateDigitalSmsTemplateRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $remark;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signName;
|
||||
|
||||
/**
|
||||
* @var templateContents[]
|
||||
*/
|
||||
public $templateContents;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateName;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'remark' => 'Remark',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signName' => 'SignName',
|
||||
'templateContents' => 'TemplateContents',
|
||||
'templateName' => 'TemplateName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->templateContents)) {
|
||||
Model::validateArray($this->templateContents);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->remark) {
|
||||
$res['Remark'] = $this->remark;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
if (null !== $this->templateContents) {
|
||||
if (\is_array($this->templateContents)) {
|
||||
$res['TemplateContents'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->templateContents as $item1) {
|
||||
$res['TemplateContents'][$n1] = null !== $item1 ? $item1->toArray($noStream) : $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->templateName) {
|
||||
$res['TemplateName'] = $this->templateName;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['Remark'])) {
|
||||
$model->remark = $map['Remark'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateContents'])) {
|
||||
if (!empty($map['TemplateContents'])) {
|
||||
$model->templateContents = [];
|
||||
$n1 = 0;
|
||||
foreach ($map['TemplateContents'] as $item1) {
|
||||
$model->templateContents[$n1] = templateContents::fromMap($item1);
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['TemplateName'])) {
|
||||
$model->templateName = $map['TemplateName'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateDigitalSmsTemplateRequest;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class templateContents extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $fileContents;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $fileName;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $fileSize;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $fileSuffix;
|
||||
protected $_name = [
|
||||
'fileContents' => 'FileContents',
|
||||
'fileName' => 'FileName',
|
||||
'fileSize' => 'FileSize',
|
||||
'fileSuffix' => 'FileSuffix',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->fileContents) {
|
||||
$res['FileContents'] = $this->fileContents;
|
||||
}
|
||||
|
||||
if (null !== $this->fileName) {
|
||||
$res['FileName'] = $this->fileName;
|
||||
}
|
||||
|
||||
if (null !== $this->fileSize) {
|
||||
$res['FileSize'] = $this->fileSize;
|
||||
}
|
||||
|
||||
if (null !== $this->fileSuffix) {
|
||||
$res['FileSuffix'] = $this->fileSuffix;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['FileContents'])) {
|
||||
$model->fileContents = $map['FileContents'];
|
||||
}
|
||||
|
||||
if (isset($map['FileName'])) {
|
||||
$model->fileName = $map['FileName'];
|
||||
}
|
||||
|
||||
if (isset($map['FileSize'])) {
|
||||
$model->fileSize = $map['FileSize'];
|
||||
}
|
||||
|
||||
if (isset($map['FileSuffix'])) {
|
||||
$model->fileSuffix = $map['FileSuffix'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSmsTemplateResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSmsTemplateResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateDigitalSmsTemplateResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var CreateDigitalSmsTemplateResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateDigitalSmsTemplateResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
90
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSmsTemplateResponseBody.php
vendored
Normal file
90
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateDigitalSmsTemplateResponseBody.php
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateDigitalSmsTemplateResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateCode;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'templateCode' => 'TemplateCode',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->templateCode) {
|
||||
$res['TemplateCode'] = $this->templateCode;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateCode'])) {
|
||||
$model->templateCode = $map['TemplateCode'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmartShortUrlRequest.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmartShortUrlRequest.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmartShortUrlRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $outId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $phoneNumbers;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sourceUrl;
|
||||
protected $_name = [
|
||||
'outId' => 'OutId',
|
||||
'ownerId' => 'OwnerId',
|
||||
'phoneNumbers' => 'PhoneNumbers',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->outId) {
|
||||
$res['OutId'] = $this->outId;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->phoneNumbers) {
|
||||
$res['PhoneNumbers'] = $this->phoneNumbers;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->sourceUrl) {
|
||||
$res['SourceUrl'] = $this->sourceUrl;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OutId'])) {
|
||||
$model->outId = $map['OutId'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['PhoneNumbers'])) {
|
||||
$model->phoneNumbers = $map['PhoneNumbers'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SourceUrl'])) {
|
||||
$model->sourceUrl = $map['SourceUrl'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmartShortUrlResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmartShortUrlResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmartShortUrlResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var CreateSmartShortUrlResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateSmartShortUrlResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
108
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmartShortUrlResponseBody.php
vendored
Normal file
108
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmartShortUrlResponseBody.php
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateSmartShortUrlResponseBody\model_;
|
||||
|
||||
class CreateSmartShortUrlResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var model_[]
|
||||
*/
|
||||
public $model;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'model' => 'Model',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->model)) {
|
||||
Model::validateArray($this->model);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->model) {
|
||||
if (\is_array($this->model)) {
|
||||
$res['Model'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->model as $item1) {
|
||||
$res['Model'][$n1] = null !== $item1 ? $item1->toArray($noStream) : $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['Model'])) {
|
||||
if (!empty($map['Model'])) {
|
||||
$model->model = [];
|
||||
$n1 = 0;
|
||||
foreach ($map['Model'] as $item1) {
|
||||
$model->model[$n1] = model_::fromMap($item1);
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmartShortUrlResponseBody/model_.php
vendored
Normal file
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmartShortUrlResponseBody/model_.php
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateSmartShortUrlResponseBody;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class model_ extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $domain;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $expiration;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $phoneNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortUrl;
|
||||
protected $_name = [
|
||||
'domain' => 'Domain',
|
||||
'expiration' => 'Expiration',
|
||||
'phoneNumber' => 'PhoneNumber',
|
||||
'shortName' => 'ShortName',
|
||||
'shortUrl' => 'ShortUrl',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->domain) {
|
||||
$res['Domain'] = $this->domain;
|
||||
}
|
||||
|
||||
if (null !== $this->expiration) {
|
||||
$res['Expiration'] = $this->expiration;
|
||||
}
|
||||
|
||||
if (null !== $this->phoneNumber) {
|
||||
$res['PhoneNumber'] = $this->phoneNumber;
|
||||
}
|
||||
|
||||
if (null !== $this->shortName) {
|
||||
$res['ShortName'] = $this->shortName;
|
||||
}
|
||||
|
||||
if (null !== $this->shortUrl) {
|
||||
$res['ShortUrl'] = $this->shortUrl;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Domain'])) {
|
||||
$model->domain = $map['Domain'];
|
||||
}
|
||||
|
||||
if (isset($map['Expiration'])) {
|
||||
$model->expiration = $map['Expiration'];
|
||||
}
|
||||
|
||||
if (isset($map['PhoneNumber'])) {
|
||||
$model->phoneNumber = $map['PhoneNumber'];
|
||||
}
|
||||
|
||||
if (isset($map['ShortName'])) {
|
||||
$model->shortName = $map['ShortName'];
|
||||
}
|
||||
|
||||
if (isset($map['ShortUrl'])) {
|
||||
$model->shortUrl = $map['ShortUrl'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
160
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAppIcpRecordRequest.php
vendored
Normal file
160
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAppIcpRecordRequest.php
vendored
Normal file
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsAppIcpRecordRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $appApprovalDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $appIcpLicenseNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $appIcpRecordPic;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $appPrincipalUnitName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $appServiceName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $domain;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
protected $_name = [
|
||||
'appApprovalDate' => 'AppApprovalDate',
|
||||
'appIcpLicenseNumber' => 'AppIcpLicenseNumber',
|
||||
'appIcpRecordPic' => 'AppIcpRecordPic',
|
||||
'appPrincipalUnitName' => 'AppPrincipalUnitName',
|
||||
'appServiceName' => 'AppServiceName',
|
||||
'domain' => 'Domain',
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->appApprovalDate) {
|
||||
$res['AppApprovalDate'] = $this->appApprovalDate;
|
||||
}
|
||||
|
||||
if (null !== $this->appIcpLicenseNumber) {
|
||||
$res['AppIcpLicenseNumber'] = $this->appIcpLicenseNumber;
|
||||
}
|
||||
|
||||
if (null !== $this->appIcpRecordPic) {
|
||||
$res['AppIcpRecordPic'] = $this->appIcpRecordPic;
|
||||
}
|
||||
|
||||
if (null !== $this->appPrincipalUnitName) {
|
||||
$res['AppPrincipalUnitName'] = $this->appPrincipalUnitName;
|
||||
}
|
||||
|
||||
if (null !== $this->appServiceName) {
|
||||
$res['AppServiceName'] = $this->appServiceName;
|
||||
}
|
||||
|
||||
if (null !== $this->domain) {
|
||||
$res['Domain'] = $this->domain;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AppApprovalDate'])) {
|
||||
$model->appApprovalDate = $map['AppApprovalDate'];
|
||||
}
|
||||
|
||||
if (isset($map['AppIcpLicenseNumber'])) {
|
||||
$model->appIcpLicenseNumber = $map['AppIcpLicenseNumber'];
|
||||
}
|
||||
|
||||
if (isset($map['AppIcpRecordPic'])) {
|
||||
$model->appIcpRecordPic = $map['AppIcpRecordPic'];
|
||||
}
|
||||
|
||||
if (isset($map['AppPrincipalUnitName'])) {
|
||||
$model->appPrincipalUnitName = $map['AppPrincipalUnitName'];
|
||||
}
|
||||
|
||||
if (isset($map['AppServiceName'])) {
|
||||
$model->appServiceName = $map['AppServiceName'];
|
||||
}
|
||||
|
||||
if (isset($map['Domain'])) {
|
||||
$model->domain = $map['Domain'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAppIcpRecordResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAppIcpRecordResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsAppIcpRecordResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var CreateSmsAppIcpRecordResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateSmsAppIcpRecordResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAppIcpRecordResponseBody.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAppIcpRecordResponseBody.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsAppIcpRecordResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = $map['Data'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
191
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAuthorizationLetterRequest.php
vendored
Normal file
191
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAuthorizationLetterRequest.php
vendored
Normal file
@@ -0,0 +1,191 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsAuthorizationLetterRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authorization;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authorizationLetterExpDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authorizationLetterName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authorizationLetterPic;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $organizationCode;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $proxyAuthorization;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $signList;
|
||||
protected $_name = [
|
||||
'authorization' => 'Authorization',
|
||||
'authorizationLetterExpDate' => 'AuthorizationLetterExpDate',
|
||||
'authorizationLetterName' => 'AuthorizationLetterName',
|
||||
'authorizationLetterPic' => 'AuthorizationLetterPic',
|
||||
'organizationCode' => 'OrganizationCode',
|
||||
'ownerId' => 'OwnerId',
|
||||
'proxyAuthorization' => 'ProxyAuthorization',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signList' => 'SignList',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->signList)) {
|
||||
Model::validateArray($this->signList);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->authorization) {
|
||||
$res['Authorization'] = $this->authorization;
|
||||
}
|
||||
|
||||
if (null !== $this->authorizationLetterExpDate) {
|
||||
$res['AuthorizationLetterExpDate'] = $this->authorizationLetterExpDate;
|
||||
}
|
||||
|
||||
if (null !== $this->authorizationLetterName) {
|
||||
$res['AuthorizationLetterName'] = $this->authorizationLetterName;
|
||||
}
|
||||
|
||||
if (null !== $this->authorizationLetterPic) {
|
||||
$res['AuthorizationLetterPic'] = $this->authorizationLetterPic;
|
||||
}
|
||||
|
||||
if (null !== $this->organizationCode) {
|
||||
$res['OrganizationCode'] = $this->organizationCode;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->proxyAuthorization) {
|
||||
$res['ProxyAuthorization'] = $this->proxyAuthorization;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signList) {
|
||||
if (\is_array($this->signList)) {
|
||||
$res['SignList'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->signList as $item1) {
|
||||
$res['SignList'][$n1] = $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Authorization'])) {
|
||||
$model->authorization = $map['Authorization'];
|
||||
}
|
||||
|
||||
if (isset($map['AuthorizationLetterExpDate'])) {
|
||||
$model->authorizationLetterExpDate = $map['AuthorizationLetterExpDate'];
|
||||
}
|
||||
|
||||
if (isset($map['AuthorizationLetterName'])) {
|
||||
$model->authorizationLetterName = $map['AuthorizationLetterName'];
|
||||
}
|
||||
|
||||
if (isset($map['AuthorizationLetterPic'])) {
|
||||
$model->authorizationLetterPic = $map['AuthorizationLetterPic'];
|
||||
}
|
||||
|
||||
if (isset($map['OrganizationCode'])) {
|
||||
$model->organizationCode = $map['OrganizationCode'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ProxyAuthorization'])) {
|
||||
$model->proxyAuthorization = $map['ProxyAuthorization'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignList'])) {
|
||||
if (!empty($map['SignList'])) {
|
||||
$model->signList = [];
|
||||
$n1 = 0;
|
||||
foreach ($map['SignList'] as $item1) {
|
||||
$model->signList[$n1] = $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAuthorizationLetterResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAuthorizationLetterResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsAuthorizationLetterResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var CreateSmsAuthorizationLetterResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateSmsAuthorizationLetterResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAuthorizationLetterResponseBody.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAuthorizationLetterResponseBody.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsAuthorizationLetterResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = $map['Data'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
174
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAuthorizationLetterShrinkRequest.php
vendored
Normal file
174
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsAuthorizationLetterShrinkRequest.php
vendored
Normal file
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsAuthorizationLetterShrinkRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authorization;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authorizationLetterExpDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authorizationLetterName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $authorizationLetterPic;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $organizationCode;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $proxyAuthorization;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signListShrink;
|
||||
protected $_name = [
|
||||
'authorization' => 'Authorization',
|
||||
'authorizationLetterExpDate' => 'AuthorizationLetterExpDate',
|
||||
'authorizationLetterName' => 'AuthorizationLetterName',
|
||||
'authorizationLetterPic' => 'AuthorizationLetterPic',
|
||||
'organizationCode' => 'OrganizationCode',
|
||||
'ownerId' => 'OwnerId',
|
||||
'proxyAuthorization' => 'ProxyAuthorization',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signListShrink' => 'SignList',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->authorization) {
|
||||
$res['Authorization'] = $this->authorization;
|
||||
}
|
||||
|
||||
if (null !== $this->authorizationLetterExpDate) {
|
||||
$res['AuthorizationLetterExpDate'] = $this->authorizationLetterExpDate;
|
||||
}
|
||||
|
||||
if (null !== $this->authorizationLetterName) {
|
||||
$res['AuthorizationLetterName'] = $this->authorizationLetterName;
|
||||
}
|
||||
|
||||
if (null !== $this->authorizationLetterPic) {
|
||||
$res['AuthorizationLetterPic'] = $this->authorizationLetterPic;
|
||||
}
|
||||
|
||||
if (null !== $this->organizationCode) {
|
||||
$res['OrganizationCode'] = $this->organizationCode;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->proxyAuthorization) {
|
||||
$res['ProxyAuthorization'] = $this->proxyAuthorization;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signListShrink) {
|
||||
$res['SignList'] = $this->signListShrink;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Authorization'])) {
|
||||
$model->authorization = $map['Authorization'];
|
||||
}
|
||||
|
||||
if (isset($map['AuthorizationLetterExpDate'])) {
|
||||
$model->authorizationLetterExpDate = $map['AuthorizationLetterExpDate'];
|
||||
}
|
||||
|
||||
if (isset($map['AuthorizationLetterName'])) {
|
||||
$model->authorizationLetterName = $map['AuthorizationLetterName'];
|
||||
}
|
||||
|
||||
if (isset($map['AuthorizationLetterPic'])) {
|
||||
$model->authorizationLetterPic = $map['AuthorizationLetterPic'];
|
||||
}
|
||||
|
||||
if (isset($map['OrganizationCode'])) {
|
||||
$model->organizationCode = $map['OrganizationCode'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ProxyAuthorization'])) {
|
||||
$model->proxyAuthorization = $map['ProxyAuthorization'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignList'])) {
|
||||
$model->signListShrink = $map['SignList'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
247
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsSignRequest.php
vendored
Normal file
247
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsSignRequest.php
vendored
Normal file
@@ -0,0 +1,247 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsSignRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $appIcpRecordId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $applySceneContent;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $authorizationLetterId;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $moreData;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $qualificationId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $remark;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signName;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signSource;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signType;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $thirdParty;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $trademarkId;
|
||||
protected $_name = [
|
||||
'appIcpRecordId' => 'AppIcpRecordId',
|
||||
'applySceneContent' => 'ApplySceneContent',
|
||||
'authorizationLetterId' => 'AuthorizationLetterId',
|
||||
'moreData' => 'MoreData',
|
||||
'ownerId' => 'OwnerId',
|
||||
'qualificationId' => 'QualificationId',
|
||||
'remark' => 'Remark',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signName' => 'SignName',
|
||||
'signSource' => 'SignSource',
|
||||
'signType' => 'SignType',
|
||||
'thirdParty' => 'ThirdParty',
|
||||
'trademarkId' => 'TrademarkId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->moreData)) {
|
||||
Model::validateArray($this->moreData);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->appIcpRecordId) {
|
||||
$res['AppIcpRecordId'] = $this->appIcpRecordId;
|
||||
}
|
||||
|
||||
if (null !== $this->applySceneContent) {
|
||||
$res['ApplySceneContent'] = $this->applySceneContent;
|
||||
}
|
||||
|
||||
if (null !== $this->authorizationLetterId) {
|
||||
$res['AuthorizationLetterId'] = $this->authorizationLetterId;
|
||||
}
|
||||
|
||||
if (null !== $this->moreData) {
|
||||
if (\is_array($this->moreData)) {
|
||||
$res['MoreData'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->moreData as $item1) {
|
||||
$res['MoreData'][$n1] = $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->qualificationId) {
|
||||
$res['QualificationId'] = $this->qualificationId;
|
||||
}
|
||||
|
||||
if (null !== $this->remark) {
|
||||
$res['Remark'] = $this->remark;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
if (null !== $this->signSource) {
|
||||
$res['SignSource'] = $this->signSource;
|
||||
}
|
||||
|
||||
if (null !== $this->signType) {
|
||||
$res['SignType'] = $this->signType;
|
||||
}
|
||||
|
||||
if (null !== $this->thirdParty) {
|
||||
$res['ThirdParty'] = $this->thirdParty;
|
||||
}
|
||||
|
||||
if (null !== $this->trademarkId) {
|
||||
$res['TrademarkId'] = $this->trademarkId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AppIcpRecordId'])) {
|
||||
$model->appIcpRecordId = $map['AppIcpRecordId'];
|
||||
}
|
||||
|
||||
if (isset($map['ApplySceneContent'])) {
|
||||
$model->applySceneContent = $map['ApplySceneContent'];
|
||||
}
|
||||
|
||||
if (isset($map['AuthorizationLetterId'])) {
|
||||
$model->authorizationLetterId = $map['AuthorizationLetterId'];
|
||||
}
|
||||
|
||||
if (isset($map['MoreData'])) {
|
||||
if (!empty($map['MoreData'])) {
|
||||
$model->moreData = [];
|
||||
$n1 = 0;
|
||||
foreach ($map['MoreData'] as $item1) {
|
||||
$model->moreData[$n1] = $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['QualificationId'])) {
|
||||
$model->qualificationId = $map['QualificationId'];
|
||||
}
|
||||
|
||||
if (isset($map['Remark'])) {
|
||||
$model->remark = $map['Remark'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
if (isset($map['SignSource'])) {
|
||||
$model->signSource = $map['SignSource'];
|
||||
}
|
||||
|
||||
if (isset($map['SignType'])) {
|
||||
$model->signType = $map['SignType'];
|
||||
}
|
||||
|
||||
if (isset($map['ThirdParty'])) {
|
||||
$model->thirdParty = $map['ThirdParty'];
|
||||
}
|
||||
|
||||
if (isset($map['TrademarkId'])) {
|
||||
$model->trademarkId = $map['TrademarkId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsSignResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsSignResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsSignResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var CreateSmsSignResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateSmsSignResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsSignResponseBody.php
vendored
Normal file
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsSignResponseBody.php
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsSignResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signName;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'orderId' => 'OrderId',
|
||||
'requestId' => 'RequestId',
|
||||
'signName' => 'SignName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->orderId) {
|
||||
$res['OrderId'] = $this->orderId;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['OrderId'])) {
|
||||
$model->orderId = $map['OrderId'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
230
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsSignShrinkRequest.php
vendored
Normal file
230
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsSignShrinkRequest.php
vendored
Normal file
@@ -0,0 +1,230 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsSignShrinkRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $appIcpRecordId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $applySceneContent;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $authorizationLetterId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $moreDataShrink;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $qualificationId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $remark;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signName;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signSource;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $signType;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $thirdParty;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $trademarkId;
|
||||
protected $_name = [
|
||||
'appIcpRecordId' => 'AppIcpRecordId',
|
||||
'applySceneContent' => 'ApplySceneContent',
|
||||
'authorizationLetterId' => 'AuthorizationLetterId',
|
||||
'moreDataShrink' => 'MoreData',
|
||||
'ownerId' => 'OwnerId',
|
||||
'qualificationId' => 'QualificationId',
|
||||
'remark' => 'Remark',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signName' => 'SignName',
|
||||
'signSource' => 'SignSource',
|
||||
'signType' => 'SignType',
|
||||
'thirdParty' => 'ThirdParty',
|
||||
'trademarkId' => 'TrademarkId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->appIcpRecordId) {
|
||||
$res['AppIcpRecordId'] = $this->appIcpRecordId;
|
||||
}
|
||||
|
||||
if (null !== $this->applySceneContent) {
|
||||
$res['ApplySceneContent'] = $this->applySceneContent;
|
||||
}
|
||||
|
||||
if (null !== $this->authorizationLetterId) {
|
||||
$res['AuthorizationLetterId'] = $this->authorizationLetterId;
|
||||
}
|
||||
|
||||
if (null !== $this->moreDataShrink) {
|
||||
$res['MoreData'] = $this->moreDataShrink;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->qualificationId) {
|
||||
$res['QualificationId'] = $this->qualificationId;
|
||||
}
|
||||
|
||||
if (null !== $this->remark) {
|
||||
$res['Remark'] = $this->remark;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
if (null !== $this->signSource) {
|
||||
$res['SignSource'] = $this->signSource;
|
||||
}
|
||||
|
||||
if (null !== $this->signType) {
|
||||
$res['SignType'] = $this->signType;
|
||||
}
|
||||
|
||||
if (null !== $this->thirdParty) {
|
||||
$res['ThirdParty'] = $this->thirdParty;
|
||||
}
|
||||
|
||||
if (null !== $this->trademarkId) {
|
||||
$res['TrademarkId'] = $this->trademarkId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AppIcpRecordId'])) {
|
||||
$model->appIcpRecordId = $map['AppIcpRecordId'];
|
||||
}
|
||||
|
||||
if (isset($map['ApplySceneContent'])) {
|
||||
$model->applySceneContent = $map['ApplySceneContent'];
|
||||
}
|
||||
|
||||
if (isset($map['AuthorizationLetterId'])) {
|
||||
$model->authorizationLetterId = $map['AuthorizationLetterId'];
|
||||
}
|
||||
|
||||
if (isset($map['MoreData'])) {
|
||||
$model->moreDataShrink = $map['MoreData'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['QualificationId'])) {
|
||||
$model->qualificationId = $map['QualificationId'];
|
||||
}
|
||||
|
||||
if (isset($map['Remark'])) {
|
||||
$model->remark = $map['Remark'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
if (isset($map['SignSource'])) {
|
||||
$model->signSource = $map['SignSource'];
|
||||
}
|
||||
|
||||
if (isset($map['SignType'])) {
|
||||
$model->signType = $map['SignType'];
|
||||
}
|
||||
|
||||
if (isset($map['ThirdParty'])) {
|
||||
$model->thirdParty = $map['ThirdParty'];
|
||||
}
|
||||
|
||||
if (isset($map['TrademarkId'])) {
|
||||
$model->trademarkId = $map['TrademarkId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
233
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTemplateRequest.php
vendored
Normal file
233
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTemplateRequest.php
vendored
Normal file
@@ -0,0 +1,233 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsTemplateRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $applySceneContent;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $intlType;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $moreData;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $relatedSignName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $remark;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateContent;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateRule;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $templateType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $trafficDriving;
|
||||
protected $_name = [
|
||||
'applySceneContent' => 'ApplySceneContent',
|
||||
'intlType' => 'IntlType',
|
||||
'moreData' => 'MoreData',
|
||||
'ownerId' => 'OwnerId',
|
||||
'relatedSignName' => 'RelatedSignName',
|
||||
'remark' => 'Remark',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'templateContent' => 'TemplateContent',
|
||||
'templateName' => 'TemplateName',
|
||||
'templateRule' => 'TemplateRule',
|
||||
'templateType' => 'TemplateType',
|
||||
'trafficDriving' => 'TrafficDriving',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->moreData)) {
|
||||
Model::validateArray($this->moreData);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->applySceneContent) {
|
||||
$res['ApplySceneContent'] = $this->applySceneContent;
|
||||
}
|
||||
|
||||
if (null !== $this->intlType) {
|
||||
$res['IntlType'] = $this->intlType;
|
||||
}
|
||||
|
||||
if (null !== $this->moreData) {
|
||||
if (\is_array($this->moreData)) {
|
||||
$res['MoreData'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->moreData as $item1) {
|
||||
$res['MoreData'][$n1] = $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->relatedSignName) {
|
||||
$res['RelatedSignName'] = $this->relatedSignName;
|
||||
}
|
||||
|
||||
if (null !== $this->remark) {
|
||||
$res['Remark'] = $this->remark;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->templateContent) {
|
||||
$res['TemplateContent'] = $this->templateContent;
|
||||
}
|
||||
|
||||
if (null !== $this->templateName) {
|
||||
$res['TemplateName'] = $this->templateName;
|
||||
}
|
||||
|
||||
if (null !== $this->templateRule) {
|
||||
$res['TemplateRule'] = $this->templateRule;
|
||||
}
|
||||
|
||||
if (null !== $this->templateType) {
|
||||
$res['TemplateType'] = $this->templateType;
|
||||
}
|
||||
|
||||
if (null !== $this->trafficDriving) {
|
||||
$res['TrafficDriving'] = $this->trafficDriving;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ApplySceneContent'])) {
|
||||
$model->applySceneContent = $map['ApplySceneContent'];
|
||||
}
|
||||
|
||||
if (isset($map['IntlType'])) {
|
||||
$model->intlType = $map['IntlType'];
|
||||
}
|
||||
|
||||
if (isset($map['MoreData'])) {
|
||||
if (!empty($map['MoreData'])) {
|
||||
$model->moreData = [];
|
||||
$n1 = 0;
|
||||
foreach ($map['MoreData'] as $item1) {
|
||||
$model->moreData[$n1] = $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['RelatedSignName'])) {
|
||||
$model->relatedSignName = $map['RelatedSignName'];
|
||||
}
|
||||
|
||||
if (isset($map['Remark'])) {
|
||||
$model->remark = $map['Remark'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateContent'])) {
|
||||
$model->templateContent = $map['TemplateContent'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateName'])) {
|
||||
$model->templateName = $map['TemplateName'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateRule'])) {
|
||||
$model->templateRule = $map['TemplateRule'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateType'])) {
|
||||
$model->templateType = $map['TemplateType'];
|
||||
}
|
||||
|
||||
if (isset($map['TrafficDriving'])) {
|
||||
$model->trafficDriving = $map['TrafficDriving'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTemplateResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTemplateResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsTemplateResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var CreateSmsTemplateResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateSmsTemplateResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTemplateResponseBody.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTemplateResponseBody.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsTemplateResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $orderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateName;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'orderId' => 'OrderId',
|
||||
'requestId' => 'RequestId',
|
||||
'templateCode' => 'TemplateCode',
|
||||
'templateName' => 'TemplateName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->orderId) {
|
||||
$res['OrderId'] = $this->orderId;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->templateCode) {
|
||||
$res['TemplateCode'] = $this->templateCode;
|
||||
}
|
||||
|
||||
if (null !== $this->templateName) {
|
||||
$res['TemplateName'] = $this->templateName;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['OrderId'])) {
|
||||
$model->orderId = $map['OrderId'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateCode'])) {
|
||||
$model->templateCode = $map['TemplateCode'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateName'])) {
|
||||
$model->templateName = $map['TemplateName'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
216
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTemplateShrinkRequest.php
vendored
Normal file
216
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTemplateShrinkRequest.php
vendored
Normal file
@@ -0,0 +1,216 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsTemplateShrinkRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $applySceneContent;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $intlType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $moreDataShrink;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $relatedSignName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $remark;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateContent;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateRule;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $templateType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $trafficDriving;
|
||||
protected $_name = [
|
||||
'applySceneContent' => 'ApplySceneContent',
|
||||
'intlType' => 'IntlType',
|
||||
'moreDataShrink' => 'MoreData',
|
||||
'ownerId' => 'OwnerId',
|
||||
'relatedSignName' => 'RelatedSignName',
|
||||
'remark' => 'Remark',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'templateContent' => 'TemplateContent',
|
||||
'templateName' => 'TemplateName',
|
||||
'templateRule' => 'TemplateRule',
|
||||
'templateType' => 'TemplateType',
|
||||
'trafficDriving' => 'TrafficDriving',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->applySceneContent) {
|
||||
$res['ApplySceneContent'] = $this->applySceneContent;
|
||||
}
|
||||
|
||||
if (null !== $this->intlType) {
|
||||
$res['IntlType'] = $this->intlType;
|
||||
}
|
||||
|
||||
if (null !== $this->moreDataShrink) {
|
||||
$res['MoreData'] = $this->moreDataShrink;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->relatedSignName) {
|
||||
$res['RelatedSignName'] = $this->relatedSignName;
|
||||
}
|
||||
|
||||
if (null !== $this->remark) {
|
||||
$res['Remark'] = $this->remark;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->templateContent) {
|
||||
$res['TemplateContent'] = $this->templateContent;
|
||||
}
|
||||
|
||||
if (null !== $this->templateName) {
|
||||
$res['TemplateName'] = $this->templateName;
|
||||
}
|
||||
|
||||
if (null !== $this->templateRule) {
|
||||
$res['TemplateRule'] = $this->templateRule;
|
||||
}
|
||||
|
||||
if (null !== $this->templateType) {
|
||||
$res['TemplateType'] = $this->templateType;
|
||||
}
|
||||
|
||||
if (null !== $this->trafficDriving) {
|
||||
$res['TrafficDriving'] = $this->trafficDriving;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ApplySceneContent'])) {
|
||||
$model->applySceneContent = $map['ApplySceneContent'];
|
||||
}
|
||||
|
||||
if (isset($map['IntlType'])) {
|
||||
$model->intlType = $map['IntlType'];
|
||||
}
|
||||
|
||||
if (isset($map['MoreData'])) {
|
||||
$model->moreDataShrink = $map['MoreData'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['RelatedSignName'])) {
|
||||
$model->relatedSignName = $map['RelatedSignName'];
|
||||
}
|
||||
|
||||
if (isset($map['Remark'])) {
|
||||
$model->remark = $map['Remark'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateContent'])) {
|
||||
$model->templateContent = $map['TemplateContent'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateName'])) {
|
||||
$model->templateName = $map['TemplateName'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateRule'])) {
|
||||
$model->templateRule = $map['TemplateRule'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateType'])) {
|
||||
$model->templateType = $map['TemplateType'];
|
||||
}
|
||||
|
||||
if (isset($map['TrafficDriving'])) {
|
||||
$model->trafficDriving = $map['TrafficDriving'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
146
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTrademarkRequest.php
vendored
Normal file
146
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTrademarkRequest.php
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsTrademarkRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $trademarkApplicantName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $trademarkEffExpDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $trademarkName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $trademarkPic;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $trademarkRegistrationNumber;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'trademarkApplicantName' => 'TrademarkApplicantName',
|
||||
'trademarkEffExpDate' => 'TrademarkEffExpDate',
|
||||
'trademarkName' => 'TrademarkName',
|
||||
'trademarkPic' => 'TrademarkPic',
|
||||
'trademarkRegistrationNumber' => 'TrademarkRegistrationNumber',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->trademarkApplicantName) {
|
||||
$res['TrademarkApplicantName'] = $this->trademarkApplicantName;
|
||||
}
|
||||
|
||||
if (null !== $this->trademarkEffExpDate) {
|
||||
$res['TrademarkEffExpDate'] = $this->trademarkEffExpDate;
|
||||
}
|
||||
|
||||
if (null !== $this->trademarkName) {
|
||||
$res['TrademarkName'] = $this->trademarkName;
|
||||
}
|
||||
|
||||
if (null !== $this->trademarkPic) {
|
||||
$res['TrademarkPic'] = $this->trademarkPic;
|
||||
}
|
||||
|
||||
if (null !== $this->trademarkRegistrationNumber) {
|
||||
$res['TrademarkRegistrationNumber'] = $this->trademarkRegistrationNumber;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['TrademarkApplicantName'])) {
|
||||
$model->trademarkApplicantName = $map['TrademarkApplicantName'];
|
||||
}
|
||||
|
||||
if (isset($map['TrademarkEffExpDate'])) {
|
||||
$model->trademarkEffExpDate = $map['TrademarkEffExpDate'];
|
||||
}
|
||||
|
||||
if (isset($map['TrademarkName'])) {
|
||||
$model->trademarkName = $map['TrademarkName'];
|
||||
}
|
||||
|
||||
if (isset($map['TrademarkPic'])) {
|
||||
$model->trademarkPic = $map['TrademarkPic'];
|
||||
}
|
||||
|
||||
if (isset($map['TrademarkRegistrationNumber'])) {
|
||||
$model->trademarkRegistrationNumber = $map['TrademarkRegistrationNumber'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTrademarkResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTrademarkResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsTrademarkResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var CreateSmsTrademarkResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = CreateSmsTrademarkResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTrademarkResponseBody.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/CreateSmsTrademarkResponseBody.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class CreateSmsTrademarkResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = $map['Data'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteExtCodeSignRequest.php
vendored
Normal file
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteExtCodeSignRequest.php
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteExtCodeSignRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $extCode;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $signName;
|
||||
protected $_name = [
|
||||
'extCode' => 'ExtCode',
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signName' => 'SignName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->extCode) {
|
||||
$res['ExtCode'] = $this->extCode;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ExtCode'])) {
|
||||
$model->extCode = $map['ExtCode'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteExtCodeSignResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteExtCodeSignResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteExtCodeSignResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var DeleteExtCodeSignResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = DeleteExtCodeSignResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteExtCodeSignResponseBody.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteExtCodeSignResponseBody.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteExtCodeSignResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = $map['Data'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteShortUrlRequest extends Model
|
||||
{
|
||||
@@ -28,28 +28,32 @@ class DeleteShortUrlRequest extends Model
|
||||
*/
|
||||
public $sourceUrl;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->sourceUrl) {
|
||||
$res['SourceUrl'] = $this->sourceUrl;
|
||||
}
|
||||
@@ -57,23 +61,26 @@ class DeleteShortUrlRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteShortUrlRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SourceUrl'])) {
|
||||
$model->sourceUrl = $map['SourceUrl'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteShortUrlResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class DeleteShortUrlResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteShortUrlResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = DeleteShortUrlResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteShortUrlResponseBody extends Model
|
||||
{
|
||||
@@ -23,24 +23,27 @@ class DeleteShortUrlResponseBody extends Model
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
@@ -48,20 +51,22 @@ class DeleteShortUrlResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteShortUrlResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsQualificationRequest.php
vendored
Normal file
104
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsQualificationRequest.php
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsQualificationRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $orderId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $qualificationGroupId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
protected $_name = [
|
||||
'orderId' => 'OrderId',
|
||||
'ownerId' => 'OwnerId',
|
||||
'qualificationGroupId' => 'QualificationGroupId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->orderId) {
|
||||
$res['OrderId'] = $this->orderId;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->qualificationGroupId) {
|
||||
$res['QualificationGroupId'] = $this->qualificationGroupId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OrderId'])) {
|
||||
$model->orderId = $map['OrderId'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['QualificationGroupId'])) {
|
||||
$model->qualificationGroupId = $map['QualificationGroupId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsQualificationResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsQualificationResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsQualificationResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var DeleteSmsQualificationResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = DeleteSmsQualificationResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsQualificationResponseBody.php
vendored
Normal file
118
vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsQualificationResponseBody.php
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsQualificationResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = $map['Data'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsSignRequest extends Model
|
||||
{
|
||||
@@ -28,28 +28,32 @@ class DeleteSmsSignRequest extends Model
|
||||
*/
|
||||
public $signName;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signName' => 'SignName',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'signName' => 'SignName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
@@ -57,23 +61,26 @@ class DeleteSmsSignRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteSmsSignRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsSignResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class DeleteSmsSignResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteSmsSignResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = DeleteSmsSignResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsSignResponseBody extends Model
|
||||
{
|
||||
@@ -28,28 +28,32 @@ class DeleteSmsSignResponseBody extends Model
|
||||
*/
|
||||
public $signName;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'signName' => 'SignName',
|
||||
'signName' => 'SignName',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->signName) {
|
||||
$res['SignName'] = $this->signName;
|
||||
}
|
||||
@@ -57,23 +61,26 @@ class DeleteSmsSignResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteSmsSignResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['SignName'])) {
|
||||
$model->signName = $map['SignName'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsTemplateRequest extends Model
|
||||
{
|
||||
@@ -28,28 +28,32 @@ class DeleteSmsTemplateRequest extends Model
|
||||
*/
|
||||
public $templateCode;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'templateCode' => 'TemplateCode',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'templateCode' => 'TemplateCode',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->templateCode) {
|
||||
$res['TemplateCode'] = $this->templateCode;
|
||||
}
|
||||
@@ -57,23 +61,26 @@ class DeleteSmsTemplateRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteSmsTemplateRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateCode'])) {
|
||||
$model->templateCode = $map['TemplateCode'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsTemplateResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class DeleteSmsTemplateResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteSmsTemplateResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = DeleteSmsTemplateResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class DeleteSmsTemplateResponseBody extends Model
|
||||
{
|
||||
@@ -28,28 +28,32 @@ class DeleteSmsTemplateResponseBody extends Model
|
||||
*/
|
||||
public $templateCode;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'templateCode' => 'TemplateCode',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->templateCode) {
|
||||
$res['TemplateCode'] = $this->templateCode;
|
||||
}
|
||||
@@ -57,23 +61,26 @@ class DeleteSmsTemplateResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteSmsTemplateResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateCode'])) {
|
||||
$model->templateCode = $map['TemplateCode'];
|
||||
}
|
||||
|
||||
174
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetCardSmsDetailsRequest.php
vendored
Normal file
174
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetCardSmsDetailsRequest.php
vendored
Normal file
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetCardSmsDetailsRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $bizCardId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $bizDigitId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $bizSmsId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $currentPage;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $pageSize;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $phoneNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sendDate;
|
||||
protected $_name = [
|
||||
'bizCardId' => 'BizCardId',
|
||||
'bizDigitId' => 'BizDigitId',
|
||||
'bizSmsId' => 'BizSmsId',
|
||||
'currentPage' => 'CurrentPage',
|
||||
'ownerId' => 'OwnerId',
|
||||
'pageSize' => 'PageSize',
|
||||
'phoneNumber' => 'PhoneNumber',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'sendDate' => 'SendDate',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->bizCardId) {
|
||||
$res['BizCardId'] = $this->bizCardId;
|
||||
}
|
||||
|
||||
if (null !== $this->bizDigitId) {
|
||||
$res['BizDigitId'] = $this->bizDigitId;
|
||||
}
|
||||
|
||||
if (null !== $this->bizSmsId) {
|
||||
$res['BizSmsId'] = $this->bizSmsId;
|
||||
}
|
||||
|
||||
if (null !== $this->currentPage) {
|
||||
$res['CurrentPage'] = $this->currentPage;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->pageSize) {
|
||||
$res['PageSize'] = $this->pageSize;
|
||||
}
|
||||
|
||||
if (null !== $this->phoneNumber) {
|
||||
$res['PhoneNumber'] = $this->phoneNumber;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
if (null !== $this->sendDate) {
|
||||
$res['SendDate'] = $this->sendDate;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['BizCardId'])) {
|
||||
$model->bizCardId = $map['BizCardId'];
|
||||
}
|
||||
|
||||
if (isset($map['BizDigitId'])) {
|
||||
$model->bizDigitId = $map['BizDigitId'];
|
||||
}
|
||||
|
||||
if (isset($map['BizSmsId'])) {
|
||||
$model->bizSmsId = $map['BizSmsId'];
|
||||
}
|
||||
|
||||
if (isset($map['CurrentPage'])) {
|
||||
$model->currentPage = $map['CurrentPage'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['PageSize'])) {
|
||||
$model->pageSize = $map['PageSize'];
|
||||
}
|
||||
|
||||
if (isset($map['PhoneNumber'])) {
|
||||
$model->phoneNumber = $map['PhoneNumber'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['SendDate'])) {
|
||||
$model->sendDate = $map['SendDate'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetCardSmsDetailsResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetCardSmsDetailsResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetCardSmsDetailsResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var GetCardSmsDetailsResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = GetCardSmsDetailsResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
108
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetCardSmsDetailsResponseBody.php
vendored
Normal file
108
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetCardSmsDetailsResponseBody.php
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsDetailsResponseBody\cardSendDetailDTO;
|
||||
|
||||
class GetCardSmsDetailsResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $accessDeniedDetail;
|
||||
|
||||
/**
|
||||
* @var cardSendDetailDTO
|
||||
*/
|
||||
public $cardSendDetailDTO;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'accessDeniedDetail' => 'AccessDeniedDetail',
|
||||
'cardSendDetailDTO' => 'CardSendDetailDTO',
|
||||
'code' => 'Code',
|
||||
'message' => 'Message',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (null !== $this->cardSendDetailDTO) {
|
||||
$this->cardSendDetailDTO->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessDeniedDetail) {
|
||||
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
|
||||
}
|
||||
|
||||
if (null !== $this->cardSendDetailDTO) {
|
||||
$res['CardSendDetailDTO'] = null !== $this->cardSendDetailDTO ? $this->cardSendDetailDTO->toArray($noStream) : $this->cardSendDetailDTO;
|
||||
}
|
||||
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessDeniedDetail'])) {
|
||||
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
|
||||
}
|
||||
|
||||
if (isset($map['CardSendDetailDTO'])) {
|
||||
$model->cardSendDetailDTO = cardSendDetailDTO::fromMap($map['CardSendDetailDTO']);
|
||||
}
|
||||
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
108
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetCardSmsDetailsResponseBody/cardSendDetailDTO.php
vendored
Normal file
108
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetCardSmsDetailsResponseBody/cardSendDetailDTO.php
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsDetailsResponseBody;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsDetailsResponseBody\cardSendDetailDTO\records;
|
||||
|
||||
class cardSendDetailDTO extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $currentPage;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $pageSize;
|
||||
|
||||
/**
|
||||
* @var records[]
|
||||
*/
|
||||
public $records;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $totalCount;
|
||||
protected $_name = [
|
||||
'currentPage' => 'CurrentPage',
|
||||
'pageSize' => 'PageSize',
|
||||
'records' => 'Records',
|
||||
'totalCount' => 'TotalCount',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->records)) {
|
||||
Model::validateArray($this->records);
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->currentPage) {
|
||||
$res['CurrentPage'] = $this->currentPage;
|
||||
}
|
||||
|
||||
if (null !== $this->pageSize) {
|
||||
$res['PageSize'] = $this->pageSize;
|
||||
}
|
||||
|
||||
if (null !== $this->records) {
|
||||
if (\is_array($this->records)) {
|
||||
$res['Records'] = [];
|
||||
$n1 = 0;
|
||||
foreach ($this->records as $item1) {
|
||||
$res['Records'][$n1] = null !== $item1 ? $item1->toArray($noStream) : $item1;
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->totalCount) {
|
||||
$res['TotalCount'] = $this->totalCount;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['CurrentPage'])) {
|
||||
$model->currentPage = $map['CurrentPage'];
|
||||
}
|
||||
|
||||
if (isset($map['PageSize'])) {
|
||||
$model->pageSize = $map['PageSize'];
|
||||
}
|
||||
|
||||
if (isset($map['Records'])) {
|
||||
if (!empty($map['Records'])) {
|
||||
$model->records = [];
|
||||
$n1 = 0;
|
||||
foreach ($map['Records'] as $item1) {
|
||||
$model->records[$n1] = records::fromMap($item1);
|
||||
++$n1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['TotalCount'])) {
|
||||
$model->totalCount = $map['TotalCount'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsDetailsResponseBody\cardSendDetailDTO;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class records extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $errCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $outId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $phoneNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $receiveDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $receiveType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $renderDate;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $renderStatus;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sendDate;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $sendStatus;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $smsContent;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $templateCode;
|
||||
protected $_name = [
|
||||
'errCode' => 'ErrCode',
|
||||
'outId' => 'OutId',
|
||||
'phoneNumber' => 'PhoneNumber',
|
||||
'receiveDate' => 'ReceiveDate',
|
||||
'receiveType' => 'ReceiveType',
|
||||
'renderDate' => 'RenderDate',
|
||||
'renderStatus' => 'RenderStatus',
|
||||
'sendDate' => 'SendDate',
|
||||
'sendStatus' => 'SendStatus',
|
||||
'smsContent' => 'SmsContent',
|
||||
'templateCode' => 'TemplateCode',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->errCode) {
|
||||
$res['ErrCode'] = $this->errCode;
|
||||
}
|
||||
|
||||
if (null !== $this->outId) {
|
||||
$res['OutId'] = $this->outId;
|
||||
}
|
||||
|
||||
if (null !== $this->phoneNumber) {
|
||||
$res['PhoneNumber'] = $this->phoneNumber;
|
||||
}
|
||||
|
||||
if (null !== $this->receiveDate) {
|
||||
$res['ReceiveDate'] = $this->receiveDate;
|
||||
}
|
||||
|
||||
if (null !== $this->receiveType) {
|
||||
$res['ReceiveType'] = $this->receiveType;
|
||||
}
|
||||
|
||||
if (null !== $this->renderDate) {
|
||||
$res['RenderDate'] = $this->renderDate;
|
||||
}
|
||||
|
||||
if (null !== $this->renderStatus) {
|
||||
$res['RenderStatus'] = $this->renderStatus;
|
||||
}
|
||||
|
||||
if (null !== $this->sendDate) {
|
||||
$res['SendDate'] = $this->sendDate;
|
||||
}
|
||||
|
||||
if (null !== $this->sendStatus) {
|
||||
$res['SendStatus'] = $this->sendStatus;
|
||||
}
|
||||
|
||||
if (null !== $this->smsContent) {
|
||||
$res['SmsContent'] = $this->smsContent;
|
||||
}
|
||||
|
||||
if (null !== $this->templateCode) {
|
||||
$res['TemplateCode'] = $this->templateCode;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ErrCode'])) {
|
||||
$model->errCode = $map['ErrCode'];
|
||||
}
|
||||
|
||||
if (isset($map['OutId'])) {
|
||||
$model->outId = $map['OutId'];
|
||||
}
|
||||
|
||||
if (isset($map['PhoneNumber'])) {
|
||||
$model->phoneNumber = $map['PhoneNumber'];
|
||||
}
|
||||
|
||||
if (isset($map['ReceiveDate'])) {
|
||||
$model->receiveDate = $map['ReceiveDate'];
|
||||
}
|
||||
|
||||
if (isset($map['ReceiveType'])) {
|
||||
$model->receiveType = $map['ReceiveType'];
|
||||
}
|
||||
|
||||
if (isset($map['RenderDate'])) {
|
||||
$model->renderDate = $map['RenderDate'];
|
||||
}
|
||||
|
||||
if (isset($map['RenderStatus'])) {
|
||||
$model->renderStatus = $map['RenderStatus'];
|
||||
}
|
||||
|
||||
if (isset($map['SendDate'])) {
|
||||
$model->sendDate = $map['SendDate'];
|
||||
}
|
||||
|
||||
if (isset($map['SendStatus'])) {
|
||||
$model->sendStatus = $map['SendStatus'];
|
||||
}
|
||||
|
||||
if (isset($map['SmsContent'])) {
|
||||
$model->smsContent = $map['SmsContent'];
|
||||
}
|
||||
|
||||
if (isset($map['TemplateCode'])) {
|
||||
$model->templateCode = $map['TemplateCode'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetCardSmsLinkRequest extends Model
|
||||
{
|
||||
@@ -53,48 +53,57 @@ class GetCardSmsLinkRequest extends Model
|
||||
*/
|
||||
public $signNameJson;
|
||||
protected $_name = [
|
||||
'cardCodeType' => 'CardCodeType',
|
||||
'cardLinkType' => 'CardLinkType',
|
||||
'cardTemplateCode' => 'CardTemplateCode',
|
||||
'cardCodeType' => 'CardCodeType',
|
||||
'cardLinkType' => 'CardLinkType',
|
||||
'cardTemplateCode' => 'CardTemplateCode',
|
||||
'cardTemplateParamJson' => 'CardTemplateParamJson',
|
||||
'customShortCodeJson' => 'CustomShortCodeJson',
|
||||
'domain' => 'Domain',
|
||||
'outId' => 'OutId',
|
||||
'phoneNumberJson' => 'PhoneNumberJson',
|
||||
'signNameJson' => 'SignNameJson',
|
||||
'customShortCodeJson' => 'CustomShortCodeJson',
|
||||
'domain' => 'Domain',
|
||||
'outId' => 'OutId',
|
||||
'phoneNumberJson' => 'PhoneNumberJson',
|
||||
'signNameJson' => 'SignNameJson',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->cardCodeType) {
|
||||
$res['CardCodeType'] = $this->cardCodeType;
|
||||
}
|
||||
|
||||
if (null !== $this->cardLinkType) {
|
||||
$res['CardLinkType'] = $this->cardLinkType;
|
||||
}
|
||||
|
||||
if (null !== $this->cardTemplateCode) {
|
||||
$res['CardTemplateCode'] = $this->cardTemplateCode;
|
||||
}
|
||||
|
||||
if (null !== $this->cardTemplateParamJson) {
|
||||
$res['CardTemplateParamJson'] = $this->cardTemplateParamJson;
|
||||
}
|
||||
|
||||
if (null !== $this->customShortCodeJson) {
|
||||
$res['CustomShortCodeJson'] = $this->customShortCodeJson;
|
||||
}
|
||||
|
||||
if (null !== $this->domain) {
|
||||
$res['Domain'] = $this->domain;
|
||||
}
|
||||
|
||||
if (null !== $this->outId) {
|
||||
$res['OutId'] = $this->outId;
|
||||
}
|
||||
|
||||
if (null !== $this->phoneNumberJson) {
|
||||
$res['PhoneNumberJson'] = $this->phoneNumberJson;
|
||||
}
|
||||
|
||||
if (null !== $this->signNameJson) {
|
||||
$res['SignNameJson'] = $this->signNameJson;
|
||||
}
|
||||
@@ -102,38 +111,46 @@ class GetCardSmsLinkRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetCardSmsLinkRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['CardCodeType'])) {
|
||||
$model->cardCodeType = $map['CardCodeType'];
|
||||
}
|
||||
|
||||
if (isset($map['CardLinkType'])) {
|
||||
$model->cardLinkType = $map['CardLinkType'];
|
||||
}
|
||||
|
||||
if (isset($map['CardTemplateCode'])) {
|
||||
$model->cardTemplateCode = $map['CardTemplateCode'];
|
||||
}
|
||||
|
||||
if (isset($map['CardTemplateParamJson'])) {
|
||||
$model->cardTemplateParamJson = $map['CardTemplateParamJson'];
|
||||
}
|
||||
|
||||
if (isset($map['CustomShortCodeJson'])) {
|
||||
$model->customShortCodeJson = $map['CustomShortCodeJson'];
|
||||
}
|
||||
|
||||
if (isset($map['Domain'])) {
|
||||
$model->domain = $map['Domain'];
|
||||
}
|
||||
|
||||
if (isset($map['OutId'])) {
|
||||
$model->outId = $map['OutId'];
|
||||
}
|
||||
|
||||
if (isset($map['PhoneNumberJson'])) {
|
||||
$model->phoneNumberJson = $map['PhoneNumberJson'];
|
||||
}
|
||||
|
||||
if (isset($map['SignNameJson'])) {
|
||||
$model->signNameJson = $map['SignNameJson'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetCardSmsLinkResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class GetCardSmsLinkResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetCardSmsLinkResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = GetCardSmsLinkResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsLinkResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetCardSmsLinkResponseBody extends Model
|
||||
{
|
||||
@@ -29,28 +29,35 @@ class GetCardSmsLinkResponseBody extends Model
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (null !== $this->data) {
|
||||
$this->data->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
@@ -58,23 +65,26 @@ class GetCardSmsLinkResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetCardSmsLinkResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsLinkResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
@@ -34,31 +34,36 @@ class data extends Model
|
||||
public $notMediaMobiles;
|
||||
protected $_name = [
|
||||
'cardPhoneNumbers' => 'CardPhoneNumbers',
|
||||
'cardSignNames' => 'CardSignNames',
|
||||
'cardSmsLinks' => 'CardSmsLinks',
|
||||
'cardTmpState' => 'CardTmpState',
|
||||
'notMediaMobiles' => 'NotMediaMobiles',
|
||||
'cardSignNames' => 'CardSignNames',
|
||||
'cardSmsLinks' => 'CardSmsLinks',
|
||||
'cardTmpState' => 'CardTmpState',
|
||||
'notMediaMobiles' => 'NotMediaMobiles',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->cardPhoneNumbers) {
|
||||
$res['CardPhoneNumbers'] = $this->cardPhoneNumbers;
|
||||
}
|
||||
|
||||
if (null !== $this->cardSignNames) {
|
||||
$res['CardSignNames'] = $this->cardSignNames;
|
||||
}
|
||||
|
||||
if (null !== $this->cardSmsLinks) {
|
||||
$res['CardSmsLinks'] = $this->cardSmsLinks;
|
||||
}
|
||||
|
||||
if (null !== $this->cardTmpState) {
|
||||
$res['CardTmpState'] = $this->cardTmpState;
|
||||
}
|
||||
|
||||
if (null !== $this->notMediaMobiles) {
|
||||
$res['NotMediaMobiles'] = $this->notMediaMobiles;
|
||||
}
|
||||
@@ -66,26 +71,30 @@ class data extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['CardPhoneNumbers'])) {
|
||||
$model->cardPhoneNumbers = $map['CardPhoneNumbers'];
|
||||
}
|
||||
|
||||
if (isset($map['CardSignNames'])) {
|
||||
$model->cardSignNames = $map['CardSignNames'];
|
||||
}
|
||||
|
||||
if (isset($map['CardSmsLinks'])) {
|
||||
$model->cardSmsLinks = $map['CardSmsLinks'];
|
||||
}
|
||||
|
||||
if (isset($map['CardTmpState'])) {
|
||||
$model->cardTmpState = $map['CardTmpState'];
|
||||
}
|
||||
|
||||
if (isset($map['NotMediaMobiles'])) {
|
||||
$model->notMediaMobiles = $map['NotMediaMobiles'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetMediaResourceIdRequest extends Model
|
||||
{
|
||||
@@ -33,32 +33,37 @@ class GetMediaResourceIdRequest extends Model
|
||||
*/
|
||||
public $resourceType;
|
||||
protected $_name = [
|
||||
'extendInfo' => 'ExtendInfo',
|
||||
'fileSize' => 'FileSize',
|
||||
'memo' => 'Memo',
|
||||
'ossKey' => 'OssKey',
|
||||
'extendInfo' => 'ExtendInfo',
|
||||
'fileSize' => 'FileSize',
|
||||
'memo' => 'Memo',
|
||||
'ossKey' => 'OssKey',
|
||||
'resourceType' => 'ResourceType',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->extendInfo) {
|
||||
$res['ExtendInfo'] = $this->extendInfo;
|
||||
}
|
||||
|
||||
if (null !== $this->fileSize) {
|
||||
$res['FileSize'] = $this->fileSize;
|
||||
}
|
||||
|
||||
if (null !== $this->memo) {
|
||||
$res['Memo'] = $this->memo;
|
||||
}
|
||||
|
||||
if (null !== $this->ossKey) {
|
||||
$res['OssKey'] = $this->ossKey;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceType) {
|
||||
$res['ResourceType'] = $this->resourceType;
|
||||
}
|
||||
@@ -66,26 +71,30 @@ class GetMediaResourceIdRequest extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetMediaResourceIdRequest
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ExtendInfo'])) {
|
||||
$model->extendInfo = $map['ExtendInfo'];
|
||||
}
|
||||
|
||||
if (isset($map['FileSize'])) {
|
||||
$model->fileSize = $map['FileSize'];
|
||||
}
|
||||
|
||||
if (isset($map['Memo'])) {
|
||||
$model->memo = $map['Memo'];
|
||||
}
|
||||
|
||||
if (isset($map['OssKey'])) {
|
||||
$model->ossKey = $map['OssKey'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceType'])) {
|
||||
$model->resourceType = $map['ResourceType'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetMediaResourceIdResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class GetMediaResourceIdResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetMediaResourceIdResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = GetMediaResourceIdResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetMediaResourceIdResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetMediaResourceIdResponseBody extends Model
|
||||
{
|
||||
@@ -29,28 +29,35 @@ class GetMediaResourceIdResponseBody extends Model
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (null !== $this->data) {
|
||||
$this->data->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
@@ -58,23 +65,26 @@ class GetMediaResourceIdResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetMediaResourceIdResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
@@ -4,25 +4,36 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetMediaResourceIdResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resUrlDownload;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceId;
|
||||
protected $_name = [
|
||||
'resUrlDownload' => 'ResUrlDownload',
|
||||
'resourceId' => 'ResourceId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->resUrlDownload) {
|
||||
$res['ResUrlDownload'] = $this->resUrlDownload;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceId) {
|
||||
$res['ResourceId'] = $this->resourceId;
|
||||
}
|
||||
@@ -30,14 +41,18 @@ class data extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ResUrlDownload'])) {
|
||||
$model->resUrlDownload = $map['ResUrlDownload'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceId'])) {
|
||||
$model->resourceId = $map['ResourceId'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetOSSInfoForCardTemplateResponse extends Model
|
||||
{
|
||||
@@ -23,48 +23,66 @@ class GetOSSInfoForCardTemplateResponse extends Model
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetOSSInfoForCardTemplateResponse
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = GetOSSInfoForCardTemplateResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetOSSInfoForCardTemplateResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetOSSInfoForCardTemplateResponseBody extends Model
|
||||
{
|
||||
@@ -29,28 +29,35 @@ class GetOSSInfoForCardTemplateResponseBody extends Model
|
||||
*/
|
||||
public $success;
|
||||
protected $_name = [
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'code' => 'Code',
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
'success' => 'Success',
|
||||
'success' => 'Success',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (null !== $this->data) {
|
||||
$this->data->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
|
||||
}
|
||||
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
if (null !== $this->success) {
|
||||
$res['Success'] = $this->success;
|
||||
}
|
||||
@@ -58,23 +65,26 @@ class GetOSSInfoForCardTemplateResponseBody extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetOSSInfoForCardTemplateResponseBody
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
if (isset($map['Success'])) {
|
||||
$model->success = $map['Success'];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetOSSInfoForCardTemplateResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
@@ -49,43 +49,51 @@ class data extends Model
|
||||
public $startPath;
|
||||
protected $_name = [
|
||||
'accessKeyId' => 'AccessKeyId',
|
||||
'aliUid' => 'AliUid',
|
||||
'bucket' => 'Bucket',
|
||||
'expireTime' => 'ExpireTime',
|
||||
'host' => 'Host',
|
||||
'policy' => 'Policy',
|
||||
'signature' => 'Signature',
|
||||
'startPath' => 'StartPath',
|
||||
'aliUid' => 'AliUid',
|
||||
'bucket' => 'Bucket',
|
||||
'expireTime' => 'ExpireTime',
|
||||
'host' => 'Host',
|
||||
'policy' => 'Policy',
|
||||
'signature' => 'Signature',
|
||||
'startPath' => 'StartPath',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->accessKeyId) {
|
||||
$res['AccessKeyId'] = $this->accessKeyId;
|
||||
}
|
||||
|
||||
if (null !== $this->aliUid) {
|
||||
$res['AliUid'] = $this->aliUid;
|
||||
}
|
||||
|
||||
if (null !== $this->bucket) {
|
||||
$res['Bucket'] = $this->bucket;
|
||||
}
|
||||
|
||||
if (null !== $this->expireTime) {
|
||||
$res['ExpireTime'] = $this->expireTime;
|
||||
}
|
||||
|
||||
if (null !== $this->host) {
|
||||
$res['Host'] = $this->host;
|
||||
}
|
||||
|
||||
if (null !== $this->policy) {
|
||||
$res['Policy'] = $this->policy;
|
||||
}
|
||||
|
||||
if (null !== $this->signature) {
|
||||
$res['Signature'] = $this->signature;
|
||||
}
|
||||
|
||||
if (null !== $this->startPath) {
|
||||
$res['StartPath'] = $this->startPath;
|
||||
}
|
||||
@@ -93,35 +101,42 @@ class data extends Model
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['AccessKeyId'])) {
|
||||
$model->accessKeyId = $map['AccessKeyId'];
|
||||
}
|
||||
|
||||
if (isset($map['AliUid'])) {
|
||||
$model->aliUid = $map['AliUid'];
|
||||
}
|
||||
|
||||
if (isset($map['Bucket'])) {
|
||||
$model->bucket = $map['Bucket'];
|
||||
}
|
||||
|
||||
if (isset($map['ExpireTime'])) {
|
||||
$model->expireTime = $map['ExpireTime'];
|
||||
}
|
||||
|
||||
if (isset($map['Host'])) {
|
||||
$model->host = $map['Host'];
|
||||
}
|
||||
|
||||
if (isset($map['Policy'])) {
|
||||
$model->policy = $map['Policy'];
|
||||
}
|
||||
|
||||
if (isset($map['Signature'])) {
|
||||
$model->signature = $map['Signature'];
|
||||
}
|
||||
|
||||
if (isset($map['StartPath'])) {
|
||||
$model->startPath = $map['StartPath'];
|
||||
}
|
||||
|
||||
90
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetOSSInfoForUploadFileRequest.php
vendored
Normal file
90
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetOSSInfoForUploadFileRequest.php
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetOSSInfoForUploadFileRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $bizType;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
protected $_name = [
|
||||
'bizType' => 'BizType',
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->bizType) {
|
||||
$res['BizType'] = $this->bizType;
|
||||
}
|
||||
|
||||
if (null !== $this->ownerId) {
|
||||
$res['OwnerId'] = $this->ownerId;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerAccount) {
|
||||
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||||
}
|
||||
|
||||
if (null !== $this->resourceOwnerId) {
|
||||
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['BizType'])) {
|
||||
$model->bizType = $map['BizType'];
|
||||
}
|
||||
|
||||
if (isset($map['OwnerId'])) {
|
||||
$model->ownerId = $map['OwnerId'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerAccount'])) {
|
||||
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||||
}
|
||||
|
||||
if (isset($map['ResourceOwnerId'])) {
|
||||
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetOSSInfoForUploadFileResponse.php
vendored
Normal file
92
vendor/alibabacloud/dysmsapi-20170525/src/Models/GetOSSInfoForUploadFileResponse.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Dara\Model;
|
||||
|
||||
class GetOSSInfoForUploadFileResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var GetOSSInfoForUploadFileResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
if (\is_array($this->headers)) {
|
||||
Model::validateArray($this->headers);
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$this->body->validate();
|
||||
}
|
||||
parent::validate();
|
||||
}
|
||||
|
||||
public function toArray($noStream = false)
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
if (\is_array($this->headers)) {
|
||||
$res['headers'] = [];
|
||||
foreach ($this->headers as $key1 => $value1) {
|
||||
$res['headers'][$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function toMap($noStream = false)
|
||||
{
|
||||
return $this->toArray($noStream);
|
||||
}
|
||||
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
if (!empty($map['headers'])) {
|
||||
$model->headers = [];
|
||||
foreach ($map['headers'] as $key1 => $value1) {
|
||||
$model->headers[$key1] = $value1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
|
||||
if (isset($map['body'])) {
|
||||
$model->body = GetOSSInfoForUploadFileResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user