From fc5b3998fe64e2c1039bec2f2f9add5c0017546e Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 21 May 2025 07:36:30 +0000 Subject: [PATCH] Added param for ActivateLicenseResponse . --- VERSION | 2 +- mseap/CMakeLists.txt | 4 ++ .../include/alibabacloud/mseap/MseapClient.h | 8 +++ .../GetPlatformUserInfoForPartnerRequest.h | 48 +++++++++++++ .../GetPlatformUserInfoForPartnerResult.h | 57 +++++++++++++++ mseap/src/MseapClient.cc | 36 ++++++++++ .../GetPlatformUserInfoForPartnerRequest.cc | 54 ++++++++++++++ .../GetPlatformUserInfoForPartnerResult.cc | 72 +++++++++++++++++++ 8 files changed, 280 insertions(+), 1 deletion(-) create mode 100644 mseap/include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerRequest.h create mode 100644 mseap/include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerResult.h create mode 100644 mseap/src/model/GetPlatformUserInfoForPartnerRequest.cc create mode 100644 mseap/src/model/GetPlatformUserInfoForPartnerResult.cc diff --git a/VERSION b/VERSION index b1f2b6d5b..c585c49f5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2068 \ No newline at end of file +1.36.2069 \ No newline at end of file diff --git a/mseap/CMakeLists.txt b/mseap/CMakeLists.txt index 0f9691faf..d993b07c9 100644 --- a/mseap/CMakeLists.txt +++ b/mseap/CMakeLists.txt @@ -33,6 +33,8 @@ set(mseap_public_header_model include/alibabacloud/mseap/model/GetNodeByFlowIdResult.h include/alibabacloud/mseap/model/GetNodeByTemplateIdRequest.h include/alibabacloud/mseap/model/GetNodeByTemplateIdResult.h + include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerRequest.h + include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerResult.h include/alibabacloud/mseap/model/GetProxyByTypeRequest.h include/alibabacloud/mseap/model/GetProxyByTypeResult.h include/alibabacloud/mseap/model/GetRedisValueRequest.h @@ -70,6 +72,8 @@ set(mseap_src src/model/GetNodeByFlowIdResult.cc src/model/GetNodeByTemplateIdRequest.cc src/model/GetNodeByTemplateIdResult.cc + src/model/GetPlatformUserInfoForPartnerRequest.cc + src/model/GetPlatformUserInfoForPartnerResult.cc src/model/GetProxyByTypeRequest.cc src/model/GetProxyByTypeResult.cc src/model/GetRedisValueRequest.cc diff --git a/mseap/include/alibabacloud/mseap/MseapClient.h b/mseap/include/alibabacloud/mseap/MseapClient.h index eda6b040d..c080512af 100644 --- a/mseap/include/alibabacloud/mseap/MseapClient.h +++ b/mseap/include/alibabacloud/mseap/MseapClient.h @@ -34,6 +34,8 @@ #include "model/GetNodeByFlowIdResult.h" #include "model/GetNodeByTemplateIdRequest.h" #include "model/GetNodeByTemplateIdResult.h" +#include "model/GetPlatformUserInfoForPartnerRequest.h" +#include "model/GetPlatformUserInfoForPartnerResult.h" #include "model/GetProxyByTypeRequest.h" #include "model/GetProxyByTypeResult.h" #include "model/GetRedisValueRequest.h" @@ -83,6 +85,9 @@ namespace AlibabaCloud typedef Outcome GetNodeByTemplateIdOutcome; typedef std::future GetNodeByTemplateIdOutcomeCallable; typedef std::function&)> GetNodeByTemplateIdAsyncHandler; + typedef Outcome GetPlatformUserInfoForPartnerOutcome; + typedef std::future GetPlatformUserInfoForPartnerOutcomeCallable; + typedef std::function&)> GetPlatformUserInfoForPartnerAsyncHandler; typedef Outcome GetProxyByTypeOutcome; typedef std::future GetProxyByTypeOutcomeCallable; typedef std::function&)> GetProxyByTypeAsyncHandler; @@ -139,6 +144,9 @@ namespace AlibabaCloud GetNodeByTemplateIdOutcome getNodeByTemplateId(const Model::GetNodeByTemplateIdRequest &request)const; void getNodeByTemplateIdAsync(const Model::GetNodeByTemplateIdRequest& request, const GetNodeByTemplateIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetNodeByTemplateIdOutcomeCallable getNodeByTemplateIdCallable(const Model::GetNodeByTemplateIdRequest& request) const; + GetPlatformUserInfoForPartnerOutcome getPlatformUserInfoForPartner(const Model::GetPlatformUserInfoForPartnerRequest &request)const; + void getPlatformUserInfoForPartnerAsync(const Model::GetPlatformUserInfoForPartnerRequest& request, const GetPlatformUserInfoForPartnerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPlatformUserInfoForPartnerOutcomeCallable getPlatformUserInfoForPartnerCallable(const Model::GetPlatformUserInfoForPartnerRequest& request) const; GetProxyByTypeOutcome getProxyByType(const Model::GetProxyByTypeRequest &request)const; void getProxyByTypeAsync(const Model::GetProxyByTypeRequest& request, const GetProxyByTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetProxyByTypeOutcomeCallable getProxyByTypeCallable(const Model::GetProxyByTypeRequest& request) const; diff --git a/mseap/include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerRequest.h b/mseap/include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerRequest.h new file mode 100644 index 000000000..eea3ad2db --- /dev/null +++ b/mseap/include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerRequest.h @@ -0,0 +1,48 @@ +/* + * 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_MSEAP_MODEL_GETPLATFORMUSERINFOFORPARTNERREQUEST_H_ +#define ALIBABACLOUD_MSEAP_MODEL_GETPLATFORMUSERINFOFORPARTNERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mseap { +namespace Model { +class ALIBABACLOUD_MSEAP_EXPORT GetPlatformUserInfoForPartnerRequest : public RpcServiceRequest { +public: + GetPlatformUserInfoForPartnerRequest(); + ~GetPlatformUserInfoForPartnerRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getPlatformType() const; + void setPlatformType(const std::string &platformType); + +private: + std::string userId_; + std::string appId_; + std::string platformType_; +}; +} // namespace Model +} // namespace Mseap +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MSEAP_MODEL_GETPLATFORMUSERINFOFORPARTNERREQUEST_H_ diff --git a/mseap/include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerResult.h b/mseap/include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerResult.h new file mode 100644 index 000000000..aab328c74 --- /dev/null +++ b/mseap/include/alibabacloud/mseap/model/GetPlatformUserInfoForPartnerResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_MSEAP_MODEL_GETPLATFORMUSERINFOFORPARTNERRESULT_H_ +#define ALIBABACLOUD_MSEAP_MODEL_GETPLATFORMUSERINFOFORPARTNERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mseap + { + namespace Model + { + class ALIBABACLOUD_MSEAP_EXPORT GetPlatformUserInfoForPartnerResult : public ServiceResult + { + public: + + + GetPlatformUserInfoForPartnerResult(); + explicit GetPlatformUserInfoForPartnerResult(const std::string &payload); + ~GetPlatformUserInfoForPartnerResult(); + std::string getErrorMsg()const; + std::string getEncryptedOpenId()const; + std::string getEncryptedUnionId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorMsg_; + std::string encryptedOpenId_; + std::string encryptedUnionId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MSEAP_MODEL_GETPLATFORMUSERINFOFORPARTNERRESULT_H_ \ No newline at end of file diff --git a/mseap/src/MseapClient.cc b/mseap/src/MseapClient.cc index 2cec01c81..8e8ea7f7a 100644 --- a/mseap/src/MseapClient.cc +++ b/mseap/src/MseapClient.cc @@ -267,6 +267,42 @@ MseapClient::GetNodeByTemplateIdOutcomeCallable MseapClient::getNodeByTemplateId return task->get_future(); } +MseapClient::GetPlatformUserInfoForPartnerOutcome MseapClient::getPlatformUserInfoForPartner(const GetPlatformUserInfoForPartnerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPlatformUserInfoForPartnerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPlatformUserInfoForPartnerOutcome(GetPlatformUserInfoForPartnerResult(outcome.result())); + else + return GetPlatformUserInfoForPartnerOutcome(outcome.error()); +} + +void MseapClient::getPlatformUserInfoForPartnerAsync(const GetPlatformUserInfoForPartnerRequest& request, const GetPlatformUserInfoForPartnerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPlatformUserInfoForPartner(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MseapClient::GetPlatformUserInfoForPartnerOutcomeCallable MseapClient::getPlatformUserInfoForPartnerCallable(const GetPlatformUserInfoForPartnerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPlatformUserInfoForPartner(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MseapClient::GetProxyByTypeOutcome MseapClient::getProxyByType(const GetProxyByTypeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/mseap/src/model/GetPlatformUserInfoForPartnerRequest.cc b/mseap/src/model/GetPlatformUserInfoForPartnerRequest.cc new file mode 100644 index 000000000..95561eb33 --- /dev/null +++ b/mseap/src/model/GetPlatformUserInfoForPartnerRequest.cc @@ -0,0 +1,54 @@ +/* + * 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::Mseap::Model::GetPlatformUserInfoForPartnerRequest; + +GetPlatformUserInfoForPartnerRequest::GetPlatformUserInfoForPartnerRequest() + : RpcServiceRequest("mseap", "2021-01-18", "GetPlatformUserInfoForPartner") { + setMethod(HttpRequest::Method::Post); +} + +GetPlatformUserInfoForPartnerRequest::~GetPlatformUserInfoForPartnerRequest() {} + +std::string GetPlatformUserInfoForPartnerRequest::getUserId() const { + return userId_; +} + +void GetPlatformUserInfoForPartnerRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string GetPlatformUserInfoForPartnerRequest::getAppId() const { + return appId_; +} + +void GetPlatformUserInfoForPartnerRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string GetPlatformUserInfoForPartnerRequest::getPlatformType() const { + return platformType_; +} + +void GetPlatformUserInfoForPartnerRequest::setPlatformType(const std::string &platformType) { + platformType_ = platformType; + setParameter(std::string("PlatformType"), platformType); +} + diff --git a/mseap/src/model/GetPlatformUserInfoForPartnerResult.cc b/mseap/src/model/GetPlatformUserInfoForPartnerResult.cc new file mode 100644 index 000000000..c4649f449 --- /dev/null +++ b/mseap/src/model/GetPlatformUserInfoForPartnerResult.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::Mseap; +using namespace AlibabaCloud::Mseap::Model; + +GetPlatformUserInfoForPartnerResult::GetPlatformUserInfoForPartnerResult() : + ServiceResult() +{} + +GetPlatformUserInfoForPartnerResult::GetPlatformUserInfoForPartnerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPlatformUserInfoForPartnerResult::~GetPlatformUserInfoForPartnerResult() +{} + +void GetPlatformUserInfoForPartnerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorMsg"].isNull()) + errorMsg_ = value["ErrorMsg"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["EncryptedOpenId"].isNull()) + encryptedOpenId_ = value["EncryptedOpenId"].asString(); + if(!value["EncryptedUnionId"].isNull()) + encryptedUnionId_ = value["EncryptedUnionId"].asString(); + +} + +std::string GetPlatformUserInfoForPartnerResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetPlatformUserInfoForPartnerResult::getEncryptedOpenId()const +{ + return encryptedOpenId_; +} + +std::string GetPlatformUserInfoForPartnerResult::getEncryptedUnionId()const +{ + return encryptedUnionId_; +} + +bool GetPlatformUserInfoForPartnerResult::getSuccess()const +{ + return success_; +} +