Publish sdk.

This commit is contained in:
sdk-team
2023-10-11 05:26:41 +00:00
parent 1b19d44bc2
commit 99697bde91
63 changed files with 4109 additions and 1825 deletions

View File

@@ -1 +1 @@
1.36.1775
1.36.1776

View File

@@ -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}

View File

@@ -22,6 +22,10 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#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<Error, Model::CheckSmsVerifyCodeResult> CheckSmsVerifyCodeOutcome;
typedef std::future<CheckSmsVerifyCodeOutcome> CheckSmsVerifyCodeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::CheckSmsVerifyCodeRequest&, const CheckSmsVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckSmsVerifyCodeAsyncHandler;
typedef Outcome<Error, Model::CreateSchemeConfigResult> CreateSchemeConfigOutcome;
typedef std::future<CreateSchemeConfigOutcome> CreateSchemeConfigOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::CreateSchemeConfigRequest&, const CreateSchemeConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSchemeConfigAsyncHandler;
typedef Outcome<Error, Model::CreateVerifySchemeResult> CreateVerifySchemeOutcome;
typedef std::future<CreateVerifySchemeOutcome> CreateVerifySchemeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::CreateVerifySchemeRequest&, const CreateVerifySchemeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySchemeAsyncHandler;
@@ -72,12 +90,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetAuthorizationUrlResult> GetAuthorizationUrlOutcome;
typedef std::future<GetAuthorizationUrlOutcome> GetAuthorizationUrlOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::GetAuthorizationUrlRequest&, const GetAuthorizationUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAuthorizationUrlAsyncHandler;
typedef Outcome<Error, Model::GetCertifyResultResult> GetCertifyResultOutcome;
typedef std::future<GetCertifyResultOutcome> GetCertifyResultOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::GetCertifyResultRequest&, const GetCertifyResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCertifyResultAsyncHandler;
typedef Outcome<Error, Model::GetFusionAuthTokenResult> GetFusionAuthTokenOutcome;
typedef std::future<GetFusionAuthTokenOutcome> GetFusionAuthTokenOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::GetFusionAuthTokenRequest&, const GetFusionAuthTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFusionAuthTokenAsyncHandler;
typedef Outcome<Error, Model::GetMobileResult> GetMobileOutcome;
typedef std::future<GetMobileOutcome> GetMobileOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::GetMobileRequest&, const GetMobileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMobileAsyncHandler;
typedef Outcome<Error, Model::GetPhoneWithTokenResult> GetPhoneWithTokenOutcome;
typedef std::future<GetPhoneWithTokenOutcome> GetPhoneWithTokenOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::GetPhoneWithTokenRequest&, const GetPhoneWithTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPhoneWithTokenAsyncHandler;
typedef Outcome<Error, Model::GetSmsAuthTokensResult> GetSmsAuthTokensOutcome;
typedef std::future<GetSmsAuthTokensOutcome> GetSmsAuthTokensOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::GetSmsAuthTokensRequest&, const GetSmsAuthTokensOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSmsAuthTokensAsyncHandler;
@@ -87,6 +108,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryGateVerifyStatisticPublicResult> QueryGateVerifyStatisticPublicOutcome;
typedef std::future<QueryGateVerifyStatisticPublicOutcome> QueryGateVerifyStatisticPublicOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::QueryGateVerifyStatisticPublicRequest&, const QueryGateVerifyStatisticPublicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryGateVerifyStatisticPublicAsyncHandler;
typedef Outcome<Error, Model::QuerySendDetailsResult> QuerySendDetailsOutcome;
typedef std::future<QuerySendDetailsOutcome> QuerySendDetailsOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::QuerySendDetailsRequest&, const QuerySendDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySendDetailsAsyncHandler;
typedef Outcome<Error, Model::SendSmsVerifyCodeResult> SendSmsVerifyCodeOutcome;
typedef std::future<SendSmsVerifyCodeOutcome> SendSmsVerifyCodeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::SendSmsVerifyCodeRequest&, const SendSmsVerifyCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendSmsVerifyCodeAsyncHandler;
typedef Outcome<Error, Model::VerifyMobileResult> VerifyMobileOutcome;
typedef std::future<VerifyMobileOutcome> VerifyMobileOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::VerifyMobileRequest&, const VerifyMobileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyMobileAsyncHandler;
@@ -96,11 +123,20 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::VerifySmsCodeResult> VerifySmsCodeOutcome;
typedef std::future<VerifySmsCodeOutcome> VerifySmsCodeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::VerifySmsCodeRequest&, const VerifySmsCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifySmsCodeAsyncHandler;
typedef Outcome<Error, Model::VerifyWithFusionAuthTokenResult> VerifyWithFusionAuthTokenOutcome;
typedef std::future<VerifyWithFusionAuthTokenOutcome> VerifyWithFusionAuthTokenOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::VerifyWithFusionAuthTokenRequest&, const VerifyWithFusionAuthTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyWithFusionAuthTokenAsyncHandler;
DypnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
DypnsapiClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
VerifyWithFusionAuthTokenOutcomeCallable verifyWithFusionAuthTokenCallable(const Model::VerifyWithFusionAuthTokenRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -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 <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_

View File

@@ -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 <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_CREATEVERIFYSCHEMEREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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_;
};
}

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHTOKENREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHTOKENREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_

