Support New API for Dypnsapi.
This commit is contained in:
@@ -30,14 +30,24 @@
|
||||
#include "model/DescribeVerifySchemeResult.h"
|
||||
#include "model/GetAuthTokenRequest.h"
|
||||
#include "model/GetAuthTokenResult.h"
|
||||
#include "model/GetAuthorizationUrlRequest.h"
|
||||
#include "model/GetAuthorizationUrlResult.h"
|
||||
#include "model/GetCertifyResultRequest.h"
|
||||
#include "model/GetCertifyResultResult.h"
|
||||
#include "model/GetMobileRequest.h"
|
||||
#include "model/GetMobileResult.h"
|
||||
#include "model/TwiceTelVerifyRequest.h"
|
||||
#include "model/TwiceTelVerifyResult.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/VerifyMobileRequest.h"
|
||||
#include "model/VerifyMobileResult.h"
|
||||
#include "model/VerifyPhoneWithTokenRequest.h"
|
||||
#include "model/VerifyPhoneWithTokenResult.h"
|
||||
#include "model/VerifySmsCodeRequest.h"
|
||||
#include "model/VerifySmsCodeResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -59,18 +69,33 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetAuthTokenResult> GetAuthTokenOutcome;
|
||||
typedef std::future<GetAuthTokenOutcome> GetAuthTokenOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::GetAuthTokenRequest&, const GetAuthTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAuthTokenAsyncHandler;
|
||||
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::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::TwiceTelVerifyResult> TwiceTelVerifyOutcome;
|
||||
typedef std::future<TwiceTelVerifyOutcome> TwiceTelVerifyOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::TwiceTelVerifyRequest&, const TwiceTelVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TwiceTelVerifyAsyncHandler;
|
||||
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;
|
||||
typedef Outcome<Error, Model::QueryGateVerifyBillingPublicResult> QueryGateVerifyBillingPublicOutcome;
|
||||
typedef std::future<QueryGateVerifyBillingPublicOutcome> QueryGateVerifyBillingPublicOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::QueryGateVerifyBillingPublicRequest&, const QueryGateVerifyBillingPublicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryGateVerifyBillingPublicAsyncHandler;
|
||||
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::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;
|
||||
typedef Outcome<Error, Model::VerifyPhoneWithTokenResult> VerifyPhoneWithTokenOutcome;
|
||||
typedef std::future<VerifyPhoneWithTokenOutcome> VerifyPhoneWithTokenOutcomeCallable;
|
||||
typedef std::function<void(const DypnsapiClient*, const Model::VerifyPhoneWithTokenRequest&, const VerifyPhoneWithTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyPhoneWithTokenAsyncHandler;
|
||||
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;
|
||||
|
||||
DypnsapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DypnsapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -88,18 +113,33 @@ namespace AlibabaCloud
|
||||
GetAuthTokenOutcome getAuthToken(const Model::GetAuthTokenRequest &request)const;
|
||||
void getAuthTokenAsync(const Model::GetAuthTokenRequest& request, const GetAuthTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAuthTokenOutcomeCallable getAuthTokenCallable(const Model::GetAuthTokenRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
TwiceTelVerifyOutcome twiceTelVerify(const Model::TwiceTelVerifyRequest &request)const;
|
||||
void twiceTelVerifyAsync(const Model::TwiceTelVerifyRequest& request, const TwiceTelVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TwiceTelVerifyOutcomeCallable twiceTelVerifyCallable(const Model::TwiceTelVerifyRequest& 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;
|
||||
QueryGateVerifyBillingPublicOutcome queryGateVerifyBillingPublic(const Model::QueryGateVerifyBillingPublicRequest &request)const;
|
||||
void queryGateVerifyBillingPublicAsync(const Model::QueryGateVerifyBillingPublicRequest& request, const QueryGateVerifyBillingPublicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryGateVerifyBillingPublicOutcomeCallable queryGateVerifyBillingPublicCallable(const Model::QueryGateVerifyBillingPublicRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
VerifyPhoneWithTokenOutcome verifyPhoneWithToken(const Model::VerifyPhoneWithTokenRequest &request)const;
|
||||
void verifyPhoneWithTokenAsync(const Model::VerifyPhoneWithTokenRequest& request, const VerifyPhoneWithTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyPhoneWithTokenOutcomeCallable verifyPhoneWithTokenCallable(const Model::VerifyPhoneWithTokenRequest& request) const;
|
||||
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;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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_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_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,32 +29,31 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyResult : public ServiceResult
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT GetAuthorizationUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
struct Data
|
||||
{
|
||||
std::string carrier;
|
||||
int verifyResult;
|
||||
std::string authorizationUrl;
|
||||
};
|
||||
|
||||
|
||||
TwiceTelVerifyResult();
|
||||
explicit TwiceTelVerifyResult(const std::string &payload);
|
||||
~TwiceTelVerifyResult();
|
||||
GetAuthorizationUrlResult();
|
||||
explicit GetAuthorizationUrlResult(const std::string &payload);
|
||||
~GetAuthorizationUrlResult();
|
||||
std::string getMessage()const;
|
||||
Result getTwiceTelVerifyResult()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Result twiceTelVerifyResult_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETAUTHORIZATIONURLRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,36 +28,36 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT TwiceTelVerifyRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_DYPNSAPI_EXPORT GetCertifyResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TwiceTelVerifyRequest();
|
||||
~TwiceTelVerifyRequest();
|
||||
GetCertifyResultRequest();
|
||||
~GetCertifyResultRequest();
|
||||
|
||||
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 getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSince()const;
|
||||
void setSince(const std::string& since);
|
||||
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 resourceOwnerAccount_;
|
||||
std::string phoneNumber_;
|
||||
long ownerId_;
|
||||
std::string productCode_;
|
||||
std::string accessKeyId_;
|
||||
std::string since_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string token_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_TWICETELVERIFYREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_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 GetCertifyResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string deviceToken;
|
||||
std::string identityInfo;
|
||||
std::string materialInfo;
|
||||
std::string verifyResult;
|
||||
std::string verifyDesc;
|
||||
};
|
||||
|
||||
|
||||
GetCertifyResultResult();
|
||||
explicit GetCertifyResultResult(const std::string &payload);
|
||||
~GetCertifyResultResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_GETCERTIFYRESULTRESULT_H_
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_GETSMSAUTHTOKENSRESULT_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 GetSmsAuthTokensResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string stsAccessKeyId;
|
||||
std::string stsToken;
|
||||
std::string bizToken;
|
||||
long expireTime;
|
||||
std::string stsAccessKeySecret;
|
||||
};
|
||||
|
||||
|
||||
GetSmsAuthTokensResult();
|
||||
explicit GetSmsAuthTokensResult(const std::string &payload);
|
||||
~GetSmsAuthTokensResult();
|
||||
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_GETSMSAUTHTOKENSRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_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_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_QUERYGATEVERIFYBILLINGPUBLICRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYBILLINGPUBLICRESULT_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 QueryGateVerifyBillingPublicResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct SceneBillingListItem
|
||||
{
|
||||
std::string add;
|
||||
std::string sceneName;
|
||||
std::string amount;
|
||||
std::string sceneCode;
|
||||
std::string itemName;
|
||||
std::string singlePrice;
|
||||
std::string appName;
|
||||
};
|
||||
std::vector<SceneBillingListItem> sceneBillingList;
|
||||
std::string amountSum;
|
||||
};
|
||||
|
||||
|
||||
QueryGateVerifyBillingPublicResult();
|
||||
explicit QueryGateVerifyBillingPublicResult(const std::string &payload);
|
||||
~QueryGateVerifyBillingPublicResult();
|
||||
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_QUERYGATEVERIFYBILLINGPUBLICRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_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_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_QUERYGATEVERIFYSTATISTICPUBLICRESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_QUERYGATEVERIFYSTATISTICPUBLICRESULT_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 QueryGateVerifyStatisticPublicResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct DayStatisticItem
|
||||
{
|
||||
long totalUnknown;
|
||||
long totalFail;
|
||||
std::string statisticDateStr;
|
||||
long totalSuccess;
|
||||
};
|
||||
long totalUnknown;
|
||||
long totalFail;
|
||||
std::vector<DayStatisticItem> dayStatistic;
|
||||
long total;
|
||||
long totalSuccess;
|
||||
};
|
||||
|
||||
|
||||
QueryGateVerifyStatisticPublicResult();
|
||||
explicit QueryGateVerifyStatisticPublicResult(const std::string &payload);
|
||||
~QueryGateVerifyStatisticPublicResult();
|
||||
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_QUERYGATEVERIFYSTATISTICPUBLICRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_VERIFYSMSCODERESULT_H_
|
||||
#define ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODERESULT_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 VerifySmsCodeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
VerifySmsCodeResult();
|
||||
explicit VerifySmsCodeResult(const std::string &payload);
|
||||
~VerifySmsCodeResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_VERIFYSMSCODERESULT_H_
|
||||
Reference in New Issue
Block a user