Parcourir la source

Added param for ActivateLicenseResponse .

sdk-team il y a 1 an
Parent
commit
fc5b3998fe

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.2068
+1.36.2069

+ 4 - 0
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

+ 8 - 0
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<Error, Model::GetNodeByTemplateIdResult> GetNodeByTemplateIdOutcome;
 			typedef std::future<GetNodeByTemplateIdOutcome> GetNodeByTemplateIdOutcomeCallable;
 			typedef std::function<void(const MseapClient*, const Model::GetNodeByTemplateIdRequest&, const GetNodeByTemplateIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNodeByTemplateIdAsyncHandler;
+			typedef Outcome<Error, Model::GetPlatformUserInfoForPartnerResult> GetPlatformUserInfoForPartnerOutcome;
+			typedef std::future<GetPlatformUserInfoForPartnerOutcome> GetPlatformUserInfoForPartnerOutcomeCallable;
+			typedef std::function<void(const MseapClient*, const Model::GetPlatformUserInfoForPartnerRequest&, const GetPlatformUserInfoForPartnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPlatformUserInfoForPartnerAsyncHandler;
 			typedef Outcome<Error, Model::GetProxyByTypeResult> GetProxyByTypeOutcome;
 			typedef std::future<GetProxyByTypeOutcome> GetProxyByTypeOutcomeCallable;
 			typedef std::function<void(const MseapClient*, const Model::GetProxyByTypeRequest&, const GetProxyByTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
 			GetProxyByTypeOutcomeCallable getProxyByTypeCallable(const Model::GetProxyByTypeRequest& request) const;

+ 48 - 0
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 <alibabacloud/mseap/MseapExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+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_

+ 57 - 0
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 <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/mseap/MseapExport.h>
+
+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_

+ 36 - 0
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<const AsyncCallerContext>& 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<std::packaged_task<GetPlatformUserInfoForPartnerOutcome()>>(
+			[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();

+ 54 - 0
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 <alibabacloud/mseap/model/GetPlatformUserInfoForPartnerRequest.h>
+
+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);
+}
+

+ 72 - 0
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 <alibabacloud/mseap/model/GetPlatformUserInfoForPartnerResult.h>
+#include <json/json.h>
+
+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_;
+}
+