diff --git a/CHANGELOG b/CHANGELOG index fa2e4b827..f2c3df1ed 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-08-13 Version 1.36.85 +- Supported for openapi new version. + 2019-08-12 Version 1.36.84 - Support Defect Face API. diff --git a/VERSION b/VERSION index 784979895..44fcee43e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.84 \ No newline at end of file +1.36.85 \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiExport.h b/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiExport.h new file mode 100644 index 000000000..e621a9583 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_DYPNSAPIEXPORT_H_ +#define ALIBABACLOUD_DYPNSAPI_DYPNSAPIEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_DYPNSAPI_LIBRARY) +# define ALIBABACLOUD_DYPNSAPI_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_DYPNSAPI_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_DYPNSAPI_EXPORT +#endif + +#endif // !ALIBABACLOUD_DYPNSAPI_DYPNSAPIEXPORT_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h new file mode 100644 index 000000000..f57bc864d --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT CreateVerifySchemeRequest : public RpcServiceRequest + { + + public: + CreateVerifySchemeRequest(); + ~CreateVerifySchemeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPackName()const; + void setPackName(const std::string& packName); + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getSchemeName()const; + void setSchemeName(const std::string& schemeName); + std::string getBundleId()const; + void setBundleId(const std::string& bundleId); + std::string getOsType()const; + void setOsType(const std::string& osType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPackSign()const; + void setPackSign(const std::string& packSign); + + private: + long resourceOwnerId_; + std::string packName_; + std::string appName_; + std::string resourceOwnerAccount_; + std::string schemeName_; + std::string bundleId_; + std::string osType_; + long ownerId_; + std::string accessKeyId_; + std::string packSign_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h new file mode 100644 index 000000000..112fe13c8 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMERESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT CreateVerifySchemeResult : public ServiceResult + { + public: + struct GateVerifySchemeDTO + { + std::string schemeCode; + }; + + + CreateVerifySchemeResult(); + explicit CreateVerifySchemeResult(const std::string &payload); + ~CreateVerifySchemeResult(); + std::string getMessage()const; + GateVerifySchemeDTO getGateVerifySchemeDTO()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + GateVerifySchemeDTO gateVerifySchemeDTO_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMERESULT_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h new file mode 100644 index 000000000..b31721890 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT GetMobileRequest : public RpcServiceRequest + { + + public: + GetMobileRequest(); + ~GetMobileRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getAccessToken()const; + void setAccessToken(const std::string& accessToken); + std::string getOutId()const; + void setOutId(const std::string& outId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string accessToken_; + std::string outId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileResult.h new file mode 100644 index 000000000..c0b009095 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILERESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT GetMobileResult : public ServiceResult + { + public: + struct GetMobileResultDTO + { + std::string mobile; + }; + + + GetMobileResult(); + explicit GetMobileResult(const std::string &payload); + ~GetMobileResult(); + std::string getMessage()const; + std::string getCode()const; + GetMobileResultDTO getGetMobileResultDTO()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + GetMobileResultDTO getMobileResultDTO_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILERESULT_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h new file mode 100644 index 000000000..c97c0c5f5 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyRequest : public RpcServiceRequest + { + + public: + TwiceTelVerifyRequest(); + ~TwiceTelVerifyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getPhoneNumber()const; + void setPhoneNumber(const std::string& phoneNumber); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSince()const; + void setSince(const std::string& since); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string phoneNumber_; + long ownerId_; + std::string accessKeyId_; + std::string since_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h new file mode 100644 index 000000000..2b7632543 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/TwiceTelVerifyResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyResult : public ServiceResult + { + public: + struct Result + { + std::string carrier; + int verifyResult; + }; + + + TwiceTelVerifyResult(); + explicit TwiceTelVerifyResult(const std::string &payload); + ~TwiceTelVerifyResult(); + std::string getMessage()const; + TwiceTelVerifyResult getTwiceTelVerifyResult()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + TwiceTelVerifyResult twiceTelVerifyResult_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h new file mode 100644 index 000000000..de3b7893e --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyMobileRequest : public RpcServiceRequest + { + + public: + VerifyMobileRequest(); + ~VerifyMobileRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessCode()const; + void setAccessCode(const std::string& accessCode); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getPhoneNumber()const; + void setPhoneNumber(const std::string& phoneNumber); + std::string getOutId()const; + void setOutId(const std::string& outId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accessCode_; + std::string resourceOwnerAccount_; + std::string phoneNumber_; + std::string outId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileResult.h new file mode 100644 index 000000000..d96f79439 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILERESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyMobileResult : public ServiceResult + { + public: + struct GateVerifyResultDTO + { + std::string verifyResult; + std::string verifyId; + }; + + + VerifyMobileResult(); + explicit VerifyMobileResult(const std::string &payload); + ~VerifyMobileResult(); + GateVerifyResultDTO getGateVerifyResultDTO()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + GateVerifyResultDTO gateVerifyResultDTO_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILERESULT_H_ \ No newline at end of file diff --git a/dypnsapi/src/model/CreateVerifySchemeRequest.cc b/dypnsapi/src/model/CreateVerifySchemeRequest.cc new file mode 100644 index 000000000..2110ce8dc --- /dev/null +++ b/dypnsapi/src/model/CreateVerifySchemeRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::CreateVerifySchemeRequest; + +CreateVerifySchemeRequest::CreateVerifySchemeRequest() : + RpcServiceRequest("dypnsapi", "2017-05-25", "CreateVerifyScheme") +{} + +CreateVerifySchemeRequest::~CreateVerifySchemeRequest() +{} + +long CreateVerifySchemeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVerifySchemeRequest::getPackName()const +{ + return packName_; +} + +void CreateVerifySchemeRequest::setPackName(const std::string& packName) +{ + packName_ = packName; + setCoreParameter("PackName", packName); +} + +std::string CreateVerifySchemeRequest::getAppName()const +{ + return appName_; +} + +void CreateVerifySchemeRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setCoreParameter("AppName", appName); +} + +std::string CreateVerifySchemeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVerifySchemeRequest::getSchemeName()const +{ + return schemeName_; +} + +void CreateVerifySchemeRequest::setSchemeName(const std::string& schemeName) +{ + schemeName_ = schemeName; + setCoreParameter("SchemeName", schemeName); +} + +std::string CreateVerifySchemeRequest::getBundleId()const +{ + return bundleId_; +} + +void CreateVerifySchemeRequest::setBundleId(const std::string& bundleId) +{ + bundleId_ = bundleId; + setCoreParameter("BundleId", bundleId); +} + +std::string CreateVerifySchemeRequest::getOsType()const +{ + return osType_; +} + +void CreateVerifySchemeRequest::setOsType(const std::string& osType) +{ + osType_ = osType; + setCoreParameter("OsType", osType); +} + +long CreateVerifySchemeRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVerifySchemeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateVerifySchemeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateVerifySchemeRequest::getPackSign()const +{ + return packSign_; +} + +void CreateVerifySchemeRequest::setPackSign(const std::string& packSign) +{ + packSign_ = packSign; + setCoreParameter("PackSign", packSign); +} + diff --git a/dypnsapi/src/model/CreateVerifySchemeResult.cc b/dypnsapi/src/model/CreateVerifySchemeResult.cc new file mode 100644 index 000000000..a70de99b9 --- /dev/null +++ b/dypnsapi/src/model/CreateVerifySchemeResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dypnsapi; +using namespace AlibabaCloud::Dypnsapi::Model; + +CreateVerifySchemeResult::CreateVerifySchemeResult() : + ServiceResult() +{} + +CreateVerifySchemeResult::CreateVerifySchemeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVerifySchemeResult::~CreateVerifySchemeResult() +{} + +void CreateVerifySchemeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto gateVerifySchemeDTONode = value["GateVerifySchemeDTO"]; + if(!gateVerifySchemeDTONode["SchemeCode"].isNull()) + gateVerifySchemeDTO_.schemeCode = gateVerifySchemeDTONode["SchemeCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateVerifySchemeResult::getMessage()const +{ + return message_; +} + +CreateVerifySchemeResult::GateVerifySchemeDTO CreateVerifySchemeResult::getGateVerifySchemeDTO()const +{ + return gateVerifySchemeDTO_; +} + +std::string CreateVerifySchemeResult::getCode()const +{ + return code_; +} + diff --git a/dypnsapi/src/model/GetMobileRequest.cc b/dypnsapi/src/model/GetMobileRequest.cc new file mode 100644 index 000000000..f07d1e3e0 --- /dev/null +++ b/dypnsapi/src/model/GetMobileRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::GetMobileRequest; + +GetMobileRequest::GetMobileRequest() : + RpcServiceRequest("dypnsapi", "2017-05-25", "GetMobile") +{} + +GetMobileRequest::~GetMobileRequest() +{} + +long GetMobileRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetMobileRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetMobileRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetMobileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GetMobileRequest::getAccessToken()const +{ + return accessToken_; +} + +void GetMobileRequest::setAccessToken(const std::string& accessToken) +{ + accessToken_ = accessToken; + setCoreParameter("AccessToken", accessToken); +} + +std::string GetMobileRequest::getOutId()const +{ + return outId_; +} + +void GetMobileRequest::setOutId(const std::string& outId) +{ + outId_ = outId; + setCoreParameter("OutId", outId); +} + +long GetMobileRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetMobileRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetMobileRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetMobileRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dypnsapi/src/model/GetMobileResult.cc b/dypnsapi/src/model/GetMobileResult.cc new file mode 100644 index 000000000..db0cbdeb0 --- /dev/null +++ b/dypnsapi/src/model/GetMobileResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dypnsapi; +using namespace AlibabaCloud::Dypnsapi::Model; + +GetMobileResult::GetMobileResult() : + ServiceResult() +{} + +GetMobileResult::GetMobileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMobileResult::~GetMobileResult() +{} + +void GetMobileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto getMobileResultDTONode = value["GetMobileResultDTO"]; + if(!getMobileResultDTONode["Mobile"].isNull()) + getMobileResultDTO_.mobile = getMobileResultDTONode["Mobile"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetMobileResult::getMessage()const +{ + return message_; +} + +std::string GetMobileResult::getCode()const +{ + return code_; +} + +GetMobileResult::GetMobileResultDTO GetMobileResult::getGetMobileResultDTO()const +{ + return getMobileResultDTO_; +} + diff --git a/dypnsapi/src/model/TwiceTelVerifyRequest.cc b/dypnsapi/src/model/TwiceTelVerifyRequest.cc new file mode 100644 index 000000000..363aab7a0 --- /dev/null +++ b/dypnsapi/src/model/TwiceTelVerifyRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::TwiceTelVerifyRequest; + +TwiceTelVerifyRequest::TwiceTelVerifyRequest() : + RpcServiceRequest("dypnsapi", "2017-05-25", "TwiceTelVerify") +{} + +TwiceTelVerifyRequest::~TwiceTelVerifyRequest() +{} + +long TwiceTelVerifyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TwiceTelVerifyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string TwiceTelVerifyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TwiceTelVerifyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TwiceTelVerifyRequest::getPhoneNumber()const +{ + return phoneNumber_; +} + +void TwiceTelVerifyRequest::setPhoneNumber(const std::string& phoneNumber) +{ + phoneNumber_ = phoneNumber; + setCoreParameter("PhoneNumber", phoneNumber); +} + +long TwiceTelVerifyRequest::getOwnerId()const +{ + return ownerId_; +} + +void TwiceTelVerifyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string TwiceTelVerifyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void TwiceTelVerifyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string TwiceTelVerifyRequest::getSince()const +{ + return since_; +} + +void TwiceTelVerifyRequest::setSince(const std::string& since) +{ + since_ = since; + setCoreParameter("Since", since); +} + diff --git a/dypnsapi/src/model/TwiceTelVerifyResult.cc b/dypnsapi/src/model/TwiceTelVerifyResult.cc new file mode 100644 index 000000000..d7fd2c30b --- /dev/null +++ b/dypnsapi/src/model/TwiceTelVerifyResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dypnsapi; +using namespace AlibabaCloud::Dypnsapi::Model; + +TwiceTelVerifyResult::TwiceTelVerifyResult() : + ServiceResult() +{} + +TwiceTelVerifyResult::TwiceTelVerifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TwiceTelVerifyResult::~TwiceTelVerifyResult() +{} + +void TwiceTelVerifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto twiceTelVerifyResultNode = value["TwiceTelVerifyResult"]; + if(!twiceTelVerifyResultNode["Carrier"].isNull()) + twiceTelVerifyResult_.carrier = twiceTelVerifyResultNode["Carrier"].asString(); + if(!twiceTelVerifyResultNode["VerifyResult"].isNull()) + twiceTelVerifyResult_.verifyResult = std::stoi(twiceTelVerifyResultNode["VerifyResult"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string TwiceTelVerifyResult::getMessage()const +{ + return message_; +} + +TwiceTelVerifyResult::TwiceTelVerifyResult TwiceTelVerifyResult::getTwiceTelVerifyResult()const +{ + return twiceTelVerifyResult_; +} + +std::string TwiceTelVerifyResult::getCode()const +{ + return code_; +} + diff --git a/dypnsapi/src/model/VerifyMobileRequest.cc b/dypnsapi/src/model/VerifyMobileRequest.cc new file mode 100644 index 000000000..58cb9466f --- /dev/null +++ b/dypnsapi/src/model/VerifyMobileRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest; + +VerifyMobileRequest::VerifyMobileRequest() : + RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile") +{} + +VerifyMobileRequest::~VerifyMobileRequest() +{} + +long VerifyMobileRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void VerifyMobileRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string VerifyMobileRequest::getAccessCode()const +{ + return accessCode_; +} + +void VerifyMobileRequest::setAccessCode(const std::string& accessCode) +{ + accessCode_ = accessCode; + setCoreParameter("AccessCode", accessCode); +} + +std::string VerifyMobileRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void VerifyMobileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string VerifyMobileRequest::getPhoneNumber()const +{ + return phoneNumber_; +} + +void VerifyMobileRequest::setPhoneNumber(const std::string& phoneNumber) +{ + phoneNumber_ = phoneNumber; + setCoreParameter("PhoneNumber", phoneNumber); +} + +std::string VerifyMobileRequest::getOutId()const +{ + return outId_; +} + +void VerifyMobileRequest::setOutId(const std::string& outId) +{ + outId_ = outId; + setCoreParameter("OutId", outId); +} + +long VerifyMobileRequest::getOwnerId()const +{ + return ownerId_; +} + +void VerifyMobileRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string VerifyMobileRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void VerifyMobileRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dypnsapi/src/model/VerifyMobileResult.cc b/dypnsapi/src/model/VerifyMobileResult.cc new file mode 100644 index 000000000..0d83f860f --- /dev/null +++ b/dypnsapi/src/model/VerifyMobileResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dypnsapi; +using namespace AlibabaCloud::Dypnsapi::Model; + +VerifyMobileResult::VerifyMobileResult() : + ServiceResult() +{} + +VerifyMobileResult::VerifyMobileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VerifyMobileResult::~VerifyMobileResult() +{} + +void VerifyMobileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto gateVerifyResultDTONode = value["GateVerifyResultDTO"]; + if(!gateVerifyResultDTONode["VerifyId"].isNull()) + gateVerifyResultDTO_.verifyId = gateVerifyResultDTONode["VerifyId"].asString(); + if(!gateVerifyResultDTONode["VerifyResult"].isNull()) + gateVerifyResultDTO_.verifyResult = gateVerifyResultDTONode["VerifyResult"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +VerifyMobileResult::GateVerifyResultDTO VerifyMobileResult::getGateVerifyResultDTO()const +{ + return gateVerifyResultDTO_; +} + +std::string VerifyMobileResult::getMessage()const +{ + return message_; +} + +std::string VerifyMobileResult::getCode()const +{ + return code_; +} +