View File

@@ -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 <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETMOBILEREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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<ModelItem> 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<ModelItem> model_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_QUERYSENDDETAILSRESULT_H_

View File

@@ -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 <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYMOBILEREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYPHONEWITHTOKENREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYPHONEWITHTOKENREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
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_
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODEREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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<DataItem> 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<DataItem> data_;
Model model_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYWITHFUSIONAUTHTOKENRESULT_H_

View File

@@ -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<const AsyncCallerContext>& 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<std::packaged_task<CheckSmsVerifyCodeOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<CreateSchemeConfigOutcome()>>(
[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<const AsyncCallerContext>& context) const
void DypnsapiClient::getFusionAuthTokenAsync(const GetFusionAuthTokenRequest& request, const GetFusionAuthTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<std::packaged_task<GetCertifyResultOutcome()>>(
auto task = std::make_shared<std::packaged_task<GetFusionAuthTokenOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<GetPhoneWithTokenOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<QuerySendDetailsOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<SendSmsVerifyCodeOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<VerifyWithFusionAuthTokenOutcome()>>(
[this, request]()
{
return this->verifyWithFusionAuthToken(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -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 <alibabacloud/dypnsapi/model/CheckSmsVerifyCodeRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/CheckSmsVerifyCodeResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/dypnsapi/model/CreateSchemeConfigRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/CreateSchemeConfigResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h>
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 <alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h>
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);
}

View File

@@ -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_;
}

View File

@@ -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 <alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h>
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 <alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h>
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));
}

View File

@@ -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 <alibabacloud/dypnsapi/model/DescribeVerifySchemeRequest.h>
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 <alibabacloud/dypnsapi/model/DescribeVerifySchemeRequest.h>
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));
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetAuthTokenRequest.h>
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 <alibabacloud/dypnsapi/model/GetAuthTokenRequest.h>
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);
}

View File

@@ -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())

View File

@@ -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 <alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h>
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 <alibabacloud/dypnsapi/model/GetAuthorizationUrlRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetCertifyResultRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetCertifyResultResult.h>
#include <json/json.h>
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::DataItem> GetCertifyResultResult::getData()const
{
return data_;
}
std::string GetCertifyResultResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetFusionAuthTokenRequest.h>
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));
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetFusionAuthTokenResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetMobileRequest.h>
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 <alibabacloud/dypnsapi/model/GetMobileRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetPhoneWithTokenRequest.h>
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));
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetPhoneWithTokenResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h>
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 <alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h>
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));
}

View File

@@ -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 <alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h>
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 <alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h>
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 <alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/QuerySendDetailsRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/QuerySendDetailsResult.h>
#include <json/json.h>
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::ModelItem> QuerySendDetailsResult::getModel()const
{
return model_;
}
std::string QuerySendDetailsResult::getCode()const
{
return code_;
}
bool QuerySendDetailsResult::getSuccess()const
{
return success_;
}

View File

@@ -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 <alibabacloud/dypnsapi/model/SendSmsVerifyCodeRequest.h>
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));
}

View File

@@ -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 <alibabacloud/dypnsapi/model/SendSmsVerifyCodeResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/dypnsapi/model/VerifyMobileRequest.h>
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 <alibabacloud/dypnsapi/model/VerifyMobileRequest.h>
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);
}

View File

@@ -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())

View File

@@ -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 <alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h>
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 <alibabacloud/dypnsapi/model/VerifyPhoneWithTokenRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h>
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 <alibabacloud/dypnsapi/model/VerifySmsCodeRequest.h>
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);
}

View File

@@ -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 <alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenRequest.h>
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));
}

View File

@@ -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 <alibabacloud/dypnsapi/model/VerifyWithFusionAuthTokenResult.h>
#include <json/json.h>
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_;
}