Compare commits

...

2 Commits

Author SHA1 Message Date
sdk-team
8e7691c351 Adjust ecs openapi endpoint. 2021-10-18 03:53:09 +00:00
sdk-team
a5a5b1c4eb Added audit status. 2021-10-15 08:56:22 +00:00
15 changed files with 636 additions and 26 deletions

View File

@@ -1,3 +1,10 @@
2021-10-18 Version: 1.36.899
- Adjust ecs openapi endpoint.
- Fix SDK array format.
2021-10-15 Version: 1.36.898
- Added audit status.
2021-10-15 Version: 1.36.897
- Generated 2020-02-01 for `cloudesl`.

View File

@@ -1 +1 @@
1.36.897
1.36.899

View File

@@ -41,6 +41,8 @@ set(domain_public_header_model
include/alibabacloud/domain/model/ChangeAuctionResult.h
include/alibabacloud/domain/model/CheckDomainRequest.h
include/alibabacloud/domain/model/CheckDomainResult.h
include/alibabacloud/domain/model/CheckDomainStatusRequest.h
include/alibabacloud/domain/model/CheckDomainStatusResult.h
include/alibabacloud/domain/model/CheckDomainSunriseClaimRequest.h
include/alibabacloud/domain/model/CheckDomainSunriseClaimResult.h
include/alibabacloud/domain/model/CheckMaxYearOfServerLockRequest.h
@@ -51,6 +53,8 @@ set(domain_public_header_model
include/alibabacloud/domain/model/CheckTransferInFeasibilityResult.h
include/alibabacloud/domain/model/ConfirmTransferInEmailRequest.h
include/alibabacloud/domain/model/ConfirmTransferInEmailResult.h
include/alibabacloud/domain/model/CreateFixedPriceDemandOrderRequest.h
include/alibabacloud/domain/model/CreateFixedPriceDemandOrderResult.h
include/alibabacloud/domain/model/DeleteContactTemplatesRequest.h
include/alibabacloud/domain/model/DeleteContactTemplatesResult.h
include/alibabacloud/domain/model/DeleteDomainGroupRequest.h
@@ -306,6 +310,8 @@ set(domain_src
src/model/ChangeAuctionResult.cc
src/model/CheckDomainRequest.cc
src/model/CheckDomainResult.cc
src/model/CheckDomainStatusRequest.cc
src/model/CheckDomainStatusResult.cc
src/model/CheckDomainSunriseClaimRequest.cc
src/model/CheckDomainSunriseClaimResult.cc
src/model/CheckMaxYearOfServerLockRequest.cc
@@ -316,6 +322,8 @@ set(domain_src
src/model/CheckTransferInFeasibilityResult.cc
src/model/ConfirmTransferInEmailRequest.cc
src/model/ConfirmTransferInEmailResult.cc
src/model/CreateFixedPriceDemandOrderRequest.cc
src/model/CreateFixedPriceDemandOrderResult.cc
src/model/DeleteContactTemplatesRequest.cc
src/model/DeleteContactTemplatesResult.cc
src/model/DeleteDomainGroupRequest.cc

View File

@@ -42,6 +42,8 @@
#include "model/ChangeAuctionResult.h"
#include "model/CheckDomainRequest.h"
#include "model/CheckDomainResult.h"
#include "model/CheckDomainStatusRequest.h"
#include "model/CheckDomainStatusResult.h"
#include "model/CheckDomainSunriseClaimRequest.h"
#include "model/CheckDomainSunriseClaimResult.h"
#include "model/CheckMaxYearOfServerLockRequest.h"
@@ -52,6 +54,8 @@
#include "model/CheckTransferInFeasibilityResult.h"
#include "model/ConfirmTransferInEmailRequest.h"
#include "model/ConfirmTransferInEmailResult.h"
#include "model/CreateFixedPriceDemandOrderRequest.h"
#include "model/CreateFixedPriceDemandOrderResult.h"
#include "model/DeleteContactTemplatesRequest.h"
#include "model/DeleteContactTemplatesResult.h"
#include "model/DeleteDomainGroupRequest.h"
@@ -323,6 +327,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CheckDomainResult> CheckDomainOutcome;
typedef std::future<CheckDomainOutcome> CheckDomainOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::CheckDomainRequest&, const CheckDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDomainAsyncHandler;
typedef Outcome<Error, Model::CheckDomainStatusResult> CheckDomainStatusOutcome;
typedef std::future<CheckDomainStatusOutcome> CheckDomainStatusOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::CheckDomainStatusRequest&, const CheckDomainStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDomainStatusAsyncHandler;
typedef Outcome<Error, Model::CheckDomainSunriseClaimResult> CheckDomainSunriseClaimOutcome;
typedef std::future<CheckDomainSunriseClaimOutcome> CheckDomainSunriseClaimOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::CheckDomainSunriseClaimRequest&, const CheckDomainSunriseClaimOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDomainSunriseClaimAsyncHandler;
@@ -338,6 +345,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ConfirmTransferInEmailResult> ConfirmTransferInEmailOutcome;
typedef std::future<ConfirmTransferInEmailOutcome> ConfirmTransferInEmailOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::ConfirmTransferInEmailRequest&, const ConfirmTransferInEmailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfirmTransferInEmailAsyncHandler;
typedef Outcome<Error, Model::CreateFixedPriceDemandOrderResult> CreateFixedPriceDemandOrderOutcome;
typedef std::future<CreateFixedPriceDemandOrderOutcome> CreateFixedPriceDemandOrderOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::CreateFixedPriceDemandOrderRequest&, const CreateFixedPriceDemandOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFixedPriceDemandOrderAsyncHandler;
typedef Outcome<Error, Model::DeleteContactTemplatesResult> DeleteContactTemplatesOutcome;
typedef std::future<DeleteContactTemplatesOutcome> DeleteContactTemplatesOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::DeleteContactTemplatesRequest&, const DeleteContactTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteContactTemplatesAsyncHandler;
@@ -721,6 +731,9 @@ namespace AlibabaCloud
CheckDomainOutcome checkDomain(const Model::CheckDomainRequest &request)const;
void checkDomainAsync(const Model::CheckDomainRequest& request, const CheckDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckDomainOutcomeCallable checkDomainCallable(const Model::CheckDomainRequest& request) const;
CheckDomainStatusOutcome checkDomainStatus(const Model::CheckDomainStatusRequest &request)const;
void checkDomainStatusAsync(const Model::CheckDomainStatusRequest& request, const CheckDomainStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckDomainStatusOutcomeCallable checkDomainStatusCallable(const Model::CheckDomainStatusRequest& request) const;
CheckDomainSunriseClaimOutcome checkDomainSunriseClaim(const Model::CheckDomainSunriseClaimRequest &request)const;
void checkDomainSunriseClaimAsync(const Model::CheckDomainSunriseClaimRequest& request, const CheckDomainSunriseClaimAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckDomainSunriseClaimOutcomeCallable checkDomainSunriseClaimCallable(const Model::CheckDomainSunriseClaimRequest& request) const;
@@ -736,6 +749,9 @@ namespace AlibabaCloud
ConfirmTransferInEmailOutcome confirmTransferInEmail(const Model::ConfirmTransferInEmailRequest &request)const;
void confirmTransferInEmailAsync(const Model::ConfirmTransferInEmailRequest& request, const ConfirmTransferInEmailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ConfirmTransferInEmailOutcomeCallable confirmTransferInEmailCallable(const Model::ConfirmTransferInEmailRequest& request) const;
CreateFixedPriceDemandOrderOutcome createFixedPriceDemandOrder(const Model::CreateFixedPriceDemandOrderRequest &request)const;
void createFixedPriceDemandOrderAsync(const Model::CreateFixedPriceDemandOrderRequest& request, const CreateFixedPriceDemandOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFixedPriceDemandOrderOutcomeCallable createFixedPriceDemandOrderCallable(const Model::CreateFixedPriceDemandOrderRequest& request) const;
DeleteContactTemplatesOutcome deleteContactTemplates(const Model::DeleteContactTemplatesRequest &request)const;
void deleteContactTemplatesAsync(const Model::DeleteContactTemplatesRequest& request, const DeleteContactTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteContactTemplatesOutcomeCallable deleteContactTemplatesCallable(const Model::DeleteContactTemplatesRequest& request) const;

View File

@@ -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_DOMAIN_MODEL_CHECKDOMAINSTATUSREQUEST_H_
#define ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/domain/DomainExport.h>
namespace AlibabaCloud
{
namespace Domain
{
namespace Model
{
class ALIBABACLOUD_DOMAIN_EXPORT CheckDomainStatusRequest : public RpcServiceRequest
{
public:
CheckDomainStatusRequest();
~CheckDomainStatusRequest();
std::string getDomain()const;
void setDomain(const std::string& domain);
private:
std::string domain_;
};
}
}
}
#endif // !ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSREQUEST_H_

View File

@@ -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_DOMAIN_MODEL_CHECKDOMAINSTATUSRESULT_H_
#define ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/domain/DomainExport.h>
namespace AlibabaCloud
{
namespace Domain
{
namespace Model
{
class ALIBABACLOUD_DOMAIN_EXPORT CheckDomainStatusResult : public ServiceResult
{
public:
struct Module
{
long endTime;
float price;
long regDate;
std::string domain;
long deadDate;
};
CheckDomainStatusResult();
explicit CheckDomainStatusResult(const std::string &payload);
~CheckDomainStatusResult();
int getHttpStatusCode()const;
std::string getErrorCode()const;
Module getModule()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string errorCode_;
Module module_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSRESULT_H_

View File

@@ -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_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERREQUEST_H_
#define ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/domain/DomainExport.h>
namespace AlibabaCloud
{
namespace Domain
{
namespace Model
{
class ALIBABACLOUD_DOMAIN_EXPORT CreateFixedPriceDemandOrderRequest : public RpcServiceRequest
{
public:
CreateFixedPriceDemandOrderRequest();
~CreateFixedPriceDemandOrderRequest();
std::string getCode()const;
void setCode(const std::string& code);
std::string getContactId()const;
void setContactId(const std::string& contactId);
std::string getDomain()const;
void setDomain(const std::string& domain);
std::string getSource()const;
void setSource(const std::string& source);
private:
std::string code_;
std::string contactId_;
std::string domain_;
std::string source_;
};
}
}
}
#endif // !ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERREQUEST_H_

View File

@@ -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_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_
#define ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/domain/DomainExport.h>
namespace AlibabaCloud
{
namespace Domain
{
namespace Model
{
class ALIBABACLOUD_DOMAIN_EXPORT CreateFixedPriceDemandOrderResult : public ServiceResult
{
public:
struct Module
{
long price;
std::string orderNo;
std::string domain;
};
CreateFixedPriceDemandOrderResult();
explicit CreateFixedPriceDemandOrderResult(const std::string &payload);
~CreateFixedPriceDemandOrderResult();
int getHttpStatusCode()const;
std::string getErrorCode()const;
Module getModule()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
std::string errorCode_;
Module module_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_

View File

@@ -40,10 +40,11 @@ namespace AlibabaCloud
std::string demandDomain;
std::string mobile;
float payPrice;
float bargainSellerPrice;
float servicePayPrice;
std::string payDomain;
float bargainSellerPrice;
int orderType;
std::string payDomain;
int auditStatus;
int produceType;
std::string bargainSellerMobile;
long publishTime;

View File

@@ -31,21 +31,21 @@ DomainClient::DomainClient(const Credentials &credentials, const ClientConfigura
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "domain");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
DomainClient::DomainClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "domain");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
DomainClient::DomainClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "domain");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
DomainClient::~DomainClient()
@@ -411,6 +411,42 @@ DomainClient::CheckDomainOutcomeCallable DomainClient::checkDomainCallable(const
return task->get_future();
}
DomainClient::CheckDomainStatusOutcome DomainClient::checkDomainStatus(const CheckDomainStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CheckDomainStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CheckDomainStatusOutcome(CheckDomainStatusResult(outcome.result()));
else
return CheckDomainStatusOutcome(outcome.error());
}
void DomainClient::checkDomainStatusAsync(const CheckDomainStatusRequest& request, const CheckDomainStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, checkDomainStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
DomainClient::CheckDomainStatusOutcomeCallable DomainClient::checkDomainStatusCallable(const CheckDomainStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CheckDomainStatusOutcome()>>(
[this, request]()
{
return this->checkDomainStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DomainClient::CheckDomainSunriseClaimOutcome DomainClient::checkDomainSunriseClaim(const CheckDomainSunriseClaimRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -591,6 +627,42 @@ DomainClient::ConfirmTransferInEmailOutcomeCallable DomainClient::confirmTransfe
return task->get_future();
}
DomainClient::CreateFixedPriceDemandOrderOutcome DomainClient::createFixedPriceDemandOrder(const CreateFixedPriceDemandOrderRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateFixedPriceDemandOrderOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateFixedPriceDemandOrderOutcome(CreateFixedPriceDemandOrderResult(outcome.result()));
else
return CreateFixedPriceDemandOrderOutcome(outcome.error());
}
void DomainClient::createFixedPriceDemandOrderAsync(const CreateFixedPriceDemandOrderRequest& request, const CreateFixedPriceDemandOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createFixedPriceDemandOrder(request), context);
};
asyncExecute(new Runnable(fn));
}
DomainClient::CreateFixedPriceDemandOrderOutcomeCallable DomainClient::createFixedPriceDemandOrderCallable(const CreateFixedPriceDemandOrderRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateFixedPriceDemandOrderOutcome()>>(
[this, request]()
{
return this->createFixedPriceDemandOrder(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DomainClient::DeleteContactTemplatesOutcome DomainClient::deleteContactTemplates(const DeleteContactTemplatesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,40 @@
/*
* 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/domain/model/CheckDomainStatusRequest.h>
using AlibabaCloud::Domain::Model::CheckDomainStatusRequest;
CheckDomainStatusRequest::CheckDomainStatusRequest() :
RpcServiceRequest("domain", "2018-02-08", "CheckDomainStatus")
{
setMethod(HttpRequest::Method::Get);
}
CheckDomainStatusRequest::~CheckDomainStatusRequest()
{}
std::string CheckDomainStatusRequest::getDomain()const
{
return domain_;
}
void CheckDomainStatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,81 @@
/*
* 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/domain/model/CheckDomainStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Domain;
using namespace AlibabaCloud::Domain::Model;
CheckDomainStatusResult::CheckDomainStatusResult() :
ServiceResult()
{}
CheckDomainStatusResult::CheckDomainStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckDomainStatusResult::~CheckDomainStatusResult()
{}
void CheckDomainStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto moduleNode = value["Module"];
if(!moduleNode["Domain"].isNull())
module_.domain = moduleNode["Domain"].asString();
if(!moduleNode["Price"].isNull())
module_.price = std::stof(moduleNode["Price"].asString());
if(!moduleNode["RegDate"].isNull())
module_.regDate = std::stol(moduleNode["RegDate"].asString());
if(!moduleNode["DeadDate"].isNull())
module_.deadDate = std::stol(moduleNode["DeadDate"].asString());
if(!moduleNode["EndTime"].isNull())
module_.endTime = std::stol(moduleNode["EndTime"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int CheckDomainStatusResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CheckDomainStatusResult::getErrorCode()const
{
return errorCode_;
}
CheckDomainStatusResult::Module CheckDomainStatusResult::getModule()const
{
return module_;
}
bool CheckDomainStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/domain/model/CreateFixedPriceDemandOrderRequest.h>
using AlibabaCloud::Domain::Model::CreateFixedPriceDemandOrderRequest;
CreateFixedPriceDemandOrderRequest::CreateFixedPriceDemandOrderRequest() :
RpcServiceRequest("domain", "2018-02-08", "CreateFixedPriceDemandOrder")
{
setMethod(HttpRequest::Method::Post);
}
CreateFixedPriceDemandOrderRequest::~CreateFixedPriceDemandOrderRequest()
{}
std::string CreateFixedPriceDemandOrderRequest::getCode()const
{
return code_;
}
void CreateFixedPriceDemandOrderRequest::setCode(const std::string& code)
{
code_ = code;
setParameter("Code", code);
}
std::string CreateFixedPriceDemandOrderRequest::getContactId()const
{
return contactId_;
}
void CreateFixedPriceDemandOrderRequest::setContactId(const std::string& contactId)
{
contactId_ = contactId;
setParameter("ContactId", contactId);
}
std::string CreateFixedPriceDemandOrderRequest::getDomain()const
{
return domain_;
}
void CreateFixedPriceDemandOrderRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateFixedPriceDemandOrderRequest::getSource()const
{
return source_;
}
void CreateFixedPriceDemandOrderRequest::setSource(const std::string& source)
{
source_ = source;
setParameter("Source", source);
}

View File

@@ -0,0 +1,77 @@
/*
* 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/domain/model/CreateFixedPriceDemandOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Domain;
using namespace AlibabaCloud::Domain::Model;
CreateFixedPriceDemandOrderResult::CreateFixedPriceDemandOrderResult() :
ServiceResult()
{}
CreateFixedPriceDemandOrderResult::CreateFixedPriceDemandOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFixedPriceDemandOrderResult::~CreateFixedPriceDemandOrderResult()
{}
void CreateFixedPriceDemandOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto moduleNode = value["Module"];
if(!moduleNode["OrderNo"].isNull())
module_.orderNo = moduleNode["OrderNo"].asString();
if(!moduleNode["Price"].isNull())
module_.price = std::stol(moduleNode["Price"].asString());
if(!moduleNode["Domain"].isNull())
module_.domain = moduleNode["Domain"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int CreateFixedPriceDemandOrderResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateFixedPriceDemandOrderResult::getErrorCode()const
{
return errorCode_;
}
CreateFixedPriceDemandOrderResult::Module CreateFixedPriceDemandOrderResult::getModule()const
{
return module_;
}
bool CreateFixedPriceDemandOrderResult::getSuccess()const
{
return success_;
}

View File

@@ -43,46 +43,48 @@ void QueryBrokerDemandResult::parse(const std::string &payload)
for (auto valueDataDemand : allDataNode)
{
Demand dataObject;
if(!valueDataDemand["BizId"].isNull())
dataObject.bizId = valueDataDemand["BizId"].asString();
if(!valueDataDemand["Status"].isNull())
dataObject.status = valueDataDemand["Status"].asString();
if(!valueDataDemand["DemandDomain"].isNull())
dataObject.demandDomain = valueDataDemand["DemandDomain"].asString();
if(!valueDataDemand["DemandPrice"].isNull())
dataObject.demandPrice = std::stof(valueDataDemand["DemandPrice"].asString());
if(!valueDataDemand["Mobile"].isNull())
dataObject.mobile = valueDataDemand["Mobile"].asString();
if(!valueDataDemand["Description"].isNull())
dataObject.description = valueDataDemand["Description"].asString();
if(!valueDataDemand["BizId"].isNull())
dataObject.bizId = valueDataDemand["BizId"].asString();
if(!valueDataDemand["BargainSellerMobile"].isNull())
dataObject.bargainSellerMobile = valueDataDemand["BargainSellerMobile"].asString();
if(!valueDataDemand["PublishTime"].isNull())
dataObject.publishTime = std::stol(valueDataDemand["PublishTime"].asString());
if(!valueDataDemand["PayDomain"].isNull())
dataObject.payDomain = valueDataDemand["PayDomain"].asString();
if(!valueDataDemand["ProduceType"].isNull())
dataObject.produceType = std::stoi(valueDataDemand["ProduceType"].asString());
if(!valueDataDemand["DemandDomain"].isNull())
dataObject.demandDomain = valueDataDemand["DemandDomain"].asString();
if(!valueDataDemand["Description"].isNull())
dataObject.description = valueDataDemand["Description"].asString();
if(!valueDataDemand["Mobile"].isNull())
dataObject.mobile = valueDataDemand["Mobile"].asString();
if(!valueDataDemand["ServicePayPrice"].isNull())
dataObject.servicePayPrice = std::stof(valueDataDemand["ServicePayPrice"].asString());
if(!valueDataDemand["PayPrice"].isNull())
dataObject.payPrice = std::stof(valueDataDemand["PayPrice"].asString());
if(!valueDataDemand["PayTime"].isNull())
dataObject.payTime = std::stol(valueDataDemand["PayTime"].asString());
if(!valueDataDemand["ProduceType"].isNull())
dataObject.produceType = std::stoi(valueDataDemand["ProduceType"].asString());
if(!valueDataDemand["BargainSellerPrice"].isNull())
dataObject.bargainSellerPrice = std::stof(valueDataDemand["BargainSellerPrice"].asString());
if(!valueDataDemand["BargainSellerMobile"].isNull())
dataObject.bargainSellerMobile = valueDataDemand["BargainSellerMobile"].asString();
if(!valueDataDemand["ServicePayPrice"].isNull())
dataObject.servicePayPrice = std::stof(valueDataDemand["ServicePayPrice"].asString());
if(!valueDataDemand["OrderType"].isNull())
dataObject.orderType = std::stoi(valueDataDemand["OrderType"].asString());
if(!valueDataDemand["PayDomain"].isNull())
dataObject.payDomain = valueDataDemand["PayDomain"].asString();
if(!valueDataDemand["AuditStatus"].isNull())
dataObject.auditStatus = std::stoi(valueDataDemand["AuditStatus"].asString());
data_.push_back(dataObject);
}
if(!value["TotalItemNum"].isNull())
totalItemNum_ = std::stoi(value["TotalItemNum"].asString());
if(!value["CurrentPageNum"].isNull())
currentPageNum_ = std::stoi(value["CurrentPageNum"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalPageNum"].isNull())
totalPageNum_ = std::stoi(value["TotalPageNum"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalItemNum"].isNull())
totalItemNum_ = std::stoi(value["TotalItemNum"].asString());
}