From 99697bde912fb79028209895b9a189b2ed56adaa Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 11 Oct 2023 05:26:41 +0000 Subject: [PATCH] Publish sdk. --- VERSION | 2 +- dypnsapi/CMakeLists.txt | 36 ++- .../alibabacloud/dypnsapi/DypnsapiClient.h | 64 ++++- .../model/CheckSmsVerifyCodeRequest.h | 75 ++++++ .../dypnsapi/model/CheckSmsVerifyCodeResult.h | 64 +++++ .../model/CreateSchemeConfigRequest.h | 78 ++++++ .../dypnsapi/model/CreateSchemeConfigResult.h | 61 +++++ .../model/CreateVerifySchemeRequest.h | 155 ++++++----- .../dypnsapi/model/CreateVerifySchemeResult.h | 4 + .../model/DeleteVerifySchemeRequest.h | 98 ++++--- .../model/DescribeVerifySchemeRequest.h | 98 ++++--- .../dypnsapi/model/GetAuthTokenRequest.h | 98 ++++--- .../model/GetAuthorizationUrlRequest.h | 104 ++++--- .../dypnsapi/model/GetCertifyResultRequest.h | 63 ----- .../model/GetFusionAuthTokenRequest.h | 72 +++++ .../dypnsapi/model/GetFusionAuthTokenResult.h | 57 ++++ .../dypnsapi/model/GetMobileRequest.h | 98 ++++--- .../dypnsapi/model/GetPhoneWithTokenRequest.h | 57 ++++ .../dypnsapi/model/GetPhoneWithTokenResult.h | 59 ++++ .../dypnsapi/model/GetSmsAuthTokensRequest.h | 140 +++++----- .../QueryGateVerifyBillingPublicRequest.h | 104 ++++--- .../QueryGateVerifyStatisticPublicRequest.h | 122 ++++----- .../dypnsapi/model/QuerySendDetailsRequest.h | 72 +++++ .../dypnsapi/model/QuerySendDetailsResult.h | 72 +++++ .../dypnsapi/model/SendSmsVerifyCodeRequest.h | 99 +++++++ .../dypnsapi/model/SendSmsVerifyCodeResult.h | 66 +++++ .../dypnsapi/model/VerifyMobileRequest.h | 104 ++++--- .../model/VerifyPhoneWithTokenRequest.h | 98 ++++--- .../dypnsapi/model/VerifySmsCodeRequest.h | 110 ++++---- .../model/VerifyWithFusionAuthTokenRequest.h | 60 +++++ ...lt.h => VerifyWithFusionAuthTokenResult.h} | 28 +- dypnsapi/src/DypnsapiClient.cc | 234 +++++++++++++++- .../src/model/CheckSmsVerifyCodeRequest.cc | 135 ++++++++++ .../src/model/CheckSmsVerifyCodeResult.cc | 82 ++++++ .../src/model/CreateSchemeConfigRequest.cc | 144 ++++++++++ .../src/model/CreateSchemeConfigResult.cc | 73 +++++ .../src/model/CreateVerifySchemeRequest.cc | 253 ++++++++++++------ .../src/model/CreateVerifySchemeResult.cc | 18 +- .../src/model/DeleteVerifySchemeRequest.cc | 106 ++++---- .../src/model/DescribeVerifySchemeRequest.cc | 106 ++++---- dypnsapi/src/model/GetAuthTokenRequest.cc | 106 ++++---- dypnsapi/src/model/GetAuthTokenResult.cc | 4 +- .../src/model/GetAuthorizationUrlRequest.cc | 118 ++++---- dypnsapi/src/model/GetCertifyResultRequest.cc | 95 ------- dypnsapi/src/model/GetCertifyResultResult.cc | 79 ------ .../src/model/GetFusionAuthTokenRequest.cc | 126 +++++++++ .../src/model/GetFusionAuthTokenResult.cc | 72 +++++ dypnsapi/src/model/GetMobileRequest.cc | 106 ++++---- .../src/model/GetPhoneWithTokenRequest.cc | 81 ++++++ dypnsapi/src/model/GetPhoneWithTokenResult.cc | 66 +++++ dypnsapi/src/model/GetSmsAuthTokensRequest.cc | 190 ++++++------- .../QueryGateVerifyBillingPublicRequest.cc | 118 ++++---- .../QueryGateVerifyStatisticPublicRequest.cc | 154 +++++------ dypnsapi/src/model/QuerySendDetailsRequest.cc | 126 +++++++++ dypnsapi/src/model/QuerySendDetailsResult.cc | 106 ++++++++ .../src/model/SendSmsVerifyCodeRequest.cc | 207 ++++++++++++++ dypnsapi/src/model/SendSmsVerifyCodeResult.cc | 86 ++++++ dypnsapi/src/model/VerifyMobileRequest.cc | 118 ++++---- dypnsapi/src/model/VerifyMobileResult.cc | 4 +- .../src/model/VerifyPhoneWithTokenRequest.cc | 106 ++++---- dypnsapi/src/model/VerifySmsCodeRequest.cc | 130 ++++----- .../model/VerifyWithFusionAuthTokenRequest.cc | 90 +++++++ .../model/VerifyWithFusionAuthTokenResult.cc | 77 ++++++ 63 files changed, 4109 insertions(+), 1825 deletions(-) create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeRequest.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeResult.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/CreateSchemeConfigRequest.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/CreateSchemeConfigResult.h delete mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/GetCertifyResultRequest.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/GetFusionAuthTokenRequest.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/GetFusionAuthTokenResult.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/GetPhoneWithTokenRequest.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/GetPhoneWithTokenResult.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/QuerySendDetailsRequest.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/QuerySendDetailsResult.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeRequest.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeResult.h create mode 100644 dypnsapi/include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenRequest.h rename dypnsapi/include/alibabacloud/dypnsapi/model/{GetCertifyResultResult.h => VerifyWithFusionAuthTokenResult.h} (64%) create mode 100644 dypnsapi/src/model/CheckSmsVerifyCodeRequest.cc create mode 100644 dypnsapi/src/model/CheckSmsVerifyCodeResult.cc create mode 100644 dypnsapi/src/model/CreateSchemeConfigRequest.cc create mode 100644 dypnsapi/src/model/CreateSchemeConfigResult.cc delete mode 100644 dypnsapi/src/model/GetCertifyResultRequest.cc delete mode 100644 dypnsapi/src/model/GetCertifyResultResult.cc create mode 100644 dypnsapi/src/model/GetFusionAuthTokenRequest.cc create mode 100644 dypnsapi/src/model/GetFusionAuthTokenResult.cc create mode 100644 dypnsapi/src/model/GetPhoneWithTokenRequest.cc create mode 100644 dypnsapi/src/model/GetPhoneWithTokenResult.cc create mode 100644 dypnsapi/src/model/QuerySendDetailsRequest.cc create mode 100644 dypnsapi/src/model/QuerySendDetailsResult.cc create mode 100644 dypnsapi/src/model/SendSmsVerifyCodeRequest.cc create mode 100644 dypnsapi/src/model/SendSmsVerifyCodeResult.cc create mode 100644 dypnsapi/src/model/VerifyWithFusionAuthTokenRequest.cc create mode 100644 dypnsapi/src/model/VerifyWithFusionAuthTokenResult.cc diff --git a/VERSION b/VERSION index 1559ba846..482f3731e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1775 \ No newline at end of file +1.36.1776 \ No newline at end of file diff --git a/dypnsapi/CMakeLists.txt b/dypnsapi/CMakeLists.txt index 5697ff1d2..3533003a7 100644 --- a/dypnsapi/CMakeLists.txt +++ b/dypnsapi/CMakeLists.txt @@ -21,6 +21,10 @@ set(dypnsapi_public_header include/alibabacloud/dypnsapi/DypnsapiExport.h ) set(dypnsapi_public_header_model + include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeRequest.h + include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeResult.h + include/alibabacloud/dypnsapi/model/CreateSchemeConfigRequest.h + include/alibabacloud/dypnsapi/model/CreateSchemeConfigResult.h include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h include/alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h @@ -31,25 +35,37 @@ set(dypnsapi_public_header_model include/alibabacloud/dypnsapi/model/GetAuthTokenResult.h include/alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h include/alibabacloud/dypnsapi/model/GetAuthorizationUrlResult.h - include/alibabacloud/dypnsapi/model/GetCertifyResultRequest.h - include/alibabacloud/dypnsapi/model/GetCertifyResultResult.h + include/alibabacloud/dypnsapi/model/GetFusionAuthTokenRequest.h + include/alibabacloud/dypnsapi/model/GetFusionAuthTokenResult.h include/alibabacloud/dypnsapi/model/GetMobileRequest.h include/alibabacloud/dypnsapi/model/GetMobileResult.h + include/alibabacloud/dypnsapi/model/GetPhoneWithTokenRequest.h + include/alibabacloud/dypnsapi/model/GetPhoneWithTokenResult.h include/alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h include/alibabacloud/dypnsapi/model/GetSmsAuthTokensResult.h include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicResult.h include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicResult.h + include/alibabacloud/dypnsapi/model/QuerySendDetailsRequest.h + include/alibabacloud/dypnsapi/model/QuerySendDetailsResult.h + include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeRequest.h + include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeResult.h include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h include/alibabacloud/dypnsapi/model/VerifyMobileResult.h include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenResult.h include/alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h - include/alibabacloud/dypnsapi/model/VerifySmsCodeResult.h ) + include/alibabacloud/dypnsapi/model/VerifySmsCodeResult.h + include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenRequest.h + include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenResult.h ) set(dypnsapi_src src/DypnsapiClient.cc + src/model/CheckSmsVerifyCodeRequest.cc + src/model/CheckSmsVerifyCodeResult.cc + src/model/CreateSchemeConfigRequest.cc + src/model/CreateSchemeConfigResult.cc src/model/CreateVerifySchemeRequest.cc src/model/CreateVerifySchemeResult.cc src/model/DeleteVerifySchemeRequest.cc @@ -60,22 +76,30 @@ set(dypnsapi_src src/model/GetAuthTokenResult.cc src/model/GetAuthorizationUrlRequest.cc src/model/GetAuthorizationUrlResult.cc - src/model/GetCertifyResultRequest.cc - src/model/GetCertifyResultResult.cc + src/model/GetFusionAuthTokenRequest.cc + src/model/GetFusionAuthTokenResult.cc src/model/GetMobileRequest.cc src/model/GetMobileResult.cc + src/model/GetPhoneWithTokenRequest.cc + src/model/GetPhoneWithTokenResult.cc src/model/GetSmsAuthTokensRequest.cc src/model/GetSmsAuthTokensResult.cc src/model/QueryGateVerifyBillingPublicRequest.cc src/model/QueryGateVerifyBillingPublicResult.cc src/model/QueryGateVerifyStatisticPublicRequest.cc src/model/QueryGateVerifyStatisticPublicResult.cc + src/model/QuerySendDetailsRequest.cc + src/model/QuerySendDetailsResult.cc + src/model/SendSmsVerifyCodeRequest.cc + src/model/SendSmsVerifyCodeResult.cc src/model/VerifyMobileRequest.cc src/model/VerifyMobileResult.cc src/model/VerifyPhoneWithTokenRequest.cc src/model/VerifyPhoneWithTokenResult.cc src/model/VerifySmsCodeRequest.cc - src/model/VerifySmsCodeResult.cc ) + src/model/VerifySmsCodeResult.cc + src/model/VerifyWithFusionAuthTokenRequest.cc + src/model/VerifyWithFusionAuthTokenResult.cc ) add_library(dypnsapi ${LIB_TYPE} ${dypnsapi_public_header} diff --git a/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiClient.h b/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiClient.h index 6f8a6b52b..d0114704a 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiClient.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/DypnsapiClient.h @@ -22,6 +22,10 @@ #include #include #include "DypnsapiExport.h" +#include "model/CheckSmsVerifyCodeRequest.h" +#include "model/CheckSmsVerifyCodeResult.h" +#include "model/CreateSchemeConfigRequest.h" +#include "model/CreateSchemeConfigResult.h" #include "model/CreateVerifySchemeRequest.h" #include "model/CreateVerifySchemeResult.h" #include "model/DeleteVerifySchemeRequest.h" @@ -32,22 +36,30 @@ #include "model/GetAuthTokenResult.h" #include "model/GetAuthorizationUrlRequest.h" #include "model/GetAuthorizationUrlResult.h" -#include "model/GetCertifyResultRequest.h" -#include "model/GetCertifyResultResult.h" +#include "model/GetFusionAuthTokenRequest.h" +#include "model/GetFusionAuthTokenResult.h" #include "model/GetMobileRequest.h" #include "model/GetMobileResult.h" +#include "model/GetPhoneWithTokenRequest.h" +#include "model/GetPhoneWithTokenResult.h" #include "model/GetSmsAuthTokensRequest.h" #include "model/GetSmsAuthTokensResult.h" #include "model/QueryGateVerifyBillingPublicRequest.h" #include "model/QueryGateVerifyBillingPublicResult.h" #include "model/QueryGateVerifyStatisticPublicRequest.h" #include "model/QueryGateVerifyStatisticPublicResult.h" +#include "model/QuerySendDetailsRequest.h" +#include "model/QuerySendDetailsResult.h" +#include "model/SendSmsVerifyCodeRequest.h" +#include "model/SendSmsVerifyCodeResult.h" #include "model/VerifyMobileRequest.h" #include "model/VerifyMobileResult.h" #include "model/VerifyPhoneWithTokenRequest.h" #include "model/VerifyPhoneWithTokenResult.h" #include "model/VerifySmsCodeRequest.h" #include "model/VerifySmsCodeResult.h" +#include "model/VerifyWithFusionAuthTokenRequest.h" +#include "model/VerifyWithFusionAuthTokenResult.h" namespace AlibabaCloud @@ -57,6 +69,12 @@ namespace AlibabaCloud class ALIBABACLOUD_DYPNSAPI_EXPORT DypnsapiClient : public RpcServiceClient { public: + typedef Outcome CheckSmsVerifyCodeOutcome; + typedef std::future CheckSmsVerifyCodeOutcomeCallable; + typedef std::function&)> CheckSmsVerifyCodeAsyncHandler; + typedef Outcome CreateSchemeConfigOutcome; + typedef std::future CreateSchemeConfigOutcomeCallable; + typedef std::function&)> CreateSchemeConfigAsyncHandler; typedef Outcome CreateVerifySchemeOutcome; typedef std::future CreateVerifySchemeOutcomeCallable; typedef std::function&)> CreateVerifySchemeAsyncHandler; @@ -72,12 +90,15 @@ namespace AlibabaCloud typedef Outcome GetAuthorizationUrlOutcome; typedef std::future GetAuthorizationUrlOutcomeCallable; typedef std::function&)> GetAuthorizationUrlAsyncHandler; - typedef Outcome GetCertifyResultOutcome; - typedef std::future GetCertifyResultOutcomeCallable; - typedef std::function&)> GetCertifyResultAsyncHandler; + typedef Outcome GetFusionAuthTokenOutcome; + typedef std::future GetFusionAuthTokenOutcomeCallable; + typedef std::function&)> GetFusionAuthTokenAsyncHandler; typedef Outcome GetMobileOutcome; typedef std::future GetMobileOutcomeCallable; typedef std::function&)> GetMobileAsyncHandler; + typedef Outcome GetPhoneWithTokenOutcome; + typedef std::future GetPhoneWithTokenOutcomeCallable; + typedef std::function&)> GetPhoneWithTokenAsyncHandler; typedef Outcome GetSmsAuthTokensOutcome; typedef std::future GetSmsAuthTokensOutcomeCallable; typedef std::function&)> GetSmsAuthTokensAsyncHandler; @@ -87,6 +108,12 @@ namespace AlibabaCloud typedef Outcome QueryGateVerifyStatisticPublicOutcome; typedef std::future QueryGateVerifyStatisticPublicOutcomeCallable; typedef std::function&)> QueryGateVerifyStatisticPublicAsyncHandler; + typedef Outcome QuerySendDetailsOutcome; + typedef std::future QuerySendDetailsOutcomeCallable; + typedef std::function&)> QuerySendDetailsAsyncHandler; + typedef Outcome SendSmsVerifyCodeOutcome; + typedef std::future SendSmsVerifyCodeOutcomeCallable; + typedef std::function&)> SendSmsVerifyCodeAsyncHandler; typedef Outcome VerifyMobileOutcome; typedef std::future VerifyMobileOutcomeCallable; typedef std::function&)> VerifyMobileAsyncHandler; @@ -96,11 +123,20 @@ namespace AlibabaCloud typedef Outcome VerifySmsCodeOutcome; typedef std::future VerifySmsCodeOutcomeCallable; typedef std::function&)> VerifySmsCodeAsyncHandler; + typedef Outcome VerifyWithFusionAuthTokenOutcome; + typedef std::future VerifyWithFusionAuthTokenOutcomeCallable; + typedef std::function&)> VerifyWithFusionAuthTokenAsyncHandler; DypnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration); DypnsapiClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); DypnsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~DypnsapiClient(); + CheckSmsVerifyCodeOutcome checkSmsVerifyCode(const Model::CheckSmsVerifyCodeRequest &request)const; + void checkSmsVerifyCodeAsync(const Model::CheckSmsVerifyCodeRequest& request, const CheckSmsVerifyCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckSmsVerifyCodeOutcomeCallable checkSmsVerifyCodeCallable(const Model::CheckSmsVerifyCodeRequest& request) const; + CreateSchemeConfigOutcome createSchemeConfig(const Model::CreateSchemeConfigRequest &request)const; + void createSchemeConfigAsync(const Model::CreateSchemeConfigRequest& request, const CreateSchemeConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSchemeConfigOutcomeCallable createSchemeConfigCallable(const Model::CreateSchemeConfigRequest& request) const; CreateVerifySchemeOutcome createVerifyScheme(const Model::CreateVerifySchemeRequest &request)const; void createVerifySchemeAsync(const Model::CreateVerifySchemeRequest& request, const CreateVerifySchemeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVerifySchemeOutcomeCallable createVerifySchemeCallable(const Model::CreateVerifySchemeRequest& request) const; @@ -116,12 +152,15 @@ namespace AlibabaCloud GetAuthorizationUrlOutcome getAuthorizationUrl(const Model::GetAuthorizationUrlRequest &request)const; void getAuthorizationUrlAsync(const Model::GetAuthorizationUrlRequest& request, const GetAuthorizationUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAuthorizationUrlOutcomeCallable getAuthorizationUrlCallable(const Model::GetAuthorizationUrlRequest& request) const; - GetCertifyResultOutcome getCertifyResult(const Model::GetCertifyResultRequest &request)const; - void getCertifyResultAsync(const Model::GetCertifyResultRequest& request, const GetCertifyResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCertifyResultOutcomeCallable getCertifyResultCallable(const Model::GetCertifyResultRequest& request) const; + GetFusionAuthTokenOutcome getFusionAuthToken(const Model::GetFusionAuthTokenRequest &request)const; + void getFusionAuthTokenAsync(const Model::GetFusionAuthTokenRequest& request, const GetFusionAuthTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFusionAuthTokenOutcomeCallable getFusionAuthTokenCallable(const Model::GetFusionAuthTokenRequest& request) const; GetMobileOutcome getMobile(const Model::GetMobileRequest &request)const; void getMobileAsync(const Model::GetMobileRequest& request, const GetMobileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetMobileOutcomeCallable getMobileCallable(const Model::GetMobileRequest& request) const; + GetPhoneWithTokenOutcome getPhoneWithToken(const Model::GetPhoneWithTokenRequest &request)const; + void getPhoneWithTokenAsync(const Model::GetPhoneWithTokenRequest& request, const GetPhoneWithTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhoneWithTokenOutcomeCallable getPhoneWithTokenCallable(const Model::GetPhoneWithTokenRequest& request) const; GetSmsAuthTokensOutcome getSmsAuthTokens(const Model::GetSmsAuthTokensRequest &request)const; void getSmsAuthTokensAsync(const Model::GetSmsAuthTokensRequest& request, const GetSmsAuthTokensAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSmsAuthTokensOutcomeCallable getSmsAuthTokensCallable(const Model::GetSmsAuthTokensRequest& request) const; @@ -131,6 +170,12 @@ namespace AlibabaCloud QueryGateVerifyStatisticPublicOutcome queryGateVerifyStatisticPublic(const Model::QueryGateVerifyStatisticPublicRequest &request)const; void queryGateVerifyStatisticPublicAsync(const Model::QueryGateVerifyStatisticPublicRequest& request, const QueryGateVerifyStatisticPublicAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryGateVerifyStatisticPublicOutcomeCallable queryGateVerifyStatisticPublicCallable(const Model::QueryGateVerifyStatisticPublicRequest& request) const; + QuerySendDetailsOutcome querySendDetails(const Model::QuerySendDetailsRequest &request)const; + void querySendDetailsAsync(const Model::QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySendDetailsOutcomeCallable querySendDetailsCallable(const Model::QuerySendDetailsRequest& request) const; + SendSmsVerifyCodeOutcome sendSmsVerifyCode(const Model::SendSmsVerifyCodeRequest &request)const; + void sendSmsVerifyCodeAsync(const Model::SendSmsVerifyCodeRequest& request, const SendSmsVerifyCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SendSmsVerifyCodeOutcomeCallable sendSmsVerifyCodeCallable(const Model::SendSmsVerifyCodeRequest& request) const; VerifyMobileOutcome verifyMobile(const Model::VerifyMobileRequest &request)const; void verifyMobileAsync(const Model::VerifyMobileRequest& request, const VerifyMobileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VerifyMobileOutcomeCallable verifyMobileCallable(const Model::VerifyMobileRequest& request) const; @@ -140,6 +185,9 @@ namespace AlibabaCloud VerifySmsCodeOutcome verifySmsCode(const Model::VerifySmsCodeRequest &request)const; void verifySmsCodeAsync(const Model::VerifySmsCodeRequest& request, const VerifySmsCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VerifySmsCodeOutcomeCallable verifySmsCodeCallable(const Model::VerifySmsCodeRequest& request) const; + VerifyWithFusionAuthTokenOutcome verifyWithFusionAuthToken(const Model::VerifyWithFusionAuthTokenRequest &request)const; + void verifyWithFusionAuthTokenAsync(const Model::VerifyWithFusionAuthTokenRequest& request, const VerifyWithFusionAuthTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VerifyWithFusionAuthTokenOutcomeCallable verifyWithFusionAuthTokenCallable(const Model::VerifyWithFusionAuthTokenRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeRequest.h new file mode 100644 index 000000000..1185bea7a --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeRequest.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_CHECKSMSVERIFYCODEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_CHECKSMSVERIFYCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT CheckSmsVerifyCodeRequest : public RpcServiceRequest { +public: + CheckSmsVerifyCodeRequest(); + ~CheckSmsVerifyCodeRequest(); + long getCaseAuthPolicy() const; + void setCaseAuthPolicy(long caseAuthPolicy); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCountryCode() const; + void setCountryCode(const std::string &countryCode); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getExtendFunction() const; + void setExtendFunction(const std::string &extendFunction); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getVerifyCode() const; + void setVerifyCode(const std::string &verifyCode); + std::string getRouteName() const; + void setRouteName(const std::string &routeName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSchemeName() const; + void setSchemeName(const std::string &schemeName); + std::string getOutId() const; + void setOutId(const std::string &outId); + +private: + long caseAuthPolicy_; + long resourceOwnerId_; + std::string countryCode_; + std::string phoneNumber_; + std::string extendFunction_; + std::string accessKeyId_; + std::string verifyCode_; + std::string routeName_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string schemeName_; + std::string outId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CHECKSMSVERIFYCODEREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeResult.h new file mode 100644 index 000000000..7d9fad710 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/CheckSmsVerifyCodeResult.h @@ -0,0 +1,64 @@ +/* + * 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_CHECKSMSVERIFYCODERESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_CHECKSMSVERIFYCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT CheckSmsVerifyCodeResult : public ServiceResult + { + public: + struct Model + { + std::string outId; + std::string verifyResult; + }; + + + CheckSmsVerifyCodeResult(); + explicit CheckSmsVerifyCodeResult(const std::string &payload); + ~CheckSmsVerifyCodeResult(); + std::string getAccessDeniedDetail()const; + std::string getMessage()const; + Model getModel()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string accessDeniedDetail_; + std::string message_; + Model model_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CHECKSMSVERIFYCODERESULT_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateSchemeConfigRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateSchemeConfigRequest.h new file mode 100644 index 000000000..14c292b72 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateSchemeConfigRequest.h @@ -0,0 +1,78 @@ +/* + * 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_CREATESCHEMECONFIGREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATESCHEMECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT CreateSchemeConfigRequest : public RpcServiceRequest { +public: + CreateSchemeConfigRequest(); + ~CreateSchemeConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAndroidPackageSign() const; + void setAndroidPackageSign(const std::string &androidPackageSign); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getH5Url() const; + void setH5Url(const std::string &h5Url); + std::string getIosBundleId() const; + void setIosBundleId(const std::string &iosBundleId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getRouteName() const; + void setRouteName(const std::string &routeName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getH5Origin() const; + void setH5Origin(const std::string &h5Origin); + std::string getSchemeName() const; + void setSchemeName(const std::string &schemeName); + std::string getAndroidPackageName() const; + void setAndroidPackageName(const std::string &androidPackageName); + +private: + long resourceOwnerId_; + std::string androidPackageSign_; + std::string platform_; + std::string accessKeyId_; + std::string h5Url_; + std::string iosBundleId_; + std::string appName_; + std::string routeName_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string h5Origin_; + std::string schemeName_; + std::string androidPackageName_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATESCHEMECONFIGREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateSchemeConfigResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateSchemeConfigResult.h new file mode 100644 index 000000000..72f0033db --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateSchemeConfigResult.h @@ -0,0 +1,61 @@ +/* + * 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_CREATESCHEMECONFIGRESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATESCHEMECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT CreateSchemeConfigResult : public ServiceResult + { + public: + struct Model + { + std::string schemeCode; + }; + + + CreateSchemeConfigResult(); + explicit CreateSchemeConfigResult(const std::string &payload); + ~CreateSchemeConfigResult(); + std::string getMessage()const; + Model getModel()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Model model_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATESCHEMECONFIGRESULT_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 index 6cc247d01..6063783b5 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h @@ -1,75 +1,102 @@ /* * 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 getBundleId()const; - void setBundleId(const std::string& bundleId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getAppName()const; - void setAppName(const std::string& appName); - std::string getPackSign()const; - void setPackSign(const std::string& packSign); - std::string getPackName()const; - void setPackName(const std::string& packName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOsType()const; - void setOsType(const std::string& osType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSchemeName()const; - void setSchemeName(const std::string& schemeName); - - private: - long resourceOwnerId_; - std::string bundleId_; - std::string accessKeyId_; - std::string appName_; - std::string packSign_; - std::string packName_; - std::string resourceOwnerAccount_; - std::string osType_; - long ownerId_; - std::string schemeName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_ + +#include +#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 getOrigin() const; + void setOrigin(const std::string &origin); + std::string getBundleId() const; + void setBundleId(const std::string &bundleId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAuthType() const; + void setAuthType(const std::string &authType); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getIpWhiteList() const; + void setIpWhiteList(const std::string &ipWhiteList); + std::string getRouteName() const; + void setRouteName(const std::string &routeName); + std::string getEmail() const; + void setEmail(const std::string &email); + std::string getPackSign() const; + void setPackSign(const std::string &packSign); + std::string getPackName() const; + void setPackName(const std::string &packName); + long getCuApiCode() const; + void setCuApiCode(long cuApiCode); + std::string getSceneType() const; + void setSceneType(const std::string &sceneType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getCtApiCode() const; + void setCtApiCode(long ctApiCode); + std::string getOsType() const; + void setOsType(const std::string &osType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getUrl() const; + void setUrl(const std::string &url); + long getCmApiCode() const; + void setCmApiCode(long cmApiCode); + std::string getSchemeName() const; + void setSchemeName(const std::string &schemeName); + std::string getSmsSignName() const; + void setSmsSignName(const std::string &smsSignName); + +private: + long resourceOwnerId_; + std::string origin_; + std::string bundleId_; + std::string accessKeyId_; + std::string authType_; + std::string appName_; + std::string ipWhiteList_; + std::string routeName_; + std::string email_; + std::string packSign_; + std::string packName_; + long cuApiCode_; + std::string sceneType_; + std::string resourceOwnerAccount_; + long ctApiCode_; + std::string osType_; + long ownerId_; + std::string url_; + long cmApiCode_; + std::string schemeName_; + std::string smsSignName_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h index 88ed57019..2c662d24a 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h @@ -43,14 +43,18 @@ namespace AlibabaCloud ~CreateVerifySchemeResult(); std::string getMessage()const; GateVerifySchemeDTO getGateVerifySchemeDTO()const; + long getHttpStatusCode()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; GateVerifySchemeDTO gateVerifySchemeDTO_; + long httpStatusCode_; std::string code_; + bool success_; }; } diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h index 195540289..ec74c30ec 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h @@ -1,63 +1,57 @@ /* * 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_DELETEVERIFYSCHEMEREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT DeleteVerifySchemeRequest : public RpcServiceRequest - { - - public: - DeleteVerifySchemeRequest(); - ~DeleteVerifySchemeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getSchemeCode()const; - void setSchemeCode(const std::string& schemeCode); - long getCustomerId()const; - void setCustomerId(long customerId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string schemeCode_; - long customerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT DeleteVerifySchemeRequest : public RpcServiceRequest { +public: + DeleteVerifySchemeRequest(); + ~DeleteVerifySchemeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSchemeCode() const; + void setSchemeCode(const std::string &schemeCode); + long getCustomerId() const; + void setCustomerId(long customerId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string schemeCode_; + long customerId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/DescribeVerifySchemeRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/DescribeVerifySchemeRequest.h index 923e93177..eeeec7669 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/DescribeVerifySchemeRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/DescribeVerifySchemeRequest.h @@ -1,63 +1,57 @@ /* * 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_DESCRIBEVERIFYSCHEMEREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT DescribeVerifySchemeRequest : public RpcServiceRequest - { - - public: - DescribeVerifySchemeRequest(); - ~DescribeVerifySchemeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getSchemeCode()const; - void setSchemeCode(const std::string& schemeCode); - long getCustomerId()const; - void setCustomerId(long customerId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string schemeCode_; - long customerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT DescribeVerifySchemeRequest : public RpcServiceRequest { +public: + DescribeVerifySchemeRequest(); + ~DescribeVerifySchemeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSchemeCode() const; + void setSchemeCode(const std::string &schemeCode); + long getCustomerId() const; + void setCustomerId(long customerId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string schemeCode_; + long customerId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetAuthTokenRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetAuthTokenRequest.h index f5231aa83..670d4b5fa 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/GetAuthTokenRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetAuthTokenRequest.h @@ -1,63 +1,57 @@ /* * 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_GETAUTHTOKENREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHTOKENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT GetAuthTokenRequest : public RpcServiceRequest - { - - public: - GetAuthTokenRequest(); - ~GetAuthTokenRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOrigin()const; - void setOrigin(const std::string& origin); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getUrl()const; - void setUrl(const std::string& url); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string origin_; - long ownerId_; - std::string url_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHTOKENREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHTOKENREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT GetAuthTokenRequest : public RpcServiceRequest { +public: + GetAuthTokenRequest(); + ~GetAuthTokenRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOrigin() const; + void setOrigin(const std::string &origin); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getUrl() const; + void setUrl(const std::string &url); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string origin_; + long ownerId_; + std::string url_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHTOKENREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h index dbcf449e6..33857a2f1 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h @@ -1,66 +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_GETAUTHORIZATIONURLREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT GetAuthorizationUrlRequest : public RpcServiceRequest - { - - public: - GetAuthorizationUrlRequest(); - ~GetAuthorizationUrlRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getSchemeId()const; - void setSchemeId(long schemeId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPhoneNo()const; - void setPhoneNo(const std::string& phoneNo); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - long schemeId_; - long ownerId_; - std::string phoneNo_; - std::string endDate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT GetAuthorizationUrlRequest : public RpcServiceRequest { +public: + GetAuthorizationUrlRequest(); + ~GetAuthorizationUrlRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getSchemeId() const; + void setSchemeId(long schemeId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPhoneNo() const; + void setPhoneNo(const std::string &phoneNo); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long schemeId_; + long ownerId_; + std::string phoneNo_; + std::string endDate_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetCertifyResultRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetCertifyResultRequest.h deleted file mode 100644 index 2c31f08f7..000000000 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/GetCertifyResultRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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_GETCERTIFYRESULTREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT GetCertifyResultRequest : public RpcServiceRequest - { - - public: - GetCertifyResultRequest(); - ~GetCertifyResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getToken()const; - void setToken(const std::string& token); - - private: - long resourceOwnerId_; - std::string productCode_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string token_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTREQUEST_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetFusionAuthTokenRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetFusionAuthTokenRequest.h new file mode 100644 index 000000000..764fad622 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetFusionAuthTokenRequest.h @@ -0,0 +1,72 @@ +/* + * 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_GETFUSIONAUTHTOKENREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETFUSIONAUTHTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT GetFusionAuthTokenRequest : public RpcServiceRequest { +public: + GetFusionAuthTokenRequest(); + ~GetFusionAuthTokenRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBundleId() const; + void setBundleId(const std::string &bundleId); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSchemeCode() const; + void setSchemeCode(const std::string &schemeCode); + std::string getRouteName() const; + void setRouteName(const std::string &routeName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPackageName() const; + void setPackageName(const std::string &packageName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPackageSign() const; + void setPackageSign(const std::string &packageSign); + long getDurationSeconds() const; + void setDurationSeconds(long durationSeconds); + +private: + long resourceOwnerId_; + std::string bundleId_; + std::string platform_; + std::string accessKeyId_; + std::string schemeCode_; + std::string routeName_; + std::string resourceOwnerAccount_; + std::string packageName_; + long ownerId_; + std::string packageSign_; + long durationSeconds_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETFUSIONAUTHTOKENREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetFusionAuthTokenResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetFusionAuthTokenResult.h new file mode 100644 index 000000000..54d4ee9be --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetFusionAuthTokenResult.h @@ -0,0 +1,57 @@ +/* + * 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_GETFUSIONAUTHTOKENRESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETFUSIONAUTHTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT GetFusionAuthTokenResult : public ServiceResult + { + public: + + + GetFusionAuthTokenResult(); + explicit GetFusionAuthTokenResult(const std::string &payload); + ~GetFusionAuthTokenResult(); + std::string getMessage()const; + std::string getModel()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string model_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETFUSIONAUTHTOKENRESULT_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 index 493d9d400..86c412ed1 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetMobileRequest.h @@ -1,63 +1,57 @@ /* * 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); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getOutId()const; - void setOutId(const std::string& outId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string accessToken_; - long ownerId_; - std::string accessKeyId_; - std::string outId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_ + +#include +#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); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getOutId() const; + void setOutId(const std::string &outId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string accessToken_; + long ownerId_; + std::string accessKeyId_; + std::string outId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetPhoneWithTokenRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetPhoneWithTokenRequest.h new file mode 100644 index 000000000..507e33cc5 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetPhoneWithTokenRequest.h @@ -0,0 +1,57 @@ +/* + * 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_GETPHONEWITHTOKENREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETPHONEWITHTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT GetPhoneWithTokenRequest : public RpcServiceRequest { +public: + GetPhoneWithTokenRequest(); + ~GetPhoneWithTokenRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSpToken() const; + void setSpToken(const std::string &spToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string productCode_; + std::string accessKeyId_; + std::string spToken_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETPHONEWITHTOKENREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetPhoneWithTokenResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetPhoneWithTokenResult.h new file mode 100644 index 000000000..766b6431d --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetPhoneWithTokenResult.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_GETPHONEWITHTOKENRESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETPHONEWITHTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT GetPhoneWithTokenResult : public ServiceResult + { + public: + struct Data + { + std::string mobile; + }; + + + GetPhoneWithTokenResult(); + explicit GetPhoneWithTokenResult(const std::string &payload); + ~GetPhoneWithTokenResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETPHONEWITHTOKENRESULT_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h index a91d9236d..8775ebb65 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h @@ -1,84 +1,78 @@ /* * 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_GETSMSAUTHTOKENSREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT GetSmsAuthTokensRequest : public RpcServiceRequest - { - - public: - GetSmsAuthTokensRequest(); - ~GetSmsAuthTokensRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getBundleId()const; - void setBundleId(const std::string& bundleId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getSignName()const; - void setSignName(const std::string& signName); - std::string getSceneCode()const; - void setSceneCode(const std::string& sceneCode); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getSmsCodeExpire()const; - void setSmsCodeExpire(int smsCodeExpire); - std::string getPackageName()const; - void setPackageName(const std::string& packageName); - std::string getOsType()const; - void setOsType(const std::string& osType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmsTemplateCode()const; - void setSmsTemplateCode(const std::string& smsTemplateCode); - long getExpire()const; - void setExpire(long expire); - - private: - long resourceOwnerId_; - std::string productCode_; - std::string bundleId_; - std::string accessKeyId_; - std::string signName_; - std::string sceneCode_; - std::string resourceOwnerAccount_; - int smsCodeExpire_; - std::string packageName_; - std::string osType_; - long ownerId_; - std::string smsTemplateCode_; - long expire_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT GetSmsAuthTokensRequest : public RpcServiceRequest { +public: + GetSmsAuthTokensRequest(); + ~GetSmsAuthTokensRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getBundleId() const; + void setBundleId(const std::string &bundleId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSignName() const; + void setSignName(const std::string &signName); + std::string getSceneCode() const; + void setSceneCode(const std::string &sceneCode); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getSmsCodeExpire() const; + void setSmsCodeExpire(int smsCodeExpire); + std::string getPackageName() const; + void setPackageName(const std::string &packageName); + std::string getOsType() const; + void setOsType(const std::string &osType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmsTemplateCode() const; + void setSmsTemplateCode(const std::string &smsTemplateCode); + long getExpire() const; + void setExpire(long expire); + +private: + long resourceOwnerId_; + std::string productCode_; + std::string bundleId_; + std::string accessKeyId_; + std::string signName_; + std::string sceneCode_; + std::string resourceOwnerAccount_; + int smsCodeExpire_; + std::string packageName_; + std::string osType_; + long ownerId_; + std::string smsTemplateCode_; + long expire_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h index 915111444..237ed4ea9 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h @@ -1,66 +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_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT QueryGateVerifyBillingPublicRequest : public RpcServiceRequest - { - - public: - QueryGateVerifyBillingPublicRequest(); - ~QueryGateVerifyBillingPublicRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getAuthenticationType()const; - void setAuthenticationType(int authenticationType); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getProdCode()const; - void setProdCode(const std::string& prodCode); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMonth()const; - void setMonth(const std::string& month); - - private: - long resourceOwnerId_; - int authenticationType_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string prodCode_; - long ownerId_; - std::string month_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT QueryGateVerifyBillingPublicRequest : public RpcServiceRequest { +public: + QueryGateVerifyBillingPublicRequest(); + ~QueryGateVerifyBillingPublicRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getAuthenticationType() const; + void setAuthenticationType(int authenticationType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getMonth() const; + void setMonth(const std::string &month); + +private: + long resourceOwnerId_; + int authenticationType_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string month_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h index b54f6dfcc..331a099a2 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h @@ -1,75 +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. - */ - -#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT QueryGateVerifyStatisticPublicRequest : public RpcServiceRequest - { - - public: - QueryGateVerifyStatisticPublicRequest(); - ~QueryGateVerifyStatisticPublicRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getAuthenticationType()const; - void setAuthenticationType(int authenticationType); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getSceneCode()const; - void setSceneCode(const std::string& sceneCode); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getProdCode()const; - void setProdCode(const std::string& prodCode); - std::string getOsType()const; - void setOsType(const std::string& osType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - - private: - long resourceOwnerId_; - int authenticationType_; - std::string startDate_; - std::string accessKeyId_; - std::string sceneCode_; - std::string resourceOwnerAccount_; - std::string prodCode_; - std::string osType_; - long ownerId_; - std::string endDate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT QueryGateVerifyStatisticPublicRequest : public RpcServiceRequest { +public: + QueryGateVerifyStatisticPublicRequest(); + ~QueryGateVerifyStatisticPublicRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getAuthenticationType() const; + void setAuthenticationType(int authenticationType); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSceneCode() const; + void setSceneCode(const std::string &sceneCode); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getProdCode() const; + void setProdCode(const std::string &prodCode); + std::string getOsType() const; + void setOsType(const std::string &osType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + +private: + long resourceOwnerId_; + int authenticationType_; + std::string startDate_; + std::string accessKeyId_; + std::string sceneCode_; + std::string resourceOwnerAccount_; + std::string prodCode_; + std::string osType_; + long ownerId_; + std::string endDate_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/QuerySendDetailsRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/QuerySendDetailsRequest.h new file mode 100644 index 000000000..4f7f956cc --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/QuerySendDetailsRequest.h @@ -0,0 +1,72 @@ +/* + * 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_QUERYSENDDETAILSREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT QuerySendDetailsRequest : public RpcServiceRequest { +public: + QuerySendDetailsRequest(); + ~QuerySendDetailsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getExtendFunction() const; + void setExtendFunction(const std::string &extendFunction); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSendDate() const; + void setSendDate(const std::string &sendDate); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getRouteName() const; + void setRouteName(const std::string &routeName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBizId() const; + void setBizId(const std::string &bizId); + +private: + long resourceOwnerId_; + std::string phoneNumber_; + std::string extendFunction_; + std::string accessKeyId_; + std::string sendDate_; + long pageSize_; + std::string routeName_; + std::string resourceOwnerAccount_; + long currentPage_; + long ownerId_; + std::string bizId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYSENDDETAILSREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/QuerySendDetailsResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/QuerySendDetailsResult.h new file mode 100644 index 000000000..7b2cf34e7 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/QuerySendDetailsResult.h @@ -0,0 +1,72 @@ +/* + * 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_QUERYSENDDETAILSRESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYSENDDETAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT QuerySendDetailsResult : public ServiceResult + { + public: + struct ModelItem + { + std::string templateCode; + std::string receiveDate; + std::string phoneNum; + std::string content; + long sendStatus; + std::string outId; + std::string sendDate; + std::string errCode; + }; + + + QuerySendDetailsResult(); + explicit QuerySendDetailsResult(const std::string &payload); + ~QuerySendDetailsResult(); + std::string getAccessDeniedDetail()const; + long getTotalCount()const; + std::string getMessage()const; + std::vector getModel()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string accessDeniedDetail_; + long totalCount_; + std::string message_; + std::vector model_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYSENDDETAILSRESULT_H_ \ No newline at end of file diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeRequest.h new file mode 100644 index 000000000..cd2a4a82b --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeRequest.h @@ -0,0 +1,99 @@ +/* + * 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_SENDSMSVERIFYCODEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_SENDSMSVERIFYCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT SendSmsVerifyCodeRequest : public RpcServiceRequest { +public: + SendSmsVerifyCodeRequest(); + ~SendSmsVerifyCodeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCountryCode() const; + void setCountryCode(const std::string &countryCode); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getExtendFunction() const; + void setExtendFunction(const std::string &extendFunction); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSmsUpExtendCode() const; + void setSmsUpExtendCode(const std::string &smsUpExtendCode); + std::string getSignName() const; + void setSignName(const std::string &signName); + std::string getRouteName() const; + void setRouteName(const std::string &routeName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getValidTime() const; + void setValidTime(long validTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getReturnVerifyCode() const; + void setReturnVerifyCode(bool returnVerifyCode); + long getCodeType() const; + void setCodeType(long codeType); + std::string getSchemeName() const; + void setSchemeName(const std::string &schemeName); + long getDuplicatePolicy() const; + void setDuplicatePolicy(long duplicatePolicy); + std::string getOutId() const; + void setOutId(const std::string &outId); + long getInterval() const; + void setInterval(long interval); + std::string getTemplateCode() const; + void setTemplateCode(const std::string &templateCode); + std::string getTemplateParam() const; + void setTemplateParam(const std::string &templateParam); + long getCodeLength() const; + void setCodeLength(long codeLength); + +private: + long resourceOwnerId_; + std::string countryCode_; + std::string phoneNumber_; + std::string extendFunction_; + std::string accessKeyId_; + std::string smsUpExtendCode_; + std::string signName_; + std::string routeName_; + std::string resourceOwnerAccount_; + long validTime_; + long ownerId_; + bool returnVerifyCode_; + long codeType_; + std::string schemeName_; + long duplicatePolicy_; + std::string outId_; + long interval_; + std::string templateCode_; + std::string templateParam_; + long codeLength_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_SENDSMSVERIFYCODEREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeResult.h new file mode 100644 index 000000000..2b7712635 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/SendSmsVerifyCodeResult.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_SENDSMSVERIFYCODERESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_SENDSMSVERIFYCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dypnsapi + { + namespace Model + { + class ALIBABACLOUD_DYPNSAPI_EXPORT SendSmsVerifyCodeResult : public ServiceResult + { + public: + struct Model + { + std::string verifyCode; + std::string requestId; + std::string outId; + std::string bizId; + }; + + + SendSmsVerifyCodeResult(); + explicit SendSmsVerifyCodeResult(const std::string &payload); + ~SendSmsVerifyCodeResult(); + std::string getAccessDeniedDetail()const; + std::string getMessage()const; + Model getModel()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string accessDeniedDetail_; + std::string message_; + Model model_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_SENDSMSVERIFYCODERESULT_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 index d7474a63d..c00ddeda4 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyMobileRequest.h @@ -1,66 +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_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 getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getAccessCode()const; - void setAccessCode(const std::string& accessCode); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getOutId()const; - void setOutId(const std::string& outId); - - private: - long resourceOwnerId_; - std::string phoneNumber_; - std::string accessKeyId_; - std::string accessCode_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string outId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_ + +#include +#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 getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccessCode() const; + void setAccessCode(const std::string &accessCode); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOutId() const; + void setOutId(const std::string &outId); + +private: + long resourceOwnerId_; + std::string phoneNumber_; + std::string accessKeyId_; + std::string accessCode_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string outId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h index 83531ad02..cd43027f1 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h @@ -1,63 +1,57 @@ /* * 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_VERIFYPHONEWITHTOKENREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYPHONEWITHTOKENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyPhoneWithTokenRequest : public RpcServiceRequest - { - - public: - VerifyPhoneWithTokenRequest(); - ~VerifyPhoneWithTokenRequest(); - - 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 getSpToken()const; - void setSpToken(const std::string& spToken); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string phoneNumber_; - long ownerId_; - std::string accessKeyId_; - std::string spToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYPHONEWITHTOKENREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYPHONEWITHTOKENREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYPHONEWITHTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyPhoneWithTokenRequest : public RpcServiceRequest { +public: + VerifyPhoneWithTokenRequest(); + ~VerifyPhoneWithTokenRequest(); + 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 getSpToken() const; + void setSpToken(const std::string &spToken); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string phoneNumber_; + long ownerId_; + std::string accessKeyId_; + std::string spToken_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYPHONEWITHTOKENREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h index 2b82ed713..7558736fb 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h @@ -1,69 +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_VERIFYSMSCODEREQUEST_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dypnsapi - { - namespace Model - { - class ALIBABACLOUD_DYPNSAPI_EXPORT VerifySmsCodeRequest : public RpcServiceRequest - { - - public: - VerifySmsCodeRequest(); - ~VerifySmsCodeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getSmsToken()const; - void setSmsToken(const std::string& smsToken); - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmsCode()const; - void setSmsCode(const std::string& smsCode); - - private: - long resourceOwnerId_; - std::string productCode_; - std::string smsToken_; - std::string phoneNumber_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string smsCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT VerifySmsCodeRequest : public RpcServiceRequest { +public: + VerifySmsCodeRequest(); + ~VerifySmsCodeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSmsToken() const; + void setSmsToken(const std::string &smsToken); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmsCode() const; + void setSmsCode(const std::string &smsCode); + +private: + long resourceOwnerId_; + std::string productCode_; + std::string smsToken_; + std::string phoneNumber_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string smsCode_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenRequest.h b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenRequest.h new file mode 100644 index 000000000..6f5c39a63 --- /dev/null +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenRequest.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_VERIFYWITHFUSIONAUTHTOKENREQUEST_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYWITHFUSIONAUTHTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dypnsapi { +namespace Model { +class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyWithFusionAuthTokenRequest : public RpcServiceRequest { +public: + VerifyWithFusionAuthTokenRequest(); + ~VerifyWithFusionAuthTokenRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getExtendFunction() const; + void setExtendFunction(const std::string &extendFunction); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRouteName() const; + void setRouteName(const std::string &routeName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getVerifyToken() const; + void setVerifyToken(const std::string &verifyToken); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string extendFunction_; + std::string accessKeyId_; + std::string routeName_; + std::string resourceOwnerAccount_; + std::string verifyToken_; + long ownerId_; +}; +} // namespace Model +} // namespace Dypnsapi +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYWITHFUSIONAUTHTOKENREQUEST_H_ diff --git a/dypnsapi/include/alibabacloud/dypnsapi/model/GetCertifyResultResult.h b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenResult.h similarity index 64% rename from dypnsapi/include/alibabacloud/dypnsapi/model/GetCertifyResultResult.h rename to dypnsapi/include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenResult.h index 147238980..a70f85ae2 100644 --- a/dypnsapi/include/alibabacloud/dypnsapi/model/GetCertifyResultResult.h +++ b/dypnsapi/include/alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_ -#define ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_ +#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYWITHFUSIONAUTHTOKENRESULT_H_ +#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYWITHFUSIONAUTHTOKENRESULT_H_ #include #include @@ -29,35 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_DYPNSAPI_EXPORT GetCertifyResultResult : public ServiceResult + class ALIBABACLOUD_DYPNSAPI_EXPORT VerifyWithFusionAuthTokenResult : public ServiceResult { public: - struct DataItem + struct Model { - std::string deviceToken; - std::string identityInfo; - std::string materialInfo; + std::string phoneNumber; std::string verifyResult; - std::string verifyDesc; + long phoneScore; }; - GetCertifyResultResult(); - explicit GetCertifyResultResult(const std::string &payload); - ~GetCertifyResultResult(); + VerifyWithFusionAuthTokenResult(); + explicit VerifyWithFusionAuthTokenResult(const std::string &payload); + ~VerifyWithFusionAuthTokenResult(); std::string getMessage()const; - std::vector getData()const; + Model getModel()const; std::string getCode()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; - std::vector data_; + Model model_; std::string code_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYWITHFUSIONAUTHTOKENRESULT_H_ \ No newline at end of file diff --git a/dypnsapi/src/DypnsapiClient.cc b/dypnsapi/src/DypnsapiClient.cc index 0c2aeaeee..d2c642a55 100644 --- a/dypnsapi/src/DypnsapiClient.cc +++ b/dypnsapi/src/DypnsapiClient.cc @@ -51,6 +51,78 @@ DypnsapiClient::DypnsapiClient(const std::string & accessKeyId, const std::strin DypnsapiClient::~DypnsapiClient() {} +DypnsapiClient::CheckSmsVerifyCodeOutcome DypnsapiClient::checkSmsVerifyCode(const CheckSmsVerifyCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckSmsVerifyCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckSmsVerifyCodeOutcome(CheckSmsVerifyCodeResult(outcome.result())); + else + return CheckSmsVerifyCodeOutcome(outcome.error()); +} + +void DypnsapiClient::checkSmsVerifyCodeAsync(const CheckSmsVerifyCodeRequest& request, const CheckSmsVerifyCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkSmsVerifyCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DypnsapiClient::CheckSmsVerifyCodeOutcomeCallable DypnsapiClient::checkSmsVerifyCodeCallable(const CheckSmsVerifyCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkSmsVerifyCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DypnsapiClient::CreateSchemeConfigOutcome DypnsapiClient::createSchemeConfig(const CreateSchemeConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSchemeConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSchemeConfigOutcome(CreateSchemeConfigResult(outcome.result())); + else + return CreateSchemeConfigOutcome(outcome.error()); +} + +void DypnsapiClient::createSchemeConfigAsync(const CreateSchemeConfigRequest& request, const CreateSchemeConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSchemeConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DypnsapiClient::CreateSchemeConfigOutcomeCallable DypnsapiClient::createSchemeConfigCallable(const CreateSchemeConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSchemeConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DypnsapiClient::CreateVerifySchemeOutcome DypnsapiClient::createVerifyScheme(const CreateVerifySchemeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,36 +303,36 @@ DypnsapiClient::GetAuthorizationUrlOutcomeCallable DypnsapiClient::getAuthorizat return task->get_future(); } -DypnsapiClient::GetCertifyResultOutcome DypnsapiClient::getCertifyResult(const GetCertifyResultRequest &request) const +DypnsapiClient::GetFusionAuthTokenOutcome DypnsapiClient::getFusionAuthToken(const GetFusionAuthTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetCertifyResultOutcome(endpointOutcome.error()); + return GetFusionAuthTokenOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetCertifyResultOutcome(GetCertifyResultResult(outcome.result())); + return GetFusionAuthTokenOutcome(GetFusionAuthTokenResult(outcome.result())); else - return GetCertifyResultOutcome(outcome.error()); + return GetFusionAuthTokenOutcome(outcome.error()); } -void DypnsapiClient::getCertifyResultAsync(const GetCertifyResultRequest& request, const GetCertifyResultAsyncHandler& handler, const std::shared_ptr& context) const +void DypnsapiClient::getFusionAuthTokenAsync(const GetFusionAuthTokenRequest& request, const GetFusionAuthTokenAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getCertifyResult(request), context); + handler(this, request, getFusionAuthToken(request), context); }; asyncExecute(new Runnable(fn)); } -DypnsapiClient::GetCertifyResultOutcomeCallable DypnsapiClient::getCertifyResultCallable(const GetCertifyResultRequest &request) const +DypnsapiClient::GetFusionAuthTokenOutcomeCallable DypnsapiClient::getFusionAuthTokenCallable(const GetFusionAuthTokenRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getCertifyResult(request); + return this->getFusionAuthToken(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -303,6 +375,42 @@ DypnsapiClient::GetMobileOutcomeCallable DypnsapiClient::getMobileCallable(const return task->get_future(); } +DypnsapiClient::GetPhoneWithTokenOutcome DypnsapiClient::getPhoneWithToken(const GetPhoneWithTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPhoneWithTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPhoneWithTokenOutcome(GetPhoneWithTokenResult(outcome.result())); + else + return GetPhoneWithTokenOutcome(outcome.error()); +} + +void DypnsapiClient::getPhoneWithTokenAsync(const GetPhoneWithTokenRequest& request, const GetPhoneWithTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPhoneWithToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DypnsapiClient::GetPhoneWithTokenOutcomeCallable DypnsapiClient::getPhoneWithTokenCallable(const GetPhoneWithTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPhoneWithToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DypnsapiClient::GetSmsAuthTokensOutcome DypnsapiClient::getSmsAuthTokens(const GetSmsAuthTokensRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +519,78 @@ DypnsapiClient::QueryGateVerifyStatisticPublicOutcomeCallable DypnsapiClient::qu return task->get_future(); } +DypnsapiClient::QuerySendDetailsOutcome DypnsapiClient::querySendDetails(const QuerySendDetailsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySendDetailsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySendDetailsOutcome(QuerySendDetailsResult(outcome.result())); + else + return QuerySendDetailsOutcome(outcome.error()); +} + +void DypnsapiClient::querySendDetailsAsync(const QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySendDetails(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DypnsapiClient::QuerySendDetailsOutcomeCallable DypnsapiClient::querySendDetailsCallable(const QuerySendDetailsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySendDetails(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DypnsapiClient::SendSmsVerifyCodeOutcome DypnsapiClient::sendSmsVerifyCode(const SendSmsVerifyCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SendSmsVerifyCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SendSmsVerifyCodeOutcome(SendSmsVerifyCodeResult(outcome.result())); + else + return SendSmsVerifyCodeOutcome(outcome.error()); +} + +void DypnsapiClient::sendSmsVerifyCodeAsync(const SendSmsVerifyCodeRequest& request, const SendSmsVerifyCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sendSmsVerifyCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DypnsapiClient::SendSmsVerifyCodeOutcomeCallable DypnsapiClient::sendSmsVerifyCodeCallable(const SendSmsVerifyCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sendSmsVerifyCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DypnsapiClient::VerifyMobileOutcome DypnsapiClient::verifyMobile(const VerifyMobileRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,3 +699,39 @@ DypnsapiClient::VerifySmsCodeOutcomeCallable DypnsapiClient::verifySmsCodeCallab return task->get_future(); } +DypnsapiClient::VerifyWithFusionAuthTokenOutcome DypnsapiClient::verifyWithFusionAuthToken(const VerifyWithFusionAuthTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VerifyWithFusionAuthTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VerifyWithFusionAuthTokenOutcome(VerifyWithFusionAuthTokenResult(outcome.result())); + else + return VerifyWithFusionAuthTokenOutcome(outcome.error()); +} + +void DypnsapiClient::verifyWithFusionAuthTokenAsync(const VerifyWithFusionAuthTokenRequest& request, const VerifyWithFusionAuthTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, verifyWithFusionAuthToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DypnsapiClient::VerifyWithFusionAuthTokenOutcomeCallable DypnsapiClient::verifyWithFusionAuthTokenCallable(const VerifyWithFusionAuthTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->verifyWithFusionAuthToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/dypnsapi/src/model/CheckSmsVerifyCodeRequest.cc b/dypnsapi/src/model/CheckSmsVerifyCodeRequest.cc new file mode 100644 index 000000000..6809b4d21 --- /dev/null +++ b/dypnsapi/src/model/CheckSmsVerifyCodeRequest.cc @@ -0,0 +1,135 @@ +/* + * 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::CheckSmsVerifyCodeRequest; + +CheckSmsVerifyCodeRequest::CheckSmsVerifyCodeRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "CheckSmsVerifyCode") { + setMethod(HttpRequest::Method::Post); +} + +CheckSmsVerifyCodeRequest::~CheckSmsVerifyCodeRequest() {} + +long CheckSmsVerifyCodeRequest::getCaseAuthPolicy() const { + return caseAuthPolicy_; +} + +void CheckSmsVerifyCodeRequest::setCaseAuthPolicy(long caseAuthPolicy) { + caseAuthPolicy_ = caseAuthPolicy; + setParameter(std::string("CaseAuthPolicy"), std::to_string(caseAuthPolicy)); +} + +long CheckSmsVerifyCodeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckSmsVerifyCodeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckSmsVerifyCodeRequest::getCountryCode() const { + return countryCode_; +} + +void CheckSmsVerifyCodeRequest::setCountryCode(const std::string &countryCode) { + countryCode_ = countryCode; + setParameter(std::string("CountryCode"), countryCode); +} + +std::string CheckSmsVerifyCodeRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void CheckSmsVerifyCodeRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string CheckSmsVerifyCodeRequest::getExtendFunction() const { + return extendFunction_; +} + +void CheckSmsVerifyCodeRequest::setExtendFunction(const std::string &extendFunction) { + extendFunction_ = extendFunction; + setParameter(std::string("ExtendFunction"), extendFunction); +} + +std::string CheckSmsVerifyCodeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckSmsVerifyCodeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckSmsVerifyCodeRequest::getVerifyCode() const { + return verifyCode_; +} + +void CheckSmsVerifyCodeRequest::setVerifyCode(const std::string &verifyCode) { + verifyCode_ = verifyCode; + setParameter(std::string("VerifyCode"), verifyCode); +} + +std::string CheckSmsVerifyCodeRequest::getRouteName() const { + return routeName_; +} + +void CheckSmsVerifyCodeRequest::setRouteName(const std::string &routeName) { + routeName_ = routeName; + setParameter(std::string("RouteName"), routeName); +} + +std::string CheckSmsVerifyCodeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckSmsVerifyCodeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long CheckSmsVerifyCodeRequest::getOwnerId() const { + return ownerId_; +} + +void CheckSmsVerifyCodeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CheckSmsVerifyCodeRequest::getSchemeName() const { + return schemeName_; +} + +void CheckSmsVerifyCodeRequest::setSchemeName(const std::string &schemeName) { + schemeName_ = schemeName; + setParameter(std::string("SchemeName"), schemeName); +} + +std::string CheckSmsVerifyCodeRequest::getOutId() const { + return outId_; +} + +void CheckSmsVerifyCodeRequest::setOutId(const std::string &outId) { + outId_ = outId; + setParameter(std::string("OutId"), outId); +} + diff --git a/dypnsapi/src/model/CheckSmsVerifyCodeResult.cc b/dypnsapi/src/model/CheckSmsVerifyCodeResult.cc new file mode 100644 index 000000000..ca8a3ccdb --- /dev/null +++ b/dypnsapi/src/model/CheckSmsVerifyCodeResult.cc @@ -0,0 +1,82 @@ +/* + * 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; + +CheckSmsVerifyCodeResult::CheckSmsVerifyCodeResult() : + ServiceResult() +{} + +CheckSmsVerifyCodeResult::CheckSmsVerifyCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckSmsVerifyCodeResult::~CheckSmsVerifyCodeResult() +{} + +void CheckSmsVerifyCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto modelNode = value["Model"]; + if(!modelNode["OutId"].isNull()) + model_.outId = modelNode["OutId"].asString(); + if(!modelNode["VerifyResult"].isNull()) + model_.verifyResult = modelNode["VerifyResult"].asString(); + if(!value["AccessDeniedDetail"].isNull()) + accessDeniedDetail_ = value["AccessDeniedDetail"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CheckSmsVerifyCodeResult::getAccessDeniedDetail()const +{ + return accessDeniedDetail_; +} + +std::string CheckSmsVerifyCodeResult::getMessage()const +{ + return message_; +} + +CheckSmsVerifyCodeResult::Model CheckSmsVerifyCodeResult::getModel()const +{ + return model_; +} + +std::string CheckSmsVerifyCodeResult::getCode()const +{ + return code_; +} + +bool CheckSmsVerifyCodeResult::getSuccess()const +{ + return success_; +} + diff --git a/dypnsapi/src/model/CreateSchemeConfigRequest.cc b/dypnsapi/src/model/CreateSchemeConfigRequest.cc new file mode 100644 index 000000000..0a94cd913 --- /dev/null +++ b/dypnsapi/src/model/CreateSchemeConfigRequest.cc @@ -0,0 +1,144 @@ +/* + * 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::CreateSchemeConfigRequest; + +CreateSchemeConfigRequest::CreateSchemeConfigRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "CreateSchemeConfig") { + setMethod(HttpRequest::Method::Post); +} + +CreateSchemeConfigRequest::~CreateSchemeConfigRequest() {} + +long CreateSchemeConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateSchemeConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateSchemeConfigRequest::getAndroidPackageSign() const { + return androidPackageSign_; +} + +void CreateSchemeConfigRequest::setAndroidPackageSign(const std::string &androidPackageSign) { + androidPackageSign_ = androidPackageSign; + setParameter(std::string("AndroidPackageSign"), androidPackageSign); +} + +std::string CreateSchemeConfigRequest::getPlatform() const { + return platform_; +} + +void CreateSchemeConfigRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); +} + +std::string CreateSchemeConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateSchemeConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateSchemeConfigRequest::getH5Url() const { + return h5Url_; +} + +void CreateSchemeConfigRequest::setH5Url(const std::string &h5Url) { + h5Url_ = h5Url; + setParameter(std::string("H5Url"), h5Url); +} + +std::string CreateSchemeConfigRequest::getIosBundleId() const { + return iosBundleId_; +} + +void CreateSchemeConfigRequest::setIosBundleId(const std::string &iosBundleId) { + iosBundleId_ = iosBundleId; + setParameter(std::string("IosBundleId"), iosBundleId); +} + +std::string CreateSchemeConfigRequest::getAppName() const { + return appName_; +} + +void CreateSchemeConfigRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string CreateSchemeConfigRequest::getRouteName() const { + return routeName_; +} + +void CreateSchemeConfigRequest::setRouteName(const std::string &routeName) { + routeName_ = routeName; + setParameter(std::string("RouteName"), routeName); +} + +std::string CreateSchemeConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateSchemeConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long CreateSchemeConfigRequest::getOwnerId() const { + return ownerId_; +} + +void CreateSchemeConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateSchemeConfigRequest::getH5Origin() const { + return h5Origin_; +} + +void CreateSchemeConfigRequest::setH5Origin(const std::string &h5Origin) { + h5Origin_ = h5Origin; + setParameter(std::string("H5Origin"), h5Origin); +} + +std::string CreateSchemeConfigRequest::getSchemeName() const { + return schemeName_; +} + +void CreateSchemeConfigRequest::setSchemeName(const std::string &schemeName) { + schemeName_ = schemeName; + setParameter(std::string("SchemeName"), schemeName); +} + +std::string CreateSchemeConfigRequest::getAndroidPackageName() const { + return androidPackageName_; +} + +void CreateSchemeConfigRequest::setAndroidPackageName(const std::string &androidPackageName) { + androidPackageName_ = androidPackageName; + setParameter(std::string("AndroidPackageName"), androidPackageName); +} + diff --git a/dypnsapi/src/model/CreateSchemeConfigResult.cc b/dypnsapi/src/model/CreateSchemeConfigResult.cc new file mode 100644 index 000000000..2c5b3d87e --- /dev/null +++ b/dypnsapi/src/model/CreateSchemeConfigResult.cc @@ -0,0 +1,73 @@ +/* + * 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; + +CreateSchemeConfigResult::CreateSchemeConfigResult() : + ServiceResult() +{} + +CreateSchemeConfigResult::CreateSchemeConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSchemeConfigResult::~CreateSchemeConfigResult() +{} + +void CreateSchemeConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto modelNode = value["Model"]; + if(!modelNode["SchemeCode"].isNull()) + model_.schemeCode = modelNode["SchemeCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateSchemeConfigResult::getMessage()const +{ + return message_; +} + +CreateSchemeConfigResult::Model CreateSchemeConfigResult::getModel()const +{ + return model_; +} + +std::string CreateSchemeConfigResult::getCode()const +{ + return code_; +} + +bool CreateSchemeConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/dypnsapi/src/model/CreateVerifySchemeRequest.cc b/dypnsapi/src/model/CreateVerifySchemeRequest.cc index 1ff5029a5..892ce0ed9 100644 --- a/dypnsapi/src/model/CreateVerifySchemeRequest.cc +++ b/dypnsapi/src/model/CreateVerifySchemeRequest.cc @@ -1,139 +1,216 @@ /* * 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") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVerifySchemeRequest::~CreateVerifySchemeRequest() -{} - -long CreateVerifySchemeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::CreateVerifySchemeRequest; + +CreateVerifySchemeRequest::CreateVerifySchemeRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "CreateVerifyScheme") { + setMethod(HttpRequest::Method::Post); } -void CreateVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVerifySchemeRequest::~CreateVerifySchemeRequest() {} + +long CreateVerifySchemeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVerifySchemeRequest::getBundleId()const -{ - return bundleId_; +void CreateVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVerifySchemeRequest::setBundleId(const std::string& bundleId) -{ - bundleId_ = bundleId; - setParameter("BundleId", bundleId); +std::string CreateVerifySchemeRequest::getOrigin() const { + return origin_; } -std::string CreateVerifySchemeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateVerifySchemeRequest::setOrigin(const std::string &origin) { + origin_ = origin; + setParameter(std::string("Origin"), origin); } -void CreateVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateVerifySchemeRequest::getBundleId() const { + return bundleId_; } -std::string CreateVerifySchemeRequest::getAppName()const -{ - return appName_; +void CreateVerifySchemeRequest::setBundleId(const std::string &bundleId) { + bundleId_ = bundleId; + setParameter(std::string("BundleId"), bundleId); } -void CreateVerifySchemeRequest::setAppName(const std::string& appName) -{ - appName_ = appName; - setParameter("AppName", appName); +std::string CreateVerifySchemeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string CreateVerifySchemeRequest::getPackSign()const -{ - return packSign_; +void CreateVerifySchemeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CreateVerifySchemeRequest::setPackSign(const std::string& packSign) -{ - packSign_ = packSign; - setParameter("PackSign", packSign); +std::string CreateVerifySchemeRequest::getAuthType() const { + return authType_; } -std::string CreateVerifySchemeRequest::getPackName()const -{ - return packName_; +void CreateVerifySchemeRequest::setAuthType(const std::string &authType) { + authType_ = authType; + setParameter(std::string("AuthType"), authType); } -void CreateVerifySchemeRequest::setPackName(const std::string& packName) -{ - packName_ = packName; - setParameter("PackName", packName); +std::string CreateVerifySchemeRequest::getAppName() const { + return appName_; } -std::string CreateVerifySchemeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVerifySchemeRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); } -void CreateVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVerifySchemeRequest::getIpWhiteList() const { + return ipWhiteList_; } -std::string CreateVerifySchemeRequest::getOsType()const -{ - return osType_; +void CreateVerifySchemeRequest::setIpWhiteList(const std::string &ipWhiteList) { + ipWhiteList_ = ipWhiteList; + setParameter(std::string("IpWhiteList"), ipWhiteList); } -void CreateVerifySchemeRequest::setOsType(const std::string& osType) -{ - osType_ = osType; - setParameter("OsType", osType); +std::string CreateVerifySchemeRequest::getRouteName() const { + return routeName_; } -long CreateVerifySchemeRequest::getOwnerId()const -{ - return ownerId_; +void CreateVerifySchemeRequest::setRouteName(const std::string &routeName) { + routeName_ = routeName; + setParameter(std::string("RouteName"), routeName); } -void CreateVerifySchemeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateVerifySchemeRequest::getEmail() const { + return email_; } -std::string CreateVerifySchemeRequest::getSchemeName()const -{ - return schemeName_; +void CreateVerifySchemeRequest::setEmail(const std::string &email) { + email_ = email; + setParameter(std::string("Email"), email); } -void CreateVerifySchemeRequest::setSchemeName(const std::string& schemeName) -{ - schemeName_ = schemeName; - setParameter("SchemeName", schemeName); +std::string CreateVerifySchemeRequest::getPackSign() const { + return packSign_; +} + +void CreateVerifySchemeRequest::setPackSign(const std::string &packSign) { + packSign_ = packSign; + setParameter(std::string("PackSign"), packSign); +} + +std::string CreateVerifySchemeRequest::getPackName() const { + return packName_; +} + +void CreateVerifySchemeRequest::setPackName(const std::string &packName) { + packName_ = packName; + setParameter(std::string("PackName"), packName); +} + +long CreateVerifySchemeRequest::getCuApiCode() const { + return cuApiCode_; +} + +void CreateVerifySchemeRequest::setCuApiCode(long cuApiCode) { + cuApiCode_ = cuApiCode; + setParameter(std::string("CuApiCode"), std::to_string(cuApiCode)); +} + +std::string CreateVerifySchemeRequest::getSceneType() const { + return sceneType_; +} + +void CreateVerifySchemeRequest::setSceneType(const std::string &sceneType) { + sceneType_ = sceneType; + setParameter(std::string("SceneType"), sceneType); +} + +std::string CreateVerifySchemeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateVerifySchemeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long CreateVerifySchemeRequest::getCtApiCode() const { + return ctApiCode_; +} + +void CreateVerifySchemeRequest::setCtApiCode(long ctApiCode) { + ctApiCode_ = ctApiCode; + setParameter(std::string("CtApiCode"), std::to_string(ctApiCode)); +} + +std::string CreateVerifySchemeRequest::getOsType() const { + return osType_; +} + +void CreateVerifySchemeRequest::setOsType(const std::string &osType) { + osType_ = osType; + setParameter(std::string("OsType"), osType); +} + +long CreateVerifySchemeRequest::getOwnerId() const { + return ownerId_; +} + +void CreateVerifySchemeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateVerifySchemeRequest::getUrl() const { + return url_; +} + +void CreateVerifySchemeRequest::setUrl(const std::string &url) { + url_ = url; + setParameter(std::string("Url"), url); +} + +long CreateVerifySchemeRequest::getCmApiCode() const { + return cmApiCode_; +} + +void CreateVerifySchemeRequest::setCmApiCode(long cmApiCode) { + cmApiCode_ = cmApiCode; + setParameter(std::string("CmApiCode"), std::to_string(cmApiCode)); +} + +std::string CreateVerifySchemeRequest::getSchemeName() const { + return schemeName_; +} + +void CreateVerifySchemeRequest::setSchemeName(const std::string &schemeName) { + schemeName_ = schemeName; + setParameter(std::string("SchemeName"), schemeName); +} + +std::string CreateVerifySchemeRequest::getSmsSignName() const { + return smsSignName_; +} + +void CreateVerifySchemeRequest::setSmsSignName(const std::string &smsSignName) { + smsSignName_ = smsSignName; + setParameter(std::string("SmsSignName"), smsSignName); } diff --git a/dypnsapi/src/model/CreateVerifySchemeResult.cc b/dypnsapi/src/model/CreateVerifySchemeResult.cc index 816a1ad96..4096baae0 100644 --- a/dypnsapi/src/model/CreateVerifySchemeResult.cc +++ b/dypnsapi/src/model/CreateVerifySchemeResult.cc @@ -42,10 +42,14 @@ void CreateVerifySchemeResult::parse(const std::string &payload) 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(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -59,8 +63,18 @@ CreateVerifySchemeResult::GateVerifySchemeDTO CreateVerifySchemeResult::getGateV return gateVerifySchemeDTO_; } +long CreateVerifySchemeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + std::string CreateVerifySchemeResult::getCode()const { return code_; } +bool CreateVerifySchemeResult::getSuccess()const +{ + return success_; +} + diff --git a/dypnsapi/src/model/DeleteVerifySchemeRequest.cc b/dypnsapi/src/model/DeleteVerifySchemeRequest.cc index 16bf94d71..8d5370707 100644 --- a/dypnsapi/src/model/DeleteVerifySchemeRequest.cc +++ b/dypnsapi/src/model/DeleteVerifySchemeRequest.cc @@ -1,95 +1,81 @@ /* * 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::DeleteVerifySchemeRequest; - -DeleteVerifySchemeRequest::DeleteVerifySchemeRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "DeleteVerifyScheme") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVerifySchemeRequest::~DeleteVerifySchemeRequest() -{} - -long DeleteVerifySchemeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::DeleteVerifySchemeRequest; + +DeleteVerifySchemeRequest::DeleteVerifySchemeRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "DeleteVerifyScheme") { + setMethod(HttpRequest::Method::Post); } -void DeleteVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVerifySchemeRequest::~DeleteVerifySchemeRequest() {} + +long DeleteVerifySchemeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVerifySchemeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVerifySchemeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DeleteVerifySchemeRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVerifySchemeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVerifySchemeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVerifySchemeRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVerifySchemeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteVerifySchemeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteVerifySchemeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteVerifySchemeRequest::getSchemeCode()const -{ - return schemeCode_; +void DeleteVerifySchemeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteVerifySchemeRequest::setSchemeCode(const std::string& schemeCode) -{ - schemeCode_ = schemeCode; - setParameter("SchemeCode", schemeCode); +std::string DeleteVerifySchemeRequest::getSchemeCode() const { + return schemeCode_; } -long DeleteVerifySchemeRequest::getCustomerId()const -{ - return customerId_; +void DeleteVerifySchemeRequest::setSchemeCode(const std::string &schemeCode) { + schemeCode_ = schemeCode; + setParameter(std::string("SchemeCode"), schemeCode); } -void DeleteVerifySchemeRequest::setCustomerId(long customerId) -{ - customerId_ = customerId; - setParameter("CustomerId", std::to_string(customerId)); +long DeleteVerifySchemeRequest::getCustomerId() const { + return customerId_; +} + +void DeleteVerifySchemeRequest::setCustomerId(long customerId) { + customerId_ = customerId; + setParameter(std::string("CustomerId"), std::to_string(customerId)); } diff --git a/dypnsapi/src/model/DescribeVerifySchemeRequest.cc b/dypnsapi/src/model/DescribeVerifySchemeRequest.cc index 21f19d97c..c29048e8d 100644 --- a/dypnsapi/src/model/DescribeVerifySchemeRequest.cc +++ b/dypnsapi/src/model/DescribeVerifySchemeRequest.cc @@ -1,95 +1,81 @@ /* * 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::DescribeVerifySchemeRequest; - -DescribeVerifySchemeRequest::DescribeVerifySchemeRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "DescribeVerifyScheme") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVerifySchemeRequest::~DescribeVerifySchemeRequest() -{} - -long DescribeVerifySchemeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::DescribeVerifySchemeRequest; + +DescribeVerifySchemeRequest::DescribeVerifySchemeRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "DescribeVerifyScheme") { + setMethod(HttpRequest::Method::Post); } -void DescribeVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVerifySchemeRequest::~DescribeVerifySchemeRequest() {} + +long DescribeVerifySchemeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeVerifySchemeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVerifySchemeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeVerifySchemeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVerifySchemeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVerifySchemeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVerifySchemeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVerifySchemeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeVerifySchemeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeVerifySchemeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeVerifySchemeRequest::getSchemeCode()const -{ - return schemeCode_; +void DescribeVerifySchemeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeVerifySchemeRequest::setSchemeCode(const std::string& schemeCode) -{ - schemeCode_ = schemeCode; - setParameter("SchemeCode", schemeCode); +std::string DescribeVerifySchemeRequest::getSchemeCode() const { + return schemeCode_; } -long DescribeVerifySchemeRequest::getCustomerId()const -{ - return customerId_; +void DescribeVerifySchemeRequest::setSchemeCode(const std::string &schemeCode) { + schemeCode_ = schemeCode; + setParameter(std::string("SchemeCode"), schemeCode); } -void DescribeVerifySchemeRequest::setCustomerId(long customerId) -{ - customerId_ = customerId; - setParameter("CustomerId", std::to_string(customerId)); +long DescribeVerifySchemeRequest::getCustomerId() const { + return customerId_; +} + +void DescribeVerifySchemeRequest::setCustomerId(long customerId) { + customerId_ = customerId; + setParameter(std::string("CustomerId"), std::to_string(customerId)); } diff --git a/dypnsapi/src/model/GetAuthTokenRequest.cc b/dypnsapi/src/model/GetAuthTokenRequest.cc index 5e55fe683..c64cf7db2 100644 --- a/dypnsapi/src/model/GetAuthTokenRequest.cc +++ b/dypnsapi/src/model/GetAuthTokenRequest.cc @@ -1,95 +1,81 @@ /* * 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::GetAuthTokenRequest; - -GetAuthTokenRequest::GetAuthTokenRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "GetAuthToken") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAuthTokenRequest::~GetAuthTokenRequest() -{} - -long GetAuthTokenRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::GetAuthTokenRequest; + +GetAuthTokenRequest::GetAuthTokenRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "GetAuthToken") { + setMethod(HttpRequest::Method::Post); } -void GetAuthTokenRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetAuthTokenRequest::~GetAuthTokenRequest() {} + +long GetAuthTokenRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetAuthTokenRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetAuthTokenRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetAuthTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetAuthTokenRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetAuthTokenRequest::getOrigin()const -{ - return origin_; +void GetAuthTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetAuthTokenRequest::setOrigin(const std::string& origin) -{ - origin_ = origin; - setParameter("Origin", origin); +std::string GetAuthTokenRequest::getOrigin() const { + return origin_; } -long GetAuthTokenRequest::getOwnerId()const -{ - return ownerId_; +void GetAuthTokenRequest::setOrigin(const std::string &origin) { + origin_ = origin; + setParameter(std::string("Origin"), origin); } -void GetAuthTokenRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetAuthTokenRequest::getOwnerId() const { + return ownerId_; } -std::string GetAuthTokenRequest::getUrl()const -{ - return url_; +void GetAuthTokenRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetAuthTokenRequest::setUrl(const std::string& url) -{ - url_ = url; - setParameter("Url", url); +std::string GetAuthTokenRequest::getUrl() const { + return url_; } -std::string GetAuthTokenRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetAuthTokenRequest::setUrl(const std::string &url) { + url_ = url; + setParameter(std::string("Url"), url); } -void GetAuthTokenRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetAuthTokenRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetAuthTokenRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/dypnsapi/src/model/GetAuthTokenResult.cc b/dypnsapi/src/model/GetAuthTokenResult.cc index 0bbe0bdf4..ca3ca7bcd 100644 --- a/dypnsapi/src/model/GetAuthTokenResult.cc +++ b/dypnsapi/src/model/GetAuthTokenResult.cc @@ -40,10 +40,10 @@ void GetAuthTokenResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto tokenInfoNode = value["TokenInfo"]; - if(!tokenInfoNode["JwtToken"].isNull()) - tokenInfo_.jwtToken = tokenInfoNode["JwtToken"].asString(); if(!tokenInfoNode["AccessToken"].isNull()) tokenInfo_.accessToken = tokenInfoNode["AccessToken"].asString(); + if(!tokenInfoNode["JwtToken"].isNull()) + tokenInfo_.jwtToken = tokenInfoNode["JwtToken"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/dypnsapi/src/model/GetAuthorizationUrlRequest.cc b/dypnsapi/src/model/GetAuthorizationUrlRequest.cc index f3631e259..6985a87d0 100644 --- a/dypnsapi/src/model/GetAuthorizationUrlRequest.cc +++ b/dypnsapi/src/model/GetAuthorizationUrlRequest.cc @@ -1,106 +1,90 @@ /* * 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::GetAuthorizationUrlRequest; - -GetAuthorizationUrlRequest::GetAuthorizationUrlRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "GetAuthorizationUrl") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAuthorizationUrlRequest::~GetAuthorizationUrlRequest() -{} - -long GetAuthorizationUrlRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::GetAuthorizationUrlRequest; + +GetAuthorizationUrlRequest::GetAuthorizationUrlRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "GetAuthorizationUrl") { + setMethod(HttpRequest::Method::Post); } -void GetAuthorizationUrlRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetAuthorizationUrlRequest::~GetAuthorizationUrlRequest() {} + +long GetAuthorizationUrlRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetAuthorizationUrlRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetAuthorizationUrlRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetAuthorizationUrlRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetAuthorizationUrlRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string GetAuthorizationUrlRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetAuthorizationUrlRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void GetAuthorizationUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetAuthorizationUrlRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long GetAuthorizationUrlRequest::getSchemeId()const -{ - return schemeId_; +void GetAuthorizationUrlRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetAuthorizationUrlRequest::setSchemeId(long schemeId) -{ - schemeId_ = schemeId; - setParameter("SchemeId", std::to_string(schemeId)); +long GetAuthorizationUrlRequest::getSchemeId() const { + return schemeId_; } -long GetAuthorizationUrlRequest::getOwnerId()const -{ - return ownerId_; +void GetAuthorizationUrlRequest::setSchemeId(long schemeId) { + schemeId_ = schemeId; + setParameter(std::string("SchemeId"), std::to_string(schemeId)); } -void GetAuthorizationUrlRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetAuthorizationUrlRequest::getOwnerId() const { + return ownerId_; } -std::string GetAuthorizationUrlRequest::getPhoneNo()const -{ - return phoneNo_; +void GetAuthorizationUrlRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetAuthorizationUrlRequest::setPhoneNo(const std::string& phoneNo) -{ - phoneNo_ = phoneNo; - setParameter("PhoneNo", phoneNo); +std::string GetAuthorizationUrlRequest::getPhoneNo() const { + return phoneNo_; } -std::string GetAuthorizationUrlRequest::getEndDate()const -{ - return endDate_; +void GetAuthorizationUrlRequest::setPhoneNo(const std::string &phoneNo) { + phoneNo_ = phoneNo; + setParameter(std::string("PhoneNo"), phoneNo); } -void GetAuthorizationUrlRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string GetAuthorizationUrlRequest::getEndDate() const { + return endDate_; +} + +void GetAuthorizationUrlRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } diff --git a/dypnsapi/src/model/GetCertifyResultRequest.cc b/dypnsapi/src/model/GetCertifyResultRequest.cc deleted file mode 100644 index 7aafce46f..000000000 --- a/dypnsapi/src/model/GetCertifyResultRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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::GetCertifyResultRequest; - -GetCertifyResultRequest::GetCertifyResultRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "GetCertifyResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetCertifyResultRequest::~GetCertifyResultRequest() -{} - -long GetCertifyResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void GetCertifyResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string GetCertifyResultRequest::getProductCode()const -{ - return productCode_; -} - -void GetCertifyResultRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); -} - -std::string GetCertifyResultRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetCertifyResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetCertifyResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void GetCertifyResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -long GetCertifyResultRequest::getOwnerId()const -{ - return ownerId_; -} - -void GetCertifyResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string GetCertifyResultRequest::getToken()const -{ - return token_; -} - -void GetCertifyResultRequest::setToken(const std::string& token) -{ - token_ = token; - setParameter("Token", token); -} - diff --git a/dypnsapi/src/model/GetCertifyResultResult.cc b/dypnsapi/src/model/GetCertifyResultResult.cc deleted file mode 100644 index a05480eae..000000000 --- a/dypnsapi/src/model/GetCertifyResultResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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; - -GetCertifyResultResult::GetCertifyResultResult() : - ServiceResult() -{} - -GetCertifyResultResult::GetCertifyResultResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCertifyResultResult::~GetCertifyResultResult() -{} - -void GetCertifyResultResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataNode = value["Data"]["DataItem"]; - for (auto valueDataDataItem : allDataNode) - { - DataItem dataObject; - if(!valueDataDataItem["MaterialInfo"].isNull()) - dataObject.materialInfo = valueDataDataItem["MaterialInfo"].asString(); - if(!valueDataDataItem["IdentityInfo"].isNull()) - dataObject.identityInfo = valueDataDataItem["IdentityInfo"].asString(); - if(!valueDataDataItem["VerifyDesc"].isNull()) - dataObject.verifyDesc = valueDataDataItem["VerifyDesc"].asString(); - if(!valueDataDataItem["VerifyResult"].isNull()) - dataObject.verifyResult = valueDataDataItem["VerifyResult"].asString(); - if(!valueDataDataItem["DeviceToken"].isNull()) - dataObject.deviceToken = valueDataDataItem["DeviceToken"].asString(); - data_.push_back(dataObject); - } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - -} - -std::string GetCertifyResultResult::getMessage()const -{ - return message_; -} - -std::vector GetCertifyResultResult::getData()const -{ - return data_; -} - -std::string GetCertifyResultResult::getCode()const -{ - return code_; -} - diff --git a/dypnsapi/src/model/GetFusionAuthTokenRequest.cc b/dypnsapi/src/model/GetFusionAuthTokenRequest.cc new file mode 100644 index 000000000..4f7d5c6af --- /dev/null +++ b/dypnsapi/src/model/GetFusionAuthTokenRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::GetFusionAuthTokenRequest; + +GetFusionAuthTokenRequest::GetFusionAuthTokenRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "GetFusionAuthToken") { + setMethod(HttpRequest::Method::Post); +} + +GetFusionAuthTokenRequest::~GetFusionAuthTokenRequest() {} + +long GetFusionAuthTokenRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetFusionAuthTokenRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetFusionAuthTokenRequest::getBundleId() const { + return bundleId_; +} + +void GetFusionAuthTokenRequest::setBundleId(const std::string &bundleId) { + bundleId_ = bundleId; + setParameter(std::string("BundleId"), bundleId); +} + +std::string GetFusionAuthTokenRequest::getPlatform() const { + return platform_; +} + +void GetFusionAuthTokenRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); +} + +std::string GetFusionAuthTokenRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetFusionAuthTokenRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetFusionAuthTokenRequest::getSchemeCode() const { + return schemeCode_; +} + +void GetFusionAuthTokenRequest::setSchemeCode(const std::string &schemeCode) { + schemeCode_ = schemeCode; + setParameter(std::string("SchemeCode"), schemeCode); +} + +std::string GetFusionAuthTokenRequest::getRouteName() const { + return routeName_; +} + +void GetFusionAuthTokenRequest::setRouteName(const std::string &routeName) { + routeName_ = routeName; + setParameter(std::string("RouteName"), routeName); +} + +std::string GetFusionAuthTokenRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetFusionAuthTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetFusionAuthTokenRequest::getPackageName() const { + return packageName_; +} + +void GetFusionAuthTokenRequest::setPackageName(const std::string &packageName) { + packageName_ = packageName; + setParameter(std::string("PackageName"), packageName); +} + +long GetFusionAuthTokenRequest::getOwnerId() const { + return ownerId_; +} + +void GetFusionAuthTokenRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GetFusionAuthTokenRequest::getPackageSign() const { + return packageSign_; +} + +void GetFusionAuthTokenRequest::setPackageSign(const std::string &packageSign) { + packageSign_ = packageSign; + setParameter(std::string("PackageSign"), packageSign); +} + +long GetFusionAuthTokenRequest::getDurationSeconds() const { + return durationSeconds_; +} + +void GetFusionAuthTokenRequest::setDurationSeconds(long durationSeconds) { + durationSeconds_ = durationSeconds; + setParameter(std::string("DurationSeconds"), std::to_string(durationSeconds)); +} + diff --git a/dypnsapi/src/model/GetFusionAuthTokenResult.cc b/dypnsapi/src/model/GetFusionAuthTokenResult.cc new file mode 100644 index 000000000..f8f543323 --- /dev/null +++ b/dypnsapi/src/model/GetFusionAuthTokenResult.cc @@ -0,0 +1,72 @@ +/* + * 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; + +GetFusionAuthTokenResult::GetFusionAuthTokenResult() : + ServiceResult() +{} + +GetFusionAuthTokenResult::GetFusionAuthTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFusionAuthTokenResult::~GetFusionAuthTokenResult() +{} + +void GetFusionAuthTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Model"].isNull()) + model_ = value["Model"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetFusionAuthTokenResult::getMessage()const +{ + return message_; +} + +std::string GetFusionAuthTokenResult::getModel()const +{ + return model_; +} + +std::string GetFusionAuthTokenResult::getCode()const +{ + return code_; +} + +bool GetFusionAuthTokenResult::getSuccess()const +{ + return success_; +} + diff --git a/dypnsapi/src/model/GetMobileRequest.cc b/dypnsapi/src/model/GetMobileRequest.cc index 6d3bde15b..6328688c0 100644 --- a/dypnsapi/src/model/GetMobileRequest.cc +++ b/dypnsapi/src/model/GetMobileRequest.cc @@ -1,95 +1,81 @@ /* * 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") -{ - setMethod(HttpRequest::Method::Post); -} - -GetMobileRequest::~GetMobileRequest() -{} - -long GetMobileRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::GetMobileRequest; + +GetMobileRequest::GetMobileRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "GetMobile") { + setMethod(HttpRequest::Method::Post); } -void GetMobileRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetMobileRequest::~GetMobileRequest() {} + +long GetMobileRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetMobileRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetMobileRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetMobileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetMobileRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetMobileRequest::getAccessToken()const -{ - return accessToken_; +void GetMobileRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetMobileRequest::setAccessToken(const std::string& accessToken) -{ - accessToken_ = accessToken; - setParameter("AccessToken", accessToken); +std::string GetMobileRequest::getAccessToken() const { + return accessToken_; } -long GetMobileRequest::getOwnerId()const -{ - return ownerId_; +void GetMobileRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("AccessToken"), accessToken); } -void GetMobileRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetMobileRequest::getOwnerId() const { + return ownerId_; } -std::string GetMobileRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetMobileRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetMobileRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetMobileRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string GetMobileRequest::getOutId()const -{ - return outId_; +void GetMobileRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void GetMobileRequest::setOutId(const std::string& outId) -{ - outId_ = outId; - setParameter("OutId", outId); +std::string GetMobileRequest::getOutId() const { + return outId_; +} + +void GetMobileRequest::setOutId(const std::string &outId) { + outId_ = outId; + setParameter(std::string("OutId"), outId); } diff --git a/dypnsapi/src/model/GetPhoneWithTokenRequest.cc b/dypnsapi/src/model/GetPhoneWithTokenRequest.cc new file mode 100644 index 000000000..7dcf358a4 --- /dev/null +++ b/dypnsapi/src/model/GetPhoneWithTokenRequest.cc @@ -0,0 +1,81 @@ +/* + * 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::GetPhoneWithTokenRequest; + +GetPhoneWithTokenRequest::GetPhoneWithTokenRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "GetPhoneWithToken") { + setMethod(HttpRequest::Method::Post); +} + +GetPhoneWithTokenRequest::~GetPhoneWithTokenRequest() {} + +long GetPhoneWithTokenRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetPhoneWithTokenRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetPhoneWithTokenRequest::getProductCode() const { + return productCode_; +} + +void GetPhoneWithTokenRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); +} + +std::string GetPhoneWithTokenRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetPhoneWithTokenRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetPhoneWithTokenRequest::getSpToken() const { + return spToken_; +} + +void GetPhoneWithTokenRequest::setSpToken(const std::string &spToken) { + spToken_ = spToken; + setParameter(std::string("SpToken"), spToken); +} + +std::string GetPhoneWithTokenRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetPhoneWithTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long GetPhoneWithTokenRequest::getOwnerId() const { + return ownerId_; +} + +void GetPhoneWithTokenRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/dypnsapi/src/model/GetPhoneWithTokenResult.cc b/dypnsapi/src/model/GetPhoneWithTokenResult.cc new file mode 100644 index 000000000..9ed6d1c72 --- /dev/null +++ b/dypnsapi/src/model/GetPhoneWithTokenResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dypnsapi; +using namespace AlibabaCloud::Dypnsapi::Model; + +GetPhoneWithTokenResult::GetPhoneWithTokenResult() : + ServiceResult() +{} + +GetPhoneWithTokenResult::GetPhoneWithTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPhoneWithTokenResult::~GetPhoneWithTokenResult() +{} + +void GetPhoneWithTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Mobile"].isNull()) + data_.mobile = dataNode["Mobile"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetPhoneWithTokenResult::getMessage()const +{ + return message_; +} + +GetPhoneWithTokenResult::Data GetPhoneWithTokenResult::getData()const +{ + return data_; +} + +std::string GetPhoneWithTokenResult::getCode()const +{ + return code_; +} + diff --git a/dypnsapi/src/model/GetSmsAuthTokensRequest.cc b/dypnsapi/src/model/GetSmsAuthTokensRequest.cc index 60e44a348..df3f3a958 100644 --- a/dypnsapi/src/model/GetSmsAuthTokensRequest.cc +++ b/dypnsapi/src/model/GetSmsAuthTokensRequest.cc @@ -1,172 +1,144 @@ /* * 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::GetSmsAuthTokensRequest; - -GetSmsAuthTokensRequest::GetSmsAuthTokensRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "GetSmsAuthTokens") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSmsAuthTokensRequest::~GetSmsAuthTokensRequest() -{} - -long GetSmsAuthTokensRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::GetSmsAuthTokensRequest; + +GetSmsAuthTokensRequest::GetSmsAuthTokensRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "GetSmsAuthTokens") { + setMethod(HttpRequest::Method::Post); } -void GetSmsAuthTokensRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetSmsAuthTokensRequest::~GetSmsAuthTokensRequest() {} + +long GetSmsAuthTokensRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetSmsAuthTokensRequest::getProductCode()const -{ - return productCode_; +void GetSmsAuthTokensRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetSmsAuthTokensRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +std::string GetSmsAuthTokensRequest::getProductCode() const { + return productCode_; } -std::string GetSmsAuthTokensRequest::getBundleId()const -{ - return bundleId_; +void GetSmsAuthTokensRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void GetSmsAuthTokensRequest::setBundleId(const std::string& bundleId) -{ - bundleId_ = bundleId; - setParameter("BundleId", bundleId); +std::string GetSmsAuthTokensRequest::getBundleId() const { + return bundleId_; } -std::string GetSmsAuthTokensRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetSmsAuthTokensRequest::setBundleId(const std::string &bundleId) { + bundleId_ = bundleId; + setParameter(std::string("BundleId"), bundleId); } -void GetSmsAuthTokensRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetSmsAuthTokensRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string GetSmsAuthTokensRequest::getSignName()const -{ - return signName_; +void GetSmsAuthTokensRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void GetSmsAuthTokensRequest::setSignName(const std::string& signName) -{ - signName_ = signName; - setParameter("SignName", signName); +std::string GetSmsAuthTokensRequest::getSignName() const { + return signName_; } -std::string GetSmsAuthTokensRequest::getSceneCode()const -{ - return sceneCode_; +void GetSmsAuthTokensRequest::setSignName(const std::string &signName) { + signName_ = signName; + setParameter(std::string("SignName"), signName); } -void GetSmsAuthTokensRequest::setSceneCode(const std::string& sceneCode) -{ - sceneCode_ = sceneCode; - setParameter("SceneCode", sceneCode); +std::string GetSmsAuthTokensRequest::getSceneCode() const { + return sceneCode_; } -std::string GetSmsAuthTokensRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetSmsAuthTokensRequest::setSceneCode(const std::string &sceneCode) { + sceneCode_ = sceneCode; + setParameter(std::string("SceneCode"), sceneCode); } -void GetSmsAuthTokensRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetSmsAuthTokensRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int GetSmsAuthTokensRequest::getSmsCodeExpire()const -{ - return smsCodeExpire_; +void GetSmsAuthTokensRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetSmsAuthTokensRequest::setSmsCodeExpire(int smsCodeExpire) -{ - smsCodeExpire_ = smsCodeExpire; - setParameter("SmsCodeExpire", std::to_string(smsCodeExpire)); +int GetSmsAuthTokensRequest::getSmsCodeExpire() const { + return smsCodeExpire_; } -std::string GetSmsAuthTokensRequest::getPackageName()const -{ - return packageName_; +void GetSmsAuthTokensRequest::setSmsCodeExpire(int smsCodeExpire) { + smsCodeExpire_ = smsCodeExpire; + setParameter(std::string("SmsCodeExpire"), std::to_string(smsCodeExpire)); } -void GetSmsAuthTokensRequest::setPackageName(const std::string& packageName) -{ - packageName_ = packageName; - setParameter("PackageName", packageName); +std::string GetSmsAuthTokensRequest::getPackageName() const { + return packageName_; } -std::string GetSmsAuthTokensRequest::getOsType()const -{ - return osType_; +void GetSmsAuthTokensRequest::setPackageName(const std::string &packageName) { + packageName_ = packageName; + setParameter(std::string("PackageName"), packageName); } -void GetSmsAuthTokensRequest::setOsType(const std::string& osType) -{ - osType_ = osType; - setParameter("OsType", osType); +std::string GetSmsAuthTokensRequest::getOsType() const { + return osType_; } -long GetSmsAuthTokensRequest::getOwnerId()const -{ - return ownerId_; +void GetSmsAuthTokensRequest::setOsType(const std::string &osType) { + osType_ = osType; + setParameter(std::string("OsType"), osType); } -void GetSmsAuthTokensRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetSmsAuthTokensRequest::getOwnerId() const { + return ownerId_; } -std::string GetSmsAuthTokensRequest::getSmsTemplateCode()const -{ - return smsTemplateCode_; +void GetSmsAuthTokensRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetSmsAuthTokensRequest::setSmsTemplateCode(const std::string& smsTemplateCode) -{ - smsTemplateCode_ = smsTemplateCode; - setParameter("SmsTemplateCode", smsTemplateCode); +std::string GetSmsAuthTokensRequest::getSmsTemplateCode() const { + return smsTemplateCode_; } -long GetSmsAuthTokensRequest::getExpire()const -{ - return expire_; +void GetSmsAuthTokensRequest::setSmsTemplateCode(const std::string &smsTemplateCode) { + smsTemplateCode_ = smsTemplateCode; + setParameter(std::string("SmsTemplateCode"), smsTemplateCode); } -void GetSmsAuthTokensRequest::setExpire(long expire) -{ - expire_ = expire; - setParameter("Expire", std::to_string(expire)); +long GetSmsAuthTokensRequest::getExpire() const { + return expire_; +} + +void GetSmsAuthTokensRequest::setExpire(long expire) { + expire_ = expire; + setParameter(std::string("Expire"), std::to_string(expire)); } diff --git a/dypnsapi/src/model/QueryGateVerifyBillingPublicRequest.cc b/dypnsapi/src/model/QueryGateVerifyBillingPublicRequest.cc index f29d33f6d..a3da72c33 100644 --- a/dypnsapi/src/model/QueryGateVerifyBillingPublicRequest.cc +++ b/dypnsapi/src/model/QueryGateVerifyBillingPublicRequest.cc @@ -1,106 +1,90 @@ /* * 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::QueryGateVerifyBillingPublicRequest; - -QueryGateVerifyBillingPublicRequest::QueryGateVerifyBillingPublicRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "QueryGateVerifyBillingPublic") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryGateVerifyBillingPublicRequest::~QueryGateVerifyBillingPublicRequest() -{} - -long QueryGateVerifyBillingPublicRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::QueryGateVerifyBillingPublicRequest; + +QueryGateVerifyBillingPublicRequest::QueryGateVerifyBillingPublicRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "QueryGateVerifyBillingPublic") { + setMethod(HttpRequest::Method::Post); } -void QueryGateVerifyBillingPublicRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryGateVerifyBillingPublicRequest::~QueryGateVerifyBillingPublicRequest() {} + +long QueryGateVerifyBillingPublicRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int QueryGateVerifyBillingPublicRequest::getAuthenticationType()const -{ - return authenticationType_; +void QueryGateVerifyBillingPublicRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryGateVerifyBillingPublicRequest::setAuthenticationType(int authenticationType) -{ - authenticationType_ = authenticationType; - setParameter("AuthenticationType", std::to_string(authenticationType)); +int QueryGateVerifyBillingPublicRequest::getAuthenticationType() const { + return authenticationType_; } -std::string QueryGateVerifyBillingPublicRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryGateVerifyBillingPublicRequest::setAuthenticationType(int authenticationType) { + authenticationType_ = authenticationType; + setParameter(std::string("AuthenticationType"), std::to_string(authenticationType)); } -void QueryGateVerifyBillingPublicRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryGateVerifyBillingPublicRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryGateVerifyBillingPublicRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryGateVerifyBillingPublicRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryGateVerifyBillingPublicRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryGateVerifyBillingPublicRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryGateVerifyBillingPublicRequest::getProdCode()const -{ - return prodCode_; +void QueryGateVerifyBillingPublicRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryGateVerifyBillingPublicRequest::setProdCode(const std::string& prodCode) -{ - prodCode_ = prodCode; - setParameter("ProdCode", prodCode); +std::string QueryGateVerifyBillingPublicRequest::getProdCode() const { + return prodCode_; } -long QueryGateVerifyBillingPublicRequest::getOwnerId()const -{ - return ownerId_; +void QueryGateVerifyBillingPublicRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); } -void QueryGateVerifyBillingPublicRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryGateVerifyBillingPublicRequest::getOwnerId() const { + return ownerId_; } -std::string QueryGateVerifyBillingPublicRequest::getMonth()const -{ - return month_; +void QueryGateVerifyBillingPublicRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryGateVerifyBillingPublicRequest::setMonth(const std::string& month) -{ - month_ = month; - setParameter("Month", month); +std::string QueryGateVerifyBillingPublicRequest::getMonth() const { + return month_; +} + +void QueryGateVerifyBillingPublicRequest::setMonth(const std::string &month) { + month_ = month; + setParameter(std::string("Month"), month); } diff --git a/dypnsapi/src/model/QueryGateVerifyStatisticPublicRequest.cc b/dypnsapi/src/model/QueryGateVerifyStatisticPublicRequest.cc index f229e5214..0c9e31f12 100644 --- a/dypnsapi/src/model/QueryGateVerifyStatisticPublicRequest.cc +++ b/dypnsapi/src/model/QueryGateVerifyStatisticPublicRequest.cc @@ -1,139 +1,117 @@ /* * 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::QueryGateVerifyStatisticPublicRequest; - -QueryGateVerifyStatisticPublicRequest::QueryGateVerifyStatisticPublicRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "QueryGateVerifyStatisticPublic") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryGateVerifyStatisticPublicRequest::~QueryGateVerifyStatisticPublicRequest() -{} - -long QueryGateVerifyStatisticPublicRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::QueryGateVerifyStatisticPublicRequest; + +QueryGateVerifyStatisticPublicRequest::QueryGateVerifyStatisticPublicRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "QueryGateVerifyStatisticPublic") { + setMethod(HttpRequest::Method::Post); } -void QueryGateVerifyStatisticPublicRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryGateVerifyStatisticPublicRequest::~QueryGateVerifyStatisticPublicRequest() {} + +long QueryGateVerifyStatisticPublicRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int QueryGateVerifyStatisticPublicRequest::getAuthenticationType()const -{ - return authenticationType_; +void QueryGateVerifyStatisticPublicRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryGateVerifyStatisticPublicRequest::setAuthenticationType(int authenticationType) -{ - authenticationType_ = authenticationType; - setParameter("AuthenticationType", std::to_string(authenticationType)); +int QueryGateVerifyStatisticPublicRequest::getAuthenticationType() const { + return authenticationType_; } -std::string QueryGateVerifyStatisticPublicRequest::getStartDate()const -{ - return startDate_; +void QueryGateVerifyStatisticPublicRequest::setAuthenticationType(int authenticationType) { + authenticationType_ = authenticationType; + setParameter(std::string("AuthenticationType"), std::to_string(authenticationType)); } -void QueryGateVerifyStatisticPublicRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string QueryGateVerifyStatisticPublicRequest::getStartDate() const { + return startDate_; } -std::string QueryGateVerifyStatisticPublicRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryGateVerifyStatisticPublicRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void QueryGateVerifyStatisticPublicRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryGateVerifyStatisticPublicRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryGateVerifyStatisticPublicRequest::getSceneCode()const -{ - return sceneCode_; +void QueryGateVerifyStatisticPublicRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryGateVerifyStatisticPublicRequest::setSceneCode(const std::string& sceneCode) -{ - sceneCode_ = sceneCode; - setParameter("SceneCode", sceneCode); +std::string QueryGateVerifyStatisticPublicRequest::getSceneCode() const { + return sceneCode_; } -std::string QueryGateVerifyStatisticPublicRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryGateVerifyStatisticPublicRequest::setSceneCode(const std::string &sceneCode) { + sceneCode_ = sceneCode; + setParameter(std::string("SceneCode"), sceneCode); } -void QueryGateVerifyStatisticPublicRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryGateVerifyStatisticPublicRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryGateVerifyStatisticPublicRequest::getProdCode()const -{ - return prodCode_; +void QueryGateVerifyStatisticPublicRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryGateVerifyStatisticPublicRequest::setProdCode(const std::string& prodCode) -{ - prodCode_ = prodCode; - setParameter("ProdCode", prodCode); +std::string QueryGateVerifyStatisticPublicRequest::getProdCode() const { + return prodCode_; } -std::string QueryGateVerifyStatisticPublicRequest::getOsType()const -{ - return osType_; +void QueryGateVerifyStatisticPublicRequest::setProdCode(const std::string &prodCode) { + prodCode_ = prodCode; + setParameter(std::string("ProdCode"), prodCode); } -void QueryGateVerifyStatisticPublicRequest::setOsType(const std::string& osType) -{ - osType_ = osType; - setParameter("OsType", osType); +std::string QueryGateVerifyStatisticPublicRequest::getOsType() const { + return osType_; } -long QueryGateVerifyStatisticPublicRequest::getOwnerId()const -{ - return ownerId_; +void QueryGateVerifyStatisticPublicRequest::setOsType(const std::string &osType) { + osType_ = osType; + setParameter(std::string("OsType"), osType); } -void QueryGateVerifyStatisticPublicRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryGateVerifyStatisticPublicRequest::getOwnerId() const { + return ownerId_; } -std::string QueryGateVerifyStatisticPublicRequest::getEndDate()const -{ - return endDate_; +void QueryGateVerifyStatisticPublicRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryGateVerifyStatisticPublicRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string QueryGateVerifyStatisticPublicRequest::getEndDate() const { + return endDate_; +} + +void QueryGateVerifyStatisticPublicRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } diff --git a/dypnsapi/src/model/QuerySendDetailsRequest.cc b/dypnsapi/src/model/QuerySendDetailsRequest.cc new file mode 100644 index 000000000..9874dbc72 --- /dev/null +++ b/dypnsapi/src/model/QuerySendDetailsRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::QuerySendDetailsRequest; + +QuerySendDetailsRequest::QuerySendDetailsRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "QuerySendDetails") { + setMethod(HttpRequest::Method::Post); +} + +QuerySendDetailsRequest::~QuerySendDetailsRequest() {} + +long QuerySendDetailsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string QuerySendDetailsRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void QuerySendDetailsRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string QuerySendDetailsRequest::getExtendFunction() const { + return extendFunction_; +} + +void QuerySendDetailsRequest::setExtendFunction(const std::string &extendFunction) { + extendFunction_ = extendFunction; + setParameter(std::string("ExtendFunction"), extendFunction); +} + +std::string QuerySendDetailsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QuerySendDetailsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string QuerySendDetailsRequest::getSendDate() const { + return sendDate_; +} + +void QuerySendDetailsRequest::setSendDate(const std::string &sendDate) { + sendDate_ = sendDate; + setParameter(std::string("SendDate"), sendDate); +} + +long QuerySendDetailsRequest::getPageSize() const { + return pageSize_; +} + +void QuerySendDetailsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string QuerySendDetailsRequest::getRouteName() const { + return routeName_; +} + +void QuerySendDetailsRequest::setRouteName(const std::string &routeName) { + routeName_ = routeName; + setParameter(std::string("RouteName"), routeName); +} + +std::string QuerySendDetailsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long QuerySendDetailsRequest::getCurrentPage() const { + return currentPage_; +} + +void QuerySendDetailsRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +long QuerySendDetailsRequest::getOwnerId() const { + return ownerId_; +} + +void QuerySendDetailsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string QuerySendDetailsRequest::getBizId() const { + return bizId_; +} + +void QuerySendDetailsRequest::setBizId(const std::string &bizId) { + bizId_ = bizId; + setParameter(std::string("BizId"), bizId); +} + diff --git a/dypnsapi/src/model/QuerySendDetailsResult.cc b/dypnsapi/src/model/QuerySendDetailsResult.cc new file mode 100644 index 000000000..a6033225a --- /dev/null +++ b/dypnsapi/src/model/QuerySendDetailsResult.cc @@ -0,0 +1,106 @@ +/* + * 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; + +QuerySendDetailsResult::QuerySendDetailsResult() : + ServiceResult() +{} + +QuerySendDetailsResult::QuerySendDetailsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySendDetailsResult::~QuerySendDetailsResult() +{} + +void QuerySendDetailsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allModelNode = value["Model"]["modelItem"]; + for (auto valueModelmodelItem : allModelNode) + { + ModelItem modelObject; + if(!valueModelmodelItem["TemplateCode"].isNull()) + modelObject.templateCode = valueModelmodelItem["TemplateCode"].asString(); + if(!valueModelmodelItem["ReceiveDate"].isNull()) + modelObject.receiveDate = valueModelmodelItem["ReceiveDate"].asString(); + if(!valueModelmodelItem["PhoneNum"].isNull()) + modelObject.phoneNum = valueModelmodelItem["PhoneNum"].asString(); + if(!valueModelmodelItem["Content"].isNull()) + modelObject.content = valueModelmodelItem["Content"].asString(); + if(!valueModelmodelItem["SendStatus"].isNull()) + modelObject.sendStatus = std::stol(valueModelmodelItem["SendStatus"].asString()); + if(!valueModelmodelItem["OutId"].isNull()) + modelObject.outId = valueModelmodelItem["OutId"].asString(); + if(!valueModelmodelItem["SendDate"].isNull()) + modelObject.sendDate = valueModelmodelItem["SendDate"].asString(); + if(!valueModelmodelItem["ErrCode"].isNull()) + modelObject.errCode = valueModelmodelItem["ErrCode"].asString(); + model_.push_back(modelObject); + } + if(!value["AccessDeniedDetail"].isNull()) + accessDeniedDetail_ = value["AccessDeniedDetail"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QuerySendDetailsResult::getAccessDeniedDetail()const +{ + return accessDeniedDetail_; +} + +long QuerySendDetailsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string QuerySendDetailsResult::getMessage()const +{ + return message_; +} + +std::vector QuerySendDetailsResult::getModel()const +{ + return model_; +} + +std::string QuerySendDetailsResult::getCode()const +{ + return code_; +} + +bool QuerySendDetailsResult::getSuccess()const +{ + return success_; +} + diff --git a/dypnsapi/src/model/SendSmsVerifyCodeRequest.cc b/dypnsapi/src/model/SendSmsVerifyCodeRequest.cc new file mode 100644 index 000000000..83f9b4160 --- /dev/null +++ b/dypnsapi/src/model/SendSmsVerifyCodeRequest.cc @@ -0,0 +1,207 @@ +/* + * 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::SendSmsVerifyCodeRequest; + +SendSmsVerifyCodeRequest::SendSmsVerifyCodeRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "SendSmsVerifyCode") { + setMethod(HttpRequest::Method::Post); +} + +SendSmsVerifyCodeRequest::~SendSmsVerifyCodeRequest() {} + +long SendSmsVerifyCodeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SendSmsVerifyCodeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SendSmsVerifyCodeRequest::getCountryCode() const { + return countryCode_; +} + +void SendSmsVerifyCodeRequest::setCountryCode(const std::string &countryCode) { + countryCode_ = countryCode; + setParameter(std::string("CountryCode"), countryCode); +} + +std::string SendSmsVerifyCodeRequest::getPhoneNumber() const { + return phoneNumber_; +} + +void SendSmsVerifyCodeRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); +} + +std::string SendSmsVerifyCodeRequest::getExtendFunction() const { + return extendFunction_; +} + +void SendSmsVerifyCodeRequest::setExtendFunction(const std::string &extendFunction) { + extendFunction_ = extendFunction; + setParameter(std::string("ExtendFunction"), extendFunction); +} + +std::string SendSmsVerifyCodeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SendSmsVerifyCodeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SendSmsVerifyCodeRequest::getSmsUpExtendCode() const { + return smsUpExtendCode_; +} + +void SendSmsVerifyCodeRequest::setSmsUpExtendCode(const std::string &smsUpExtendCode) { + smsUpExtendCode_ = smsUpExtendCode; + setParameter(std::string("SmsUpExtendCode"), smsUpExtendCode); +} + +std::string SendSmsVerifyCodeRequest::getSignName() const { + return signName_; +} + +void SendSmsVerifyCodeRequest::setSignName(const std::string &signName) { + signName_ = signName; + setParameter(std::string("SignName"), signName); +} + +std::string SendSmsVerifyCodeRequest::getRouteName() const { + return routeName_; +} + +void SendSmsVerifyCodeRequest::setRouteName(const std::string &routeName) { + routeName_ = routeName; + setParameter(std::string("RouteName"), routeName); +} + +std::string SendSmsVerifyCodeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SendSmsVerifyCodeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long SendSmsVerifyCodeRequest::getValidTime() const { + return validTime_; +} + +void SendSmsVerifyCodeRequest::setValidTime(long validTime) { + validTime_ = validTime; + setParameter(std::string("ValidTime"), std::to_string(validTime)); +} + +long SendSmsVerifyCodeRequest::getOwnerId() const { + return ownerId_; +} + +void SendSmsVerifyCodeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +bool SendSmsVerifyCodeRequest::getReturnVerifyCode() const { + return returnVerifyCode_; +} + +void SendSmsVerifyCodeRequest::setReturnVerifyCode(bool returnVerifyCode) { + returnVerifyCode_ = returnVerifyCode; + setParameter(std::string("ReturnVerifyCode"), returnVerifyCode ? "true" : "false"); +} + +long SendSmsVerifyCodeRequest::getCodeType() const { + return codeType_; +} + +void SendSmsVerifyCodeRequest::setCodeType(long codeType) { + codeType_ = codeType; + setParameter(std::string("CodeType"), std::to_string(codeType)); +} + +std::string SendSmsVerifyCodeRequest::getSchemeName() const { + return schemeName_; +} + +void SendSmsVerifyCodeRequest::setSchemeName(const std::string &schemeName) { + schemeName_ = schemeName; + setParameter(std::string("SchemeName"), schemeName); +} + +long SendSmsVerifyCodeRequest::getDuplicatePolicy() const { + return duplicatePolicy_; +} + +void SendSmsVerifyCodeRequest::setDuplicatePolicy(long duplicatePolicy) { + duplicatePolicy_ = duplicatePolicy; + setParameter(std::string("DuplicatePolicy"), std::to_string(duplicatePolicy)); +} + +std::string SendSmsVerifyCodeRequest::getOutId() const { + return outId_; +} + +void SendSmsVerifyCodeRequest::setOutId(const std::string &outId) { + outId_ = outId; + setParameter(std::string("OutId"), outId); +} + +long SendSmsVerifyCodeRequest::getInterval() const { + return interval_; +} + +void SendSmsVerifyCodeRequest::setInterval(long interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); +} + +std::string SendSmsVerifyCodeRequest::getTemplateCode() const { + return templateCode_; +} + +void SendSmsVerifyCodeRequest::setTemplateCode(const std::string &templateCode) { + templateCode_ = templateCode; + setParameter(std::string("TemplateCode"), templateCode); +} + +std::string SendSmsVerifyCodeRequest::getTemplateParam() const { + return templateParam_; +} + +void SendSmsVerifyCodeRequest::setTemplateParam(const std::string &templateParam) { + templateParam_ = templateParam; + setParameter(std::string("TemplateParam"), templateParam); +} + +long SendSmsVerifyCodeRequest::getCodeLength() const { + return codeLength_; +} + +void SendSmsVerifyCodeRequest::setCodeLength(long codeLength) { + codeLength_ = codeLength; + setParameter(std::string("CodeLength"), std::to_string(codeLength)); +} + diff --git a/dypnsapi/src/model/SendSmsVerifyCodeResult.cc b/dypnsapi/src/model/SendSmsVerifyCodeResult.cc new file mode 100644 index 000000000..c92b70253 --- /dev/null +++ b/dypnsapi/src/model/SendSmsVerifyCodeResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +SendSmsVerifyCodeResult::SendSmsVerifyCodeResult() : + ServiceResult() +{} + +SendSmsVerifyCodeResult::SendSmsVerifyCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SendSmsVerifyCodeResult::~SendSmsVerifyCodeResult() +{} + +void SendSmsVerifyCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto modelNode = value["Model"]; + if(!modelNode["VerifyCode"].isNull()) + model_.verifyCode = modelNode["VerifyCode"].asString(); + if(!modelNode["RequestId"].isNull()) + model_.requestId = modelNode["RequestId"].asString(); + if(!modelNode["OutId"].isNull()) + model_.outId = modelNode["OutId"].asString(); + if(!modelNode["BizId"].isNull()) + model_.bizId = modelNode["BizId"].asString(); + if(!value["AccessDeniedDetail"].isNull()) + accessDeniedDetail_ = value["AccessDeniedDetail"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string SendSmsVerifyCodeResult::getAccessDeniedDetail()const +{ + return accessDeniedDetail_; +} + +std::string SendSmsVerifyCodeResult::getMessage()const +{ + return message_; +} + +SendSmsVerifyCodeResult::Model SendSmsVerifyCodeResult::getModel()const +{ + return model_; +} + +std::string SendSmsVerifyCodeResult::getCode()const +{ + return code_; +} + +bool SendSmsVerifyCodeResult::getSuccess()const +{ + return success_; +} + diff --git a/dypnsapi/src/model/VerifyMobileRequest.cc b/dypnsapi/src/model/VerifyMobileRequest.cc index 7e3655b1d..d947a3baa 100644 --- a/dypnsapi/src/model/VerifyMobileRequest.cc +++ b/dypnsapi/src/model/VerifyMobileRequest.cc @@ -1,106 +1,90 @@ /* * 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") -{ - setMethod(HttpRequest::Method::Post); -} - -VerifyMobileRequest::~VerifyMobileRequest() -{} - -long VerifyMobileRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest; + +VerifyMobileRequest::VerifyMobileRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile") { + setMethod(HttpRequest::Method::Post); } -void VerifyMobileRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +VerifyMobileRequest::~VerifyMobileRequest() {} + +long VerifyMobileRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string VerifyMobileRequest::getPhoneNumber()const -{ - return phoneNumber_; +void VerifyMobileRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void VerifyMobileRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); +std::string VerifyMobileRequest::getPhoneNumber() const { + return phoneNumber_; } -std::string VerifyMobileRequest::getAccessKeyId()const -{ - return accessKeyId_; +void VerifyMobileRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); } -void VerifyMobileRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string VerifyMobileRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string VerifyMobileRequest::getAccessCode()const -{ - return accessCode_; +void VerifyMobileRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void VerifyMobileRequest::setAccessCode(const std::string& accessCode) -{ - accessCode_ = accessCode; - setParameter("AccessCode", accessCode); +std::string VerifyMobileRequest::getAccessCode() const { + return accessCode_; } -std::string VerifyMobileRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void VerifyMobileRequest::setAccessCode(const std::string &accessCode) { + accessCode_ = accessCode; + setParameter(std::string("AccessCode"), accessCode); } -void VerifyMobileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string VerifyMobileRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long VerifyMobileRequest::getOwnerId()const -{ - return ownerId_; +void VerifyMobileRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void VerifyMobileRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long VerifyMobileRequest::getOwnerId() const { + return ownerId_; } -std::string VerifyMobileRequest::getOutId()const -{ - return outId_; +void VerifyMobileRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void VerifyMobileRequest::setOutId(const std::string& outId) -{ - outId_ = outId; - setParameter("OutId", outId); +std::string VerifyMobileRequest::getOutId() const { + return outId_; +} + +void VerifyMobileRequest::setOutId(const std::string &outId) { + outId_ = outId; + setParameter(std::string("OutId"), outId); } diff --git a/dypnsapi/src/model/VerifyMobileResult.cc b/dypnsapi/src/model/VerifyMobileResult.cc index 44a1d7441..c3f9ac4a0 100644 --- a/dypnsapi/src/model/VerifyMobileResult.cc +++ b/dypnsapi/src/model/VerifyMobileResult.cc @@ -40,10 +40,10 @@ void VerifyMobileResult::parse(const std::string &payload) 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(!gateVerifyResultDTONode["VerifyId"].isNull()) + gateVerifyResultDTO_.verifyId = gateVerifyResultDTONode["VerifyId"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/dypnsapi/src/model/VerifyPhoneWithTokenRequest.cc b/dypnsapi/src/model/VerifyPhoneWithTokenRequest.cc index 08a163fe8..7bf7151ee 100644 --- a/dypnsapi/src/model/VerifyPhoneWithTokenRequest.cc +++ b/dypnsapi/src/model/VerifyPhoneWithTokenRequest.cc @@ -1,95 +1,81 @@ /* * 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::VerifyPhoneWithTokenRequest; - -VerifyPhoneWithTokenRequest::VerifyPhoneWithTokenRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyPhoneWithToken") -{ - setMethod(HttpRequest::Method::Post); -} - -VerifyPhoneWithTokenRequest::~VerifyPhoneWithTokenRequest() -{} - -long VerifyPhoneWithTokenRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::VerifyPhoneWithTokenRequest; + +VerifyPhoneWithTokenRequest::VerifyPhoneWithTokenRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyPhoneWithToken") { + setMethod(HttpRequest::Method::Post); } -void VerifyPhoneWithTokenRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +VerifyPhoneWithTokenRequest::~VerifyPhoneWithTokenRequest() {} + +long VerifyPhoneWithTokenRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string VerifyPhoneWithTokenRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void VerifyPhoneWithTokenRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void VerifyPhoneWithTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string VerifyPhoneWithTokenRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string VerifyPhoneWithTokenRequest::getPhoneNumber()const -{ - return phoneNumber_; +void VerifyPhoneWithTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void VerifyPhoneWithTokenRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); +std::string VerifyPhoneWithTokenRequest::getPhoneNumber() const { + return phoneNumber_; } -long VerifyPhoneWithTokenRequest::getOwnerId()const -{ - return ownerId_; +void VerifyPhoneWithTokenRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); } -void VerifyPhoneWithTokenRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long VerifyPhoneWithTokenRequest::getOwnerId() const { + return ownerId_; } -std::string VerifyPhoneWithTokenRequest::getAccessKeyId()const -{ - return accessKeyId_; +void VerifyPhoneWithTokenRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void VerifyPhoneWithTokenRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string VerifyPhoneWithTokenRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string VerifyPhoneWithTokenRequest::getSpToken()const -{ - return spToken_; +void VerifyPhoneWithTokenRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void VerifyPhoneWithTokenRequest::setSpToken(const std::string& spToken) -{ - spToken_ = spToken; - setParameter("SpToken", spToken); +std::string VerifyPhoneWithTokenRequest::getSpToken() const { + return spToken_; +} + +void VerifyPhoneWithTokenRequest::setSpToken(const std::string &spToken) { + spToken_ = spToken; + setParameter(std::string("SpToken"), spToken); } diff --git a/dypnsapi/src/model/VerifySmsCodeRequest.cc b/dypnsapi/src/model/VerifySmsCodeRequest.cc index 6ee3be6ea..7a6d570bd 100644 --- a/dypnsapi/src/model/VerifySmsCodeRequest.cc +++ b/dypnsapi/src/model/VerifySmsCodeRequest.cc @@ -1,117 +1,99 @@ /* * 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::VerifySmsCodeRequest; - -VerifySmsCodeRequest::VerifySmsCodeRequest() : - RpcServiceRequest("dypnsapi", "2017-05-25", "VerifySmsCode") -{ - setMethod(HttpRequest::Method::Post); -} - -VerifySmsCodeRequest::~VerifySmsCodeRequest() -{} - -long VerifySmsCodeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Dypnsapi::Model::VerifySmsCodeRequest; + +VerifySmsCodeRequest::VerifySmsCodeRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "VerifySmsCode") { + setMethod(HttpRequest::Method::Post); } -void VerifySmsCodeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +VerifySmsCodeRequest::~VerifySmsCodeRequest() {} + +long VerifySmsCodeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string VerifySmsCodeRequest::getProductCode()const -{ - return productCode_; +void VerifySmsCodeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void VerifySmsCodeRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +std::string VerifySmsCodeRequest::getProductCode() const { + return productCode_; } -std::string VerifySmsCodeRequest::getSmsToken()const -{ - return smsToken_; +void VerifySmsCodeRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void VerifySmsCodeRequest::setSmsToken(const std::string& smsToken) -{ - smsToken_ = smsToken; - setParameter("SmsToken", smsToken); +std::string VerifySmsCodeRequest::getSmsToken() const { + return smsToken_; } -std::string VerifySmsCodeRequest::getPhoneNumber()const -{ - return phoneNumber_; +void VerifySmsCodeRequest::setSmsToken(const std::string &smsToken) { + smsToken_ = smsToken; + setParameter(std::string("SmsToken"), smsToken); } -void VerifySmsCodeRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); +std::string VerifySmsCodeRequest::getPhoneNumber() const { + return phoneNumber_; } -std::string VerifySmsCodeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void VerifySmsCodeRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); } -void VerifySmsCodeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string VerifySmsCodeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string VerifySmsCodeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void VerifySmsCodeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void VerifySmsCodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string VerifySmsCodeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long VerifySmsCodeRequest::getOwnerId()const -{ - return ownerId_; +void VerifySmsCodeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void VerifySmsCodeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long VerifySmsCodeRequest::getOwnerId() const { + return ownerId_; } -std::string VerifySmsCodeRequest::getSmsCode()const -{ - return smsCode_; +void VerifySmsCodeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void VerifySmsCodeRequest::setSmsCode(const std::string& smsCode) -{ - smsCode_ = smsCode; - setParameter("SmsCode", smsCode); +std::string VerifySmsCodeRequest::getSmsCode() const { + return smsCode_; +} + +void VerifySmsCodeRequest::setSmsCode(const std::string &smsCode) { + smsCode_ = smsCode; + setParameter(std::string("SmsCode"), smsCode); } diff --git a/dypnsapi/src/model/VerifyWithFusionAuthTokenRequest.cc b/dypnsapi/src/model/VerifyWithFusionAuthTokenRequest.cc new file mode 100644 index 000000000..79909b09a --- /dev/null +++ b/dypnsapi/src/model/VerifyWithFusionAuthTokenRequest.cc @@ -0,0 +1,90 @@ +/* + * 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::VerifyWithFusionAuthTokenRequest; + +VerifyWithFusionAuthTokenRequest::VerifyWithFusionAuthTokenRequest() + : RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyWithFusionAuthToken") { + setMethod(HttpRequest::Method::Post); +} + +VerifyWithFusionAuthTokenRequest::~VerifyWithFusionAuthTokenRequest() {} + +long VerifyWithFusionAuthTokenRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void VerifyWithFusionAuthTokenRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string VerifyWithFusionAuthTokenRequest::getExtendFunction() const { + return extendFunction_; +} + +void VerifyWithFusionAuthTokenRequest::setExtendFunction(const std::string &extendFunction) { + extendFunction_ = extendFunction; + setParameter(std::string("ExtendFunction"), extendFunction); +} + +std::string VerifyWithFusionAuthTokenRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void VerifyWithFusionAuthTokenRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string VerifyWithFusionAuthTokenRequest::getRouteName() const { + return routeName_; +} + +void VerifyWithFusionAuthTokenRequest::setRouteName(const std::string &routeName) { + routeName_ = routeName; + setParameter(std::string("RouteName"), routeName); +} + +std::string VerifyWithFusionAuthTokenRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void VerifyWithFusionAuthTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string VerifyWithFusionAuthTokenRequest::getVerifyToken() const { + return verifyToken_; +} + +void VerifyWithFusionAuthTokenRequest::setVerifyToken(const std::string &verifyToken) { + verifyToken_ = verifyToken; + setParameter(std::string("VerifyToken"), verifyToken); +} + +long VerifyWithFusionAuthTokenRequest::getOwnerId() const { + return ownerId_; +} + +void VerifyWithFusionAuthTokenRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/dypnsapi/src/model/VerifyWithFusionAuthTokenResult.cc b/dypnsapi/src/model/VerifyWithFusionAuthTokenResult.cc new file mode 100644 index 000000000..1bae19c58 --- /dev/null +++ b/dypnsapi/src/model/VerifyWithFusionAuthTokenResult.cc @@ -0,0 +1,77 @@ +/* + * 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; + +VerifyWithFusionAuthTokenResult::VerifyWithFusionAuthTokenResult() : + ServiceResult() +{} + +VerifyWithFusionAuthTokenResult::VerifyWithFusionAuthTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VerifyWithFusionAuthTokenResult::~VerifyWithFusionAuthTokenResult() +{} + +void VerifyWithFusionAuthTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto modelNode = value["Model"]; + if(!modelNode["PhoneNumber"].isNull()) + model_.phoneNumber = modelNode["PhoneNumber"].asString(); + if(!modelNode["VerifyResult"].isNull()) + model_.verifyResult = modelNode["VerifyResult"].asString(); + if(!modelNode["PhoneScore"].isNull()) + model_.phoneScore = std::stol(modelNode["PhoneScore"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string VerifyWithFusionAuthTokenResult::getMessage()const +{ + return message_; +} + +VerifyWithFusionAuthTokenResult::Model VerifyWithFusionAuthTokenResult::getModel()const +{ + return model_; +} + +std::string VerifyWithFusionAuthTokenResult::getCode()const +{ + return code_; +} + +bool VerifyWithFusionAuthTokenResult::getSuccess()const +{ + return success_; +} +