From 183190fd14f057329482fed552da439b2e83543a Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 17 Oct 2024 11:52:52 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E4=BA=8E=E8=BD=AC=E7=A7=BB=E7=A0=81?= =?UTF-8?q?=E7=9A=84=E8=BD=AC=E5=87=BA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- domain/CMakeLists.txt | 8 +++ .../alibabacloud/domain/DomainClient.h | 16 +++++ .../QueryIntlFixedPriceOrderListResult.h | 24 ++++--- ...ForTransferOutByAuthorizationCodeRequest.h | 52 ++++++++++++++ ...kForTransferOutByAuthorizationCodeResult.h | 51 +++++++++++++ ...ForTransferOutByAuthorizationCodeRequest.h | 51 +++++++++++++ ...kForTransferOutByAuthorizationCodeResult.h | 51 +++++++++++++ domain/src/DomainClient.cc | 72 +++++++++++++++++++ .../QueryIntlFixedPriceOrderListResult.cc | 46 +++++++----- ...orTransferOutByAuthorizationCodeRequest.cc | 59 +++++++++++++++ ...ForTransferOutByAuthorizationCodeResult.cc | 51 +++++++++++++ ...orTransferOutByAuthorizationCodeRequest.cc | 63 ++++++++++++++++ ...ForTransferOutByAuthorizationCodeResult.cc | 51 +++++++++++++ 14 files changed, 572 insertions(+), 25 deletions(-) create mode 100644 domain/include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h create mode 100644 domain/include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h create mode 100644 domain/include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h create mode 100644 domain/src/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.cc create mode 100644 domain/src/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.cc create mode 100644 domain/src/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.cc create mode 100644 domain/src/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.cc diff --git a/VERSION b/VERSION index d64327aad..e35ab05b5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2000 \ No newline at end of file +1.36.2001 \ No newline at end of file diff --git a/domain/CMakeLists.txt b/domain/CMakeLists.txt index 59cf2cb73..b492170fc 100644 --- a/domain/CMakeLists.txt +++ b/domain/CMakeLists.txt @@ -175,6 +175,8 @@ set(domain_public_header_model include/alibabacloud/domain/model/SaveBatchTaskForModifyingDomainDnsResult.h include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainRequest.h include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainResult.h + include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h + include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h include/alibabacloud/domain/model/SaveBatchTaskForTransferProhibitionLockRequest.h include/alibabacloud/domain/model/SaveBatchTaskForTransferProhibitionLockResult.h include/alibabacloud/domain/model/SaveBatchTaskForUpdateProhibitionLockRequest.h @@ -235,6 +237,8 @@ set(domain_public_header_model include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordResult.h include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDnsHostRequest.h include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDnsHostResult.h + include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h + include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h include/alibabacloud/domain/model/SaveSingleTaskForTransferProhibitionLockRequest.h include/alibabacloud/domain/model/SaveSingleTaskForTransferProhibitionLockResult.h include/alibabacloud/domain/model/SaveSingleTaskForUpdateProhibitionLockRequest.h @@ -436,6 +440,8 @@ set(domain_src src/model/SaveBatchTaskForModifyingDomainDnsResult.cc src/model/SaveBatchTaskForReserveDropListDomainRequest.cc src/model/SaveBatchTaskForReserveDropListDomainResult.cc + src/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.cc + src/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.cc src/model/SaveBatchTaskForTransferProhibitionLockRequest.cc src/model/SaveBatchTaskForTransferProhibitionLockResult.cc src/model/SaveBatchTaskForUpdateProhibitionLockRequest.cc @@ -496,6 +502,8 @@ set(domain_src src/model/SaveSingleTaskForSynchronizingDSRecordResult.cc src/model/SaveSingleTaskForSynchronizingDnsHostRequest.cc src/model/SaveSingleTaskForSynchronizingDnsHostResult.cc + src/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.cc + src/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.cc src/model/SaveSingleTaskForTransferProhibitionLockRequest.cc src/model/SaveSingleTaskForTransferProhibitionLockResult.cc src/model/SaveSingleTaskForUpdateProhibitionLockRequest.cc diff --git a/domain/include/alibabacloud/domain/DomainClient.h b/domain/include/alibabacloud/domain/DomainClient.h index f7e008bb3..540734a0b 100644 --- a/domain/include/alibabacloud/domain/DomainClient.h +++ b/domain/include/alibabacloud/domain/DomainClient.h @@ -176,6 +176,8 @@ #include "model/SaveBatchTaskForModifyingDomainDnsResult.h" #include "model/SaveBatchTaskForReserveDropListDomainRequest.h" #include "model/SaveBatchTaskForReserveDropListDomainResult.h" +#include "model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h" +#include "model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h" #include "model/SaveBatchTaskForTransferProhibitionLockRequest.h" #include "model/SaveBatchTaskForTransferProhibitionLockResult.h" #include "model/SaveBatchTaskForUpdateProhibitionLockRequest.h" @@ -236,6 +238,8 @@ #include "model/SaveSingleTaskForSynchronizingDSRecordResult.h" #include "model/SaveSingleTaskForSynchronizingDnsHostRequest.h" #include "model/SaveSingleTaskForSynchronizingDnsHostResult.h" +#include "model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h" +#include "model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h" #include "model/SaveSingleTaskForTransferProhibitionLockRequest.h" #include "model/SaveSingleTaskForTransferProhibitionLockResult.h" #include "model/SaveSingleTaskForUpdateProhibitionLockRequest.h" @@ -520,6 +524,9 @@ namespace AlibabaCloud typedef Outcome SaveBatchTaskForReserveDropListDomainOutcome; typedef std::future SaveBatchTaskForReserveDropListDomainOutcomeCallable; typedef std::function&)> SaveBatchTaskForReserveDropListDomainAsyncHandler; + typedef Outcome SaveBatchTaskForTransferOutByAuthorizationCodeOutcome; + typedef std::future SaveBatchTaskForTransferOutByAuthorizationCodeOutcomeCallable; + typedef std::function&)> SaveBatchTaskForTransferOutByAuthorizationCodeAsyncHandler; typedef Outcome SaveBatchTaskForTransferProhibitionLockOutcome; typedef std::future SaveBatchTaskForTransferProhibitionLockOutcomeCallable; typedef std::function&)> SaveBatchTaskForTransferProhibitionLockAsyncHandler; @@ -610,6 +617,9 @@ namespace AlibabaCloud typedef Outcome SaveSingleTaskForSynchronizingDnsHostOutcome; typedef std::future SaveSingleTaskForSynchronizingDnsHostOutcomeCallable; typedef std::function&)> SaveSingleTaskForSynchronizingDnsHostAsyncHandler; + typedef Outcome SaveSingleTaskForTransferOutByAuthorizationCodeOutcome; + typedef std::future SaveSingleTaskForTransferOutByAuthorizationCodeOutcomeCallable; + typedef std::function&)> SaveSingleTaskForTransferOutByAuthorizationCodeAsyncHandler; typedef Outcome SaveSingleTaskForTransferProhibitionLockOutcome; typedef std::future SaveSingleTaskForTransferProhibitionLockOutcomeCallable; typedef std::function&)> SaveSingleTaskForTransferProhibitionLockAsyncHandler; @@ -912,6 +922,9 @@ namespace AlibabaCloud SaveBatchTaskForReserveDropListDomainOutcome saveBatchTaskForReserveDropListDomain(const Model::SaveBatchTaskForReserveDropListDomainRequest &request)const; void saveBatchTaskForReserveDropListDomainAsync(const Model::SaveBatchTaskForReserveDropListDomainRequest& request, const SaveBatchTaskForReserveDropListDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveBatchTaskForReserveDropListDomainOutcomeCallable saveBatchTaskForReserveDropListDomainCallable(const Model::SaveBatchTaskForReserveDropListDomainRequest& request) const; + SaveBatchTaskForTransferOutByAuthorizationCodeOutcome saveBatchTaskForTransferOutByAuthorizationCode(const Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest &request)const; + void saveBatchTaskForTransferOutByAuthorizationCodeAsync(const Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest& request, const SaveBatchTaskForTransferOutByAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveBatchTaskForTransferOutByAuthorizationCodeOutcomeCallable saveBatchTaskForTransferOutByAuthorizationCodeCallable(const Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest& request) const; SaveBatchTaskForTransferProhibitionLockOutcome saveBatchTaskForTransferProhibitionLock(const Model::SaveBatchTaskForTransferProhibitionLockRequest &request)const; void saveBatchTaskForTransferProhibitionLockAsync(const Model::SaveBatchTaskForTransferProhibitionLockRequest& request, const SaveBatchTaskForTransferProhibitionLockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveBatchTaskForTransferProhibitionLockOutcomeCallable saveBatchTaskForTransferProhibitionLockCallable(const Model::SaveBatchTaskForTransferProhibitionLockRequest& request) const; @@ -1002,6 +1015,9 @@ namespace AlibabaCloud SaveSingleTaskForSynchronizingDnsHostOutcome saveSingleTaskForSynchronizingDnsHost(const Model::SaveSingleTaskForSynchronizingDnsHostRequest &request)const; void saveSingleTaskForSynchronizingDnsHostAsync(const Model::SaveSingleTaskForSynchronizingDnsHostRequest& request, const SaveSingleTaskForSynchronizingDnsHostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSingleTaskForSynchronizingDnsHostOutcomeCallable saveSingleTaskForSynchronizingDnsHostCallable(const Model::SaveSingleTaskForSynchronizingDnsHostRequest& request) const; + SaveSingleTaskForTransferOutByAuthorizationCodeOutcome saveSingleTaskForTransferOutByAuthorizationCode(const Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest &request)const; + void saveSingleTaskForTransferOutByAuthorizationCodeAsync(const Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest& request, const SaveSingleTaskForTransferOutByAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveSingleTaskForTransferOutByAuthorizationCodeOutcomeCallable saveSingleTaskForTransferOutByAuthorizationCodeCallable(const Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest& request) const; SaveSingleTaskForTransferProhibitionLockOutcome saveSingleTaskForTransferProhibitionLock(const Model::SaveSingleTaskForTransferProhibitionLockRequest &request)const; void saveSingleTaskForTransferProhibitionLockAsync(const Model::SaveSingleTaskForTransferProhibitionLockRequest& request, const SaveSingleTaskForTransferProhibitionLockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSingleTaskForTransferProhibitionLockOutcomeCallable saveSingleTaskForTransferProhibitionLockCallable(const Model::SaveSingleTaskForTransferProhibitionLockRequest& request) const; diff --git a/domain/include/alibabacloud/domain/model/QueryIntlFixedPriceOrderListResult.h b/domain/include/alibabacloud/domain/model/QueryIntlFixedPriceOrderListResult.h index 5898e2a65..8d5af5a66 100644 --- a/domain/include/alibabacloud/domain/model/QueryIntlFixedPriceOrderListResult.h +++ b/domain/include/alibabacloud/domain/model/QueryIntlFixedPriceOrderListResult.h @@ -34,14 +34,22 @@ namespace AlibabaCloud public: struct Module { - long status; - long orderType; - long price; - std::string userId; - long createTime; - long updateTime; - std::string domain; - std::string bizId; + struct OrderList + { + int status; + int orderType; + long price; + std::string userId; + long createTime; + long updateTime; + std::string domain; + std::string bizId; + }; + int currentPageNum; + int pageSize; + int totalPageNum; + std::vector data; + int totalItemNum; }; diff --git a/domain/include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h b/domain/include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h new file mode 100644 index 000000000..97e81f5c6 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h @@ -0,0 +1,52 @@ +/* + * 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_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Domain { +namespace Model { +class ALIBABACLOUD_DOMAIN_EXPORT SaveBatchTaskForTransferOutByAuthorizationCodeRequest : public RpcServiceRequest { +public: + struct TransferOutParamList { + std::string authorizationCode; + std::string domainName; + }; + SaveBatchTaskForTransferOutByAuthorizationCodeRequest(); + ~SaveBatchTaskForTransferOutByAuthorizationCodeRequest(); + std::string getLong() const; + void setLong(const std::string &long); + std::vector getTransferOutParamList() const; + void setTransferOutParamList(const std::vector &transferOutParamList); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + +private: + std::string long_; + std::vector transferOutParamList_; + std::string userClientIp_; +}; +} // namespace Model +} // namespace Domain +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_ diff --git a/domain/include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h b/domain/include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h new file mode 100644 index 000000000..63fec4539 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h @@ -0,0 +1,51 @@ +/* + * 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_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveBatchTaskForTransferOutByAuthorizationCodeResult : public ServiceResult + { + public: + + + SaveBatchTaskForTransferOutByAuthorizationCodeResult(); + explicit SaveBatchTaskForTransferOutByAuthorizationCodeResult(const std::string &payload); + ~SaveBatchTaskForTransferOutByAuthorizationCodeResult(); + std::string getTaskNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h new file mode 100644 index 000000000..71b2dddbf --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Domain { +namespace Model { +class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForTransferOutByAuthorizationCodeRequest : public RpcServiceRequest { +public: + SaveSingleTaskForTransferOutByAuthorizationCodeRequest(); + ~SaveSingleTaskForTransferOutByAuthorizationCodeRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAuthorizationCode() const; + void setAuthorizationCode(const std::string &authorizationCode); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string authorizationCode_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Domain +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_ diff --git a/domain/include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h b/domain/include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h new file mode 100644 index 000000000..6d4010792 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h @@ -0,0 +1,51 @@ +/* + * 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_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForTransferOutByAuthorizationCodeResult : public ServiceResult + { + public: + + + SaveSingleTaskForTransferOutByAuthorizationCodeResult(); + explicit SaveSingleTaskForTransferOutByAuthorizationCodeResult(const std::string &payload); + ~SaveSingleTaskForTransferOutByAuthorizationCodeResult(); + std::string getTaskNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_ \ No newline at end of file diff --git a/domain/src/DomainClient.cc b/domain/src/DomainClient.cc index e5ef27219..1bee13f5b 100644 --- a/domain/src/DomainClient.cc +++ b/domain/src/DomainClient.cc @@ -2823,6 +2823,42 @@ DomainClient::SaveBatchTaskForReserveDropListDomainOutcomeCallable DomainClient: return task->get_future(); } +DomainClient::SaveBatchTaskForTransferOutByAuthorizationCodeOutcome DomainClient::saveBatchTaskForTransferOutByAuthorizationCode(const SaveBatchTaskForTransferOutByAuthorizationCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveBatchTaskForTransferOutByAuthorizationCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveBatchTaskForTransferOutByAuthorizationCodeOutcome(SaveBatchTaskForTransferOutByAuthorizationCodeResult(outcome.result())); + else + return SaveBatchTaskForTransferOutByAuthorizationCodeOutcome(outcome.error()); +} + +void DomainClient::saveBatchTaskForTransferOutByAuthorizationCodeAsync(const SaveBatchTaskForTransferOutByAuthorizationCodeRequest& request, const SaveBatchTaskForTransferOutByAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveBatchTaskForTransferOutByAuthorizationCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveBatchTaskForTransferOutByAuthorizationCodeOutcomeCallable DomainClient::saveBatchTaskForTransferOutByAuthorizationCodeCallable(const SaveBatchTaskForTransferOutByAuthorizationCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveBatchTaskForTransferOutByAuthorizationCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::SaveBatchTaskForTransferProhibitionLockOutcome DomainClient::saveBatchTaskForTransferProhibitionLock(const SaveBatchTaskForTransferProhibitionLockRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3903,6 +3939,42 @@ DomainClient::SaveSingleTaskForSynchronizingDnsHostOutcomeCallable DomainClient: return task->get_future(); } +DomainClient::SaveSingleTaskForTransferOutByAuthorizationCodeOutcome DomainClient::saveSingleTaskForTransferOutByAuthorizationCode(const SaveSingleTaskForTransferOutByAuthorizationCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveSingleTaskForTransferOutByAuthorizationCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveSingleTaskForTransferOutByAuthorizationCodeOutcome(SaveSingleTaskForTransferOutByAuthorizationCodeResult(outcome.result())); + else + return SaveSingleTaskForTransferOutByAuthorizationCodeOutcome(outcome.error()); +} + +void DomainClient::saveSingleTaskForTransferOutByAuthorizationCodeAsync(const SaveSingleTaskForTransferOutByAuthorizationCodeRequest& request, const SaveSingleTaskForTransferOutByAuthorizationCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveSingleTaskForTransferOutByAuthorizationCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveSingleTaskForTransferOutByAuthorizationCodeOutcomeCallable DomainClient::saveSingleTaskForTransferOutByAuthorizationCodeCallable(const SaveSingleTaskForTransferOutByAuthorizationCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveSingleTaskForTransferOutByAuthorizationCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::SaveSingleTaskForTransferProhibitionLockOutcome DomainClient::saveSingleTaskForTransferProhibitionLock(const SaveSingleTaskForTransferProhibitionLockRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/domain/src/model/QueryIntlFixedPriceOrderListResult.cc b/domain/src/model/QueryIntlFixedPriceOrderListResult.cc index e21800820..f5163b205 100644 --- a/domain/src/model/QueryIntlFixedPriceOrderListResult.cc +++ b/domain/src/model/QueryIntlFixedPriceOrderListResult.cc @@ -40,22 +40,36 @@ void QueryIntlFixedPriceOrderListResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto moduleNode = value["Module"]; - if(!moduleNode["CreateTime"].isNull()) - module_.createTime = std::stol(moduleNode["CreateTime"].asString()); - if(!moduleNode["UpdateTime"].isNull()) - module_.updateTime = std::stol(moduleNode["UpdateTime"].asString()); - if(!moduleNode["UserId"].isNull()) - module_.userId = moduleNode["UserId"].asString(); - if(!moduleNode["BizId"].isNull()) - module_.bizId = moduleNode["BizId"].asString(); - if(!moduleNode["Domain"].isNull()) - module_.domain = moduleNode["Domain"].asString(); - if(!moduleNode["Price"].isNull()) - module_.price = std::stol(moduleNode["Price"].asString()); - if(!moduleNode["Status"].isNull()) - module_.status = std::stol(moduleNode["Status"].asString()); - if(!moduleNode["OrderType"].isNull()) - module_.orderType = std::stol(moduleNode["OrderType"].asString()); + if(!moduleNode["TotalItemNum"].isNull()) + module_.totalItemNum = std::stoi(moduleNode["TotalItemNum"].asString()); + if(!moduleNode["CurrentPageNum"].isNull()) + module_.currentPageNum = std::stoi(moduleNode["CurrentPageNum"].asString()); + if(!moduleNode["PageSize"].isNull()) + module_.pageSize = std::stoi(moduleNode["PageSize"].asString()); + if(!moduleNode["TotalPageNum"].isNull()) + module_.totalPageNum = std::stoi(moduleNode["TotalPageNum"].asString()); + auto allDataNode = moduleNode["Data"]["OrderList"]; + for (auto moduleNodeDataOrderList : allDataNode) + { + Module::OrderList orderListObject; + if(!moduleNodeDataOrderList["OrderType"].isNull()) + orderListObject.orderType = std::stoi(moduleNodeDataOrderList["OrderType"].asString()); + if(!moduleNodeDataOrderList["BizId"].isNull()) + orderListObject.bizId = moduleNodeDataOrderList["BizId"].asString(); + if(!moduleNodeDataOrderList["UserId"].isNull()) + orderListObject.userId = moduleNodeDataOrderList["UserId"].asString(); + if(!moduleNodeDataOrderList["Status"].isNull()) + orderListObject.status = std::stoi(moduleNodeDataOrderList["Status"].asString()); + if(!moduleNodeDataOrderList["Price"].isNull()) + orderListObject.price = std::stol(moduleNodeDataOrderList["Price"].asString()); + if(!moduleNodeDataOrderList["Domain"].isNull()) + orderListObject.domain = moduleNodeDataOrderList["Domain"].asString(); + if(!moduleNodeDataOrderList["CreateTime"].isNull()) + orderListObject.createTime = std::stol(moduleNodeDataOrderList["CreateTime"].asString()); + if(!moduleNodeDataOrderList["UpdateTime"].isNull()) + orderListObject.updateTime = std::stol(moduleNodeDataOrderList["UpdateTime"].asString()); + module_.data.push_back(orderListObject); + } } diff --git a/domain/src/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.cc b/domain/src/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.cc new file mode 100644 index 000000000..ae19ca522 --- /dev/null +++ b/domain/src/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Domain::Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest; + +SaveBatchTaskForTransferOutByAuthorizationCodeRequest::SaveBatchTaskForTransferOutByAuthorizationCodeRequest() + : RpcServiceRequest("domain", "2018-01-29", "SaveBatchTaskForTransferOutByAuthorizationCode") { + setMethod(HttpRequest::Method::Post); +} + +SaveBatchTaskForTransferOutByAuthorizationCodeRequest::~SaveBatchTaskForTransferOutByAuthorizationCodeRequest() {} + +std::string SaveBatchTaskForTransferOutByAuthorizationCodeRequest::getLong() const { + return long_; +} + +void SaveBatchTaskForTransferOutByAuthorizationCodeRequest::setLong(const std::string &long) { + long_ = long; + setParameter(std::string("Long"), long); +} + +std::vector SaveBatchTaskForTransferOutByAuthorizationCodeRequest::getTransferOutParamList() const { + return transferOutParamList_; +} + +void SaveBatchTaskForTransferOutByAuthorizationCodeRequest::setTransferOutParamList(const std::vector &transferOutParamList) { + transferOutParamList_ = transferOutParamList; + for(int dep1 = 0; dep1 != transferOutParamList.size(); dep1++) { + auto transferOutParamListObj = transferOutParamList.at(dep1); + std::string transferOutParamListObjStr = std::string("TransferOutParamList") + "." + std::to_string(dep1 + 1); + setParameter(transferOutParamListObjStr + ".AuthorizationCode", transferOutParamListObj.authorizationCode); + setParameter(transferOutParamListObjStr + ".DomainName", transferOutParamListObj.domainName); + } +} + +std::string SaveBatchTaskForTransferOutByAuthorizationCodeRequest::getUserClientIp() const { + return userClientIp_; +} + +void SaveBatchTaskForTransferOutByAuthorizationCodeRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + diff --git a/domain/src/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.cc b/domain/src/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.cc new file mode 100644 index 000000000..1e5f79eb1 --- /dev/null +++ b/domain/src/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.cc @@ -0,0 +1,51 @@ +/* + * 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::Domain; +using namespace AlibabaCloud::Domain::Model; + +SaveBatchTaskForTransferOutByAuthorizationCodeResult::SaveBatchTaskForTransferOutByAuthorizationCodeResult() : + ServiceResult() +{} + +SaveBatchTaskForTransferOutByAuthorizationCodeResult::SaveBatchTaskForTransferOutByAuthorizationCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveBatchTaskForTransferOutByAuthorizationCodeResult::~SaveBatchTaskForTransferOutByAuthorizationCodeResult() +{} + +void SaveBatchTaskForTransferOutByAuthorizationCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskNo"].isNull()) + taskNo_ = value["TaskNo"].asString(); + +} + +std::string SaveBatchTaskForTransferOutByAuthorizationCodeResult::getTaskNo()const +{ + return taskNo_; +} + diff --git a/domain/src/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.cc b/domain/src/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.cc new file mode 100644 index 000000000..37b3bbf5c --- /dev/null +++ b/domain/src/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Domain::Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest; + +SaveSingleTaskForTransferOutByAuthorizationCodeRequest::SaveSingleTaskForTransferOutByAuthorizationCodeRequest() + : RpcServiceRequest("domain", "2018-01-29", "SaveSingleTaskForTransferOutByAuthorizationCode") { + setMethod(HttpRequest::Method::Post); +} + +SaveSingleTaskForTransferOutByAuthorizationCodeRequest::~SaveSingleTaskForTransferOutByAuthorizationCodeRequest() {} + +std::string SaveSingleTaskForTransferOutByAuthorizationCodeRequest::getDomainName() const { + return domainName_; +} + +void SaveSingleTaskForTransferOutByAuthorizationCodeRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +std::string SaveSingleTaskForTransferOutByAuthorizationCodeRequest::getAuthorizationCode() const { + return authorizationCode_; +} + +void SaveSingleTaskForTransferOutByAuthorizationCodeRequest::setAuthorizationCode(const std::string &authorizationCode) { + authorizationCode_ = authorizationCode; + setParameter(std::string("AuthorizationCode"), authorizationCode); +} + +std::string SaveSingleTaskForTransferOutByAuthorizationCodeRequest::getUserClientIp() const { + return userClientIp_; +} + +void SaveSingleTaskForTransferOutByAuthorizationCodeRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +std::string SaveSingleTaskForTransferOutByAuthorizationCodeRequest::getLang() const { + return lang_; +} + +void SaveSingleTaskForTransferOutByAuthorizationCodeRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/domain/src/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.cc b/domain/src/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.cc new file mode 100644 index 000000000..b3b5e3eb3 --- /dev/null +++ b/domain/src/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.cc @@ -0,0 +1,51 @@ +/* + * 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::Domain; +using namespace AlibabaCloud::Domain::Model; + +SaveSingleTaskForTransferOutByAuthorizationCodeResult::SaveSingleTaskForTransferOutByAuthorizationCodeResult() : + ServiceResult() +{} + +SaveSingleTaskForTransferOutByAuthorizationCodeResult::SaveSingleTaskForTransferOutByAuthorizationCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveSingleTaskForTransferOutByAuthorizationCodeResult::~SaveSingleTaskForTransferOutByAuthorizationCodeResult() +{} + +void SaveSingleTaskForTransferOutByAuthorizationCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskNo"].isNull()) + taskNo_ = value["TaskNo"].asString(); + +} + +std::string SaveSingleTaskForTransferOutByAuthorizationCodeResult::getTaskNo()const +{ + return taskNo_; +} +