diff --git a/CHANGELOG b/CHANGELOG index a30c20382..5b4303fb2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-12-08 Version: 1.36.971 +- Fixed bugs for UnbindSubscription API. + 2021-12-07 Version: 1.36.970 - Fix DescribeInstances clusterId. diff --git a/VERSION b/VERSION index c073c8d02..5e5ad75f5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.970 \ No newline at end of file +1.36.971 \ No newline at end of file diff --git a/dyplsapi/CMakeLists.txt b/dyplsapi/CMakeLists.txt index bf91430a2..af1860ce2 100644 --- a/dyplsapi/CMakeLists.txt +++ b/dyplsapi/CMakeLists.txt @@ -35,12 +35,28 @@ set(dyplsapi_public_header_model include/alibabacloud/dyplsapi/model/BindAxnExtensionResult.h include/alibabacloud/dyplsapi/model/BuySecretNoRequest.h include/alibabacloud/dyplsapi/model/BuySecretNoResult.h + include/alibabacloud/dyplsapi/model/CancelPickUpWaybillRequest.h + include/alibabacloud/dyplsapi/model/CancelPickUpWaybillResult.h + include/alibabacloud/dyplsapi/model/ConfirmSendSmsRequest.h + include/alibabacloud/dyplsapi/model/ConfirmSendSmsResult.h include/alibabacloud/dyplsapi/model/CreateAxgGroupRequest.h include/alibabacloud/dyplsapi/model/CreateAxgGroupResult.h + include/alibabacloud/dyplsapi/model/CreatePickUpWaybillRequest.h + include/alibabacloud/dyplsapi/model/CreatePickUpWaybillResult.h + include/alibabacloud/dyplsapi/model/CreateSubscriptionRequest.h + include/alibabacloud/dyplsapi/model/CreateSubscriptionResult.h include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistResult.h + include/alibabacloud/dyplsapi/model/GetFaceVerifyRequest.h + include/alibabacloud/dyplsapi/model/GetFaceVerifyResult.h include/alibabacloud/dyplsapi/model/GetSecretAsrDetailRequest.h include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.h + include/alibabacloud/dyplsapi/model/GetSubscriptionDetailRequest.h + include/alibabacloud/dyplsapi/model/GetSubscriptionDetailResult.h + include/alibabacloud/dyplsapi/model/GetTotalPublicUrlRequest.h + include/alibabacloud/dyplsapi/model/GetTotalPublicUrlResult.h + include/alibabacloud/dyplsapi/model/InitFaceVerifyRequest.h + include/alibabacloud/dyplsapi/model/InitFaceVerifyResult.h include/alibabacloud/dyplsapi/model/LockSecretNoRequest.h include/alibabacloud/dyplsapi/model/LockSecretNoResult.h include/alibabacloud/dyplsapi/model/OperateAxgGroupRequest.h @@ -53,6 +69,8 @@ set(dyplsapi_public_header_model include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoResult.h include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlRequest.h include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlResult.h + include/alibabacloud/dyplsapi/model/QuerySecretNoDetailRequest.h + include/alibabacloud/dyplsapi/model/QuerySecretNoDetailResult.h include/alibabacloud/dyplsapi/model/QuerySecretNoRemainRequest.h include/alibabacloud/dyplsapi/model/QuerySecretNoRemainResult.h include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h @@ -65,6 +83,12 @@ set(dyplsapi_public_header_model include/alibabacloud/dyplsapi/model/UnbindSubscriptionResult.h include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.h include/alibabacloud/dyplsapi/model/UnlockSecretNoResult.h + include/alibabacloud/dyplsapi/model/UpdateDefaultBRequest.h + include/alibabacloud/dyplsapi/model/UpdateDefaultBResult.h + include/alibabacloud/dyplsapi/model/UpdatePhoneNumberRequest.h + include/alibabacloud/dyplsapi/model/UpdatePhoneNumberResult.h + include/alibabacloud/dyplsapi/model/UpdatePhoneSwitchRequest.h + include/alibabacloud/dyplsapi/model/UpdatePhoneSwitchResult.h include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h include/alibabacloud/dyplsapi/model/UpdateSubscriptionResult.h ) @@ -84,12 +108,28 @@ set(dyplsapi_src src/model/BindAxnExtensionResult.cc src/model/BuySecretNoRequest.cc src/model/BuySecretNoResult.cc + src/model/CancelPickUpWaybillRequest.cc + src/model/CancelPickUpWaybillResult.cc + src/model/ConfirmSendSmsRequest.cc + src/model/ConfirmSendSmsResult.cc src/model/CreateAxgGroupRequest.cc src/model/CreateAxgGroupResult.cc + src/model/CreatePickUpWaybillRequest.cc + src/model/CreatePickUpWaybillResult.cc + src/model/CreateSubscriptionRequest.cc + src/model/CreateSubscriptionResult.cc src/model/DeleteSecretBlacklistRequest.cc src/model/DeleteSecretBlacklistResult.cc + src/model/GetFaceVerifyRequest.cc + src/model/GetFaceVerifyResult.cc src/model/GetSecretAsrDetailRequest.cc src/model/GetSecretAsrDetailResult.cc + src/model/GetSubscriptionDetailRequest.cc + src/model/GetSubscriptionDetailResult.cc + src/model/GetTotalPublicUrlRequest.cc + src/model/GetTotalPublicUrlResult.cc + src/model/InitFaceVerifyRequest.cc + src/model/InitFaceVerifyResult.cc src/model/LockSecretNoRequest.cc src/model/LockSecretNoResult.cc src/model/OperateAxgGroupRequest.cc @@ -102,6 +142,8 @@ set(dyplsapi_src src/model/QueryPhoneNoAByTrackNoResult.cc src/model/QueryRecordFileDownloadUrlRequest.cc src/model/QueryRecordFileDownloadUrlResult.cc + src/model/QuerySecretNoDetailRequest.cc + src/model/QuerySecretNoDetailResult.cc src/model/QuerySecretNoRemainRequest.cc src/model/QuerySecretNoRemainResult.cc src/model/QuerySubsIdRequest.cc @@ -114,6 +156,12 @@ set(dyplsapi_src src/model/UnbindSubscriptionResult.cc src/model/UnlockSecretNoRequest.cc src/model/UnlockSecretNoResult.cc + src/model/UpdateDefaultBRequest.cc + src/model/UpdateDefaultBResult.cc + src/model/UpdatePhoneNumberRequest.cc + src/model/UpdatePhoneNumberResult.cc + src/model/UpdatePhoneSwitchRequest.cc + src/model/UpdatePhoneSwitchResult.cc src/model/UpdateSubscriptionRequest.cc src/model/UpdateSubscriptionResult.cc ) diff --git a/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h index 0d37bc48d..1ab0bca19 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h @@ -36,12 +36,28 @@ #include "model/BindAxnExtensionResult.h" #include "model/BuySecretNoRequest.h" #include "model/BuySecretNoResult.h" +#include "model/CancelPickUpWaybillRequest.h" +#include "model/CancelPickUpWaybillResult.h" +#include "model/ConfirmSendSmsRequest.h" +#include "model/ConfirmSendSmsResult.h" #include "model/CreateAxgGroupRequest.h" #include "model/CreateAxgGroupResult.h" +#include "model/CreatePickUpWaybillRequest.h" +#include "model/CreatePickUpWaybillResult.h" +#include "model/CreateSubscriptionRequest.h" +#include "model/CreateSubscriptionResult.h" #include "model/DeleteSecretBlacklistRequest.h" #include "model/DeleteSecretBlacklistResult.h" +#include "model/GetFaceVerifyRequest.h" +#include "model/GetFaceVerifyResult.h" #include "model/GetSecretAsrDetailRequest.h" #include "model/GetSecretAsrDetailResult.h" +#include "model/GetSubscriptionDetailRequest.h" +#include "model/GetSubscriptionDetailResult.h" +#include "model/GetTotalPublicUrlRequest.h" +#include "model/GetTotalPublicUrlResult.h" +#include "model/InitFaceVerifyRequest.h" +#include "model/InitFaceVerifyResult.h" #include "model/LockSecretNoRequest.h" #include "model/LockSecretNoResult.h" #include "model/OperateAxgGroupRequest.h" @@ -54,6 +70,8 @@ #include "model/QueryPhoneNoAByTrackNoResult.h" #include "model/QueryRecordFileDownloadUrlRequest.h" #include "model/QueryRecordFileDownloadUrlResult.h" +#include "model/QuerySecretNoDetailRequest.h" +#include "model/QuerySecretNoDetailResult.h" #include "model/QuerySecretNoRemainRequest.h" #include "model/QuerySecretNoRemainResult.h" #include "model/QuerySubsIdRequest.h" @@ -66,6 +84,12 @@ #include "model/UnbindSubscriptionResult.h" #include "model/UnlockSecretNoRequest.h" #include "model/UnlockSecretNoResult.h" +#include "model/UpdateDefaultBRequest.h" +#include "model/UpdateDefaultBResult.h" +#include "model/UpdatePhoneNumberRequest.h" +#include "model/UpdatePhoneNumberResult.h" +#include "model/UpdatePhoneSwitchRequest.h" +#include "model/UpdatePhoneSwitchResult.h" #include "model/UpdateSubscriptionRequest.h" #include "model/UpdateSubscriptionResult.h" @@ -98,15 +122,39 @@ namespace AlibabaCloud typedef Outcome BuySecretNoOutcome; typedef std::future BuySecretNoOutcomeCallable; typedef std::function&)> BuySecretNoAsyncHandler; + typedef Outcome CancelPickUpWaybillOutcome; + typedef std::future CancelPickUpWaybillOutcomeCallable; + typedef std::function&)> CancelPickUpWaybillAsyncHandler; + typedef Outcome ConfirmSendSmsOutcome; + typedef std::future ConfirmSendSmsOutcomeCallable; + typedef std::function&)> ConfirmSendSmsAsyncHandler; typedef Outcome CreateAxgGroupOutcome; typedef std::future CreateAxgGroupOutcomeCallable; typedef std::function&)> CreateAxgGroupAsyncHandler; + typedef Outcome CreatePickUpWaybillOutcome; + typedef std::future CreatePickUpWaybillOutcomeCallable; + typedef std::function&)> CreatePickUpWaybillAsyncHandler; + typedef Outcome CreateSubscriptionOutcome; + typedef std::future CreateSubscriptionOutcomeCallable; + typedef std::function&)> CreateSubscriptionAsyncHandler; typedef Outcome DeleteSecretBlacklistOutcome; typedef std::future DeleteSecretBlacklistOutcomeCallable; typedef std::function&)> DeleteSecretBlacklistAsyncHandler; + typedef Outcome GetFaceVerifyOutcome; + typedef std::future GetFaceVerifyOutcomeCallable; + typedef std::function&)> GetFaceVerifyAsyncHandler; typedef Outcome GetSecretAsrDetailOutcome; typedef std::future GetSecretAsrDetailOutcomeCallable; typedef std::function&)> GetSecretAsrDetailAsyncHandler; + typedef Outcome GetSubscriptionDetailOutcome; + typedef std::future GetSubscriptionDetailOutcomeCallable; + typedef std::function&)> GetSubscriptionDetailAsyncHandler; + typedef Outcome GetTotalPublicUrlOutcome; + typedef std::future GetTotalPublicUrlOutcomeCallable; + typedef std::function&)> GetTotalPublicUrlAsyncHandler; + typedef Outcome InitFaceVerifyOutcome; + typedef std::future InitFaceVerifyOutcomeCallable; + typedef std::function&)> InitFaceVerifyAsyncHandler; typedef Outcome LockSecretNoOutcome; typedef std::future LockSecretNoOutcomeCallable; typedef std::function&)> LockSecretNoAsyncHandler; @@ -125,6 +173,9 @@ namespace AlibabaCloud typedef Outcome QueryRecordFileDownloadUrlOutcome; typedef std::future QueryRecordFileDownloadUrlOutcomeCallable; typedef std::function&)> QueryRecordFileDownloadUrlAsyncHandler; + typedef Outcome QuerySecretNoDetailOutcome; + typedef std::future QuerySecretNoDetailOutcomeCallable; + typedef std::function&)> QuerySecretNoDetailAsyncHandler; typedef Outcome QuerySecretNoRemainOutcome; typedef std::future QuerySecretNoRemainOutcomeCallable; typedef std::function&)> QuerySecretNoRemainAsyncHandler; @@ -143,6 +194,15 @@ namespace AlibabaCloud typedef Outcome UnlockSecretNoOutcome; typedef std::future UnlockSecretNoOutcomeCallable; typedef std::function&)> UnlockSecretNoAsyncHandler; + typedef Outcome UpdateDefaultBOutcome; + typedef std::future UpdateDefaultBOutcomeCallable; + typedef std::function&)> UpdateDefaultBAsyncHandler; + typedef Outcome UpdatePhoneNumberOutcome; + typedef std::future UpdatePhoneNumberOutcomeCallable; + typedef std::function&)> UpdatePhoneNumberAsyncHandler; + typedef Outcome UpdatePhoneSwitchOutcome; + typedef std::future UpdatePhoneSwitchOutcomeCallable; + typedef std::function&)> UpdatePhoneSwitchAsyncHandler; typedef Outcome UpdateSubscriptionOutcome; typedef std::future UpdateSubscriptionOutcomeCallable; typedef std::function&)> UpdateSubscriptionAsyncHandler; @@ -172,15 +232,39 @@ namespace AlibabaCloud BuySecretNoOutcome buySecretNo(const Model::BuySecretNoRequest &request)const; void buySecretNoAsync(const Model::BuySecretNoRequest& request, const BuySecretNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BuySecretNoOutcomeCallable buySecretNoCallable(const Model::BuySecretNoRequest& request) const; + CancelPickUpWaybillOutcome cancelPickUpWaybill(const Model::CancelPickUpWaybillRequest &request)const; + void cancelPickUpWaybillAsync(const Model::CancelPickUpWaybillRequest& request, const CancelPickUpWaybillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelPickUpWaybillOutcomeCallable cancelPickUpWaybillCallable(const Model::CancelPickUpWaybillRequest& request) const; + ConfirmSendSmsOutcome confirmSendSms(const Model::ConfirmSendSmsRequest &request)const; + void confirmSendSmsAsync(const Model::ConfirmSendSmsRequest& request, const ConfirmSendSmsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConfirmSendSmsOutcomeCallable confirmSendSmsCallable(const Model::ConfirmSendSmsRequest& request) const; CreateAxgGroupOutcome createAxgGroup(const Model::CreateAxgGroupRequest &request)const; void createAxgGroupAsync(const Model::CreateAxgGroupRequest& request, const CreateAxgGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAxgGroupOutcomeCallable createAxgGroupCallable(const Model::CreateAxgGroupRequest& request) const; + CreatePickUpWaybillOutcome createPickUpWaybill(const Model::CreatePickUpWaybillRequest &request)const; + void createPickUpWaybillAsync(const Model::CreatePickUpWaybillRequest& request, const CreatePickUpWaybillAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePickUpWaybillOutcomeCallable createPickUpWaybillCallable(const Model::CreatePickUpWaybillRequest& request) const; + CreateSubscriptionOutcome createSubscription(const Model::CreateSubscriptionRequest &request)const; + void createSubscriptionAsync(const Model::CreateSubscriptionRequest& request, const CreateSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSubscriptionOutcomeCallable createSubscriptionCallable(const Model::CreateSubscriptionRequest& request) const; DeleteSecretBlacklistOutcome deleteSecretBlacklist(const Model::DeleteSecretBlacklistRequest &request)const; void deleteSecretBlacklistAsync(const Model::DeleteSecretBlacklistRequest& request, const DeleteSecretBlacklistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSecretBlacklistOutcomeCallable deleteSecretBlacklistCallable(const Model::DeleteSecretBlacklistRequest& request) const; + GetFaceVerifyOutcome getFaceVerify(const Model::GetFaceVerifyRequest &request)const; + void getFaceVerifyAsync(const Model::GetFaceVerifyRequest& request, const GetFaceVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFaceVerifyOutcomeCallable getFaceVerifyCallable(const Model::GetFaceVerifyRequest& request) const; GetSecretAsrDetailOutcome getSecretAsrDetail(const Model::GetSecretAsrDetailRequest &request)const; void getSecretAsrDetailAsync(const Model::GetSecretAsrDetailRequest& request, const GetSecretAsrDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSecretAsrDetailOutcomeCallable getSecretAsrDetailCallable(const Model::GetSecretAsrDetailRequest& request) const; + GetSubscriptionDetailOutcome getSubscriptionDetail(const Model::GetSubscriptionDetailRequest &request)const; + void getSubscriptionDetailAsync(const Model::GetSubscriptionDetailRequest& request, const GetSubscriptionDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSubscriptionDetailOutcomeCallable getSubscriptionDetailCallable(const Model::GetSubscriptionDetailRequest& request) const; + GetTotalPublicUrlOutcome getTotalPublicUrl(const Model::GetTotalPublicUrlRequest &request)const; + void getTotalPublicUrlAsync(const Model::GetTotalPublicUrlRequest& request, const GetTotalPublicUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTotalPublicUrlOutcomeCallable getTotalPublicUrlCallable(const Model::GetTotalPublicUrlRequest& request) const; + InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const; + void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const; LockSecretNoOutcome lockSecretNo(const Model::LockSecretNoRequest &request)const; void lockSecretNoAsync(const Model::LockSecretNoRequest& request, const LockSecretNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; LockSecretNoOutcomeCallable lockSecretNoCallable(const Model::LockSecretNoRequest& request) const; @@ -199,6 +283,9 @@ namespace AlibabaCloud QueryRecordFileDownloadUrlOutcome queryRecordFileDownloadUrl(const Model::QueryRecordFileDownloadUrlRequest &request)const; void queryRecordFileDownloadUrlAsync(const Model::QueryRecordFileDownloadUrlRequest& request, const QueryRecordFileDownloadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryRecordFileDownloadUrlOutcomeCallable queryRecordFileDownloadUrlCallable(const Model::QueryRecordFileDownloadUrlRequest& request) const; + QuerySecretNoDetailOutcome querySecretNoDetail(const Model::QuerySecretNoDetailRequest &request)const; + void querySecretNoDetailAsync(const Model::QuerySecretNoDetailRequest& request, const QuerySecretNoDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySecretNoDetailOutcomeCallable querySecretNoDetailCallable(const Model::QuerySecretNoDetailRequest& request) const; QuerySecretNoRemainOutcome querySecretNoRemain(const Model::QuerySecretNoRemainRequest &request)const; void querySecretNoRemainAsync(const Model::QuerySecretNoRemainRequest& request, const QuerySecretNoRemainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySecretNoRemainOutcomeCallable querySecretNoRemainCallable(const Model::QuerySecretNoRemainRequest& request) const; @@ -217,6 +304,15 @@ namespace AlibabaCloud UnlockSecretNoOutcome unlockSecretNo(const Model::UnlockSecretNoRequest &request)const; void unlockSecretNoAsync(const Model::UnlockSecretNoRequest& request, const UnlockSecretNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnlockSecretNoOutcomeCallable unlockSecretNoCallable(const Model::UnlockSecretNoRequest& request) const; + UpdateDefaultBOutcome updateDefaultB(const Model::UpdateDefaultBRequest &request)const; + void updateDefaultBAsync(const Model::UpdateDefaultBRequest& request, const UpdateDefaultBAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDefaultBOutcomeCallable updateDefaultBCallable(const Model::UpdateDefaultBRequest& request) const; + UpdatePhoneNumberOutcome updatePhoneNumber(const Model::UpdatePhoneNumberRequest &request)const; + void updatePhoneNumberAsync(const Model::UpdatePhoneNumberRequest& request, const UpdatePhoneNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePhoneNumberOutcomeCallable updatePhoneNumberCallable(const Model::UpdatePhoneNumberRequest& request) const; + UpdatePhoneSwitchOutcome updatePhoneSwitch(const Model::UpdatePhoneSwitchRequest &request)const; + void updatePhoneSwitchAsync(const Model::UpdatePhoneSwitchRequest& request, const UpdatePhoneSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePhoneSwitchOutcomeCallable updatePhoneSwitchCallable(const Model::UpdatePhoneSwitchRequest& request) const; UpdateSubscriptionOutcome updateSubscription(const Model::UpdateSubscriptionRequest &request)const; void updateSubscriptionAsync(const Model::UpdateSubscriptionRequest& request, const UpdateSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSubscriptionOutcomeCallable updateSubscriptionCallable(const Model::UpdateSubscriptionRequest& request) const; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistRequest.h index e684e4b46..2f1964c48 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setPoolKey(const std::string& poolKey); std::string getBlackNo()const; void setBlackNo(const std::string& blackNo); + std::string getWayControl()const; + void setWayControl(const std::string& wayControl); private: std::string blackType_; @@ -61,6 +63,7 @@ namespace AlibabaCloud long ownerId_; std::string poolKey_; std::string blackNo_; + std::string wayControl_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h index 7ed5b48c2..ef47e99d6 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setCallDisplayType(int callDisplayType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + int getCallTimeout()const; + void setCallTimeout(int callTimeout); std::string getPhoneNoX()const; void setPhoneNoX(const std::string& phoneNoX); std::string getRingConfig()const; @@ -76,6 +78,7 @@ namespace AlibabaCloud long resourceOwnerId_; int callDisplayType_; std::string accessKeyId_; + int callTimeout_; std::string phoneNoX_; std::string ringConfig_; bool aSRStatus_; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h index a1eb8280d..28d5dd472 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h @@ -71,6 +71,8 @@ namespace AlibabaCloud void setOutId(const std::string& outId); std::string getASRModelId()const; void setASRModelId(const std::string& aSRModelId); + std::string getCallRestrict()const; + void setCallRestrict(const std::string& callRestrict); private: long resourceOwnerId_; @@ -91,6 +93,7 @@ namespace AlibabaCloud bool isRecordingEnabled_; std::string outId_; std::string aSRModelId_; + std::string callRestrict_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h index dbbd5ae75..286686e2d 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h @@ -71,6 +71,8 @@ namespace AlibabaCloud void setOutId(const std::string& outId); std::string getASRModelId()const; void setASRModelId(const std::string& aSRModelId); + std::string getCallRestrict()const; + void setCallRestrict(const std::string& callRestrict); private: long resourceOwnerId_; @@ -91,6 +93,7 @@ namespace AlibabaCloud bool isRecordingEnabled_; std::string outId_; std::string aSRModelId_; + std::string callRestrict_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h index 6da32f3bd..7bf6de4b4 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setCallDisplayType(int callDisplayType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + int getCallTimeout()const; + void setCallTimeout(int callTimeout); std::string getPhoneNoX()const; void setPhoneNoX(const std::string& phoneNoX); std::string getRingConfig()const; @@ -71,11 +73,14 @@ namespace AlibabaCloud void setNoType(const std::string& noType); std::string getASRModelId()const; void setASRModelId(const std::string& aSRModelId); + std::string getCallRestrict()const; + void setCallRestrict(const std::string& callRestrict); private: long resourceOwnerId_; int callDisplayType_; std::string accessKeyId_; + int callTimeout_; std::string phoneNoX_; std::string ringConfig_; bool aSRStatus_; @@ -91,6 +96,7 @@ namespace AlibabaCloud std::string outId_; std::string noType_; std::string aSRModelId_; + std::string callRestrict_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/CancelPickUpWaybillRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/CancelPickUpWaybillRequest.h new file mode 100644 index 000000000..6dc2572cf --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/CancelPickUpWaybillRequest.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_DYPLSAPI_MODEL_CANCELPICKUPWAYBILLREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CANCELPICKUPWAYBILLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT CancelPickUpWaybillRequest : public RpcServiceRequest + { + + public: + CancelPickUpWaybillRequest(); + ~CancelPickUpWaybillRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getOuterOrderCode()const; + void setOuterOrderCode(const std::string& outerOrderCode); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCancelDesc()const; + void setCancelDesc(const std::string& cancelDesc); + std::string getContentType()const; + void setContentType(const std::string& contentType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string outerOrderCode_; + std::string accessKeyId_; + std::string cancelDesc_; + std::string contentType_; + std::string resourceOwnerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CANCELPICKUPWAYBILLREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/CancelPickUpWaybillResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/CancelPickUpWaybillResult.h new file mode 100644 index 000000000..a8f7edb38 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/CancelPickUpWaybillResult.h @@ -0,0 +1,62 @@ +/* + * 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_DYPLSAPI_MODEL_CANCELPICKUPWAYBILLRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CANCELPICKUPWAYBILLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT CancelPickUpWaybillResult : public ServiceResult + { + public: + struct Data + { + std::string message; + std::string errorMsg; + std::string errorCode; + bool success; + }; + + + CancelPickUpWaybillResult(); + explicit CancelPickUpWaybillResult(const std::string &payload); + ~CancelPickUpWaybillResult(); + 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_DYPLSAPI_MODEL_CANCELPICKUPWAYBILLRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/ConfirmSendSmsRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/ConfirmSendSmsRequest.h new file mode 100644 index 000000000..8482dfffa --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/ConfirmSendSmsRequest.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_DYPLSAPI_MODEL_CONFIRMSENDSMSREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CONFIRMSENDSMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT ConfirmSendSmsRequest : public RpcServiceRequest + { + + public: + ConfirmSendSmsRequest(); + ~ConfirmSendSmsRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecretNo()const; + void setSecretNo(const std::string& secretNo); + 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 getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + std::string callId_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CONFIRMSENDSMSREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/ConfirmSendSmsResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/ConfirmSendSmsResult.h new file mode 100644 index 000000000..b9310512d --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/ConfirmSendSmsResult.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_DYPLSAPI_MODEL_CONFIRMSENDSMSRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CONFIRMSENDSMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT ConfirmSendSmsResult : public ServiceResult + { + public: + + + ConfirmSendSmsResult(); + explicit ConfirmSendSmsResult(const std::string &payload); + ~ConfirmSendSmsResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CONFIRMSENDSMSRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/CreatePickUpWaybillRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/CreatePickUpWaybillRequest.h new file mode 100644 index 000000000..2695a6e47 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/CreatePickUpWaybillRequest.h @@ -0,0 +1,87 @@ +/* + * 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_DYPLSAPI_MODEL_CREATEPICKUPWAYBILLREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CREATEPICKUPWAYBILLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT CreatePickUpWaybillRequest : public RpcServiceRequest + { + + public: + CreatePickUpWaybillRequest(); + ~CreatePickUpWaybillRequest(); + + std::string getConsigneeName()const; + void setConsigneeName(const std::string& consigneeName); + std::string getOrderChannels()const; + void setOrderChannels(const std::string& orderChannels); + Struct getSendAddress()const; + void setSendAddress(const Struct& sendAddress); + std::string getOuterOrderCode()const; + void setOuterOrderCode(const std::string& outerOrderCode); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getCpCode()const; + void setCpCode(const std::string& cpCode); + std::string getSendMobile()const; + void setSendMobile(const std::string& sendMobile); + std::string getConsigneeMobile()const; + void setConsigneeMobile(const std::string& consigneeMobile); + std::string getContentType()const; + void setContentType(const std::string& contentType); + Struct getConsigneeAddress()const; + void setConsigneeAddress(const Struct& consigneeAddress); + std::string getSendPhone()const; + void setSendPhone(const std::string& sendPhone); + Array getGoodsInfos()const; + void setGoodsInfos(const Array& goodsInfos); + std::string getSendName()const; + void setSendName(const std::string& sendName); + std::string getConsigneePhone()const; + void setConsigneePhone(const std::string& consigneePhone); + + private: + std::string consigneeName_; + std::string orderChannels_; + Struct sendAddress_; + std::string outerOrderCode_; + std::string remark_; + std::string cpCode_; + std::string sendMobile_; + std::string consigneeMobile_; + std::string contentType_; + Struct consigneeAddress_; + std::string sendPhone_; + Array goodsInfos_; + std::string sendName_; + std::string consigneePhone_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CREATEPICKUPWAYBILLREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/CreatePickUpWaybillResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/CreatePickUpWaybillResult.h new file mode 100644 index 000000000..49ced2011 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/CreatePickUpWaybillResult.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_DYPLSAPI_MODEL_CREATEPICKUPWAYBILLRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CREATEPICKUPWAYBILLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT CreatePickUpWaybillResult : public ServiceResult + { + public: + struct Data + { + std::string cpCode; + std::string mailNo; + std::string errorMsg; + std::string errorCode; + std::string success; + }; + + + CreatePickUpWaybillResult(); + explicit CreatePickUpWaybillResult(const std::string &payload); + ~CreatePickUpWaybillResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CREATEPICKUPWAYBILLRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/CreateSubscriptionRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/CreateSubscriptionRequest.h new file mode 100644 index 000000000..949c10483 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/CreateSubscriptionRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_CREATESUBSCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CREATESUBSCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT CreateSubscriptionRequest : public RpcServiceRequest + { + + public: + CreateSubscriptionRequest(); + ~CreateSubscriptionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecretNo()const; + void setSecretNo(const std::string& secretNo); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + std::string getBindToken()const; + void setBindToken(const std::string& bindToken); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPhoneNo()const; + void setPhoneNo(const std::string& phoneNo); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + std::string prodCode_; + std::string bindToken_; + long ownerId_; + std::string phoneNo_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CREATESUBSCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/CreateSubscriptionResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/CreateSubscriptionResult.h new file mode 100644 index 000000000..b1212f181 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/CreateSubscriptionResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_CREATESUBSCRIPTIONRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CREATESUBSCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT CreateSubscriptionResult : public ServiceResult + { + public: + struct Data + { + std::string subsId; + }; + + + CreateSubscriptionResult(); + explicit CreateSubscriptionResult(const std::string &payload); + ~CreateSubscriptionResult(); + 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_DYPLSAPI_MODEL_CREATESUBSCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h index 321403a21..159f0d24e 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setPoolKey(const std::string& poolKey); std::string getBlackNo()const; void setBlackNo(const std::string& blackNo); + std::string getWayControl()const; + void setWayControl(const std::string& wayControl); private: std::string blackType_; @@ -61,6 +63,7 @@ namespace AlibabaCloud long ownerId_; std::string poolKey_; std::string blackNo_; + std::string wayControl_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetFaceVerifyRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetFaceVerifyRequest.h new file mode 100644 index 000000000..ac01fe989 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetFaceVerifyRequest.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_DYPLSAPI_MODEL_GETFACEVERIFYREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_GETFACEVERIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT GetFaceVerifyRequest : public RpcServiceRequest + { + + public: + GetFaceVerifyRequest(); + ~GetFaceVerifyRequest(); + + 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); + std::string getVerifyToken()const; + void setVerifyToken(const std::string& verifyToken); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string verifyToken_; + std::string prodCode_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_GETFACEVERIFYREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetFaceVerifyResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetFaceVerifyResult.h new file mode 100644 index 000000000..28134cf0e --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetFaceVerifyResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_GETFACEVERIFYRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_GETFACEVERIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT GetFaceVerifyResult : public ServiceResult + { + public: + struct Data + { + std::string verifyResult; + }; + + + GetFaceVerifyResult(); + explicit GetFaceVerifyResult(const std::string &payload); + ~GetFaceVerifyResult(); + 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_DYPLSAPI_MODEL_GETFACEVERIFYRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.h index f950be7b3..baae6a008 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.h @@ -32,20 +32,41 @@ namespace AlibabaCloud class ALIBABACLOUD_DYPLSAPI_EXPORT GetSecretAsrDetailResult : public ServiceResult { public: + struct Data + { + struct SecretAsrSentenceDTO + { + long endTime; + long silenceDuration; + long beginTime; + std::string text; + int channelId; + int speechRate; + std::string emotionValue; + }; + std::string msg; + std::string type; + std::string requestId; + long bizDuration; + std::vector sentences; + std::string code; + std::string businessId; + std::string businessKey; + }; GetSecretAsrDetailResult(); explicit GetSecretAsrDetailResult(const std::string &payload); ~GetSecretAsrDetailResult(); std::string getMessage()const; - std::string getData()const; + Data getData()const; std::string getCode()const; protected: void parse(const std::string &payload); private: std::string message_; - std::string data_; + Data data_; std::string code_; }; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetSubscriptionDetailRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSubscriptionDetailRequest.h new file mode 100644 index 000000000..b9b4394ec --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSubscriptionDetailRequest.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_DYPLSAPI_MODEL_GETSUBSCRIPTIONDETAILREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_GETSUBSCRIPTIONDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT GetSubscriptionDetailRequest : public RpcServiceRequest + { + + public: + GetSubscriptionDetailRequest(); + ~GetSubscriptionDetailRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getSubsId()const; + void setSubsId(long subsId); + std::string getSecretNo()const; + void setSecretNo(const std::string& secretNo); + 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 getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + long subsId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_GETSUBSCRIPTIONDETAILREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetSubscriptionDetailResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSubscriptionDetailResult.h new file mode 100644 index 000000000..1728f1c47 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSubscriptionDetailResult.h @@ -0,0 +1,65 @@ +/* + * 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_DYPLSAPI_MODEL_GETSUBSCRIPTIONDETAILRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_GETSUBSCRIPTIONDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT GetSubscriptionDetailResult : public ServiceResult + { + public: + struct Data + { + std::string phoneNo; + std::string city; + std::string vendor; + std::string secretNo; + int switchStatus; + std::string province; + long subsId; + }; + + + GetSubscriptionDetailResult(); + explicit GetSubscriptionDetailResult(const std::string &payload); + ~GetSubscriptionDetailResult(); + 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_DYPLSAPI_MODEL_GETSUBSCRIPTIONDETAILRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetTotalPublicUrlRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetTotalPublicUrlRequest.h new file mode 100644 index 000000000..a296ead0b --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetTotalPublicUrlRequest.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_DYPLSAPI_MODEL_GETTOTALPUBLICURLREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_GETTOTALPUBLICURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT GetTotalPublicUrlRequest : public RpcServiceRequest + { + + public: + GetTotalPublicUrlRequest(); + ~GetTotalPublicUrlRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + 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); + bool getCheckSubs()const; + void setCheckSubs(bool checkSubs); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCallTime()const; + void setCallTime(const std::string& callTime); + std::string getPartnerKey()const; + void setPartnerKey(const std::string& partnerKey); + + private: + std::string callId_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + bool checkSubs_; + long ownerId_; + std::string callTime_; + std::string partnerKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_GETTOTALPUBLICURLREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetTotalPublicUrlResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetTotalPublicUrlResult.h new file mode 100644 index 000000000..9e0dd00a3 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetTotalPublicUrlResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_GETTOTALPUBLICURLRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_GETTOTALPUBLICURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT GetTotalPublicUrlResult : public ServiceResult + { + public: + struct Data + { + std::string ringPublicUrl; + std::string phonePublicUrl; + }; + + + GetTotalPublicUrlResult(); + explicit GetTotalPublicUrlResult(const std::string &payload); + ~GetTotalPublicUrlResult(); + 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_DYPLSAPI_MODEL_GETTOTALPUBLICURLRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/InitFaceVerifyRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/InitFaceVerifyRequest.h new file mode 100644 index 000000000..698247ac9 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/InitFaceVerifyRequest.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_DYPLSAPI_MODEL_INITFACEVERIFYREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_INITFACEVERIFYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT InitFaceVerifyRequest : public RpcServiceRequest + { + + public: + InitFaceVerifyRequest(); + ~InitFaceVerifyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getMetaInfo()const; + void setMetaInfo(const std::string& metaInfo); + 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); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string metaInfo_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_INITFACEVERIFYREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/InitFaceVerifyResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/InitFaceVerifyResult.h new file mode 100644 index 000000000..4d3b40e21 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/InitFaceVerifyResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_INITFACEVERIFYRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_INITFACEVERIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT InitFaceVerifyResult : public ServiceResult + { + public: + struct Data + { + std::string certifyId; + }; + + + InitFaceVerifyResult(); + explicit InitFaceVerifyResult(const std::string &payload); + ~InitFaceVerifyResult(); + 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_DYPLSAPI_MODEL_INITFACEVERIFYRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h index 03f90b45a..77a2aa5ce 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct SecretCallStatusDTO { int status; + std::string extension; std::string calledNo; }; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoRequest.h index 429d704bf..0583932e0 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoRequest.h @@ -37,24 +37,27 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCabinetNo()const; + void setCabinetNo(const std::string& cabinetNo); + std::string getPhoneNoX()const; + void setPhoneNoX(const std::string& phoneNoX); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); long getOwnerId()const; void setOwnerId(long ownerId); std::string getTrackNo()const; void setTrackNo(const std::string& trackNo); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPhoneNoX()const; - void setPhoneNoX(const std::string& phoneNoX); private: long resourceOwnerId_; + std::string accessKeyId_; + std::string cabinetNo_; + std::string phoneNoX_; std::string resourceOwnerAccount_; long ownerId_; std::string trackNo_; - std::string accessKeyId_; - std::string phoneNoX_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoResult.h index 7a07578d6..0c59c1c3f 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoResult.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryPhoneNoAByTrackNoResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct PhoneNoAInfo { + std::string extension; std::string phoneNoX; std::string phoneNoA; }; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoDetailRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoDetailRequest.h new file mode 100644 index 000000000..d239f1ae9 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoDetailRequest.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_DYPLSAPI_MODEL_QUERYSECRETNODETAILREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNODETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySecretNoDetailRequest : public RpcServiceRequest + { + + public: + QuerySecretNoDetailRequest(); + ~QuerySecretNoDetailRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecretNo()const; + void setSecretNo(const std::string& secretNo); + 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 getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNODETAILREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoDetailResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoDetailResult.h new file mode 100644 index 000000000..63afbdb42 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoDetailResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNODETAILRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNODETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySecretNoDetailResult : public ServiceResult + { + public: + struct SecretNoInfoDTO + { + std::string purchaseTime; + int certifyStatus; + long vendor; + std::string city; + long secretStatus; + std::string province; + }; + + + QuerySecretNoDetailResult(); + explicit QuerySecretNoDetailResult(const std::string &payload); + ~QuerySecretNoDetailResult(); + std::string getMessage()const; + SecretNoInfoDTO getSecretNoInfoDTO()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + SecretNoInfoDTO secretNoInfoDTO_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNODETAILRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateDefaultBRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateDefaultBRequest.h new file mode 100644 index 000000000..5ec8e82bd --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateDefaultBRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEDEFAULTBREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEDEFAULTBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UpdateDefaultBRequest : public RpcServiceRequest + { + + public: + UpdateDefaultBRequest(); + ~UpdateDefaultBRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getSubsId()const; + void setSubsId(long subsId); + std::string getSecretNo()const; + void setSecretNo(const std::string& secretNo); + 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 getPhoneNo()const; + void setPhoneNo(const std::string& phoneNo); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + long subsId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string phoneNo_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEDEFAULTBREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateDefaultBResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateDefaultBResult.h new file mode 100644 index 000000000..7f7c2ed51 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateDefaultBResult.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_DYPLSAPI_MODEL_UPDATEDEFAULTBRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEDEFAULTBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UpdateDefaultBResult : public ServiceResult + { + public: + + + UpdateDefaultBResult(); + explicit UpdateDefaultBResult(const std::string &payload); + ~UpdateDefaultBResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEDEFAULTBRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneNumberRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneNumberRequest.h new file mode 100644 index 000000000..0b7e2536a --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneNumberRequest.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_DYPLSAPI_MODEL_UPDATEPHONENUMBERREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONENUMBERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UpdatePhoneNumberRequest : public RpcServiceRequest + { + + public: + UpdatePhoneNumberRequest(); + ~UpdatePhoneNumberRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getSubsId()const; + void setSubsId(long subsId); + std::string getSecretNo()const; + void setSecretNo(const std::string& secretNo); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getProdCode()const; + void setProdCode(const std::string& prodCode); + std::string getBindToken()const; + void setBindToken(const std::string& bindToken); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + std::string getNewPhoneNo()const; + void setNewPhoneNo(const std::string& newPhoneNo); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + long subsId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + std::string prodCode_; + std::string bindToken_; + long ownerId_; + std::string poolKey_; + std::string newPhoneNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONENUMBERREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneNumberResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneNumberResult.h new file mode 100644 index 000000000..464572573 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneNumberResult.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_DYPLSAPI_MODEL_UPDATEPHONENUMBERRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONENUMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UpdatePhoneNumberResult : public ServiceResult + { + public: + + + UpdatePhoneNumberResult(); + explicit UpdatePhoneNumberResult(const std::string &payload); + ~UpdatePhoneNumberResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONENUMBERRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneSwitchRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneSwitchRequest.h new file mode 100644 index 000000000..2546b1974 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneSwitchRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONESWITCHREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONESWITCHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UpdatePhoneSwitchRequest : public RpcServiceRequest + { + + public: + UpdatePhoneSwitchRequest(); + ~UpdatePhoneSwitchRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getSwitchStatus()const; + void setSwitchStatus(int switchStatus); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getSubsId()const; + void setSubsId(long subsId); + std::string getSecretNo()const; + void setSecretNo(const std::string& secretNo); + 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 getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + long resourceOwnerId_; + int switchStatus_; + std::string accessKeyId_; + long subsId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + std::string prodCode_; + long ownerId_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONESWITCHREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneSwitchResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneSwitchResult.h new file mode 100644 index 000000000..4c07cea8f --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdatePhoneSwitchResult.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_DYPLSAPI_MODEL_UPDATEPHONESWITCHRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONESWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UpdatePhoneSwitchResult : public ServiceResult + { + public: + + + UpdatePhoneSwitchResult(); + explicit UpdatePhoneSwitchResult(const std::string &payload); + ~UpdatePhoneSwitchResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATEPHONESWITCHRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/src/DyplsapiClient.cc b/dyplsapi/src/DyplsapiClient.cc index 568698aae..f10afa08c 100644 --- a/dyplsapi/src/DyplsapiClient.cc +++ b/dyplsapi/src/DyplsapiClient.cc @@ -31,21 +31,21 @@ DyplsapiClient::DyplsapiClient(const Credentials &credentials, const ClientConfi RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dypls"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DyplsapiClient::DyplsapiClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dypls"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DyplsapiClient::DyplsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dypls"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DyplsapiClient::~DyplsapiClient() @@ -303,6 +303,78 @@ DyplsapiClient::BuySecretNoOutcomeCallable DyplsapiClient::buySecretNoCallable(c return task->get_future(); } +DyplsapiClient::CancelPickUpWaybillOutcome DyplsapiClient::cancelPickUpWaybill(const CancelPickUpWaybillRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelPickUpWaybillOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelPickUpWaybillOutcome(CancelPickUpWaybillResult(outcome.result())); + else + return CancelPickUpWaybillOutcome(outcome.error()); +} + +void DyplsapiClient::cancelPickUpWaybillAsync(const CancelPickUpWaybillRequest& request, const CancelPickUpWaybillAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelPickUpWaybill(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::CancelPickUpWaybillOutcomeCallable DyplsapiClient::cancelPickUpWaybillCallable(const CancelPickUpWaybillRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelPickUpWaybill(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::ConfirmSendSmsOutcome DyplsapiClient::confirmSendSms(const ConfirmSendSmsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConfirmSendSmsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConfirmSendSmsOutcome(ConfirmSendSmsResult(outcome.result())); + else + return ConfirmSendSmsOutcome(outcome.error()); +} + +void DyplsapiClient::confirmSendSmsAsync(const ConfirmSendSmsRequest& request, const ConfirmSendSmsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, confirmSendSms(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::ConfirmSendSmsOutcomeCallable DyplsapiClient::confirmSendSmsCallable(const ConfirmSendSmsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->confirmSendSms(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::CreateAxgGroupOutcome DyplsapiClient::createAxgGroup(const CreateAxgGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +411,78 @@ DyplsapiClient::CreateAxgGroupOutcomeCallable DyplsapiClient::createAxgGroupCall return task->get_future(); } +DyplsapiClient::CreatePickUpWaybillOutcome DyplsapiClient::createPickUpWaybill(const CreatePickUpWaybillRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePickUpWaybillOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePickUpWaybillOutcome(CreatePickUpWaybillResult(outcome.result())); + else + return CreatePickUpWaybillOutcome(outcome.error()); +} + +void DyplsapiClient::createPickUpWaybillAsync(const CreatePickUpWaybillRequest& request, const CreatePickUpWaybillAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPickUpWaybill(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::CreatePickUpWaybillOutcomeCallable DyplsapiClient::createPickUpWaybillCallable(const CreatePickUpWaybillRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPickUpWaybill(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::CreateSubscriptionOutcome DyplsapiClient::createSubscription(const CreateSubscriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSubscriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSubscriptionOutcome(CreateSubscriptionResult(outcome.result())); + else + return CreateSubscriptionOutcome(outcome.error()); +} + +void DyplsapiClient::createSubscriptionAsync(const CreateSubscriptionRequest& request, const CreateSubscriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSubscription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::CreateSubscriptionOutcomeCallable DyplsapiClient::createSubscriptionCallable(const CreateSubscriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSubscription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::DeleteSecretBlacklistOutcome DyplsapiClient::deleteSecretBlacklist(const DeleteSecretBlacklistRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +519,42 @@ DyplsapiClient::DeleteSecretBlacklistOutcomeCallable DyplsapiClient::deleteSecre return task->get_future(); } +DyplsapiClient::GetFaceVerifyOutcome DyplsapiClient::getFaceVerify(const GetFaceVerifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFaceVerifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFaceVerifyOutcome(GetFaceVerifyResult(outcome.result())); + else + return GetFaceVerifyOutcome(outcome.error()); +} + +void DyplsapiClient::getFaceVerifyAsync(const GetFaceVerifyRequest& request, const GetFaceVerifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFaceVerify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::GetFaceVerifyOutcomeCallable DyplsapiClient::getFaceVerifyCallable(const GetFaceVerifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFaceVerify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::GetSecretAsrDetailOutcome DyplsapiClient::getSecretAsrDetail(const GetSecretAsrDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +591,114 @@ DyplsapiClient::GetSecretAsrDetailOutcomeCallable DyplsapiClient::getSecretAsrDe return task->get_future(); } +DyplsapiClient::GetSubscriptionDetailOutcome DyplsapiClient::getSubscriptionDetail(const GetSubscriptionDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSubscriptionDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSubscriptionDetailOutcome(GetSubscriptionDetailResult(outcome.result())); + else + return GetSubscriptionDetailOutcome(outcome.error()); +} + +void DyplsapiClient::getSubscriptionDetailAsync(const GetSubscriptionDetailRequest& request, const GetSubscriptionDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSubscriptionDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::GetSubscriptionDetailOutcomeCallable DyplsapiClient::getSubscriptionDetailCallable(const GetSubscriptionDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSubscriptionDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::GetTotalPublicUrlOutcome DyplsapiClient::getTotalPublicUrl(const GetTotalPublicUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTotalPublicUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTotalPublicUrlOutcome(GetTotalPublicUrlResult(outcome.result())); + else + return GetTotalPublicUrlOutcome(outcome.error()); +} + +void DyplsapiClient::getTotalPublicUrlAsync(const GetTotalPublicUrlRequest& request, const GetTotalPublicUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTotalPublicUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::GetTotalPublicUrlOutcomeCallable DyplsapiClient::getTotalPublicUrlCallable(const GetTotalPublicUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTotalPublicUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::InitFaceVerifyOutcome DyplsapiClient::initFaceVerify(const InitFaceVerifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InitFaceVerifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InitFaceVerifyOutcome(InitFaceVerifyResult(outcome.result())); + else + return InitFaceVerifyOutcome(outcome.error()); +} + +void DyplsapiClient::initFaceVerifyAsync(const InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, initFaceVerify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::InitFaceVerifyOutcomeCallable DyplsapiClient::initFaceVerifyCallable(const InitFaceVerifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->initFaceVerify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::LockSecretNoOutcome DyplsapiClient::lockSecretNo(const LockSecretNoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +915,42 @@ DyplsapiClient::QueryRecordFileDownloadUrlOutcomeCallable DyplsapiClient::queryR return task->get_future(); } +DyplsapiClient::QuerySecretNoDetailOutcome DyplsapiClient::querySecretNoDetail(const QuerySecretNoDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySecretNoDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySecretNoDetailOutcome(QuerySecretNoDetailResult(outcome.result())); + else + return QuerySecretNoDetailOutcome(outcome.error()); +} + +void DyplsapiClient::querySecretNoDetailAsync(const QuerySecretNoDetailRequest& request, const QuerySecretNoDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySecretNoDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::QuerySecretNoDetailOutcomeCallable DyplsapiClient::querySecretNoDetailCallable(const QuerySecretNoDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySecretNoDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::QuerySecretNoRemainOutcome DyplsapiClient::querySecretNoRemain(const QuerySecretNoRemainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +1167,114 @@ DyplsapiClient::UnlockSecretNoOutcomeCallable DyplsapiClient::unlockSecretNoCall return task->get_future(); } +DyplsapiClient::UpdateDefaultBOutcome DyplsapiClient::updateDefaultB(const UpdateDefaultBRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDefaultBOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDefaultBOutcome(UpdateDefaultBResult(outcome.result())); + else + return UpdateDefaultBOutcome(outcome.error()); +} + +void DyplsapiClient::updateDefaultBAsync(const UpdateDefaultBRequest& request, const UpdateDefaultBAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDefaultB(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::UpdateDefaultBOutcomeCallable DyplsapiClient::updateDefaultBCallable(const UpdateDefaultBRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDefaultB(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::UpdatePhoneNumberOutcome DyplsapiClient::updatePhoneNumber(const UpdatePhoneNumberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePhoneNumberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePhoneNumberOutcome(UpdatePhoneNumberResult(outcome.result())); + else + return UpdatePhoneNumberOutcome(outcome.error()); +} + +void DyplsapiClient::updatePhoneNumberAsync(const UpdatePhoneNumberRequest& request, const UpdatePhoneNumberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePhoneNumber(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::UpdatePhoneNumberOutcomeCallable DyplsapiClient::updatePhoneNumberCallable(const UpdatePhoneNumberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePhoneNumber(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::UpdatePhoneSwitchOutcome DyplsapiClient::updatePhoneSwitch(const UpdatePhoneSwitchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePhoneSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePhoneSwitchOutcome(UpdatePhoneSwitchResult(outcome.result())); + else + return UpdatePhoneSwitchOutcome(outcome.error()); +} + +void DyplsapiClient::updatePhoneSwitchAsync(const UpdatePhoneSwitchRequest& request, const UpdatePhoneSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePhoneSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::UpdatePhoneSwitchOutcomeCallable DyplsapiClient::updatePhoneSwitchCallable(const UpdatePhoneSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePhoneSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::UpdateSubscriptionOutcome DyplsapiClient::updateSubscription(const UpdateSubscriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dyplsapi/src/model/AddSecretBlacklistRequest.cc b/dyplsapi/src/model/AddSecretBlacklistRequest.cc index a6d14d7cd..9181b3697 100644 --- a/dyplsapi/src/model/AddSecretBlacklistRequest.cc +++ b/dyplsapi/src/model/AddSecretBlacklistRequest.cc @@ -115,3 +115,14 @@ void AddSecretBlacklistRequest::setBlackNo(const std::string& blackNo) setParameter("BlackNo", blackNo); } +std::string AddSecretBlacklistRequest::getWayControl()const +{ + return wayControl_; +} + +void AddSecretBlacklistRequest::setWayControl(const std::string& wayControl) +{ + wayControl_ = wayControl; + setParameter("WayControl", wayControl); +} + diff --git a/dyplsapi/src/model/BindAxbRequest.cc b/dyplsapi/src/model/BindAxbRequest.cc index 372d8400b..c3af7bc31 100644 --- a/dyplsapi/src/model/BindAxbRequest.cc +++ b/dyplsapi/src/model/BindAxbRequest.cc @@ -60,6 +60,17 @@ void BindAxbRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +int BindAxbRequest::getCallTimeout()const +{ + return callTimeout_; +} + +void BindAxbRequest::setCallTimeout(int callTimeout) +{ + callTimeout_ = callTimeout; + setParameter("CallTimeout", std::to_string(callTimeout)); +} + std::string BindAxbRequest::getPhoneNoX()const { return phoneNoX_; diff --git a/dyplsapi/src/model/BindAxgRequest.cc b/dyplsapi/src/model/BindAxgRequest.cc index fa1b7c2ae..ca535fbab 100644 --- a/dyplsapi/src/model/BindAxgRequest.cc +++ b/dyplsapi/src/model/BindAxgRequest.cc @@ -225,3 +225,14 @@ void BindAxgRequest::setASRModelId(const std::string& aSRModelId) setParameter("ASRModelId", aSRModelId); } +std::string BindAxgRequest::getCallRestrict()const +{ + return callRestrict_; +} + +void BindAxgRequest::setCallRestrict(const std::string& callRestrict) +{ + callRestrict_ = callRestrict; + setParameter("CallRestrict", callRestrict); +} + diff --git a/dyplsapi/src/model/BindAxnExtensionRequest.cc b/dyplsapi/src/model/BindAxnExtensionRequest.cc index 641260bcb..0209ac84b 100644 --- a/dyplsapi/src/model/BindAxnExtensionRequest.cc +++ b/dyplsapi/src/model/BindAxnExtensionRequest.cc @@ -225,3 +225,14 @@ void BindAxnExtensionRequest::setASRModelId(const std::string& aSRModelId) setParameter("ASRModelId", aSRModelId); } +std::string BindAxnExtensionRequest::getCallRestrict()const +{ + return callRestrict_; +} + +void BindAxnExtensionRequest::setCallRestrict(const std::string& callRestrict) +{ + callRestrict_ = callRestrict; + setParameter("CallRestrict", callRestrict); +} + diff --git a/dyplsapi/src/model/BindAxnRequest.cc b/dyplsapi/src/model/BindAxnRequest.cc index ecd67d43a..eb9ea7a7e 100644 --- a/dyplsapi/src/model/BindAxnRequest.cc +++ b/dyplsapi/src/model/BindAxnRequest.cc @@ -60,6 +60,17 @@ void BindAxnRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +int BindAxnRequest::getCallTimeout()const +{ + return callTimeout_; +} + +void BindAxnRequest::setCallTimeout(int callTimeout) +{ + callTimeout_ = callTimeout; + setParameter("CallTimeout", std::to_string(callTimeout)); +} + std::string BindAxnRequest::getPhoneNoX()const { return phoneNoX_; @@ -225,3 +236,14 @@ void BindAxnRequest::setASRModelId(const std::string& aSRModelId) setParameter("ASRModelId", aSRModelId); } +std::string BindAxnRequest::getCallRestrict()const +{ + return callRestrict_; +} + +void BindAxnRequest::setCallRestrict(const std::string& callRestrict) +{ + callRestrict_ = callRestrict; + setParameter("CallRestrict", callRestrict); +} + diff --git a/dyplsapi/src/model/CancelPickUpWaybillRequest.cc b/dyplsapi/src/model/CancelPickUpWaybillRequest.cc new file mode 100644 index 000000000..9a78455fa --- /dev/null +++ b/dyplsapi/src/model/CancelPickUpWaybillRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::CancelPickUpWaybillRequest; + +CancelPickUpWaybillRequest::CancelPickUpWaybillRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "CancelPickUpWaybill") +{ + setMethod(HttpRequest::Method::Post); +} + +CancelPickUpWaybillRequest::~CancelPickUpWaybillRequest() +{} + +long CancelPickUpWaybillRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelPickUpWaybillRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelPickUpWaybillRequest::getOuterOrderCode()const +{ + return outerOrderCode_; +} + +void CancelPickUpWaybillRequest::setOuterOrderCode(const std::string& outerOrderCode) +{ + outerOrderCode_ = outerOrderCode; + setParameter("OuterOrderCode", outerOrderCode); +} + +std::string CancelPickUpWaybillRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CancelPickUpWaybillRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CancelPickUpWaybillRequest::getCancelDesc()const +{ + return cancelDesc_; +} + +void CancelPickUpWaybillRequest::setCancelDesc(const std::string& cancelDesc) +{ + cancelDesc_ = cancelDesc; + setParameter("CancelDesc", cancelDesc); +} + +std::string CancelPickUpWaybillRequest::getContentType()const +{ + return contentType_; +} + +void CancelPickUpWaybillRequest::setContentType(const std::string& contentType) +{ + contentType_ = contentType; + setHeader("ContentType", contentType); +} + +std::string CancelPickUpWaybillRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelPickUpWaybillRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long CancelPickUpWaybillRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelPickUpWaybillRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dyplsapi/src/model/CancelPickUpWaybillResult.cc b/dyplsapi/src/model/CancelPickUpWaybillResult.cc new file mode 100644 index 000000000..f199ed363 --- /dev/null +++ b/dyplsapi/src/model/CancelPickUpWaybillResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +CancelPickUpWaybillResult::CancelPickUpWaybillResult() : + ServiceResult() +{} + +CancelPickUpWaybillResult::CancelPickUpWaybillResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelPickUpWaybillResult::~CancelPickUpWaybillResult() +{} + +void CancelPickUpWaybillResult::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["Success"].isNull()) + data_.success = dataNode["Success"].asString() == "true"; + if(!dataNode["ErrorCode"].isNull()) + data_.errorCode = dataNode["ErrorCode"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["ErrorMsg"].isNull()) + data_.errorMsg = dataNode["ErrorMsg"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CancelPickUpWaybillResult::getMessage()const +{ + return message_; +} + +CancelPickUpWaybillResult::Data CancelPickUpWaybillResult::getData()const +{ + return data_; +} + +std::string CancelPickUpWaybillResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/ConfirmSendSmsRequest.cc b/dyplsapi/src/model/ConfirmSendSmsRequest.cc new file mode 100644 index 000000000..8320be91f --- /dev/null +++ b/dyplsapi/src/model/ConfirmSendSmsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::ConfirmSendSmsRequest; + +ConfirmSendSmsRequest::ConfirmSendSmsRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "ConfirmSendSms") +{ + setMethod(HttpRequest::Method::Post); +} + +ConfirmSendSmsRequest::~ConfirmSendSmsRequest() +{} + +std::string ConfirmSendSmsRequest::getCallId()const +{ + return callId_; +} + +void ConfirmSendSmsRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setParameter("CallId", callId); +} + +long ConfirmSendSmsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ConfirmSendSmsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ConfirmSendSmsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ConfirmSendSmsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ConfirmSendSmsRequest::getSecretNo()const +{ + return secretNo_; +} + +void ConfirmSendSmsRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + +std::string ConfirmSendSmsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ConfirmSendSmsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ConfirmSendSmsRequest::getProdCode()const +{ + return prodCode_; +} + +void ConfirmSendSmsRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long ConfirmSendSmsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ConfirmSendSmsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ConfirmSendSmsRequest::getPoolKey()const +{ + return poolKey_; +} + +void ConfirmSendSmsRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/ConfirmSendSmsResult.cc b/dyplsapi/src/model/ConfirmSendSmsResult.cc new file mode 100644 index 000000000..3d74a0767 --- /dev/null +++ b/dyplsapi/src/model/ConfirmSendSmsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +ConfirmSendSmsResult::ConfirmSendSmsResult() : + ServiceResult() +{} + +ConfirmSendSmsResult::ConfirmSendSmsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConfirmSendSmsResult::~ConfirmSendSmsResult() +{} + +void ConfirmSendSmsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ConfirmSendSmsResult::getMessage()const +{ + return message_; +} + +std::string ConfirmSendSmsResult::getData()const +{ + return data_; +} + +std::string ConfirmSendSmsResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/CreatePickUpWaybillRequest.cc b/dyplsapi/src/model/CreatePickUpWaybillRequest.cc new file mode 100644 index 000000000..a5551b0f3 --- /dev/null +++ b/dyplsapi/src/model/CreatePickUpWaybillRequest.cc @@ -0,0 +1,183 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::CreatePickUpWaybillRequest; + +CreatePickUpWaybillRequest::CreatePickUpWaybillRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "CreatePickUpWaybill") +{ + setMethod(HttpRequest::Method::Post); +} + +CreatePickUpWaybillRequest::~CreatePickUpWaybillRequest() +{} + +std::string CreatePickUpWaybillRequest::getConsigneeName()const +{ + return consigneeName_; +} + +void CreatePickUpWaybillRequest::setConsigneeName(const std::string& consigneeName) +{ + consigneeName_ = consigneeName; + setParameter("ConsigneeName", consigneeName); +} + +std::string CreatePickUpWaybillRequest::getOrderChannels()const +{ + return orderChannels_; +} + +void CreatePickUpWaybillRequest::setOrderChannels(const std::string& orderChannels) +{ + orderChannels_ = orderChannels; + setParameter("OrderChannels", orderChannels); +} + +Struct CreatePickUpWaybillRequest::getSendAddress()const +{ + return sendAddress_; +} + +void CreatePickUpWaybillRequest::setSendAddress(const Struct& sendAddress) +{ + sendAddress_ = sendAddress; + setParameter("SendAddress", std::to_string(sendAddress)); +} + +std::string CreatePickUpWaybillRequest::getOuterOrderCode()const +{ + return outerOrderCode_; +} + +void CreatePickUpWaybillRequest::setOuterOrderCode(const std::string& outerOrderCode) +{ + outerOrderCode_ = outerOrderCode; + setParameter("OuterOrderCode", outerOrderCode); +} + +std::string CreatePickUpWaybillRequest::getRemark()const +{ + return remark_; +} + +void CreatePickUpWaybillRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + +std::string CreatePickUpWaybillRequest::getCpCode()const +{ + return cpCode_; +} + +void CreatePickUpWaybillRequest::setCpCode(const std::string& cpCode) +{ + cpCode_ = cpCode; + setParameter("CpCode", cpCode); +} + +std::string CreatePickUpWaybillRequest::getSendMobile()const +{ + return sendMobile_; +} + +void CreatePickUpWaybillRequest::setSendMobile(const std::string& sendMobile) +{ + sendMobile_ = sendMobile; + setParameter("SendMobile", sendMobile); +} + +std::string CreatePickUpWaybillRequest::getConsigneeMobile()const +{ + return consigneeMobile_; +} + +void CreatePickUpWaybillRequest::setConsigneeMobile(const std::string& consigneeMobile) +{ + consigneeMobile_ = consigneeMobile; + setParameter("ConsigneeMobile", consigneeMobile); +} + +std::string CreatePickUpWaybillRequest::getContentType()const +{ + return contentType_; +} + +void CreatePickUpWaybillRequest::setContentType(const std::string& contentType) +{ + contentType_ = contentType; + setHeader("ContentType", contentType); +} + +Struct CreatePickUpWaybillRequest::getConsigneeAddress()const +{ + return consigneeAddress_; +} + +void CreatePickUpWaybillRequest::setConsigneeAddress(const Struct& consigneeAddress) +{ + consigneeAddress_ = consigneeAddress; + setParameter("ConsigneeAddress", std::to_string(consigneeAddress)); +} + +std::string CreatePickUpWaybillRequest::getSendPhone()const +{ + return sendPhone_; +} + +void CreatePickUpWaybillRequest::setSendPhone(const std::string& sendPhone) +{ + sendPhone_ = sendPhone; + setParameter("SendPhone", sendPhone); +} + +Array CreatePickUpWaybillRequest::getGoodsInfos()const +{ + return goodsInfos_; +} + +void CreatePickUpWaybillRequest::setGoodsInfos(const Array& goodsInfos) +{ + goodsInfos_ = goodsInfos; + setParameter("GoodsInfos", std::to_string(goodsInfos)); +} + +std::string CreatePickUpWaybillRequest::getSendName()const +{ + return sendName_; +} + +void CreatePickUpWaybillRequest::setSendName(const std::string& sendName) +{ + sendName_ = sendName; + setParameter("SendName", sendName); +} + +std::string CreatePickUpWaybillRequest::getConsigneePhone()const +{ + return consigneePhone_; +} + +void CreatePickUpWaybillRequest::setConsigneePhone(const std::string& consigneePhone) +{ + consigneePhone_ = consigneePhone; + setParameter("ConsigneePhone", consigneePhone); +} + diff --git a/dyplsapi/src/model/CreatePickUpWaybillResult.cc b/dyplsapi/src/model/CreatePickUpWaybillResult.cc new file mode 100644 index 000000000..eeb540b26 --- /dev/null +++ b/dyplsapi/src/model/CreatePickUpWaybillResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +CreatePickUpWaybillResult::CreatePickUpWaybillResult() : + ServiceResult() +{} + +CreatePickUpWaybillResult::CreatePickUpWaybillResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePickUpWaybillResult::~CreatePickUpWaybillResult() +{} + +void CreatePickUpWaybillResult::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["Success"].isNull()) + data_.success = dataNode["Success"].asString(); + if(!dataNode["CpCode"].isNull()) + data_.cpCode = dataNode["CpCode"].asString(); + if(!dataNode["MailNo"].isNull()) + data_.mailNo = dataNode["MailNo"].asString(); + if(!dataNode["ErrorCode"].isNull()) + data_.errorCode = dataNode["ErrorCode"].asString(); + if(!dataNode["ErrorMsg"].isNull()) + data_.errorMsg = dataNode["ErrorMsg"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreatePickUpWaybillResult::getMessage()const +{ + return message_; +} + +int CreatePickUpWaybillResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +CreatePickUpWaybillResult::Data CreatePickUpWaybillResult::getData()const +{ + return data_; +} + diff --git a/dyplsapi/src/model/CreateSubscriptionRequest.cc b/dyplsapi/src/model/CreateSubscriptionRequest.cc new file mode 100644 index 000000000..d78d5fbb5 --- /dev/null +++ b/dyplsapi/src/model/CreateSubscriptionRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::CreateSubscriptionRequest; + +CreateSubscriptionRequest::CreateSubscriptionRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "CreateSubscription") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateSubscriptionRequest::~CreateSubscriptionRequest() +{} + +long CreateSubscriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateSubscriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateSubscriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateSubscriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateSubscriptionRequest::getSecretNo()const +{ + return secretNo_; +} + +void CreateSubscriptionRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + +std::string CreateSubscriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateSubscriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateSubscriptionRequest::getProdCode()const +{ + return prodCode_; +} + +void CreateSubscriptionRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +std::string CreateSubscriptionRequest::getBindToken()const +{ + return bindToken_; +} + +void CreateSubscriptionRequest::setBindToken(const std::string& bindToken) +{ + bindToken_ = bindToken; + setParameter("BindToken", bindToken); +} + +long CreateSubscriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSubscriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateSubscriptionRequest::getPhoneNo()const +{ + return phoneNo_; +} + +void CreateSubscriptionRequest::setPhoneNo(const std::string& phoneNo) +{ + phoneNo_ = phoneNo; + setParameter("PhoneNo", phoneNo); +} + +std::string CreateSubscriptionRequest::getPoolKey()const +{ + return poolKey_; +} + +void CreateSubscriptionRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/CreateSubscriptionResult.cc b/dyplsapi/src/model/CreateSubscriptionResult.cc new file mode 100644 index 000000000..d11d007c8 --- /dev/null +++ b/dyplsapi/src/model/CreateSubscriptionResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +CreateSubscriptionResult::CreateSubscriptionResult() : + ServiceResult() +{} + +CreateSubscriptionResult::CreateSubscriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSubscriptionResult::~CreateSubscriptionResult() +{} + +void CreateSubscriptionResult::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["SubsId"].isNull()) + data_.subsId = dataNode["SubsId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateSubscriptionResult::getMessage()const +{ + return message_; +} + +CreateSubscriptionResult::Data CreateSubscriptionResult::getData()const +{ + return data_; +} + +std::string CreateSubscriptionResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/DeleteSecretBlacklistRequest.cc b/dyplsapi/src/model/DeleteSecretBlacklistRequest.cc index a44bd5629..e45664dc8 100644 --- a/dyplsapi/src/model/DeleteSecretBlacklistRequest.cc +++ b/dyplsapi/src/model/DeleteSecretBlacklistRequest.cc @@ -115,3 +115,14 @@ void DeleteSecretBlacklistRequest::setBlackNo(const std::string& blackNo) setParameter("BlackNo", blackNo); } +std::string DeleteSecretBlacklistRequest::getWayControl()const +{ + return wayControl_; +} + +void DeleteSecretBlacklistRequest::setWayControl(const std::string& wayControl) +{ + wayControl_ = wayControl; + setParameter("WayControl", wayControl); +} + diff --git a/dyplsapi/src/model/GetFaceVerifyRequest.cc b/dyplsapi/src/model/GetFaceVerifyRequest.cc new file mode 100644 index 000000000..7c66d9632 --- /dev/null +++ b/dyplsapi/src/model/GetFaceVerifyRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::GetFaceVerifyRequest; + +GetFaceVerifyRequest::GetFaceVerifyRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "GetFaceVerify") +{ + setMethod(HttpRequest::Method::Post); +} + +GetFaceVerifyRequest::~GetFaceVerifyRequest() +{} + +long GetFaceVerifyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetFaceVerifyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetFaceVerifyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetFaceVerifyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string GetFaceVerifyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetFaceVerifyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GetFaceVerifyRequest::getVerifyToken()const +{ + return verifyToken_; +} + +void GetFaceVerifyRequest::setVerifyToken(const std::string& verifyToken) +{ + verifyToken_ = verifyToken; + setParameter("VerifyToken", verifyToken); +} + +std::string GetFaceVerifyRequest::getProdCode()const +{ + return prodCode_; +} + +void GetFaceVerifyRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long GetFaceVerifyRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetFaceVerifyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dyplsapi/src/model/GetFaceVerifyResult.cc b/dyplsapi/src/model/GetFaceVerifyResult.cc new file mode 100644 index 000000000..110db3f72 --- /dev/null +++ b/dyplsapi/src/model/GetFaceVerifyResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +GetFaceVerifyResult::GetFaceVerifyResult() : + ServiceResult() +{} + +GetFaceVerifyResult::GetFaceVerifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFaceVerifyResult::~GetFaceVerifyResult() +{} + +void GetFaceVerifyResult::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["VerifyResult"].isNull()) + data_.verifyResult = dataNode["VerifyResult"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetFaceVerifyResult::getMessage()const +{ + return message_; +} + +GetFaceVerifyResult::Data GetFaceVerifyResult::getData()const +{ + return data_; +} + +std::string GetFaceVerifyResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/GetSecretAsrDetailResult.cc b/dyplsapi/src/model/GetSecretAsrDetailResult.cc index c357a6be5..1d3ed437a 100644 --- a/dyplsapi/src/model/GetSecretAsrDetailResult.cc +++ b/dyplsapi/src/model/GetSecretAsrDetailResult.cc @@ -39,12 +39,45 @@ void GetSecretAsrDetailResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["RequestId"].isNull()) + data_.requestId = dataNode["RequestId"].asString(); + if(!dataNode["BusinessId"].isNull()) + data_.businessId = dataNode["BusinessId"].asString(); + if(!dataNode["BusinessKey"].isNull()) + data_.businessKey = dataNode["BusinessKey"].asString(); + if(!dataNode["Code"].isNull()) + data_.code = dataNode["Code"].asString(); + if(!dataNode["Msg"].isNull()) + data_.msg = dataNode["Msg"].asString(); + if(!dataNode["BizDuration"].isNull()) + data_.bizDuration = std::stol(dataNode["BizDuration"].asString()); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + auto allSentencesNode = dataNode["Sentences"]["SecretAsrSentenceDTO"]; + for (auto dataNodeSentencesSecretAsrSentenceDTO : allSentencesNode) + { + Data::SecretAsrSentenceDTO secretAsrSentenceDTOObject; + if(!dataNodeSentencesSecretAsrSentenceDTO["EndTime"].isNull()) + secretAsrSentenceDTOObject.endTime = std::stol(dataNodeSentencesSecretAsrSentenceDTO["EndTime"].asString()); + if(!dataNodeSentencesSecretAsrSentenceDTO["SilenceDuration"].isNull()) + secretAsrSentenceDTOObject.silenceDuration = std::stol(dataNodeSentencesSecretAsrSentenceDTO["SilenceDuration"].asString()); + if(!dataNodeSentencesSecretAsrSentenceDTO["BeginTime"].isNull()) + secretAsrSentenceDTOObject.beginTime = std::stol(dataNodeSentencesSecretAsrSentenceDTO["BeginTime"].asString()); + if(!dataNodeSentencesSecretAsrSentenceDTO["Text"].isNull()) + secretAsrSentenceDTOObject.text = dataNodeSentencesSecretAsrSentenceDTO["Text"].asString(); + if(!dataNodeSentencesSecretAsrSentenceDTO["ChannelId"].isNull()) + secretAsrSentenceDTOObject.channelId = std::stoi(dataNodeSentencesSecretAsrSentenceDTO["ChannelId"].asString()); + if(!dataNodeSentencesSecretAsrSentenceDTO["SpeechRate"].isNull()) + secretAsrSentenceDTOObject.speechRate = std::stoi(dataNodeSentencesSecretAsrSentenceDTO["SpeechRate"].asString()); + if(!dataNodeSentencesSecretAsrSentenceDTO["EmotionValue"].isNull()) + secretAsrSentenceDTOObject.emotionValue = dataNodeSentencesSecretAsrSentenceDTO["EmotionValue"].asString(); + data_.sentences.push_back(secretAsrSentenceDTOObject); + } if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); } @@ -53,7 +86,7 @@ std::string GetSecretAsrDetailResult::getMessage()const return message_; } -std::string GetSecretAsrDetailResult::getData()const +GetSecretAsrDetailResult::Data GetSecretAsrDetailResult::getData()const { return data_; } diff --git a/dyplsapi/src/model/GetSubscriptionDetailRequest.cc b/dyplsapi/src/model/GetSubscriptionDetailRequest.cc new file mode 100644 index 000000000..30f681ba0 --- /dev/null +++ b/dyplsapi/src/model/GetSubscriptionDetailRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::GetSubscriptionDetailRequest; + +GetSubscriptionDetailRequest::GetSubscriptionDetailRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "GetSubscriptionDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSubscriptionDetailRequest::~GetSubscriptionDetailRequest() +{} + +long GetSubscriptionDetailRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetSubscriptionDetailRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetSubscriptionDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetSubscriptionDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long GetSubscriptionDetailRequest::getSubsId()const +{ + return subsId_; +} + +void GetSubscriptionDetailRequest::setSubsId(long subsId) +{ + subsId_ = subsId; + setParameter("SubsId", std::to_string(subsId)); +} + +std::string GetSubscriptionDetailRequest::getSecretNo()const +{ + return secretNo_; +} + +void GetSubscriptionDetailRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + +std::string GetSubscriptionDetailRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetSubscriptionDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GetSubscriptionDetailRequest::getProdCode()const +{ + return prodCode_; +} + +void GetSubscriptionDetailRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long GetSubscriptionDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetSubscriptionDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetSubscriptionDetailRequest::getPoolKey()const +{ + return poolKey_; +} + +void GetSubscriptionDetailRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/GetSubscriptionDetailResult.cc b/dyplsapi/src/model/GetSubscriptionDetailResult.cc new file mode 100644 index 000000000..6804ce0ef --- /dev/null +++ b/dyplsapi/src/model/GetSubscriptionDetailResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +GetSubscriptionDetailResult::GetSubscriptionDetailResult() : + ServiceResult() +{} + +GetSubscriptionDetailResult::GetSubscriptionDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSubscriptionDetailResult::~GetSubscriptionDetailResult() +{} + +void GetSubscriptionDetailResult::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["SubsId"].isNull()) + data_.subsId = std::stol(dataNode["SubsId"].asString()); + if(!dataNode["SecretNo"].isNull()) + data_.secretNo = dataNode["SecretNo"].asString(); + if(!dataNode["PhoneNo"].isNull()) + data_.phoneNo = dataNode["PhoneNo"].asString(); + if(!dataNode["SwitchStatus"].isNull()) + data_.switchStatus = std::stoi(dataNode["SwitchStatus"].asString()); + if(!dataNode["Province"].isNull()) + data_.province = dataNode["Province"].asString(); + if(!dataNode["City"].isNull()) + data_.city = dataNode["City"].asString(); + if(!dataNode["Vendor"].isNull()) + data_.vendor = dataNode["Vendor"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetSubscriptionDetailResult::getMessage()const +{ + return message_; +} + +GetSubscriptionDetailResult::Data GetSubscriptionDetailResult::getData()const +{ + return data_; +} + +std::string GetSubscriptionDetailResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/GetTotalPublicUrlRequest.cc b/dyplsapi/src/model/GetTotalPublicUrlRequest.cc new file mode 100644 index 000000000..8ef4d6a26 --- /dev/null +++ b/dyplsapi/src/model/GetTotalPublicUrlRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::GetTotalPublicUrlRequest; + +GetTotalPublicUrlRequest::GetTotalPublicUrlRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "GetTotalPublicUrl") +{ + setMethod(HttpRequest::Method::Post); +} + +GetTotalPublicUrlRequest::~GetTotalPublicUrlRequest() +{} + +std::string GetTotalPublicUrlRequest::getCallId()const +{ + return callId_; +} + +void GetTotalPublicUrlRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setParameter("CallId", callId); +} + +long GetTotalPublicUrlRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetTotalPublicUrlRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetTotalPublicUrlRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetTotalPublicUrlRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string GetTotalPublicUrlRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetTotalPublicUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool GetTotalPublicUrlRequest::getCheckSubs()const +{ + return checkSubs_; +} + +void GetTotalPublicUrlRequest::setCheckSubs(bool checkSubs) +{ + checkSubs_ = checkSubs; + setParameter("CheckSubs", checkSubs ? "true" : "false"); +} + +long GetTotalPublicUrlRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetTotalPublicUrlRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetTotalPublicUrlRequest::getCallTime()const +{ + return callTime_; +} + +void GetTotalPublicUrlRequest::setCallTime(const std::string& callTime) +{ + callTime_ = callTime; + setParameter("CallTime", callTime); +} + +std::string GetTotalPublicUrlRequest::getPartnerKey()const +{ + return partnerKey_; +} + +void GetTotalPublicUrlRequest::setPartnerKey(const std::string& partnerKey) +{ + partnerKey_ = partnerKey; + setParameter("PartnerKey", partnerKey); +} + diff --git a/dyplsapi/src/model/GetTotalPublicUrlResult.cc b/dyplsapi/src/model/GetTotalPublicUrlResult.cc new file mode 100644 index 000000000..e1a5b4e10 --- /dev/null +++ b/dyplsapi/src/model/GetTotalPublicUrlResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +GetTotalPublicUrlResult::GetTotalPublicUrlResult() : + ServiceResult() +{} + +GetTotalPublicUrlResult::GetTotalPublicUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTotalPublicUrlResult::~GetTotalPublicUrlResult() +{} + +void GetTotalPublicUrlResult::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["PhonePublicUrl"].isNull()) + data_.phonePublicUrl = dataNode["PhonePublicUrl"].asString(); + if(!dataNode["RingPublicUrl"].isNull()) + data_.ringPublicUrl = dataNode["RingPublicUrl"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetTotalPublicUrlResult::getMessage()const +{ + return message_; +} + +GetTotalPublicUrlResult::Data GetTotalPublicUrlResult::getData()const +{ + return data_; +} + +std::string GetTotalPublicUrlResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/InitFaceVerifyRequest.cc b/dyplsapi/src/model/InitFaceVerifyRequest.cc new file mode 100644 index 000000000..fcf1b852a --- /dev/null +++ b/dyplsapi/src/model/InitFaceVerifyRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::InitFaceVerifyRequest; + +InitFaceVerifyRequest::InitFaceVerifyRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "InitFaceVerify") +{ + setMethod(HttpRequest::Method::Post); +} + +InitFaceVerifyRequest::~InitFaceVerifyRequest() +{} + +long InitFaceVerifyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void InitFaceVerifyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string InitFaceVerifyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void InitFaceVerifyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string InitFaceVerifyRequest::getMetaInfo()const +{ + return metaInfo_; +} + +void InitFaceVerifyRequest::setMetaInfo(const std::string& metaInfo) +{ + metaInfo_ = metaInfo; + setParameter("MetaInfo", metaInfo); +} + +std::string InitFaceVerifyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void InitFaceVerifyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string InitFaceVerifyRequest::getProdCode()const +{ + return prodCode_; +} + +void InitFaceVerifyRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long InitFaceVerifyRequest::getOwnerId()const +{ + return ownerId_; +} + +void InitFaceVerifyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dyplsapi/src/model/InitFaceVerifyResult.cc b/dyplsapi/src/model/InitFaceVerifyResult.cc new file mode 100644 index 000000000..19afbcb7a --- /dev/null +++ b/dyplsapi/src/model/InitFaceVerifyResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +InitFaceVerifyResult::InitFaceVerifyResult() : + ServiceResult() +{} + +InitFaceVerifyResult::InitFaceVerifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InitFaceVerifyResult::~InitFaceVerifyResult() +{} + +void InitFaceVerifyResult::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["CertifyId"].isNull()) + data_.certifyId = dataNode["CertifyId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string InitFaceVerifyResult::getMessage()const +{ + return message_; +} + +InitFaceVerifyResult::Data InitFaceVerifyResult::getData()const +{ + return data_; +} + +std::string InitFaceVerifyResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/QueryCallStatusResult.cc b/dyplsapi/src/model/QueryCallStatusResult.cc index b446049ed..306c03f2c 100644 --- a/dyplsapi/src/model/QueryCallStatusResult.cc +++ b/dyplsapi/src/model/QueryCallStatusResult.cc @@ -40,10 +40,12 @@ void QueryCallStatusResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto secretCallStatusDTONode = value["SecretCallStatusDTO"]; - if(!secretCallStatusDTONode["Status"].isNull()) - secretCallStatusDTO_.status = std::stoi(secretCallStatusDTONode["Status"].asString()); if(!secretCallStatusDTONode["CalledNo"].isNull()) secretCallStatusDTO_.calledNo = secretCallStatusDTONode["CalledNo"].asString(); + if(!secretCallStatusDTONode["Status"].isNull()) + secretCallStatusDTO_.status = std::stoi(secretCallStatusDTONode["Status"].asString()); + if(!secretCallStatusDTONode["Extension"].isNull()) + secretCallStatusDTO_.extension = secretCallStatusDTONode["Extension"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/dyplsapi/src/model/QueryPhoneNoAByTrackNoRequest.cc b/dyplsapi/src/model/QueryPhoneNoAByTrackNoRequest.cc index 1bd5ab704..4a567fcce 100644 --- a/dyplsapi/src/model/QueryPhoneNoAByTrackNoRequest.cc +++ b/dyplsapi/src/model/QueryPhoneNoAByTrackNoRequest.cc @@ -38,6 +38,39 @@ void QueryPhoneNoAByTrackNoRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string QueryPhoneNoAByTrackNoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryPhoneNoAByTrackNoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string QueryPhoneNoAByTrackNoRequest::getCabinetNo()const +{ + return cabinetNo_; +} + +void QueryPhoneNoAByTrackNoRequest::setCabinetNo(const std::string& cabinetNo) +{ + cabinetNo_ = cabinetNo; + setParameter("CabinetNo", cabinetNo); +} + +std::string QueryPhoneNoAByTrackNoRequest::getPhoneNoX()const +{ + return phoneNoX_; +} + +void QueryPhoneNoAByTrackNoRequest::setPhoneNoX(const std::string& phoneNoX) +{ + phoneNoX_ = phoneNoX; + setParameter("PhoneNoX", phoneNoX); +} + std::string QueryPhoneNoAByTrackNoRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -71,25 +104,3 @@ void QueryPhoneNoAByTrackNoRequest::setTrackNo(const std::string& trackNo) setParameter("TrackNo", trackNo); } -std::string QueryPhoneNoAByTrackNoRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void QueryPhoneNoAByTrackNoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string QueryPhoneNoAByTrackNoRequest::getPhoneNoX()const -{ - return phoneNoX_; -} - -void QueryPhoneNoAByTrackNoRequest::setPhoneNoX(const std::string& phoneNoX) -{ - phoneNoX_ = phoneNoX; - setParameter("PhoneNoX", phoneNoX); -} - diff --git a/dyplsapi/src/model/QueryPhoneNoAByTrackNoResult.cc b/dyplsapi/src/model/QueryPhoneNoAByTrackNoResult.cc index c0957eb09..588ca8714 100644 --- a/dyplsapi/src/model/QueryPhoneNoAByTrackNoResult.cc +++ b/dyplsapi/src/model/QueryPhoneNoAByTrackNoResult.cc @@ -47,6 +47,8 @@ void QueryPhoneNoAByTrackNoResult::parse(const std::string &payload) moduleObject.phoneNoA = valueModulephoneNoAInfo["PhoneNoA"].asString(); if(!valueModulephoneNoAInfo["PhoneNoX"].isNull()) moduleObject.phoneNoX = valueModulephoneNoAInfo["PhoneNoX"].asString(); + if(!valueModulephoneNoAInfo["Extension"].isNull()) + moduleObject.extension = valueModulephoneNoAInfo["Extension"].asString(); module_.push_back(moduleObject); } if(!value["Code"].isNull()) diff --git a/dyplsapi/src/model/QuerySecretNoDetailRequest.cc b/dyplsapi/src/model/QuerySecretNoDetailRequest.cc new file mode 100644 index 000000000..7355ec964 --- /dev/null +++ b/dyplsapi/src/model/QuerySecretNoDetailRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::QuerySecretNoDetailRequest; + +QuerySecretNoDetailRequest::QuerySecretNoDetailRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySecretNoDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +QuerySecretNoDetailRequest::~QuerySecretNoDetailRequest() +{} + +long QuerySecretNoDetailRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QuerySecretNoDetailRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QuerySecretNoDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QuerySecretNoDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string QuerySecretNoDetailRequest::getSecretNo()const +{ + return secretNo_; +} + +void QuerySecretNoDetailRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + +std::string QuerySecretNoDetailRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QuerySecretNoDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QuerySecretNoDetailRequest::getProdCode()const +{ + return prodCode_; +} + +void QuerySecretNoDetailRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long QuerySecretNoDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void QuerySecretNoDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QuerySecretNoDetailRequest::getPoolKey()const +{ + return poolKey_; +} + +void QuerySecretNoDetailRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/QuerySecretNoDetailResult.cc b/dyplsapi/src/model/QuerySecretNoDetailResult.cc new file mode 100644 index 000000000..f7a4dafc2 --- /dev/null +++ b/dyplsapi/src/model/QuerySecretNoDetailResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +QuerySecretNoDetailResult::QuerySecretNoDetailResult() : + ServiceResult() +{} + +QuerySecretNoDetailResult::QuerySecretNoDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySecretNoDetailResult::~QuerySecretNoDetailResult() +{} + +void QuerySecretNoDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretNoInfoDTONode = value["SecretNoInfoDTO"]; + if(!secretNoInfoDTONode["PurchaseTime"].isNull()) + secretNoInfoDTO_.purchaseTime = secretNoInfoDTONode["PurchaseTime"].asString(); + if(!secretNoInfoDTONode["Vendor"].isNull()) + secretNoInfoDTO_.vendor = std::stol(secretNoInfoDTONode["Vendor"].asString()); + if(!secretNoInfoDTONode["Province"].isNull()) + secretNoInfoDTO_.province = secretNoInfoDTONode["Province"].asString(); + if(!secretNoInfoDTONode["City"].isNull()) + secretNoInfoDTO_.city = secretNoInfoDTONode["City"].asString(); + if(!secretNoInfoDTONode["SecretStatus"].isNull()) + secretNoInfoDTO_.secretStatus = std::stol(secretNoInfoDTONode["SecretStatus"].asString()); + if(!secretNoInfoDTONode["CertifyStatus"].isNull()) + secretNoInfoDTO_.certifyStatus = std::stoi(secretNoInfoDTONode["CertifyStatus"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QuerySecretNoDetailResult::getMessage()const +{ + return message_; +} + +QuerySecretNoDetailResult::SecretNoInfoDTO QuerySecretNoDetailResult::getSecretNoInfoDTO()const +{ + return secretNoInfoDTO_; +} + +std::string QuerySecretNoDetailResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/UpdateDefaultBRequest.cc b/dyplsapi/src/model/UpdateDefaultBRequest.cc new file mode 100644 index 000000000..75a2193e9 --- /dev/null +++ b/dyplsapi/src/model/UpdateDefaultBRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::UpdateDefaultBRequest; + +UpdateDefaultBRequest::UpdateDefaultBRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "UpdateDefaultB") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateDefaultBRequest::~UpdateDefaultBRequest() +{} + +long UpdateDefaultBRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateDefaultBRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateDefaultBRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateDefaultBRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long UpdateDefaultBRequest::getSubsId()const +{ + return subsId_; +} + +void UpdateDefaultBRequest::setSubsId(long subsId) +{ + subsId_ = subsId; + setParameter("SubsId", std::to_string(subsId)); +} + +std::string UpdateDefaultBRequest::getSecretNo()const +{ + return secretNo_; +} + +void UpdateDefaultBRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + +std::string UpdateDefaultBRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateDefaultBRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateDefaultBRequest::getProdCode()const +{ + return prodCode_; +} + +void UpdateDefaultBRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long UpdateDefaultBRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateDefaultBRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateDefaultBRequest::getPhoneNo()const +{ + return phoneNo_; +} + +void UpdateDefaultBRequest::setPhoneNo(const std::string& phoneNo) +{ + phoneNo_ = phoneNo; + setParameter("PhoneNo", phoneNo); +} + +std::string UpdateDefaultBRequest::getPoolKey()const +{ + return poolKey_; +} + +void UpdateDefaultBRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/UpdateDefaultBResult.cc b/dyplsapi/src/model/UpdateDefaultBResult.cc new file mode 100644 index 000000000..497609828 --- /dev/null +++ b/dyplsapi/src/model/UpdateDefaultBResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +UpdateDefaultBResult::UpdateDefaultBResult() : + ServiceResult() +{} + +UpdateDefaultBResult::UpdateDefaultBResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDefaultBResult::~UpdateDefaultBResult() +{} + +void UpdateDefaultBResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string UpdateDefaultBResult::getMessage()const +{ + return message_; +} + +std::string UpdateDefaultBResult::getData()const +{ + return data_; +} + +std::string UpdateDefaultBResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/UpdatePhoneNumberRequest.cc b/dyplsapi/src/model/UpdatePhoneNumberRequest.cc new file mode 100644 index 000000000..8c4f61fbd --- /dev/null +++ b/dyplsapi/src/model/UpdatePhoneNumberRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::UpdatePhoneNumberRequest; + +UpdatePhoneNumberRequest::UpdatePhoneNumberRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "UpdatePhoneNumber") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdatePhoneNumberRequest::~UpdatePhoneNumberRequest() +{} + +long UpdatePhoneNumberRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdatePhoneNumberRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdatePhoneNumberRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdatePhoneNumberRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long UpdatePhoneNumberRequest::getSubsId()const +{ + return subsId_; +} + +void UpdatePhoneNumberRequest::setSubsId(long subsId) +{ + subsId_ = subsId; + setParameter("SubsId", std::to_string(subsId)); +} + +std::string UpdatePhoneNumberRequest::getSecretNo()const +{ + return secretNo_; +} + +void UpdatePhoneNumberRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + +std::string UpdatePhoneNumberRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdatePhoneNumberRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdatePhoneNumberRequest::getProdCode()const +{ + return prodCode_; +} + +void UpdatePhoneNumberRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +std::string UpdatePhoneNumberRequest::getBindToken()const +{ + return bindToken_; +} + +void UpdatePhoneNumberRequest::setBindToken(const std::string& bindToken) +{ + bindToken_ = bindToken; + setParameter("BindToken", bindToken); +} + +long UpdatePhoneNumberRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdatePhoneNumberRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdatePhoneNumberRequest::getPoolKey()const +{ + return poolKey_; +} + +void UpdatePhoneNumberRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + +std::string UpdatePhoneNumberRequest::getNewPhoneNo()const +{ + return newPhoneNo_; +} + +void UpdatePhoneNumberRequest::setNewPhoneNo(const std::string& newPhoneNo) +{ + newPhoneNo_ = newPhoneNo; + setParameter("NewPhoneNo", newPhoneNo); +} + diff --git a/dyplsapi/src/model/UpdatePhoneNumberResult.cc b/dyplsapi/src/model/UpdatePhoneNumberResult.cc new file mode 100644 index 000000000..582e6371f --- /dev/null +++ b/dyplsapi/src/model/UpdatePhoneNumberResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +UpdatePhoneNumberResult::UpdatePhoneNumberResult() : + ServiceResult() +{} + +UpdatePhoneNumberResult::UpdatePhoneNumberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePhoneNumberResult::~UpdatePhoneNumberResult() +{} + +void UpdatePhoneNumberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string UpdatePhoneNumberResult::getMessage()const +{ + return message_; +} + +std::string UpdatePhoneNumberResult::getData()const +{ + return data_; +} + +std::string UpdatePhoneNumberResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/UpdatePhoneSwitchRequest.cc b/dyplsapi/src/model/UpdatePhoneSwitchRequest.cc new file mode 100644 index 000000000..f2fae8d47 --- /dev/null +++ b/dyplsapi/src/model/UpdatePhoneSwitchRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::UpdatePhoneSwitchRequest; + +UpdatePhoneSwitchRequest::UpdatePhoneSwitchRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "UpdatePhoneSwitch") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdatePhoneSwitchRequest::~UpdatePhoneSwitchRequest() +{} + +long UpdatePhoneSwitchRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdatePhoneSwitchRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int UpdatePhoneSwitchRequest::getSwitchStatus()const +{ + return switchStatus_; +} + +void UpdatePhoneSwitchRequest::setSwitchStatus(int switchStatus) +{ + switchStatus_ = switchStatus; + setParameter("SwitchStatus", std::to_string(switchStatus)); +} + +std::string UpdatePhoneSwitchRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdatePhoneSwitchRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long UpdatePhoneSwitchRequest::getSubsId()const +{ + return subsId_; +} + +void UpdatePhoneSwitchRequest::setSubsId(long subsId) +{ + subsId_ = subsId; + setParameter("SubsId", std::to_string(subsId)); +} + +std::string UpdatePhoneSwitchRequest::getSecretNo()const +{ + return secretNo_; +} + +void UpdatePhoneSwitchRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + +std::string UpdatePhoneSwitchRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdatePhoneSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdatePhoneSwitchRequest::getProdCode()const +{ + return prodCode_; +} + +void UpdatePhoneSwitchRequest::setProdCode(const std::string& prodCode) +{ + prodCode_ = prodCode; + setParameter("ProdCode", prodCode); +} + +long UpdatePhoneSwitchRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdatePhoneSwitchRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdatePhoneSwitchRequest::getPoolKey()const +{ + return poolKey_; +} + +void UpdatePhoneSwitchRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/UpdatePhoneSwitchResult.cc b/dyplsapi/src/model/UpdatePhoneSwitchResult.cc new file mode 100644 index 000000000..f91866d31 --- /dev/null +++ b/dyplsapi/src/model/UpdatePhoneSwitchResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +UpdatePhoneSwitchResult::UpdatePhoneSwitchResult() : + ServiceResult() +{} + +UpdatePhoneSwitchResult::UpdatePhoneSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePhoneSwitchResult::~UpdatePhoneSwitchResult() +{} + +void UpdatePhoneSwitchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string UpdatePhoneSwitchResult::getMessage()const +{ + return message_; +} + +std::string UpdatePhoneSwitchResult::getData()const +{ + return data_; +} + +std::string UpdatePhoneSwitchResult::getCode()const +{ + return code_; +} +