Supported 20210618 version for sdk.

This commit is contained in:
sdk-team
2021-06-18 02:48:33 +00:00
parent cab6049e8f
commit 930b29acdd
185 changed files with 10446 additions and 2688 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/ActivateApDeviceRequest.h>
using AlibabaCloud::Cloudesl::Model::ActivateApDeviceRequest;
ActivateApDeviceRequest::ActivateApDeviceRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "ActivateApDevice")
{
setMethod(HttpRequest::Method::Post);
}
ActivateApDeviceRequest::~ActivateApDeviceRequest()
{}
std::string ActivateApDeviceRequest::getExtraParams()const
{
return extraParams_;
}
void ActivateApDeviceRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string ActivateApDeviceRequest::getApMac()const
{
return apMac_;
}
void ActivateApDeviceRequest::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setBodyParameter("ApMac", apMac);
}
std::string ActivateApDeviceRequest::getStoreId()const
{
return storeId_;
}
void ActivateApDeviceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/ActivateApDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
ActivateApDeviceResult::ActivateApDeviceResult() :
ServiceResult()
{}
ActivateApDeviceResult::ActivateApDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ActivateApDeviceResult::~ActivateApDeviceResult()
{}
void ActivateApDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ActivateApDeviceResult::getMessage()const
{
return message_;
}
std::string ActivateApDeviceResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string ActivateApDeviceResult::getErrorCode()const
{
return errorCode_;
}
std::string ActivateApDeviceResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string ActivateApDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string ActivateApDeviceResult::getCode()const
{
return code_;
}
bool ActivateApDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -1,51 +0,0 @@
/*
* 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/cloudesl/model/ActivateApService2Request.h>
using AlibabaCloud::Cloudesl::Model::ActivateApService2Request;
ActivateApService2Request::ActivateApService2Request() :
RpcServiceRequest("cloudesl", "2018-08-01", "ActivateApService2")
{
setMethod(HttpRequest::Method::Post);
}
ActivateApService2Request::~ActivateApService2Request()
{}
std::string ActivateApService2Request::getApMac()const
{
return apMac_;
}
void ActivateApService2Request::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setParameter("ApMac", apMac);
}
std::string ActivateApService2Request::getStoreId()const
{
return storeId_;
}
void ActivateApService2Request::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}

View File

@@ -1,51 +0,0 @@
/*
* 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/cloudesl/model/ActivateApServiceRequest.h>
using AlibabaCloud::Cloudesl::Model::ActivateApServiceRequest;
ActivateApServiceRequest::ActivateApServiceRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "ActivateApService")
{
setMethod(HttpRequest::Method::Post);
}
ActivateApServiceRequest::~ActivateApServiceRequest()
{}
std::string ActivateApServiceRequest::getApMac()const
{
return apMac_;
}
void ActivateApServiceRequest::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setParameter("ApMac", apMac);
}
std::string ActivateApServiceRequest::getStoreId()const
{
return storeId_;
}
void ActivateApServiceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/AddApDeviceRequest.h>
using AlibabaCloud::Cloudesl::Model::AddApDeviceRequest;
AddApDeviceRequest::AddApDeviceRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "AddApDevice")
{
setMethod(HttpRequest::Method::Post);
}
AddApDeviceRequest::~AddApDeviceRequest()
{}
std::string AddApDeviceRequest::getExtraParams()const
{
return extraParams_;
}
void AddApDeviceRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string AddApDeviceRequest::getClientToken()const
{
return clientToken_;
}
void AddApDeviceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
}
std::string AddApDeviceRequest::getRemark()const
{
return remark_;
}
void AddApDeviceRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setBodyParameter("Remark", remark);
}
std::string AddApDeviceRequest::getApMac()const
{
return apMac_;
}
void AddApDeviceRequest::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setBodyParameter("ApMac", apMac);
}
std::string AddApDeviceRequest::getStoreId()const
{
return storeId_;
}
void AddApDeviceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
std::string AddApDeviceRequest::getSerialNumber()const
{
return serialNumber_;
}
void AddApDeviceRequest::setSerialNumber(const std::string& serialNumber)
{
serialNumber_ = serialNumber;
setBodyParameter("SerialNumber", serialNumber);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/AddApDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
AddApDeviceResult::AddApDeviceResult() :
ServiceResult()
{}
AddApDeviceResult::AddApDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddApDeviceResult::~AddApDeviceResult()
{}
void AddApDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AddApDeviceResult::getMessage()const
{
return message_;
}
std::string AddApDeviceResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string AddApDeviceResult::getErrorCode()const
{
return errorCode_;
}
std::string AddApDeviceResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string AddApDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddApDeviceResult::getCode()const
{
return code_;
}
bool AddApDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/AddPlanogramShelfRequest.h>
using AlibabaCloud::Cloudesl::Model::AddPlanogramShelfRequest;
AddPlanogramShelfRequest::AddPlanogramShelfRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "AddPlanogramShelf")
{
setMethod(HttpRequest::Method::Post);
}
AddPlanogramShelfRequest::~AddPlanogramShelfRequest()
{}
std::string AddPlanogramShelfRequest::getExtraParams()const
{
return extraParams_;
}
void AddPlanogramShelfRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string AddPlanogramShelfRequest::getClientToken()const
{
return clientToken_;
}
void AddPlanogramShelfRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
}
std::string AddPlanogramShelfRequest::getShelfType()const
{
return shelfType_;
}
void AddPlanogramShelfRequest::setShelfType(const std::string& shelfType)
{
shelfType_ = shelfType;
setBodyParameter("ShelfType", shelfType);
}
std::string AddPlanogramShelfRequest::getStoreId()const
{
return storeId_;
}
void AddPlanogramShelfRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
std::string AddPlanogramShelfRequest::getZone()const
{
return zone_;
}
void AddPlanogramShelfRequest::setZone(const std::string& zone)
{
zone_ = zone;
setBodyParameter("Zone", zone);
}
std::string AddPlanogramShelfRequest::getShelf()const
{
return shelf_;
}
void AddPlanogramShelfRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}
std::string AddPlanogramShelfRequest::getCategory()const
{
return category_;
}
void AddPlanogramShelfRequest::setCategory(const std::string& category)
{
category_ = category;
setBodyParameter("Category", category);
}

View File

@@ -14,51 +14,79 @@
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DeleteItemBySkuIdResult.h>
#include <alibabacloud/cloudesl/model/AddPlanogramShelfResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DeleteItemBySkuIdResult::DeleteItemBySkuIdResult() :
AddPlanogramShelfResult::AddPlanogramShelfResult() :
ServiceResult()
{}
DeleteItemBySkuIdResult::DeleteItemBySkuIdResult(const std::string &payload) :
AddPlanogramShelfResult::AddPlanogramShelfResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteItemBySkuIdResult::~DeleteItemBySkuIdResult()
AddPlanogramShelfResult::~AddPlanogramShelfResult()
{}
void DeleteItemBySkuIdResult::parse(const std::string &payload)
void AddPlanogramShelfResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteItemBySkuIdResult::getMessage()const
std::string AddPlanogramShelfResult::getMessage()const
{
return message_;
}
std::string DeleteItemBySkuIdResult::getErrorCode()const
std::string AddPlanogramShelfResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string AddPlanogramShelfResult::getErrorCode()const
{
return errorCode_;
}
bool DeleteItemBySkuIdResult::getSuccess()const
std::string AddPlanogramShelfResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string AddPlanogramShelfResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddPlanogramShelfResult::getCode()const
{
return code_;
}
bool AddPlanogramShelfResult::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/cloudesl/model/AddRoleActionsRequest.h>
using AlibabaCloud::Cloudesl::Model::AddRoleActionsRequest;
AddRoleActionsRequest::AddRoleActionsRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "AddRoleActions")
{
setMethod(HttpRequest::Method::Post);
}
AddRoleActionsRequest::~AddRoleActionsRequest()
{}
std::string AddRoleActionsRequest::getRoleCode()const
{
return roleCode_;
}
void AddRoleActionsRequest::setRoleCode(const std::string& roleCode)
{
roleCode_ = roleCode;
setBodyParameter("RoleCode", roleCode);
}
std::string AddRoleActionsRequest::getExtraParams()const
{
return extraParams_;
}
void AddRoleActionsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string AddRoleActionsRequest::getClientToken()const
{
return clientToken_;
}
void AddRoleActionsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
}
std::string AddRoleActionsRequest::getAccessControlLists()const
{
return accessControlLists_;
}
void AddRoleActionsRequest::setAccessControlLists(const std::string& accessControlLists)
{
accessControlLists_ = accessControlLists;
setBodyParameter("AccessControlLists", accessControlLists);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/AddRoleActionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
AddRoleActionsResult::AddRoleActionsResult() :
ServiceResult()
{}
AddRoleActionsResult::AddRoleActionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddRoleActionsResult::~AddRoleActionsResult()
{}
void AddRoleActionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AddRoleActionsResult::getMessage()const
{
return message_;
}
std::string AddRoleActionsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string AddRoleActionsResult::getErrorCode()const
{
return errorCode_;
}
std::string AddRoleActionsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string AddRoleActionsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddRoleActionsResult::getCode()const
{
return code_;
}
bool AddRoleActionsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/AddUserRequest.h>
using AlibabaCloud::Cloudesl::Model::AddUserRequest;
AddUserRequest::AddUserRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "AddUser")
{
setMethod(HttpRequest::Method::Post);
}
AddUserRequest::~AddUserRequest()
{}
std::string AddUserRequest::getExtraParams()const
{
return extraParams_;
}
void AddUserRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string AddUserRequest::getClientToken()const
{
return clientToken_;
}
void AddUserRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
}
std::string AddUserRequest::getUserId()const
{
return userId_;
}
void AddUserRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}

View File

@@ -14,58 +14,79 @@
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/ActivateApService2Result.h>
#include <alibabacloud/cloudesl/model/AddUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
ActivateApService2Result::ActivateApService2Result() :
AddUserResult::AddUserResult() :
ServiceResult()
{}
ActivateApService2Result::ActivateApService2Result(const std::string &payload) :
AddUserResult::AddUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ActivateApService2Result::~ActivateApService2Result()
AddUserResult::~AddUserResult()
{}
void ActivateApService2Result::parse(const std::string &payload)
void AddUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ActivateApService2Result::getMessage()const
std::string AddUserResult::getMessage()const
{
return message_;
}
std::string ActivateApService2Result::getErrorCode()const
std::string AddUserResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string AddUserResult::getErrorCode()const
{
return errorCode_;
}
std::string ActivateApService2Result::getCode()const
std::string AddUserResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string AddUserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AddUserResult::getCode()const
{
return code_;
}
bool ActivateApService2Result::getSuccess()const
bool AddUserResult::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/cloudesl/model/AssignUserRequest.h>
using AlibabaCloud::Cloudesl::Model::AssignUserRequest;
AssignUserRequest::AssignUserRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "AssignUser")
{
setMethod(HttpRequest::Method::Post);
}
AssignUserRequest::~AssignUserRequest()
{}
std::string AssignUserRequest::getExtraParams()const
{
return extraParams_;
}
void AssignUserRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string AssignUserRequest::getStores()const
{
return stores_;
}
void AssignUserRequest::setStores(const std::string& stores)
{
stores_ = stores;
setBodyParameter("Stores", stores);
}
std::string AssignUserRequest::getUserType()const
{
return userType_;
}
void AssignUserRequest::setUserType(const std::string& userType)
{
userType_ = userType;
setBodyParameter("UserType", userType);
}
std::string AssignUserRequest::getUserId()const
{
return userId_;
}
void AssignUserRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}

View File

@@ -14,72 +14,79 @@
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DescribeCompanyResult.h>
#include <alibabacloud/cloudesl/model/AssignUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeCompanyResult::DescribeCompanyResult() :
AssignUserResult::AssignUserResult() :
ServiceResult()
{}
DescribeCompanyResult::DescribeCompanyResult(const std::string &payload) :
AssignUserResult::AssignUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCompanyResult::~DescribeCompanyResult()
AssignUserResult::~AssignUserResult()
{}
void DescribeCompanyResult::parse(const std::string &payload)
void AssignUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["CompanyId"].isNull())
companyId_ = value["CompanyId"].asString();
if(!value["Platform"].isNull())
platform_ = value["Platform"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeCompanyResult::getStatus()const
{
return status_;
}
std::string DescribeCompanyResult::getMessage()const
std::string AssignUserResult::getMessage()const
{
return message_;
}
std::string DescribeCompanyResult::getCompanyId()const
std::string AssignUserResult::getDynamicCode()const
{
return companyId_;
return dynamicCode_;
}
std::string DescribeCompanyResult::getPlatform()const
{
return platform_;
}
std::string DescribeCompanyResult::getErrorCode()const
std::string AssignUserResult::getErrorCode()const
{
return errorCode_;
}
bool DescribeCompanyResult::getSuccess()const
std::string AssignUserResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string AssignUserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AssignUserResult::getCode()const
{
return code_;
}
bool AssignUserResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/cloudesl/model/AssociatePlanogramRailRequest.h>
using AlibabaCloud::Cloudesl::Model::AssociatePlanogramRailRequest;
AssociatePlanogramRailRequest::AssociatePlanogramRailRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "AssociatePlanogramRail")
{
setMethod(HttpRequest::Method::Post);
}
AssociatePlanogramRailRequest::~AssociatePlanogramRailRequest()
{}
std::string AssociatePlanogramRailRequest::getExtraParams()const
{
return extraParams_;
}
void AssociatePlanogramRailRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string AssociatePlanogramRailRequest::getStoreId()const
{
return storeId_;
}
void AssociatePlanogramRailRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int AssociatePlanogramRailRequest::getLayer()const
{
return layer_;
}
void AssociatePlanogramRailRequest::setLayer(int layer)
{
layer_ = layer;
setBodyParameter("Layer", std::to_string(layer));
}
std::string AssociatePlanogramRailRequest::getShelf()const
{
return shelf_;
}
void AssociatePlanogramRailRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}
std::string AssociatePlanogramRailRequest::getRailCode()const
{
return railCode_;
}
void AssociatePlanogramRailRequest::setRailCode(const std::string& railCode)
{
railCode_ = railCode;
setBodyParameter("RailCode", railCode);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/AssociatePlanogramRailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
AssociatePlanogramRailResult::AssociatePlanogramRailResult() :
ServiceResult()
{}
AssociatePlanogramRailResult::AssociatePlanogramRailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociatePlanogramRailResult::~AssociatePlanogramRailResult()
{}
void AssociatePlanogramRailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AssociatePlanogramRailResult::getMessage()const
{
return message_;
}
std::string AssociatePlanogramRailResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string AssociatePlanogramRailResult::getErrorCode()const
{
return errorCode_;
}
std::string AssociatePlanogramRailResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string AssociatePlanogramRailResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AssociatePlanogramRailResult::getCode()const
{
return code_;
}
bool AssociatePlanogramRailResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::BatchInsertItemsRequest;
BatchInsertItemsRequest::BatchInsertItemsRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "BatchInsertItems")
RpcServiceRequest("cloudesl", "2020-02-01", "BatchInsertItems")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,17 @@ BatchInsertItemsRequest::BatchInsertItemsRequest() :
BatchInsertItemsRequest::~BatchInsertItemsRequest()
{}
std::string BatchInsertItemsRequest::getExtraParams()const
{
return extraParams_;
}
void BatchInsertItemsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string BatchInsertItemsRequest::getStoreId()const
{
return storeId_;
@@ -35,7 +46,18 @@ std::string BatchInsertItemsRequest::getStoreId()const
void BatchInsertItemsRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
bool BatchInsertItemsRequest::getSyncByItemId()const
{
return syncByItemId_;
}
void BatchInsertItemsRequest::setSyncByItemId(bool syncByItemId)
{
syncByItemId_ = syncByItemId;
setBodyParameter("SyncByItemId", syncByItemId ? "true" : "false");
}
std::vector<BatchInsertItemsRequest::ItemInfo> BatchInsertItemsRequest::getItemInfo()const
@@ -51,45 +73,56 @@ void BatchInsertItemsRequest::setItemInfo(const std::vector<ItemInfo>& itemInfo)
std::string itemInfoObjStr = "ItemInfo." + std::to_string(dep1 + 1);
setParameter(itemInfoObjStr + ".MemberPrice", std::to_string(itemInfoObj.memberPrice));
setParameter(itemInfoObjStr + ".ActionPrice", std::to_string(itemInfoObj.actionPrice));
setParameter(itemInfoObjStr + ".ProductionPlace", itemInfoObj.productionPlace);
setParameter(itemInfoObjStr + ".BeSourceCode", itemInfoObj.beSourceCode ? "true" : "false");
setParameter(itemInfoObjStr + ".StoreId", itemInfoObj.storeId);
setParameter(itemInfoObjStr + ".BrandName", itemInfoObj.brandName);
setParameter(itemInfoObjStr + ".PromotionStart", itemInfoObj.promotionStart);
setParameter(itemInfoObjStr + ".SourceCode", itemInfoObj.sourceCode);
setParameter(itemInfoObjStr + ".ItemId", std::to_string(itemInfoObj.itemId));
setParameter(itemInfoObjStr + ".ExtraAttribute", itemInfoObj.extraAttribute);
setParameter(itemInfoObjStr + ".CompanyId", itemInfoObj.companyId);
setParameter(itemInfoObjStr + ".PriceUnit", itemInfoObj.priceUnit);
setParameter(itemInfoObjStr + ".Rank", itemInfoObj.rank);
setParameter(itemInfoObjStr + ".ItemInfoIndex", std::to_string(itemInfoObj.itemInfoIndex));
setParameter(itemInfoObjStr + ".ItemBarCode", itemInfoObj.itemBarCode);
setParameter(itemInfoObjStr + ".CustomizeFeatureK", itemInfoObj.customizeFeatureK);
setParameter(itemInfoObjStr + ".CustomizeFeatureL", itemInfoObj.customizeFeatureL);
setParameter(itemInfoObjStr + ".CustomizeFeatureM", itemInfoObj.customizeFeatureM);
setParameter(itemInfoObjStr + ".BePromotion", itemInfoObj.bePromotion ? "true" : "false");
setParameter(itemInfoObjStr + ".CustomizeFeatureN", itemInfoObj.customizeFeatureN);
setParameter(itemInfoObjStr + ".CustomizeFeatureO", itemInfoObj.customizeFeatureO);
setParameter(itemInfoObjStr + ".PromotionEnd", itemInfoObj.promotionEnd);
setParameter(itemInfoObjStr + ".ItemTitle", itemInfoObj.itemTitle);
setParameter(itemInfoObjStr + ".OriginalPrice", std::to_string(itemInfoObj.originalPrice));
setParameter(itemInfoObjStr + ".ItemShortTitle", itemInfoObj.itemShortTitle);
setParameter(itemInfoObjStr + ".CustomizeFeatureC", itemInfoObj.customizeFeatureC);
setParameter(itemInfoObjStr + ".ItemQrCode", itemInfoObj.itemQrCode);
setParameter(itemInfoObjStr + ".CustomizeFeatureD", itemInfoObj.customizeFeatureD);
setParameter(itemInfoObjStr + ".PromotionReason", itemInfoObj.promotionReason);
setParameter(itemInfoObjStr + ".ItemQrCode", itemInfoObj.itemQrCode);
setParameter(itemInfoObjStr + ".CustomizeFeatureE", itemInfoObj.customizeFeatureE);
setParameter(itemInfoObjStr + ".InventoryStatus", itemInfoObj.inventoryStatus);
setParameter(itemInfoObjStr + ".PromotionReason", itemInfoObj.promotionReason);
setParameter(itemInfoObjStr + ".CustomizeFeatureF", itemInfoObj.customizeFeatureF);
setParameter(itemInfoObjStr + ".ForestSecondId", itemInfoObj.forestSecondId);
setParameter(itemInfoObjStr + ".CustomizeFeatureG", itemInfoObj.customizeFeatureG);
setParameter(itemInfoObjStr + ".CustomizeFeatureH", itemInfoObj.customizeFeatureH);
setParameter(itemInfoObjStr + ".CustomizeFeatureI", itemInfoObj.customizeFeatureI);
setParameter(itemInfoObjStr + ".CustomizeFeatureJ", itemInfoObj.customizeFeatureJ);
setParameter(itemInfoObjStr + ".OptionGroups", itemInfoObj.optionGroups);
setParameter(itemInfoObjStr + ".ModelNumber", itemInfoObj.modelNumber);
setParameter(itemInfoObjStr + ".SaleSpec", itemInfoObj.saleSpec);
setParameter(itemInfoObjStr + ".CustomizeFeatureA", itemInfoObj.customizeFeatureA);
setParameter(itemInfoObjStr + ".CustomizeFeatureB", itemInfoObj.customizeFeatureB);
setParameter(itemInfoObjStr + ".SuggestPrice", std::to_string(itemInfoObj.suggestPrice));
setParameter(itemInfoObjStr + ".ForestFirstId", itemInfoObj.forestFirstId);
setParameter(itemInfoObjStr + ".ProductionPlace", itemInfoObj.productionPlace);
setParameter(itemInfoObjStr + ".Manufacturer", itemInfoObj.manufacturer);
setParameter(itemInfoObjStr + ".SourceCode", itemInfoObj.sourceCode);
setParameter(itemInfoObjStr + ".ItemId", itemInfoObj.itemId);
setParameter(itemInfoObjStr + ".BeMember", itemInfoObj.beMember ? "true" : "false");
setParameter(itemInfoObjStr + ".TemplateSceneId", itemInfoObj.templateSceneId);
setParameter(itemInfoObjStr + ".SalesPrice", std::to_string(itemInfoObj.salesPrice));
setParameter(itemInfoObjStr + ".OriginalPrice", std::to_string(itemInfoObj.originalPrice));
setParameter(itemInfoObjStr + ".ItemShortTitle", itemInfoObj.itemShortTitle);
setParameter(itemInfoObjStr + ".ForestSecondId", itemInfoObj.forestSecondId);
setParameter(itemInfoObjStr + ".ItemPicUrl", itemInfoObj.itemPicUrl);
setParameter(itemInfoObjStr + ".SupplierName", itemInfoObj.supplierName);
setParameter(itemInfoObjStr + ".Material", itemInfoObj.material);
setParameter(itemInfoObjStr + ".ModelNumber", itemInfoObj.modelNumber);
setParameter(itemInfoObjStr + ".SaleSpec", itemInfoObj.saleSpec);
setParameter(itemInfoObjStr + ".CategoryName", itemInfoObj.categoryName);
setParameter(itemInfoObjStr + ".TaxFee", itemInfoObj.taxFee);
setParameter(itemInfoObjStr + ".EnergyEfficiency", itemInfoObj.energyEfficiency);
setParameter(itemInfoObjStr + ".SkuId", itemInfoObj.skuId);
setParameter(itemInfoObjStr + ".PromotionText", itemInfoObj.promotionText);
setParameter(itemInfoObjStr + ".SkuId", itemInfoObj.skuId);
}
}

View File

@@ -43,22 +43,30 @@ void BatchInsertItemsResult::parse(const std::string &payload)
for (auto valueBatchResultsBatchResult : allBatchResultsNode)
{
BatchResult batchResultsObject;
if(!valueBatchResultsBatchResult["Index"].isNull())
batchResultsObject.index = std::stoi(valueBatchResultsBatchResult["Index"].asString());
if(!valueBatchResultsBatchResult["Success"].isNull())
batchResultsObject.success = valueBatchResultsBatchResult["Success"].asString() == "true";
if(!valueBatchResultsBatchResult["Message"].isNull())
batchResultsObject.message = valueBatchResultsBatchResult["Message"].asString();
if(!valueBatchResultsBatchResult["Index"].isNull())
batchResultsObject.index = std::stoi(valueBatchResultsBatchResult["Index"].asString());
if(!valueBatchResultsBatchResult["ErrorCode"].isNull())
batchResultsObject.errorCode = valueBatchResultsBatchResult["ErrorCode"].asString();
if(!valueBatchResultsBatchResult["Success"].isNull())
batchResultsObject.success = valueBatchResultsBatchResult["Success"].asString() == "true";
batchResults_.push_back(batchResultsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -67,16 +75,36 @@ std::string BatchInsertItemsResult::getMessage()const
return message_;
}
std::string BatchInsertItemsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string BatchInsertItemsResult::getErrorCode()const
{
return errorCode_;
}
std::string BatchInsertItemsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::vector<BatchInsertItemsResult::BatchResult> BatchInsertItemsResult::getBatchResults()const
{
return batchResults_;
}
std::string BatchInsertItemsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string BatchInsertItemsResult::getCode()const
{
return code_;
}
bool BatchInsertItemsResult::getSuccess()const
{
return success_;

View File

@@ -1,51 +0,0 @@
/*
* 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/cloudesl/model/BindApStoreServiceRequest.h>
using AlibabaCloud::Cloudesl::Model::BindApStoreServiceRequest;
BindApStoreServiceRequest::BindApStoreServiceRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "BindApStoreService")
{
setMethod(HttpRequest::Method::Post);
}
BindApStoreServiceRequest::~BindApStoreServiceRequest()
{}
std::string BindApStoreServiceRequest::getApMac()const
{
return apMac_;
}
void BindApStoreServiceRequest::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setParameter("ApMac", apMac);
}
std::string BindApStoreServiceRequest::getStoreId()const
{
return storeId_;
}
void BindApStoreServiceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}

View File

@@ -1,65 +0,0 @@
/*
* 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/cloudesl/model/BindApStoreServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
BindApStoreServiceResult::BindApStoreServiceResult() :
ServiceResult()
{}
BindApStoreServiceResult::BindApStoreServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindApStoreServiceResult::~BindApStoreServiceResult()
{}
void BindApStoreServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::string BindApStoreServiceResult::getMessage()const
{
return message_;
}
std::string BindApStoreServiceResult::getErrorCode()const
{
return errorCode_;
}
bool BindApStoreServiceResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::BindEslDeviceRequest;
BindEslDeviceRequest::BindEslDeviceRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "BindEslDevice")
RpcServiceRequest("cloudesl", "2020-02-01", "BindEslDevice")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,17 @@ BindEslDeviceRequest::BindEslDeviceRequest() :
BindEslDeviceRequest::~BindEslDeviceRequest()
{}
std::string BindEslDeviceRequest::getExtraParams()const
{
return extraParams_;
}
void BindEslDeviceRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string BindEslDeviceRequest::getStoreId()const
{
return storeId_;
@@ -35,7 +46,18 @@ std::string BindEslDeviceRequest::getStoreId()const
void BindEslDeviceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
int BindEslDeviceRequest::getLayer()const
{
return layer_;
}
void BindEslDeviceRequest::setLayer(int layer)
{
layer_ = layer;
setBodyParameter("Layer", std::to_string(layer));
}
std::string BindEslDeviceRequest::getEslBarCode()const
@@ -46,7 +68,7 @@ std::string BindEslDeviceRequest::getEslBarCode()const
void BindEslDeviceRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setParameter("EslBarCode", eslBarCode);
setBodyParameter("EslBarCode", eslBarCode);
}
std::string BindEslDeviceRequest::getItemBarCode()const
@@ -57,6 +79,28 @@ std::string BindEslDeviceRequest::getItemBarCode()const
void BindEslDeviceRequest::setItemBarCode(const std::string& itemBarCode)
{
itemBarCode_ = itemBarCode;
setParameter("ItemBarCode", itemBarCode);
setBodyParameter("ItemBarCode", itemBarCode);
}
std::string BindEslDeviceRequest::getColumn()const
{
return column_;
}
void BindEslDeviceRequest::setColumn(const std::string& column)
{
column_ = column;
setBodyParameter("Column", column);
}
std::string BindEslDeviceRequest::getShelf()const
{
return shelf_;
}
void BindEslDeviceRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}

View File

@@ -39,12 +39,20 @@ void BindEslDeviceResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -53,11 +61,31 @@ std::string BindEslDeviceResult::getMessage()const
return message_;
}
std::string BindEslDeviceResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string BindEslDeviceResult::getErrorCode()const
{
return errorCode_;
}
std::string BindEslDeviceResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string BindEslDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string BindEslDeviceResult::getCode()const
{
return code_;
}
bool BindEslDeviceResult::getSuccess()const
{
return success_;

View File

@@ -1,62 +0,0 @@
/*
* 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/cloudesl/model/BindEslDeviceShelfRequest.h>
using AlibabaCloud::Cloudesl::Model::BindEslDeviceShelfRequest;
BindEslDeviceShelfRequest::BindEslDeviceShelfRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "BindEslDeviceShelf")
{
setMethod(HttpRequest::Method::Post);
}
BindEslDeviceShelfRequest::~BindEslDeviceShelfRequest()
{}
std::string BindEslDeviceShelfRequest::getStoreId()const
{
return storeId_;
}
void BindEslDeviceShelfRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}
std::string BindEslDeviceShelfRequest::getShelfCode()const
{
return shelfCode_;
}
void BindEslDeviceShelfRequest::setShelfCode(const std::string& shelfCode)
{
shelfCode_ = shelfCode;
setParameter("ShelfCode", shelfCode);
}
std::string BindEslDeviceShelfRequest::getEslBarCode()const
{
return eslBarCode_;
}
void BindEslDeviceShelfRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setParameter("EslBarCode", eslBarCode);
}

View File

@@ -1,65 +0,0 @@
/*
* 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/cloudesl/model/BindEslDeviceShelfResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
BindEslDeviceShelfResult::BindEslDeviceShelfResult() :
ServiceResult()
{}
BindEslDeviceShelfResult::BindEslDeviceShelfResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindEslDeviceShelfResult::~BindEslDeviceShelfResult()
{}
void BindEslDeviceShelfResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::string BindEslDeviceShelfResult::getMessage()const
{
return message_;
}
std::string BindEslDeviceShelfResult::getErrorCode()const
{
return errorCode_;
}
bool BindEslDeviceShelfResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/cloudesl/model/ComposePlanogramPositionsRequest.h>
using AlibabaCloud::Cloudesl::Model::ComposePlanogramPositionsRequest;
ComposePlanogramPositionsRequest::ComposePlanogramPositionsRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "ComposePlanogramPositions")
{
setMethod(HttpRequest::Method::Post);
}
ComposePlanogramPositionsRequest::~ComposePlanogramPositionsRequest()
{}
std::string ComposePlanogramPositionsRequest::getActionType()const
{
return actionType_;
}
void ComposePlanogramPositionsRequest::setActionType(const std::string& actionType)
{
actionType_ = actionType;
setBodyParameter("ActionType", actionType);
}
std::string ComposePlanogramPositionsRequest::getExtraParams()const
{
return extraParams_;
}
void ComposePlanogramPositionsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string ComposePlanogramPositionsRequest::getStoreId()const
{
return storeId_;
}
void ComposePlanogramPositionsRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int ComposePlanogramPositionsRequest::getLayer()const
{
return layer_;
}
void ComposePlanogramPositionsRequest::setLayer(int layer)
{
layer_ = layer;
setBodyParameter("Layer", std::to_string(layer));
}
std::string ComposePlanogramPositionsRequest::getLayerOrigin()const
{
return layerOrigin_;
}
void ComposePlanogramPositionsRequest::setLayerOrigin(const std::string& layerOrigin)
{
layerOrigin_ = layerOrigin;
setBodyParameter("LayerOrigin", layerOrigin);
}
bool ComposePlanogramPositionsRequest::getBeAutoRefresh()const
{
return beAutoRefresh_;
}
void ComposePlanogramPositionsRequest::setBeAutoRefresh(bool beAutoRefresh)
{
beAutoRefresh_ = beAutoRefresh;
setBodyParameter("BeAutoRefresh", beAutoRefresh ? "true" : "false");
}
std::string ComposePlanogramPositionsRequest::getShelf()const
{
return shelf_;
}
void ComposePlanogramPositionsRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}
std::vector<ComposePlanogramPositionsRequest::ShelfPositionInfo> ComposePlanogramPositionsRequest::getShelfPositionInfo()const
{
return shelfPositionInfo_;
}
void ComposePlanogramPositionsRequest::setShelfPositionInfo(const std::vector<ShelfPositionInfo>& shelfPositionInfo)
{
shelfPositionInfo_ = shelfPositionInfo;
for(int dep1 = 0; dep1!= shelfPositionInfo.size(); dep1++) {
auto shelfPositionInfoObj = shelfPositionInfo.at(dep1);
std::string shelfPositionInfoObjStr = "ShelfPositionInfo." + std::to_string(dep1 + 1);
setParameter(shelfPositionInfoObjStr + ".OffsetFrom", std::to_string(shelfPositionInfoObj.offsetFrom));
setParameter(shelfPositionInfoObjStr + ".Depth", std::to_string(shelfPositionInfoObj.depth));
setParameter(shelfPositionInfoObjStr + ".Column", shelfPositionInfoObj.column);
setParameter(shelfPositionInfoObjStr + ".Facing", std::to_string(shelfPositionInfoObj.facing));
setParameter(shelfPositionInfoObjStr + ".OffsetTo", std::to_string(shelfPositionInfoObj.offsetTo));
setParameter(shelfPositionInfoObjStr + ".ItemBarCode", shelfPositionInfoObj.itemBarCode);
}
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/ComposePlanogramPositionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
ComposePlanogramPositionsResult::ComposePlanogramPositionsResult() :
ServiceResult()
{}
ComposePlanogramPositionsResult::ComposePlanogramPositionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ComposePlanogramPositionsResult::~ComposePlanogramPositionsResult()
{}
void ComposePlanogramPositionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ComposePlanogramPositionsResult::getMessage()const
{
return message_;
}
std::string ComposePlanogramPositionsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string ComposePlanogramPositionsResult::getErrorCode()const
{
return errorCode_;
}
std::string ComposePlanogramPositionsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string ComposePlanogramPositionsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string ComposePlanogramPositionsResult::getCode()const
{
return code_;
}
bool ComposePlanogramPositionsResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::CreateStoreRequest;
CreateStoreRequest::CreateStoreRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "CreateStore")
RpcServiceRequest("cloudesl", "2020-02-01", "CreateStore")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,28 @@ CreateStoreRequest::CreateStoreRequest() :
CreateStoreRequest::~CreateStoreRequest()
{}
std::string CreateStoreRequest::getExtraParams()const
{
return extraParams_;
}
void CreateStoreRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string CreateStoreRequest::getClientToken()const
{
return clientToken_;
}
void CreateStoreRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
}
std::string CreateStoreRequest::getStoreName()const
{
return storeName_;
@@ -35,7 +57,7 @@ std::string CreateStoreRequest::getStoreName()const
void CreateStoreRequest::setStoreName(const std::string& storeName)
{
storeName_ = storeName;
setParameter("StoreName", storeName);
setBodyParameter("StoreName", storeName);
}
std::string CreateStoreRequest::getParentId()const
@@ -46,51 +68,18 @@ std::string CreateStoreRequest::getParentId()const
void CreateStoreRequest::setParentId(const std::string& parentId)
{
parentId_ = parentId;
setParameter("ParentId", parentId);
setBodyParameter("ParentId", parentId);
}
std::string CreateStoreRequest::getCompanyId()const
std::string CreateStoreRequest::getUserStoreCode()const
{
return companyId_;
return userStoreCode_;
}
void CreateStoreRequest::setCompanyId(const std::string& companyId)
void CreateStoreRequest::setUserStoreCode(const std::string& userStoreCode)
{
companyId_ = companyId;
setParameter("CompanyId", companyId);
}
std::string CreateStoreRequest::getBrand()const
{
return brand_;
}
void CreateStoreRequest::setBrand(const std::string& brand)
{
brand_ = brand;
setParameter("Brand", brand);
}
std::string CreateStoreRequest::getComments()const
{
return comments_;
}
void CreateStoreRequest::setComments(const std::string& comments)
{
comments_ = comments;
setParameter("Comments", comments);
}
std::string CreateStoreRequest::getGroups()const
{
return groups_;
}
void CreateStoreRequest::setGroups(const std::string& groups)
{
groups_ = groups;
setParameter("Groups", groups);
userStoreCode_ = userStoreCode;
setBodyParameter("UserStoreCode", userStoreCode);
}
std::string CreateStoreRequest::getPhone()const
@@ -101,17 +90,6 @@ std::string CreateStoreRequest::getPhone()const
void CreateStoreRequest::setPhone(const std::string& phone)
{
phone_ = phone;
setParameter("Phone", phone);
}
std::string CreateStoreRequest::getOutId()const
{
return outId_;
}
void CreateStoreRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
setBodyParameter("Phone", phone);
}

View File

@@ -39,14 +39,22 @@ void CreateStoreResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["StoreId"].isNull())
storeId_ = value["StoreId"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -60,11 +68,31 @@ std::string CreateStoreResult::getStoreId()const
return storeId_;
}
std::string CreateStoreResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string CreateStoreResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateStoreResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string CreateStoreResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateStoreResult::getCode()const
{
return code_;
}
bool CreateStoreResult::getSuccess()const
{
return success_;

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DeleteApDeviceRequest.h>
using AlibabaCloud::Cloudesl::Model::DeleteApDeviceRequest;
DeleteApDeviceRequest::DeleteApDeviceRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DeleteApDevice")
{
setMethod(HttpRequest::Method::Post);
}
DeleteApDeviceRequest::~DeleteApDeviceRequest()
{}
std::string DeleteApDeviceRequest::getExtraParams()const
{
return extraParams_;
}
void DeleteApDeviceRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DeleteApDeviceRequest::getApMac()const
{
return apMac_;
}
void DeleteApDeviceRequest::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setBodyParameter("ApMac", apMac);
}
std::string DeleteApDeviceRequest::getStoreId()const
{
return storeId_;
}
void DeleteApDeviceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/DeleteApDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DeleteApDeviceResult::DeleteApDeviceResult() :
ServiceResult()
{}
DeleteApDeviceResult::DeleteApDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteApDeviceResult::~DeleteApDeviceResult()
{}
void DeleteApDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteApDeviceResult::getMessage()const
{
return message_;
}
std::string DeleteApDeviceResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DeleteApDeviceResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteApDeviceResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DeleteApDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteApDeviceResult::getCode()const
{
return code_;
}
bool DeleteApDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -1,51 +0,0 @@
/*
* 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/cloudesl/model/DeleteApServiceRequest.h>
using AlibabaCloud::Cloudesl::Model::DeleteApServiceRequest;
DeleteApServiceRequest::DeleteApServiceRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DeleteApService")
{
setMethod(HttpRequest::Method::Post);
}
DeleteApServiceRequest::~DeleteApServiceRequest()
{}
std::string DeleteApServiceRequest::getApMac()const
{
return apMac_;
}
void DeleteApServiceRequest::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setParameter("ApMac", apMac);
}
std::string DeleteApServiceRequest::getStoreId()const
{
return storeId_;
}
void DeleteApServiceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}

View File

@@ -1,65 +0,0 @@
/*
* 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/cloudesl/model/DeleteApServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DeleteApServiceResult::DeleteApServiceResult() :
ServiceResult()
{}
DeleteApServiceResult::DeleteApServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteApServiceResult::~DeleteApServiceResult()
{}
void DeleteApServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::string DeleteApServiceResult::getMessage()const
{
return message_;
}
std::string DeleteApServiceResult::getErrorCode()const
{
return errorCode_;
}
bool DeleteApServiceResult::getSuccess()const
{
return success_;
}

View File

@@ -1,51 +0,0 @@
/*
* 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/cloudesl/model/DeleteEslDeviceRequest.h>
using AlibabaCloud::Cloudesl::Model::DeleteEslDeviceRequest;
DeleteEslDeviceRequest::DeleteEslDeviceRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DeleteEslDevice")
{
setMethod(HttpRequest::Method::Post);
}
DeleteEslDeviceRequest::~DeleteEslDeviceRequest()
{}
std::string DeleteEslDeviceRequest::getStoreId()const
{
return storeId_;
}
void DeleteEslDeviceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}
std::string DeleteEslDeviceRequest::getEslBarCode()const
{
return eslBarCode_;
}
void DeleteEslDeviceRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setParameter("EslBarCode", eslBarCode);
}

View File

@@ -1,65 +0,0 @@
/*
* 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/cloudesl/model/DeleteEslDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DeleteEslDeviceResult::DeleteEslDeviceResult() :
ServiceResult()
{}
DeleteEslDeviceResult::DeleteEslDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteEslDeviceResult::~DeleteEslDeviceResult()
{}
void DeleteEslDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::string DeleteEslDeviceResult::getMessage()const
{
return message_;
}
std::string DeleteEslDeviceResult::getErrorCode()const
{
return errorCode_;
}
bool DeleteEslDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -1,51 +0,0 @@
/*
* 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/cloudesl/model/DeleteItemBySkuIdRequest.h>
using AlibabaCloud::Cloudesl::Model::DeleteItemBySkuIdRequest;
DeleteItemBySkuIdRequest::DeleteItemBySkuIdRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DeleteItemBySkuId")
{
setMethod(HttpRequest::Method::Post);
}
DeleteItemBySkuIdRequest::~DeleteItemBySkuIdRequest()
{}
std::string DeleteItemBySkuIdRequest::getStoreId()const
{
return storeId_;
}
void DeleteItemBySkuIdRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}
std::string DeleteItemBySkuIdRequest::getSkuId()const
{
return skuId_;
}
void DeleteItemBySkuIdRequest::setSkuId(const std::string& skuId)
{
skuId_ = skuId;
setParameter("SkuId", skuId);
}

View File

@@ -1,65 +0,0 @@
/*
* 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/cloudesl/model/DeleteItemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DeleteItemResult::DeleteItemResult() :
ServiceResult()
{}
DeleteItemResult::DeleteItemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteItemResult::~DeleteItemResult()
{}
void DeleteItemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::string DeleteItemResult::getMessage()const
{
return message_;
}
std::string DeleteItemResult::getErrorCode()const
{
return errorCode_;
}
bool DeleteItemResult::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/cloudesl/model/DeletePlanogramShelfRequest.h>
using AlibabaCloud::Cloudesl::Model::DeletePlanogramShelfRequest;
DeletePlanogramShelfRequest::DeletePlanogramShelfRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DeletePlanogramShelf")
{
setMethod(HttpRequest::Method::Post);
}
DeletePlanogramShelfRequest::~DeletePlanogramShelfRequest()
{}
std::string DeletePlanogramShelfRequest::getExtraParams()const
{
return extraParams_;
}
void DeletePlanogramShelfRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
bool DeletePlanogramShelfRequest::getBeAutoRefresh()const
{
return beAutoRefresh_;
}
void DeletePlanogramShelfRequest::setBeAutoRefresh(bool beAutoRefresh)
{
beAutoRefresh_ = beAutoRefresh;
setBodyParameter("BeAutoRefresh", beAutoRefresh ? "true" : "false");
}
std::string DeletePlanogramShelfRequest::getStoreId()const
{
return storeId_;
}
void DeletePlanogramShelfRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
std::string DeletePlanogramShelfRequest::getShelf()const
{
return shelf_;
}
void DeletePlanogramShelfRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}

View File

@@ -14,51 +14,79 @@
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/UnbindEslDeviceShelfResult.h>
#include <alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
UnbindEslDeviceShelfResult::UnbindEslDeviceShelfResult() :
DeletePlanogramShelfResult::DeletePlanogramShelfResult() :
ServiceResult()
{}
UnbindEslDeviceShelfResult::UnbindEslDeviceShelfResult(const std::string &payload) :
DeletePlanogramShelfResult::DeletePlanogramShelfResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnbindEslDeviceShelfResult::~UnbindEslDeviceShelfResult()
DeletePlanogramShelfResult::~DeletePlanogramShelfResult()
{}
void UnbindEslDeviceShelfResult::parse(const std::string &payload)
void DeletePlanogramShelfResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UnbindEslDeviceShelfResult::getMessage()const
std::string DeletePlanogramShelfResult::getMessage()const
{
return message_;
}
std::string UnbindEslDeviceShelfResult::getErrorCode()const
std::string DeletePlanogramShelfResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DeletePlanogramShelfResult::getErrorCode()const
{
return errorCode_;
}
bool UnbindEslDeviceShelfResult::getSuccess()const
std::string DeletePlanogramShelfResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DeletePlanogramShelfResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeletePlanogramShelfResult::getCode()const
{
return code_;
}
bool DeletePlanogramShelfResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DeleteRoleActionsRequest.h>
using AlibabaCloud::Cloudesl::Model::DeleteRoleActionsRequest;
DeleteRoleActionsRequest::DeleteRoleActionsRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DeleteRoleActions")
{
setMethod(HttpRequest::Method::Post);
}
DeleteRoleActionsRequest::~DeleteRoleActionsRequest()
{}
std::string DeleteRoleActionsRequest::getRoleCode()const
{
return roleCode_;
}
void DeleteRoleActionsRequest::setRoleCode(const std::string& roleCode)
{
roleCode_ = roleCode;
setBodyParameter("RoleCode", roleCode);
}
std::string DeleteRoleActionsRequest::getExtraParams()const
{
return extraParams_;
}
void DeleteRoleActionsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DeleteRoleActionsRequest::getAccessControlLists()const
{
return accessControlLists_;
}
void DeleteRoleActionsRequest::setAccessControlLists(const std::string& accessControlLists)
{
accessControlLists_ = accessControlLists;
setBodyParameter("AccessControlLists", accessControlLists);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/DeleteRoleActionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DeleteRoleActionsResult::DeleteRoleActionsResult() :
ServiceResult()
{}
DeleteRoleActionsResult::DeleteRoleActionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRoleActionsResult::~DeleteRoleActionsResult()
{}
void DeleteRoleActionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteRoleActionsResult::getMessage()const
{
return message_;
}
std::string DeleteRoleActionsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DeleteRoleActionsResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteRoleActionsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DeleteRoleActionsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteRoleActionsResult::getCode()const
{
return code_;
}
bool DeleteRoleActionsResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::DeleteStoreRequest;
DeleteStoreRequest::DeleteStoreRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DeleteStore")
RpcServiceRequest("cloudesl", "2020-02-01", "DeleteStore")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,17 @@ DeleteStoreRequest::DeleteStoreRequest() :
DeleteStoreRequest::~DeleteStoreRequest()
{}
std::string DeleteStoreRequest::getExtraParams()const
{
return extraParams_;
}
void DeleteStoreRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DeleteStoreRequest::getStoreId()const
{
return storeId_;
@@ -35,6 +46,6 @@ std::string DeleteStoreRequest::getStoreId()const
void DeleteStoreRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}

View File

@@ -39,12 +39,20 @@ void DeleteStoreResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -53,11 +61,31 @@ std::string DeleteStoreResult::getMessage()const
return message_;
}
std::string DeleteStoreResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DeleteStoreResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteStoreResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DeleteStoreResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteStoreResult::getCode()const
{
return code_;
}
bool DeleteStoreResult::getSuccess()const
{
return success_;

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DeleteItemRequest.h>
#include <alibabacloud/cloudesl/model/DeleteUserRequest.h>
using AlibabaCloud::Cloudesl::Model::DeleteItemRequest;
using AlibabaCloud::Cloudesl::Model::DeleteUserRequest;
DeleteItemRequest::DeleteItemRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DeleteItem")
DeleteUserRequest::DeleteUserRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DeleteUser")
{
setMethod(HttpRequest::Method::Post);
}
DeleteItemRequest::~DeleteItemRequest()
DeleteUserRequest::~DeleteUserRequest()
{}
std::string DeleteItemRequest::getStoreId()const
std::string DeleteUserRequest::getExtraParams()const
{
return storeId_;
return extraParams_;
}
void DeleteItemRequest::setStoreId(const std::string& storeId)
void DeleteUserRequest::setExtraParams(const std::string& extraParams)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DeleteItemRequest::getItemBarCode()const
std::string DeleteUserRequest::getUserId()const
{
return itemBarCode_;
return userId_;
}
void DeleteItemRequest::setItemBarCode(const std::string& itemBarCode)
void DeleteUserRequest::setUserId(const std::string& userId)
{
itemBarCode_ = itemBarCode;
setParameter("ItemBarCode", itemBarCode);
userId_ = userId;
setBodyParameter("UserId", userId);
}

View File

@@ -14,58 +14,79 @@
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DescribeUserRamPolicyResult.h>
#include <alibabacloud/cloudesl/model/DeleteUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeUserRamPolicyResult::DescribeUserRamPolicyResult() :
DeleteUserResult::DeleteUserResult() :
ServiceResult()
{}
DescribeUserRamPolicyResult::DescribeUserRamPolicyResult(const std::string &payload) :
DeleteUserResult::DeleteUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserRamPolicyResult::~DescribeUserRamPolicyResult()
DeleteUserResult::~DeleteUserResult()
{}
void DescribeUserRamPolicyResult::parse(const std::string &payload)
void DeleteUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Policy"].isNull())
policy_ = value["Policy"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeUserRamPolicyResult::getPolicy()const
{
return policy_;
}
std::string DescribeUserRamPolicyResult::getMessage()const
std::string DeleteUserResult::getMessage()const
{
return message_;
}
std::string DescribeUserRamPolicyResult::getErrorCode()const
std::string DeleteUserResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DeleteUserResult::getErrorCode()const
{
return errorCode_;
}
bool DescribeUserRamPolicyResult::getSuccess()const
std::string DeleteUserResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DeleteUserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteUserResult::getCode()const
{
return code_;
}
bool DeleteUserResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::DescribeAlarmsRequest;
DescribeAlarmsRequest::DescribeAlarmsRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DescribeAlarms")
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeAlarms")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,17 @@ DescribeAlarmsRequest::DescribeAlarmsRequest() :
DescribeAlarmsRequest::~DescribeAlarmsRequest()
{}
std::string DescribeAlarmsRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeAlarmsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeAlarmsRequest::getStoreId()const
{
return storeId_;
@@ -35,7 +46,7 @@ std::string DescribeAlarmsRequest::getStoreId()const
void DescribeAlarmsRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
int DescribeAlarmsRequest::getPageNumber()const
@@ -46,18 +57,7 @@ int DescribeAlarmsRequest::getPageNumber()const
void DescribeAlarmsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeAlarmsRequest::getFromAlarmTime()const
{
return fromAlarmTime_;
}
void DescribeAlarmsRequest::setFromAlarmTime(const std::string& fromAlarmTime)
{
fromAlarmTime_ = fromAlarmTime;
setParameter("FromAlarmTime", fromAlarmTime);
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
int DescribeAlarmsRequest::getPageSize()const
@@ -68,18 +68,7 @@ int DescribeAlarmsRequest::getPageSize()const
void DescribeAlarmsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAlarmsRequest::getToAlarmTime()const
{
return toAlarmTime_;
}
void DescribeAlarmsRequest::setToAlarmTime(const std::string& toAlarmTime)
{
toAlarmTime_ = toAlarmTime;
setParameter("ToAlarmTime", toAlarmTime);
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAlarmsRequest::getAlarmType()const
@@ -90,7 +79,7 @@ std::string DescribeAlarmsRequest::getAlarmType()const
void DescribeAlarmsRequest::setAlarmType(const std::string& alarmType)
{
alarmType_ = alarmType;
setParameter("AlarmType", alarmType);
setBodyParameter("AlarmType", alarmType);
}
std::string DescribeAlarmsRequest::getAlarmStatus()const
@@ -101,7 +90,7 @@ std::string DescribeAlarmsRequest::getAlarmStatus()const
void DescribeAlarmsRequest::setAlarmStatus(const std::string& alarmStatus)
{
alarmStatus_ = alarmStatus;
setParameter("AlarmStatus", alarmStatus);
setBodyParameter("AlarmStatus", alarmStatus);
}
std::string DescribeAlarmsRequest::getErrorType()const
@@ -112,7 +101,7 @@ std::string DescribeAlarmsRequest::getErrorType()const
void DescribeAlarmsRequest::setErrorType(const std::string& errorType)
{
errorType_ = errorType;
setParameter("ErrorType", errorType);
setBodyParameter("ErrorType", errorType);
}
std::string DescribeAlarmsRequest::getAlarmId()const
@@ -123,6 +112,17 @@ std::string DescribeAlarmsRequest::getAlarmId()const
void DescribeAlarmsRequest::setAlarmId(const std::string& alarmId)
{
alarmId_ = alarmId;
setParameter("AlarmId", alarmId);
setBodyParameter("AlarmId", alarmId);
}
std::string DescribeAlarmsRequest::getDeviceMac()const
{
return deviceMac_;
}
void DescribeAlarmsRequest::setDeviceMac(const std::string& deviceMac)
{
deviceMac_ = deviceMac;
setBodyParameter("DeviceMac", deviceMac);
}

View File

@@ -43,52 +43,62 @@ void DescribeAlarmsResult::parse(const std::string &payload)
for (auto valueAlarmsAlarmInfo : allAlarmsNode)
{
AlarmInfo alarmsObject;
if(!valueAlarmsAlarmInfo["AlarmId"].isNull())
alarmsObject.alarmId = valueAlarmsAlarmInfo["AlarmId"].asString();
if(!valueAlarmsAlarmInfo["AlarmType"].isNull())
alarmsObject.alarmType = valueAlarmsAlarmInfo["AlarmType"].asString();
if(!valueAlarmsAlarmInfo["DeviceType"].isNull())
alarmsObject.deviceType = valueAlarmsAlarmInfo["DeviceType"].asString();
if(!valueAlarmsAlarmInfo["DeviceBarCode"].isNull())
alarmsObject.deviceBarCode = valueAlarmsAlarmInfo["DeviceBarCode"].asString();
if(!valueAlarmsAlarmInfo["DeviceMac"].isNull())
alarmsObject.deviceMac = valueAlarmsAlarmInfo["DeviceMac"].asString();
if(!valueAlarmsAlarmInfo["ErrorType"].isNull())
alarmsObject.errorType = valueAlarmsAlarmInfo["ErrorType"].asString();
if(!valueAlarmsAlarmInfo["ItemBarCode"].isNull())
alarmsObject.itemBarCode = valueAlarmsAlarmInfo["ItemBarCode"].asString();
if(!valueAlarmsAlarmInfo["ItemTitle"].isNull())
alarmsObject.itemTitle = valueAlarmsAlarmInfo["ItemTitle"].asString();
if(!valueAlarmsAlarmInfo["CompanyId"].isNull())
alarmsObject.companyId = valueAlarmsAlarmInfo["CompanyId"].asString();
if(!valueAlarmsAlarmInfo["Remark"].isNull())
alarmsObject.remark = valueAlarmsAlarmInfo["Remark"].asString();
if(!valueAlarmsAlarmInfo["StoreId"].isNull())
alarmsObject.storeId = valueAlarmsAlarmInfo["StoreId"].asString();
if(!valueAlarmsAlarmInfo["DeviceBarCode"].isNull())
alarmsObject.deviceBarCode = valueAlarmsAlarmInfo["DeviceBarCode"].asString();
if(!valueAlarmsAlarmInfo["DealUserId"].isNull())
alarmsObject.dealUserId = valueAlarmsAlarmInfo["DealUserId"].asString();
if(!valueAlarmsAlarmInfo["DeviceType"].isNull())
alarmsObject.deviceType = valueAlarmsAlarmInfo["DeviceType"].asString();
if(!valueAlarmsAlarmInfo["ItemTitle"].isNull())
alarmsObject.itemTitle = valueAlarmsAlarmInfo["ItemTitle"].asString();
if(!valueAlarmsAlarmInfo["AlarmTime"].isNull())
alarmsObject.alarmTime = valueAlarmsAlarmInfo["AlarmTime"].asString();
if(!valueAlarmsAlarmInfo["AlarmStatus"].isNull())
alarmsObject.alarmStatus = valueAlarmsAlarmInfo["AlarmStatus"].asString();
if(!valueAlarmsAlarmInfo["DealUserId"].isNull())
alarmsObject.dealUserId = std::stol(valueAlarmsAlarmInfo["DealUserId"].asString());
if(!valueAlarmsAlarmInfo["ErrorType"].isNull())
alarmsObject.errorType = valueAlarmsAlarmInfo["ErrorType"].asString();
if(!valueAlarmsAlarmInfo["DeviceMac"].isNull())
alarmsObject.deviceMac = valueAlarmsAlarmInfo["DeviceMac"].asString();
if(!valueAlarmsAlarmInfo["AlarmId"].isNull())
alarmsObject.alarmId = valueAlarmsAlarmInfo["AlarmId"].asString();
if(!valueAlarmsAlarmInfo["RetryGmtCreate"].isNull())
alarmsObject.retryGmtCreate = valueAlarmsAlarmInfo["RetryGmtCreate"].asString();
if(!valueAlarmsAlarmInfo["RetryGmtModified"].isNull())
alarmsObject.retryGmtModified = valueAlarmsAlarmInfo["RetryGmtModified"].asString();
if(!valueAlarmsAlarmInfo["ItemBarCode"].isNull())
alarmsObject.itemBarCode = valueAlarmsAlarmInfo["ItemBarCode"].asString();
if(!valueAlarmsAlarmInfo["RetryTimes"].isNull())
alarmsObject.retryTimes = std::stol(valueAlarmsAlarmInfo["RetryTimes"].asString());
if(!valueAlarmsAlarmInfo["DealTime"].isNull())
alarmsObject.dealTime = valueAlarmsAlarmInfo["DealTime"].asString();
if(!valueAlarmsAlarmInfo["Vendor"].isNull())
alarmsObject.vendor = valueAlarmsAlarmInfo["Vendor"].asString();
if(!valueAlarmsAlarmInfo["Model"].isNull())
alarmsObject.model = valueAlarmsAlarmInfo["Model"].asString();
if(!valueAlarmsAlarmInfo["AlarmType"].isNull())
alarmsObject.alarmType = valueAlarmsAlarmInfo["AlarmType"].asString();
if(!valueAlarmsAlarmInfo["AlarmStatus"].isNull())
alarmsObject.alarmStatus = valueAlarmsAlarmInfo["AlarmStatus"].asString();
alarms_.push_back(alarmsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -97,16 +107,16 @@ int DescribeAlarmsResult::getTotalCount()const
return totalCount_;
}
std::string DescribeAlarmsResult::getMessage()const
{
return message_;
}
int DescribeAlarmsResult::getPageSize()const
{
return pageSize_;
}
std::string DescribeAlarmsResult::getMessage()const
{
return message_;
}
int DescribeAlarmsResult::getPageNumber()const
{
return pageNumber_;
@@ -117,11 +127,31 @@ std::vector<DescribeAlarmsResult::AlarmInfo> DescribeAlarmsResult::getAlarms()co
return alarms_;
}
std::string DescribeAlarmsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeAlarmsResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeAlarmsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeAlarmsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeAlarmsResult::getCode()const
{
return code_;
}
bool DescribeAlarmsResult::getSuccess()const
{
return success_;

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DescribeApDevicesRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeApDevicesRequest;
DescribeApDevicesRequest::DescribeApDevicesRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeApDevices")
{
setMethod(HttpRequest::Method::Post);
}
DescribeApDevicesRequest::~DescribeApDevicesRequest()
{}
std::string DescribeApDevicesRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeApDevicesRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeApDevicesRequest::getApMac()const
{
return apMac_;
}
void DescribeApDevicesRequest::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setBodyParameter("ApMac", apMac);
}
std::string DescribeApDevicesRequest::getStoreId()const
{
return storeId_;
}
void DescribeApDevicesRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int DescribeApDevicesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeApDevicesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
int DescribeApDevicesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeApDevicesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeApDevicesRequest::getModel()const
{
return model_;
}
void DescribeApDevicesRequest::setModel(const std::string& model)
{
model_ = model;
setBodyParameter("Model", model);
}
bool DescribeApDevicesRequest::getBeActivate()const
{
return beActivate_;
}
void DescribeApDevicesRequest::setBeActivate(bool beActivate)
{
beActivate_ = beActivate;
setBodyParameter("BeActivate", beActivate ? "true" : "false");
}
bool DescribeApDevicesRequest::getStatus()const
{
return status_;
}
void DescribeApDevicesRequest::setStatus(bool status)
{
status_ = status;
setBodyParameter("Status", status ? "true" : "false");
}

View File

@@ -0,0 +1,137 @@
/*
* 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/cloudesl/model/DescribeApDevicesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeApDevicesResult::DescribeApDevicesResult() :
ServiceResult()
{}
DescribeApDevicesResult::DescribeApDevicesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeApDevicesResult::~DescribeApDevicesResult()
{}
void DescribeApDevicesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApDevicesNode = value["ApDevices"]["ApInfo"];
for (auto valueApDevicesApInfo : allApDevicesNode)
{
ApInfo apDevicesObject;
if(!valueApDevicesApInfo["Mac"].isNull())
apDevicesObject.mac = valueApDevicesApInfo["Mac"].asString();
if(!valueApDevicesApInfo["Status"].isNull())
apDevicesObject.status = valueApDevicesApInfo["Status"].asString() == "true";
if(!valueApDevicesApInfo["Model"].isNull())
apDevicesObject.model = valueApDevicesApInfo["Model"].asString();
if(!valueApDevicesApInfo["Remark"].isNull())
apDevicesObject.remark = valueApDevicesApInfo["Remark"].asString();
if(!valueApDevicesApInfo["StoreId"].isNull())
apDevicesObject.storeId = valueApDevicesApInfo["StoreId"].asString();
if(!valueApDevicesApInfo["BeActivate"].isNull())
apDevicesObject.beActivate = valueApDevicesApInfo["BeActivate"].asString() == "true";
apDevices_.push_back(apDevicesObject);
}
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeApDevicesResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribeApDevicesResult::getMessage()const
{
return message_;
}
int DescribeApDevicesResult::getPageSize()const
{
return pageSize_;
}
int DescribeApDevicesResult::getPageNumber()const
{
return pageNumber_;
}
std::string DescribeApDevicesResult::getDynamicCode()const
{
return dynamicCode_;
}
std::vector<DescribeApDevicesResult::ApInfo> DescribeApDevicesResult::getApDevices()const
{
return apDevices_;
}
std::string DescribeApDevicesResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeApDevicesResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeApDevicesResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeApDevicesResult::getCode()const
{
return code_;
}
bool DescribeApDevicesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DescribeBindersRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeBindersRequest;
DescribeBindersRequest::DescribeBindersRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeBinders")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBindersRequest::~DescribeBindersRequest()
{}
std::string DescribeBindersRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeBindersRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeBindersRequest::getStoreId()const
{
return storeId_;
}
void DescribeBindersRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int DescribeBindersRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeBindersRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeBindersRequest::getEslBarCode()const
{
return eslBarCode_;
}
void DescribeBindersRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setBodyParameter("EslBarCode", eslBarCode);
}
int DescribeBindersRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBindersRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeBindersRequest::getItemBarCode()const
{
return itemBarCode_;
}
void DescribeBindersRequest::setItemBarCode(const std::string& itemBarCode)
{
itemBarCode_ = itemBarCode;
setBodyParameter("ItemBarCode", itemBarCode);
}
std::string DescribeBindersRequest::getItemTitle()const
{
return itemTitle_;
}
void DescribeBindersRequest::setItemTitle(const std::string& itemTitle)
{
itemTitle_ = itemTitle;
setBodyParameter("ItemTitle", itemTitle);
}

View File

@@ -0,0 +1,169 @@
/*
* 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/cloudesl/model/DescribeBindersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeBindersResult::DescribeBindersResult() :
ServiceResult()
{}
DescribeBindersResult::DescribeBindersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBindersResult::~DescribeBindersResult()
{}
void DescribeBindersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEslItemBindInfosNode = value["EslItemBindInfos"]["EslItemBindInfo"];
for (auto valueEslItemBindInfosEslItemBindInfo : allEslItemBindInfosNode)
{
EslItemBindInfo eslItemBindInfosObject;
if(!valueEslItemBindInfosEslItemBindInfo["PromotionText"].isNull())
eslItemBindInfosObject.promotionText = valueEslItemBindInfosEslItemBindInfo["PromotionText"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["BindId"].isNull())
eslItemBindInfosObject.bindId = valueEslItemBindInfosEslItemBindInfo["BindId"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["StoreId"].isNull())
eslItemBindInfosObject.storeId = valueEslItemBindInfosEslItemBindInfo["StoreId"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["TemplateId"].isNull())
eslItemBindInfosObject.templateId = valueEslItemBindInfosEslItemBindInfo["TemplateId"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["EslPic"].isNull())
eslItemBindInfosObject.eslPic = valueEslItemBindInfosEslItemBindInfo["EslPic"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["EslStatus"].isNull())
eslItemBindInfosObject.eslStatus = valueEslItemBindInfosEslItemBindInfo["EslStatus"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["ItemTitle"].isNull())
eslItemBindInfosObject.itemTitle = valueEslItemBindInfosEslItemBindInfo["ItemTitle"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["OriginalPrice"].isNull())
eslItemBindInfosObject.originalPrice = valueEslItemBindInfosEslItemBindInfo["OriginalPrice"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["TemplateSceneId"].isNull())
eslItemBindInfosObject.templateSceneId = valueEslItemBindInfosEslItemBindInfo["TemplateSceneId"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["GmtModified"].isNull())
eslItemBindInfosObject.gmtModified = valueEslItemBindInfosEslItemBindInfo["GmtModified"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["ActionPrice"].isNull())
eslItemBindInfosObject.actionPrice = valueEslItemBindInfosEslItemBindInfo["ActionPrice"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["PriceUnit"].isNull())
eslItemBindInfosObject.priceUnit = valueEslItemBindInfosEslItemBindInfo["PriceUnit"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["EslConnectAp"].isNull())
eslItemBindInfosObject.eslConnectAp = valueEslItemBindInfosEslItemBindInfo["EslConnectAp"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["SkuId"].isNull())
eslItemBindInfosObject.skuId = valueEslItemBindInfosEslItemBindInfo["SkuId"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["EslBarCode"].isNull())
eslItemBindInfosObject.eslBarCode = valueEslItemBindInfosEslItemBindInfo["EslBarCode"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["ItemShortTitle"].isNull())
eslItemBindInfosObject.itemShortTitle = valueEslItemBindInfosEslItemBindInfo["ItemShortTitle"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["BePromotion"].isNull())
eslItemBindInfosObject.bePromotion = valueEslItemBindInfosEslItemBindInfo["BePromotion"].asString() == "true";
if(!valueEslItemBindInfosEslItemBindInfo["EslModel"].isNull())
eslItemBindInfosObject.eslModel = valueEslItemBindInfosEslItemBindInfo["EslModel"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["ItemBarCode"].isNull())
eslItemBindInfosObject.itemBarCode = valueEslItemBindInfosEslItemBindInfo["ItemBarCode"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["ItemId"].isNull())
eslItemBindInfosObject.itemId = valueEslItemBindInfosEslItemBindInfo["ItemId"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["PromotionStart"].isNull())
eslItemBindInfosObject.promotionStart = valueEslItemBindInfosEslItemBindInfo["PromotionStart"].asString();
if(!valueEslItemBindInfosEslItemBindInfo["PromotionEnd"].isNull())
eslItemBindInfosObject.promotionEnd = valueEslItemBindInfosEslItemBindInfo["PromotionEnd"].asString();
eslItemBindInfos_.push_back(eslItemBindInfosObject);
}
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int DescribeBindersResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribeBindersResult::getMessage()const
{
return message_;
}
int DescribeBindersResult::getPageSize()const
{
return pageSize_;
}
int DescribeBindersResult::getPageNumber()const
{
return pageNumber_;
}
std::string DescribeBindersResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeBindersResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeBindersResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeBindersResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeBindersResult::getCode()const
{
return code_;
}
bool DescribeBindersResult::getSuccess()const
{
return success_;
}
std::vector<DescribeBindersResult::EslItemBindInfo> DescribeBindersResult::getEslItemBindInfos()const
{
return eslItemBindInfos_;
}

View File

@@ -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 <alibabacloud/cloudesl/model/DescribeClientPackageRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeClientPackageRequest;
DescribeClientPackageRequest::DescribeClientPackageRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeClientPackage")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClientPackageRequest::~DescribeClientPackageRequest()
{}
std::string DescribeClientPackageRequest::getClientType()const
{
return clientType_;
}
void DescribeClientPackageRequest::setClientType(const std::string& clientType)
{
clientType_ = clientType;
setBodyParameter("ClientType", clientType);
}
std::string DescribeClientPackageRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeClientPackageRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}

View File

@@ -0,0 +1,121 @@
/*
* 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/cloudesl/model/DescribeClientPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeClientPackageResult::DescribeClientPackageResult() :
ServiceResult()
{}
DescribeClientPackageResult::DescribeClientPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClientPackageResult::~DescribeClientPackageResult()
{}
void DescribeClientPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["UpdateType"].isNull())
updateType_ = value["UpdateType"].asString();
if(!value["Url"].isNull())
url_ = value["Url"].asString();
if(!value["Version"].isNull())
version_ = value["Version"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeClientPackageResult::getDescription()const
{
return description_;
}
std::string DescribeClientPackageResult::getMessage()const
{
return message_;
}
std::string DescribeClientPackageResult::getVersion()const
{
return version_;
}
std::string DescribeClientPackageResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeClientPackageResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeClientPackageResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeClientPackageResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeClientPackageResult::getUpdateType()const
{
return updateType_;
}
std::string DescribeClientPackageResult::getCode()const
{
return code_;
}
std::string DescribeClientPackageResult::getUrl()const
{
return url_;
}
bool DescribeClientPackageResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::DescribeEslDevicesRequest;
DescribeEslDevicesRequest::DescribeEslDevicesRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DescribeEslDevices")
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeEslDevices")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,15 +27,15 @@ DescribeEslDevicesRequest::DescribeEslDevicesRequest() :
DescribeEslDevicesRequest::~DescribeEslDevicesRequest()
{}
std::string DescribeEslDevicesRequest::getStoreId()const
std::string DescribeEslDevicesRequest::getExtraParams()const
{
return storeId_;
return extraParams_;
}
void DescribeEslDevicesRequest::setStoreId(const std::string& storeId)
void DescribeEslDevicesRequest::setExtraParams(const std::string& extraParams)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeEslDevicesRequest::getType()const
@@ -46,18 +46,18 @@ std::string DescribeEslDevicesRequest::getType()const
void DescribeEslDevicesRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
setBodyParameter("Type", type);
}
std::string DescribeEslDevicesRequest::getMac()const
std::string DescribeEslDevicesRequest::getStoreId()const
{
return mac_;
return storeId_;
}
void DescribeEslDevicesRequest::setMac(const std::string& mac)
void DescribeEslDevicesRequest::setStoreId(const std::string& storeId)
{
mac_ = mac;
setParameter("Mac", mac);
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int DescribeEslDevicesRequest::getPageNumber()const
@@ -68,7 +68,7 @@ int DescribeEslDevicesRequest::getPageNumber()const
void DescribeEslDevicesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeEslDevicesRequest::getEslBarCode()const
@@ -79,18 +79,7 @@ std::string DescribeEslDevicesRequest::getEslBarCode()const
void DescribeEslDevicesRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setParameter("EslBarCode", eslBarCode);
}
std::string DescribeEslDevicesRequest::getVendor()const
{
return vendor_;
}
void DescribeEslDevicesRequest::setVendor(const std::string& vendor)
{
vendor_ = vendor;
setParameter("Vendor", vendor);
setBodyParameter("EslBarCode", eslBarCode);
}
int DescribeEslDevicesRequest::getPageSize()const
@@ -101,18 +90,7 @@ int DescribeEslDevicesRequest::getPageSize()const
void DescribeEslDevicesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeEslDevicesRequest::getItemBarCode()const
{
return itemBarCode_;
}
void DescribeEslDevicesRequest::setItemBarCode(const std::string& itemBarCode)
{
itemBarCode_ = itemBarCode;
setParameter("ItemBarCode", itemBarCode);
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeEslDevicesRequest::getEslStatus()const
@@ -123,7 +101,7 @@ std::string DescribeEslDevicesRequest::getEslStatus()const
void DescribeEslDevicesRequest::setEslStatus(const std::string& eslStatus)
{
eslStatus_ = eslStatus;
setParameter("EslStatus", eslStatus);
setBodyParameter("EslStatus", eslStatus);
}
int DescribeEslDevicesRequest::getToBatteryLevel()const
@@ -134,7 +112,7 @@ int DescribeEslDevicesRequest::getToBatteryLevel()const
void DescribeEslDevicesRequest::setToBatteryLevel(int toBatteryLevel)
{
toBatteryLevel_ = toBatteryLevel;
setParameter("ToBatteryLevel", std::to_string(toBatteryLevel));
setBodyParameter("ToBatteryLevel", std::to_string(toBatteryLevel));
}
int DescribeEslDevicesRequest::getFromBatteryLevel()const
@@ -145,28 +123,6 @@ int DescribeEslDevicesRequest::getFromBatteryLevel()const
void DescribeEslDevicesRequest::setFromBatteryLevel(int fromBatteryLevel)
{
fromBatteryLevel_ = fromBatteryLevel;
setParameter("FromBatteryLevel", std::to_string(fromBatteryLevel));
}
std::string DescribeEslDevicesRequest::getShelfCode()const
{
return shelfCode_;
}
void DescribeEslDevicesRequest::setShelfCode(const std::string& shelfCode)
{
shelfCode_ = shelfCode;
setParameter("ShelfCode", shelfCode);
}
bool DescribeEslDevicesRequest::getBeBind()const
{
return beBind_;
}
void DescribeEslDevicesRequest::setBeBind(bool beBind)
{
beBind_ = beBind;
setParameter("BeBind", beBind ? "true" : "false");
setBodyParameter("FromBatteryLevel", std::to_string(fromBatteryLevel));
}

View File

@@ -43,62 +43,48 @@ void DescribeEslDevicesResult::parse(const std::string &payload)
for (auto valueEslDevicesEslDeviceInfo : allEslDevicesNode)
{
EslDeviceInfo eslDevicesObject;
if(!valueEslDevicesEslDeviceInfo["CompanyId"].isNull())
eslDevicesObject.companyId = valueEslDevicesEslDeviceInfo["CompanyId"].asString();
if(!valueEslDevicesEslDeviceInfo["StoreId"].isNull())
eslDevicesObject.storeId = valueEslDevicesEslDeviceInfo["StoreId"].asString();
if(!valueEslDevicesEslDeviceInfo["Mac"].isNull())
eslDevicesObject.mac = valueEslDevicesEslDeviceInfo["Mac"].asString();
if(!valueEslDevicesEslDeviceInfo["EslBarCode"].isNull())
eslDevicesObject.eslBarCode = valueEslDevicesEslDeviceInfo["EslBarCode"].asString();
if(!valueEslDevicesEslDeviceInfo["ItemBarCode"].isNull())
eslDevicesObject.itemBarCode = valueEslDevicesEslDeviceInfo["ItemBarCode"].asString();
if(!valueEslDevicesEslDeviceInfo["Vendor"].isNull())
eslDevicesObject.vendor = valueEslDevicesEslDeviceInfo["Vendor"].asString();
if(!valueEslDevicesEslDeviceInfo["ConnectAp"].isNull())
eslDevicesObject.connectAp = valueEslDevicesEslDeviceInfo["ConnectAp"].asString();
if(!valueEslDevicesEslDeviceInfo["Type"].isNull())
eslDevicesObject.type = valueEslDevicesEslDeviceInfo["Type"].asString();
if(!valueEslDevicesEslDeviceInfo["Model"].isNull())
eslDevicesObject.model = valueEslDevicesEslDeviceInfo["Model"].asString();
if(!valueEslDevicesEslDeviceInfo["BeBind"].isNull())
eslDevicesObject.beBind = valueEslDevicesEslDeviceInfo["BeBind"].asString();
if(!valueEslDevicesEslDeviceInfo["ScreenWidth"].isNull())
eslDevicesObject.screenWidth = valueEslDevicesEslDeviceInfo["ScreenWidth"].asString();
if(!valueEslDevicesEslDeviceInfo["ScreenHeight"].isNull())
eslDevicesObject.screenHeight = valueEslDevicesEslDeviceInfo["ScreenHeight"].asString();
if(!valueEslDevicesEslDeviceInfo["LastCommunicateTime"].isNull())
eslDevicesObject.lastCommunicateTime = valueEslDevicesEslDeviceInfo["LastCommunicateTime"].asString();
if(!valueEslDevicesEslDeviceInfo["BatteryLevel"].isNull())
eslDevicesObject.batteryLevel = std::stoi(valueEslDevicesEslDeviceInfo["BatteryLevel"].asString());
if(!valueEslDevicesEslDeviceInfo["Model"].isNull())
eslDevicesObject.model = valueEslDevicesEslDeviceInfo["Model"].asString();
if(!valueEslDevicesEslDeviceInfo["EslStatus"].isNull())
eslDevicesObject.eslStatus = valueEslDevicesEslDeviceInfo["EslStatus"].asString();
if(!valueEslDevicesEslDeviceInfo["ShelfCode"].isNull())
eslDevicesObject.shelfCode = valueEslDevicesEslDeviceInfo["ShelfCode"].asString();
if(!valueEslDevicesEslDeviceInfo["PositionCode"].isNull())
eslDevicesObject.positionCode = valueEslDevicesEslDeviceInfo["PositionCode"].asString();
if(!valueEslDevicesEslDeviceInfo["ItemId"].isNull())
eslDevicesObject.itemId = std::stol(valueEslDevicesEslDeviceInfo["ItemId"].asString());
if(!valueEslDevicesEslDeviceInfo["ItemTitle"].isNull())
eslDevicesObject.itemTitle = valueEslDevicesEslDeviceInfo["ItemTitle"].asString();
if(!valueEslDevicesEslDeviceInfo["ItemActionPrice"].isNull())
eslDevicesObject.itemActionPrice = std::stoi(valueEslDevicesEslDeviceInfo["ItemActionPrice"].asString());
if(!valueEslDevicesEslDeviceInfo["ItemPriceUnit"].isNull())
eslDevicesObject.itemPriceUnit = valueEslDevicesEslDeviceInfo["ItemPriceUnit"].asString();
if(!valueEslDevicesEslDeviceInfo["StoreId"].isNull())
eslDevicesObject.storeId = valueEslDevicesEslDeviceInfo["StoreId"].asString();
if(!valueEslDevicesEslDeviceInfo["EslBarCode"].isNull())
eslDevicesObject.eslBarCode = valueEslDevicesEslDeviceInfo["EslBarCode"].asString();
if(!valueEslDevicesEslDeviceInfo["Type"].isNull())
eslDevicesObject.type = valueEslDevicesEslDeviceInfo["Type"].asString();
if(!valueEslDevicesEslDeviceInfo["Mac"].isNull())
eslDevicesObject.mac = valueEslDevicesEslDeviceInfo["Mac"].asString();
if(!valueEslDevicesEslDeviceInfo["BatteryLevel"].isNull())
eslDevicesObject.batteryLevel = std::stoi(valueEslDevicesEslDeviceInfo["BatteryLevel"].asString());
if(!valueEslDevicesEslDeviceInfo["ScreenWidth"].isNull())
eslDevicesObject.screenWidth = std::stoi(valueEslDevicesEslDeviceInfo["ScreenWidth"].asString());
if(!valueEslDevicesEslDeviceInfo["ScreenHeight"].isNull())
eslDevicesObject.screenHeight = std::stoi(valueEslDevicesEslDeviceInfo["ScreenHeight"].asString());
eslDevices_.push_back(eslDevicesObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -107,16 +93,16 @@ int DescribeEslDevicesResult::getTotalCount()const
return totalCount_;
}
std::string DescribeEslDevicesResult::getMessage()const
{
return message_;
}
int DescribeEslDevicesResult::getPageSize()const
{
return pageSize_;
}
std::string DescribeEslDevicesResult::getMessage()const
{
return message_;
}
int DescribeEslDevicesResult::getPageNumber()const
{
return pageNumber_;
@@ -127,11 +113,31 @@ std::vector<DescribeEslDevicesResult::EslDeviceInfo> DescribeEslDevicesResult::g
return eslDevices_;
}
std::string DescribeEslDevicesResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeEslDevicesResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeEslDevicesResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeEslDevicesResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeEslDevicesResult::getCode()const
{
return code_;
}
bool DescribeEslDevicesResult::getSuccess()const
{
return success_;

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::DescribeItemsRequest;
DescribeItemsRequest::DescribeItemsRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DescribeItems")
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeItems")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,17 @@ DescribeItemsRequest::DescribeItemsRequest() :
DescribeItemsRequest::~DescribeItemsRequest()
{}
std::string DescribeItemsRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeItemsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeItemsRequest::getStoreId()const
{
return storeId_;
@@ -35,7 +46,7 @@ std::string DescribeItemsRequest::getStoreId()const
void DescribeItemsRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
int DescribeItemsRequest::getPageNumber()const
@@ -46,18 +57,18 @@ int DescribeItemsRequest::getPageNumber()const
void DescribeItemsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
long DescribeItemsRequest::getItemId()const
std::string DescribeItemsRequest::getItemId()const
{
return itemId_;
}
void DescribeItemsRequest::setItemId(long itemId)
void DescribeItemsRequest::setItemId(const std::string& itemId)
{
itemId_ = itemId;
setParameter("ItemId", std::to_string(itemId));
setBodyParameter("ItemId", itemId);
}
int DescribeItemsRequest::getPageSize()const
@@ -68,7 +79,7 @@ int DescribeItemsRequest::getPageSize()const
void DescribeItemsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeItemsRequest::getItemBarCode()const
@@ -79,7 +90,7 @@ std::string DescribeItemsRequest::getItemBarCode()const
void DescribeItemsRequest::setItemBarCode(const std::string& itemBarCode)
{
itemBarCode_ = itemBarCode;
setParameter("ItemBarCode", itemBarCode);
setBodyParameter("ItemBarCode", itemBarCode);
}
bool DescribeItemsRequest::getBePromotion()const
@@ -90,7 +101,7 @@ bool DescribeItemsRequest::getBePromotion()const
void DescribeItemsRequest::setBePromotion(bool bePromotion)
{
bePromotion_ = bePromotion;
setParameter("BePromotion", bePromotion ? "true" : "false");
setBodyParameter("BePromotion", bePromotion ? "true" : "false");
}
std::string DescribeItemsRequest::getItemTitle()const
@@ -101,18 +112,7 @@ std::string DescribeItemsRequest::getItemTitle()const
void DescribeItemsRequest::setItemTitle(const std::string& itemTitle)
{
itemTitle_ = itemTitle;
setParameter("ItemTitle", itemTitle);
}
std::string DescribeItemsRequest::getShelfCode()const
{
return shelfCode_;
}
void DescribeItemsRequest::setShelfCode(const std::string& shelfCode)
{
shelfCode_ = shelfCode;
setParameter("ShelfCode", shelfCode);
setBodyParameter("ItemTitle", itemTitle);
}
std::string DescribeItemsRequest::getSkuId()const
@@ -123,6 +123,6 @@ std::string DescribeItemsRequest::getSkuId()const
void DescribeItemsRequest::setSkuId(const std::string& skuId)
{
skuId_ = skuId;
setParameter("SkuId", skuId);
setBodyParameter("SkuId", skuId);
}

View File

@@ -43,104 +43,136 @@ void DescribeItemsResult::parse(const std::string &payload)
for (auto valueItemsItemInfo : allItemsNode)
{
ItemInfo itemsObject;
if(!valueItemsItemInfo["CompanyId"].isNull())
itemsObject.companyId = valueItemsItemInfo["CompanyId"].asString();
if(!valueItemsItemInfo["StoreId"].isNull())
itemsObject.storeId = valueItemsItemInfo["StoreId"].asString();
if(!valueItemsItemInfo["PriceUnit"].isNull())
itemsObject.priceUnit = valueItemsItemInfo["PriceUnit"].asString();
if(!valueItemsItemInfo["ActionPrice"].isNull())
itemsObject.actionPrice = std::stoi(valueItemsItemInfo["ActionPrice"].asString());
if(!valueItemsItemInfo["ItemBarCode"].isNull())
itemsObject.itemBarCode = valueItemsItemInfo["ItemBarCode"].asString();
if(!valueItemsItemInfo["ItemTitle"].isNull())
itemsObject.itemTitle = valueItemsItemInfo["ItemTitle"].asString();
if(!valueItemsItemInfo["ItemId"].isNull())
itemsObject.itemId = std::stol(valueItemsItemInfo["ItemId"].asString());
if(!valueItemsItemInfo["ModelNumber"].isNull())
itemsObject.modelNumber = valueItemsItemInfo["ModelNumber"].asString();
if(!valueItemsItemInfo["BrandName"].isNull())
itemsObject.brandName = valueItemsItemInfo["BrandName"].asString();
if(!valueItemsItemInfo["SaleSpec"].isNull())
itemsObject.saleSpec = valueItemsItemInfo["SaleSpec"].asString();
if(!valueItemsItemInfo["CategoryName"].isNull())
itemsObject.categoryName = valueItemsItemInfo["CategoryName"].asString();
if(!valueItemsItemInfo["Rank"].isNull())
itemsObject.rank = valueItemsItemInfo["Rank"].asString();
if(!valueItemsItemInfo["EnergyEfficiency"].isNull())
itemsObject.energyEfficiency = valueItemsItemInfo["EnergyEfficiency"].asString();
if(!valueItemsItemInfo["SkuId"].isNull())
itemsObject.skuId = valueItemsItemInfo["SkuId"].asString();
if(!valueItemsItemInfo["PromotionStart"].isNull())
itemsObject.promotionStart = valueItemsItemInfo["PromotionStart"].asString();
if(!valueItemsItemInfo["CustomizeFeatureO"].isNull())
itemsObject.customizeFeatureO = valueItemsItemInfo["CustomizeFeatureO"].asString();
if(!valueItemsItemInfo["Manufacturer"].isNull())
itemsObject.manufacturer = valueItemsItemInfo["Manufacturer"].asString();
if(!valueItemsItemInfo["CustomizeFeatureM"].isNull())
itemsObject.customizeFeatureM = valueItemsItemInfo["CustomizeFeatureM"].asString();
if(!valueItemsItemInfo["CustomizeFeatureN"].isNull())
itemsObject.customizeFeatureN = valueItemsItemInfo["CustomizeFeatureN"].asString();
if(!valueItemsItemInfo["CustomizeFeatureK"].isNull())
itemsObject.customizeFeatureK = valueItemsItemInfo["CustomizeFeatureK"].asString();
if(!valueItemsItemInfo["CustomizeFeatureL"].isNull())
itemsObject.customizeFeatureL = valueItemsItemInfo["CustomizeFeatureL"].asString();
if(!valueItemsItemInfo["PromotionEnd"].isNull())
itemsObject.promotionEnd = valueItemsItemInfo["PromotionEnd"].asString();
if(!valueItemsItemInfo["PromotionText"].isNull())
itemsObject.promotionText = valueItemsItemInfo["PromotionText"].asString();
if(!valueItemsItemInfo["PromotionReason"].isNull())
itemsObject.promotionReason = valueItemsItemInfo["PromotionReason"].asString();
if(!valueItemsItemInfo["BePromotion"].isNull())
itemsObject.bePromotion = valueItemsItemInfo["BePromotion"].asString() == "true";
if(!valueItemsItemInfo["ItemQrCode"].isNull())
itemsObject.itemQrCode = valueItemsItemInfo["ItemQrCode"].asString();
if(!valueItemsItemInfo["OriginalPrice"].isNull())
itemsObject.originalPrice = std::stoi(valueItemsItemInfo["OriginalPrice"].asString());
if(!valueItemsItemInfo["MemberPrice"].isNull())
itemsObject.memberPrice = std::stoi(valueItemsItemInfo["MemberPrice"].asString());
if(!valueItemsItemInfo["SuggestPrice"].isNull())
itemsObject.suggestPrice = std::stoi(valueItemsItemInfo["SuggestPrice"].asString());
if(!valueItemsItemInfo["ItemShortTitle"].isNull())
itemsObject.itemShortTitle = valueItemsItemInfo["ItemShortTitle"].asString();
if(!valueItemsItemInfo["OptionGroups"].isNull())
itemsObject.optionGroups = valueItemsItemInfo["OptionGroups"].asString();
if(!valueItemsItemInfo["ProductionPlace"].isNull())
itemsObject.productionPlace = valueItemsItemInfo["ProductionPlace"].asString();
if(!valueItemsItemInfo["PositionCode"].isNull())
itemsObject.positionCode = valueItemsItemInfo["PositionCode"].asString();
if(!valueItemsItemInfo["ExtraAttribute"].isNull())
itemsObject.extraAttribute = valueItemsItemInfo["ExtraAttribute"].asString();
if(!valueItemsItemInfo["BeSourceCode"].isNull())
itemsObject.beSourceCode = valueItemsItemInfo["BeSourceCode"].asString() == "true";
if(!valueItemsItemInfo["SourceCode"].isNull())
itemsObject.sourceCode = valueItemsItemInfo["SourceCode"].asString();
if(!valueItemsItemInfo["ForestFirstId"].isNull())
itemsObject.forestFirstId = valueItemsItemInfo["ForestFirstId"].asString();
if(!valueItemsItemInfo["ForestSecondId"].isNull())
itemsObject.forestSecondId = valueItemsItemInfo["ForestSecondId"].asString();
if(!valueItemsItemInfo["CustomizeFeatureA"].isNull())
itemsObject.customizeFeatureA = valueItemsItemInfo["CustomizeFeatureA"].asString();
if(!valueItemsItemInfo["CustomizeFeatureB"].isNull())
itemsObject.customizeFeatureB = valueItemsItemInfo["CustomizeFeatureB"].asString();
if(!valueItemsItemInfo["CustomizeFeatureC"].isNull())
itemsObject.customizeFeatureC = valueItemsItemInfo["CustomizeFeatureC"].asString();
if(!valueItemsItemInfo["CustomizeFeatureD"].isNull())
itemsObject.customizeFeatureD = valueItemsItemInfo["CustomizeFeatureD"].asString();
if(!valueItemsItemInfo["CustomizeFeatureI"].isNull())
itemsObject.customizeFeatureI = valueItemsItemInfo["CustomizeFeatureI"].asString();
if(!valueItemsItemInfo["ItemTitle"].isNull())
itemsObject.itemTitle = valueItemsItemInfo["ItemTitle"].asString();
if(!valueItemsItemInfo["CustomizeFeatureJ"].isNull())
itemsObject.customizeFeatureJ = valueItemsItemInfo["CustomizeFeatureJ"].asString();
if(!valueItemsItemInfo["CustomizeFeatureG"].isNull())
itemsObject.customizeFeatureG = valueItemsItemInfo["CustomizeFeatureG"].asString();
if(!valueItemsItemInfo["SaleSpec"].isNull())
itemsObject.saleSpec = valueItemsItemInfo["SaleSpec"].asString();
if(!valueItemsItemInfo["CustomizeFeatureH"].isNull())
itemsObject.customizeFeatureH = valueItemsItemInfo["CustomizeFeatureH"].asString();
if(!valueItemsItemInfo["CustomizeFeatureE"].isNull())
itemsObject.customizeFeatureE = valueItemsItemInfo["CustomizeFeatureE"].asString();
if(!valueItemsItemInfo["CustomizeFeatureF"].isNull())
itemsObject.customizeFeatureF = valueItemsItemInfo["CustomizeFeatureF"].asString();
if(!valueItemsItemInfo["CustomizeFeatureG"].isNull())
itemsObject.customizeFeatureG = valueItemsItemInfo["CustomizeFeatureG"].asString();
if(!valueItemsItemInfo["CustomizeFeatureH"].isNull())
itemsObject.customizeFeatureH = valueItemsItemInfo["CustomizeFeatureH"].asString();
if(!valueItemsItemInfo["CustomizeFeatureI"].isNull())
itemsObject.customizeFeatureI = valueItemsItemInfo["CustomizeFeatureI"].asString();
if(!valueItemsItemInfo["CustomizeFeatureJ"].isNull())
itemsObject.customizeFeatureJ = valueItemsItemInfo["CustomizeFeatureJ"].asString();
if(!valueItemsItemInfo["CustomizeFeatureC"].isNull())
itemsObject.customizeFeatureC = valueItemsItemInfo["CustomizeFeatureC"].asString();
if(!valueItemsItemInfo["CustomizeFeatureD"].isNull())
itemsObject.customizeFeatureD = valueItemsItemInfo["CustomizeFeatureD"].asString();
if(!valueItemsItemInfo["CustomizeFeatureA"].isNull())
itemsObject.customizeFeatureA = valueItemsItemInfo["CustomizeFeatureA"].asString();
if(!valueItemsItemInfo["CustomizeFeatureB"].isNull())
itemsObject.customizeFeatureB = valueItemsItemInfo["CustomizeFeatureB"].asString();
if(!valueItemsItemInfo["TaxFee"].isNull())
itemsObject.taxFee = valueItemsItemInfo["TaxFee"].asString();
if(!valueItemsItemInfo["PromotionText"].isNull())
itemsObject.promotionText = valueItemsItemInfo["PromotionText"].asString();
if(!valueItemsItemInfo["MemberPrice"].isNull())
itemsObject.memberPrice = std::stoi(valueItemsItemInfo["MemberPrice"].asString());
if(!valueItemsItemInfo["SupplierName"].isNull())
itemsObject.supplierName = valueItemsItemInfo["SupplierName"].asString();
if(!valueItemsItemInfo["ForestFirstId"].isNull())
itemsObject.forestFirstId = valueItemsItemInfo["ForestFirstId"].asString();
if(!valueItemsItemInfo["ModelNumber"].isNull())
itemsObject.modelNumber = valueItemsItemInfo["ModelNumber"].asString();
if(!valueItemsItemInfo["ItemShortTitle"].isNull())
itemsObject.itemShortTitle = valueItemsItemInfo["ItemShortTitle"].asString();
if(!valueItemsItemInfo["Material"].isNull())
itemsObject.material = valueItemsItemInfo["Material"].asString();
if(!valueItemsItemInfo["BePromotion"].isNull())
itemsObject.bePromotion = valueItemsItemInfo["BePromotion"].asString() == "true";
if(!valueItemsItemInfo["ForestSecondId"].isNull())
itemsObject.forestSecondId = valueItemsItemInfo["ForestSecondId"].asString();
if(!valueItemsItemInfo["BeSourceCode"].isNull())
itemsObject.beSourceCode = valueItemsItemInfo["BeSourceCode"].asString() == "true";
if(!valueItemsItemInfo["SalesPrice"].isNull())
itemsObject.salesPrice = std::stoi(valueItemsItemInfo["SalesPrice"].asString());
if(!valueItemsItemInfo["ItemPicUrl"].isNull())
itemsObject.itemPicUrl = valueItemsItemInfo["ItemPicUrl"].asString();
if(!valueItemsItemInfo["SkuId"].isNull())
itemsObject.skuId = valueItemsItemInfo["SkuId"].asString();
if(!valueItemsItemInfo["SuggestPrice"].isNull())
itemsObject.suggestPrice = std::stoi(valueItemsItemInfo["SuggestPrice"].asString());
if(!valueItemsItemInfo["Rank"].isNull())
itemsObject.rank = valueItemsItemInfo["Rank"].asString();
if(!valueItemsItemInfo["SourceCode"].isNull())
itemsObject.sourceCode = valueItemsItemInfo["SourceCode"].asString();
if(!valueItemsItemInfo["ProductionPlace"].isNull())
itemsObject.productionPlace = valueItemsItemInfo["ProductionPlace"].asString();
if(!valueItemsItemInfo["ItemInfoIndex"].isNull())
itemsObject.itemInfoIndex = std::stoi(valueItemsItemInfo["ItemInfoIndex"].asString());
if(!valueItemsItemInfo["InventoryStatus"].isNull())
itemsObject.inventoryStatus = valueItemsItemInfo["InventoryStatus"].asString();
if(!valueItemsItemInfo["PriceUnit"].isNull())
itemsObject.priceUnit = valueItemsItemInfo["PriceUnit"].asString();
if(!valueItemsItemInfo["ActionPrice"].isNull())
itemsObject.actionPrice = std::stoi(valueItemsItemInfo["ActionPrice"].asString());
if(!valueItemsItemInfo["BrandName"].isNull())
itemsObject.brandName = valueItemsItemInfo["BrandName"].asString();
if(!valueItemsItemInfo["ItemQrCode"].isNull())
itemsObject.itemQrCode = valueItemsItemInfo["ItemQrCode"].asString();
if(!valueItemsItemInfo["PromotionReason"].isNull())
itemsObject.promotionReason = valueItemsItemInfo["PromotionReason"].asString();
if(!valueItemsItemInfo["ItemBarCode"].isNull())
itemsObject.itemBarCode = valueItemsItemInfo["ItemBarCode"].asString();
if(!valueItemsItemInfo["ItemId"].isNull())
itemsObject.itemId = valueItemsItemInfo["ItemId"].asString();
if(!valueItemsItemInfo["PromotionStart"].isNull())
itemsObject.promotionStart = valueItemsItemInfo["PromotionStart"].asString();
if(!valueItemsItemInfo["GmtCreate"].isNull())
itemsObject.gmtCreate = valueItemsItemInfo["GmtCreate"].asString();
if(!valueItemsItemInfo["GmtModified"].isNull())
itemsObject.gmtModified = valueItemsItemInfo["GmtModified"].asString();
if(!valueItemsItemInfo["BeMember"].isNull())
itemsObject.beMember = valueItemsItemInfo["BeMember"].asString() == "true";
items_.push_back(itemsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["TemplateSceneId"].isNull())
templateSceneId_ = value["TemplateSceneId"].asString();
}
@@ -169,11 +201,36 @@ std::vector<DescribeItemsResult::ItemInfo> DescribeItemsResult::getItems()const
return items_;
}
std::string DescribeItemsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeItemsResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeItemsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeItemsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeItemsResult::getTemplateSceneId()const
{
return templateSceneId_;
}
std::string DescribeItemsResult::getCode()const
{
return code_;
}
bool DescribeItemsResult::getSuccess()const
{
return success_;

View File

@@ -0,0 +1,84 @@
/*
* 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/cloudesl/model/DescribePlanogramEslDevicesRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribePlanogramEslDevicesRequest;
DescribePlanogramEslDevicesRequest::DescribePlanogramEslDevicesRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramEslDevices")
{
setMethod(HttpRequest::Method::Post);
}
DescribePlanogramEslDevicesRequest::~DescribePlanogramEslDevicesRequest()
{}
std::string DescribePlanogramEslDevicesRequest::getExtraParams()const
{
return extraParams_;
}
void DescribePlanogramEslDevicesRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribePlanogramEslDevicesRequest::getStoreId()const
{
return storeId_;
}
void DescribePlanogramEslDevicesRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int DescribePlanogramEslDevicesRequest::getLayer()const
{
return layer_;
}
void DescribePlanogramEslDevicesRequest::setLayer(int layer)
{
layer_ = layer;
setBodyParameter("Layer", std::to_string(layer));
}
std::string DescribePlanogramEslDevicesRequest::getEslBarCode()const
{
return eslBarCode_;
}
void DescribePlanogramEslDevicesRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setBodyParameter("EslBarCode", eslBarCode);
}
std::string DescribePlanogramEslDevicesRequest::getShelf()const
{
return shelf_;
}
void DescribePlanogramEslDevicesRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}

View File

@@ -0,0 +1,142 @@
/*
* 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/cloudesl/model/DescribePlanogramEslDevicesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribePlanogramEslDevicesResult::DescribePlanogramEslDevicesResult() :
ServiceResult()
{}
DescribePlanogramEslDevicesResult::DescribePlanogramEslDevicesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePlanogramEslDevicesResult::~DescribePlanogramEslDevicesResult()
{}
void DescribePlanogramEslDevicesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEslDeviceLayerInfosNode = value["EslDeviceLayerInfos"]["EslDeviceLayerInfo"];
for (auto valueEslDeviceLayerInfosEslDeviceLayerInfo : allEslDeviceLayerInfosNode)
{
EslDeviceLayerInfo eslDeviceLayerInfosObject;
if(!valueEslDeviceLayerInfosEslDeviceLayerInfo["Layer"].isNull())
eslDeviceLayerInfosObject.layer = std::stoi(valueEslDeviceLayerInfosEslDeviceLayerInfo["Layer"].asString());
auto allEslDevicePositionInfosNode = valueEslDeviceLayerInfosEslDeviceLayerInfo["EslDevicePositionInfos"]["EslDevicePositionInfo"];
for (auto valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfo : allEslDevicePositionInfosNode)
{
EslDeviceLayerInfo::EslDevicePositionInfo eslDevicePositionInfosObject;
if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfo["Column"].isNull())
eslDevicePositionInfosObject.column = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfo["Column"].asString();
auto allEslDevicePlanogramInfosNode = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfo["EslDevicePlanogramInfos"]["EslDevicePlanogramInfo"];
for (auto valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo : allEslDevicePlanogramInfosNode)
{
EslDeviceLayerInfo::EslDevicePositionInfo::EslDevicePlanogramInfo eslDevicePlanogramInfosObject;
if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["EslBarCode"].isNull())
eslDevicePlanogramInfosObject.eslBarCode = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["EslBarCode"].asString();
if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["EslModel"].isNull())
eslDevicePlanogramInfosObject.eslModel = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["EslModel"].asString();
if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemBarCode"].isNull())
eslDevicePlanogramInfosObject.itemBarCode = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemBarCode"].asString();
if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemTitle"].isNull())
eslDevicePlanogramInfosObject.itemTitle = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemTitle"].asString();
eslDevicePositionInfosObject.eslDevicePlanogramInfos.push_back(eslDevicePlanogramInfosObject);
}
eslDeviceLayerInfosObject.eslDevicePositionInfos.push_back(eslDevicePositionInfosObject);
}
eslDeviceLayerInfos_.push_back(eslDeviceLayerInfosObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Shelf"].isNull())
shelf_ = value["Shelf"].asString();
if(!value["StoreId"].isNull())
storeId_ = value["StoreId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribePlanogramEslDevicesResult::getMessage()const
{
return message_;
}
std::string DescribePlanogramEslDevicesResult::getStoreId()const
{
return storeId_;
}
std::string DescribePlanogramEslDevicesResult::getShelf()const
{
return shelf_;
}
std::string DescribePlanogramEslDevicesResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribePlanogramEslDevicesResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribePlanogramEslDevicesResult::getErrorCode()const
{
return errorCode_;
}
std::vector<DescribePlanogramEslDevicesResult::EslDeviceLayerInfo> DescribePlanogramEslDevicesResult::getEslDeviceLayerInfos()const
{
return eslDeviceLayerInfos_;
}
std::string DescribePlanogramEslDevicesResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribePlanogramEslDevicesResult::getCode()const
{
return code_;
}
bool DescribePlanogramEslDevicesResult::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/cloudesl/model/DescribePlanogramPositionsRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribePlanogramPositionsRequest;
DescribePlanogramPositionsRequest::DescribePlanogramPositionsRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramPositions")
{
setMethod(HttpRequest::Method::Post);
}
DescribePlanogramPositionsRequest::~DescribePlanogramPositionsRequest()
{}
std::string DescribePlanogramPositionsRequest::getExtraParams()const
{
return extraParams_;
}
void DescribePlanogramPositionsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribePlanogramPositionsRequest::getStoreId()const
{
return storeId_;
}
void DescribePlanogramPositionsRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int DescribePlanogramPositionsRequest::getLayer()const
{
return layer_;
}
void DescribePlanogramPositionsRequest::setLayer(int layer)
{
layer_ = layer;
setBodyParameter("Layer", std::to_string(layer));
}
std::string DescribePlanogramPositionsRequest::getShelf()const
{
return shelf_;
}
void DescribePlanogramPositionsRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}

View File

@@ -0,0 +1,151 @@
/*
* 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/cloudesl/model/DescribePlanogramPositionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribePlanogramPositionsResult::DescribePlanogramPositionsResult() :
ServiceResult()
{}
DescribePlanogramPositionsResult::DescribePlanogramPositionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePlanogramPositionsResult::~DescribePlanogramPositionsResult()
{}
void DescribePlanogramPositionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLayerInfosNode = value["LayerInfos"]["LayerInfo"];
for (auto valueLayerInfosLayerInfo : allLayerInfosNode)
{
LayerInfo layerInfosObject;
if(!valueLayerInfosLayerInfo["Layer"].isNull())
layerInfosObject.layer = std::stoi(valueLayerInfosLayerInfo["Layer"].asString());
if(!valueLayerInfosLayerInfo["LayerOrigin"].isNull())
layerInfosObject.layerOrigin = valueLayerInfosLayerInfo["LayerOrigin"].asString();
if(!valueLayerInfosLayerInfo["RailCode"].isNull())
layerInfosObject.railCode = valueLayerInfosLayerInfo["RailCode"].asString();
auto allShelfPositionInfosNode = valueLayerInfosLayerInfo["ShelfPositionInfos"]["ShelfPositionInfo"];
for (auto valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo : allShelfPositionInfosNode)
{
LayerInfo::ShelfPositionInfo shelfPositionInfosObject;
if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Column"].isNull())
shelfPositionInfosObject.column = valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Column"].asString();
if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Depth"].isNull())
shelfPositionInfosObject.depth = std::stof(valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Depth"].asString());
if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Facing"].isNull())
shelfPositionInfosObject.facing = std::stoi(valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Facing"].asString());
if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["ItemBarCode"].isNull())
shelfPositionInfosObject.itemBarCode = valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["ItemBarCode"].asString();
if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["ItemTitle"].isNull())
shelfPositionInfosObject.itemTitle = valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["ItemTitle"].asString();
if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["OffsetFrom"].isNull())
shelfPositionInfosObject.offsetFrom = std::stof(valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["OffsetFrom"].asString());
if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["OffsetTo"].isNull())
shelfPositionInfosObject.offsetTo = std::stof(valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["OffsetTo"].asString());
layerInfosObject.shelfPositionInfos.push_back(shelfPositionInfosObject);
}
layerInfos_.push_back(layerInfosObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Shelf"].isNull())
shelf_ = value["Shelf"].asString();
if(!value["StoreId"].isNull())
storeId_ = value["StoreId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ShelfType"].isNull())
shelfType_ = value["ShelfType"].asString();
}
std::string DescribePlanogramPositionsResult::getMessage()const
{
return message_;
}
std::string DescribePlanogramPositionsResult::getStoreId()const
{
return storeId_;
}
std::string DescribePlanogramPositionsResult::getShelfType()const
{
return shelfType_;
}
std::string DescribePlanogramPositionsResult::getShelf()const
{
return shelf_;
}
std::string DescribePlanogramPositionsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::vector<DescribePlanogramPositionsResult::LayerInfo> DescribePlanogramPositionsResult::getLayerInfos()const
{
return layerInfos_;
}
std::string DescribePlanogramPositionsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribePlanogramPositionsResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribePlanogramPositionsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribePlanogramPositionsResult::getCode()const
{
return code_;
}
bool DescribePlanogramPositionsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DescribePlanogramRailsRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribePlanogramRailsRequest;
DescribePlanogramRailsRequest::DescribePlanogramRailsRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramRails")
{
setMethod(HttpRequest::Method::Post);
}
DescribePlanogramRailsRequest::~DescribePlanogramRailsRequest()
{}
std::string DescribePlanogramRailsRequest::getExtraParams()const
{
return extraParams_;
}
void DescribePlanogramRailsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribePlanogramRailsRequest::getStoreId()const
{
return storeId_;
}
void DescribePlanogramRailsRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int DescribePlanogramRailsRequest::getLayer()const
{
return layer_;
}
void DescribePlanogramRailsRequest::setLayer(int layer)
{
layer_ = layer;
setBodyParameter("Layer", std::to_string(layer));
}
int DescribePlanogramRailsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribePlanogramRailsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
int DescribePlanogramRailsRequest::getPageSize()const
{
return pageSize_;
}
void DescribePlanogramRailsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribePlanogramRailsRequest::getShelf()const
{
return shelf_;
}
void DescribePlanogramRailsRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}
std::string DescribePlanogramRailsRequest::getRailCode()const
{
return railCode_;
}
void DescribePlanogramRailsRequest::setRailCode(const std::string& railCode)
{
railCode_ = railCode;
setBodyParameter("RailCode", railCode);
}

View File

@@ -0,0 +1,140 @@
/*
* 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/cloudesl/model/DescribePlanogramRailsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribePlanogramRailsResult::DescribePlanogramRailsResult() :
ServiceResult()
{}
DescribePlanogramRailsResult::DescribePlanogramRailsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePlanogramRailsResult::~DescribePlanogramRailsResult()
{}
void DescribePlanogramRailsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPlanogramRailInfosNode = value["PlanogramRailInfos"]["PlanogramRailInfo"];
for (auto valuePlanogramRailInfosPlanogramRailInfo : allPlanogramRailInfosNode)
{
PlanogramRailInfo planogramRailInfosObject;
if(!valuePlanogramRailInfosPlanogramRailInfo["Shelf"].isNull())
planogramRailInfosObject.shelf = valuePlanogramRailInfosPlanogramRailInfo["Shelf"].asString();
if(!valuePlanogramRailInfosPlanogramRailInfo["RailCode"].isNull())
planogramRailInfosObject.railCode = valuePlanogramRailInfosPlanogramRailInfo["RailCode"].asString();
if(!valuePlanogramRailInfosPlanogramRailInfo["Layer"].isNull())
planogramRailInfosObject.layer = std::stoi(valuePlanogramRailInfosPlanogramRailInfo["Layer"].asString());
if(!valuePlanogramRailInfosPlanogramRailInfo["GapUnit"].isNull())
planogramRailInfosObject.gapUnit = std::stoi(valuePlanogramRailInfosPlanogramRailInfo["GapUnit"].asString());
planogramRailInfos_.push_back(planogramRailInfosObject);
}
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["StoreId"].isNull())
storeId_ = value["StoreId"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
std::vector<DescribePlanogramRailsResult::PlanogramRailInfo> DescribePlanogramRailsResult::getPlanogramRailInfos()const
{
return planogramRailInfos_;
}
int DescribePlanogramRailsResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribePlanogramRailsResult::getMessage()const
{
return message_;
}
std::string DescribePlanogramRailsResult::getStoreId()const
{
return storeId_;
}
int DescribePlanogramRailsResult::getPageSize()const
{
return pageSize_;
}
int DescribePlanogramRailsResult::getPageNumber()const
{
return pageNumber_;
}
std::string DescribePlanogramRailsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribePlanogramRailsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribePlanogramRailsResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribePlanogramRailsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribePlanogramRailsResult::getCode()const
{
return code_;
}
bool DescribePlanogramRailsResult::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/cloudesl/model/DescribePlanogramShelvesRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribePlanogramShelvesRequest;
DescribePlanogramShelvesRequest::DescribePlanogramShelvesRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramShelves")
{
setMethod(HttpRequest::Method::Post);
}
DescribePlanogramShelvesRequest::~DescribePlanogramShelvesRequest()
{}
std::string DescribePlanogramShelvesRequest::getExtraParams()const
{
return extraParams_;
}
void DescribePlanogramShelvesRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribePlanogramShelvesRequest::getStoreId()const
{
return storeId_;
}
void DescribePlanogramShelvesRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
int DescribePlanogramShelvesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribePlanogramShelvesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
int DescribePlanogramShelvesRequest::getPageSize()const
{
return pageSize_;
}
void DescribePlanogramShelvesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,150 @@
/*
* 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/cloudesl/model/DescribePlanogramShelvesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribePlanogramShelvesResult::DescribePlanogramShelvesResult() :
ServiceResult()
{}
DescribePlanogramShelvesResult::DescribePlanogramShelvesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePlanogramShelvesResult::~DescribePlanogramShelvesResult()
{}
void DescribePlanogramShelvesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allShelfInfosNode = value["ShelfInfos"]["ShelfInfo"];
for (auto valueShelfInfosShelfInfo : allShelfInfosNode)
{
ShelfInfo shelfInfosObject;
if(!valueShelfInfosShelfInfo["Shelf"].isNull())
shelfInfosObject.shelf = valueShelfInfosShelfInfo["Shelf"].asString();
if(!valueShelfInfosShelfInfo["BeMatch"].isNull())
shelfInfosObject.beMatch = valueShelfInfosShelfInfo["BeMatch"].asString() == "true";
if(!valueShelfInfosShelfInfo["Zone"].isNull())
shelfInfosObject.zone = valueShelfInfosShelfInfo["Zone"].asString();
if(!valueShelfInfosShelfInfo["Category"].isNull())
shelfInfosObject.category = valueShelfInfosShelfInfo["Category"].asString();
if(!valueShelfInfosShelfInfo["ShelfType"].isNull())
shelfInfosObject.shelfType = valueShelfInfosShelfInfo["ShelfType"].asString();
auto allLayerInfosNode = valueShelfInfosShelfInfo["LayerInfos"]["LayerInfo"];
for (auto valueShelfInfosShelfInfoLayerInfosLayerInfo : allLayerInfosNode)
{
ShelfInfo::LayerInfo layerInfosObject;
if(!valueShelfInfosShelfInfoLayerInfosLayerInfo["Layer"].isNull())
layerInfosObject.layer = std::stoi(valueShelfInfosShelfInfoLayerInfosLayerInfo["Layer"].asString());
shelfInfosObject.layerInfos.push_back(layerInfosObject);
}
shelfInfos_.push_back(shelfInfosObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["StoreId"].isNull())
storeId_ = value["StoreId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
std::vector<DescribePlanogramShelvesResult::ShelfInfo> DescribePlanogramShelvesResult::getShelfInfos()const
{
return shelfInfos_;
}
int DescribePlanogramShelvesResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribePlanogramShelvesResult::getMessage()const
{
return message_;
}
std::string DescribePlanogramShelvesResult::getStoreId()const
{
return storeId_;
}
int DescribePlanogramShelvesResult::getPageSize()const
{
return pageSize_;
}
int DescribePlanogramShelvesResult::getPageNumber()const
{
return pageNumber_;
}
std::string DescribePlanogramShelvesResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribePlanogramShelvesResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribePlanogramShelvesResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribePlanogramShelvesResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribePlanogramShelvesResult::getCode()const
{
return code_;
}
bool DescribePlanogramShelvesResult::getSuccess()const
{
return success_;
}

View File

@@ -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 <alibabacloud/cloudesl/model/DescribeRoleActionsRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeRoleActionsRequest;
DescribeRoleActionsRequest::DescribeRoleActionsRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeRoleActions")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRoleActionsRequest::~DescribeRoleActionsRequest()
{}
std::string DescribeRoleActionsRequest::getRoleCode()const
{
return roleCode_;
}
void DescribeRoleActionsRequest::setRoleCode(const std::string& roleCode)
{
roleCode_ = roleCode;
setBodyParameter("RoleCode", roleCode);
}
std::string DescribeRoleActionsRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeRoleActionsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}

View File

@@ -0,0 +1,116 @@
/*
* 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/cloudesl/model/DescribeRoleActionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeRoleActionsResult::DescribeRoleActionsResult() :
ServiceResult()
{}
DescribeRoleActionsResult::DescribeRoleActionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRoleActionsResult::~DescribeRoleActionsResult()
{}
void DescribeRoleActionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRoleAclInfosNode = value["RoleAclInfos"]["RoleAclInfo"];
for (auto valueRoleAclInfosRoleAclInfo : allRoleAclInfosNode)
{
RoleAclInfo roleAclInfosObject;
if(!valueRoleAclInfosRoleAclInfo["RoleCode"].isNull())
roleAclInfosObject.roleCode = valueRoleAclInfosRoleAclInfo["RoleCode"].asString();
if(!valueRoleAclInfosRoleAclInfo["Name"].isNull())
roleAclInfosObject.name = valueRoleAclInfosRoleAclInfo["Name"].asString();
auto allAccessControlListsNode = valueRoleAclInfosRoleAclInfo["AccessControlLists"]["RoleActionInfo"];
for (auto valueRoleAclInfosRoleAclInfoAccessControlListsRoleActionInfo : allAccessControlListsNode)
{
RoleAclInfo::RoleActionInfo accessControlListsObject;
if(!valueRoleAclInfosRoleAclInfoAccessControlListsRoleActionInfo["Code"].isNull())
accessControlListsObject.code = valueRoleAclInfosRoleAclInfoAccessControlListsRoleActionInfo["Code"].asString();
roleAclInfosObject.accessControlLists.push_back(accessControlListsObject);
}
roleAclInfos_.push_back(roleAclInfosObject);
}
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeRoleActionsResult::getMessage()const
{
return message_;
}
std::vector<DescribeRoleActionsResult::RoleAclInfo> DescribeRoleActionsResult::getRoleAclInfos()const
{
return roleAclInfos_;
}
std::string DescribeRoleActionsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeRoleActionsResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeRoleActionsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeRoleActionsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeRoleActionsResult::getCode()const
{
return code_;
}
bool DescribeRoleActionsResult::getSuccess()const
{
return success_;
}

View File

@@ -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 <alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeStoreConfigRequest;
DescribeStoreConfigRequest::DescribeStoreConfigRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStoreConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeStoreConfigRequest::~DescribeStoreConfigRequest()
{}
std::string DescribeStoreConfigRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeStoreConfigRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeStoreConfigRequest::getStoreId()const
{
return storeId_;
}
void DescribeStoreConfigRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}

View File

@@ -0,0 +1,107 @@
/*
* 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/cloudesl/model/DescribeStoreConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeStoreConfigResult::DescribeStoreConfigResult() :
ServiceResult()
{}
DescribeStoreConfigResult::DescribeStoreConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeStoreConfigResult::~DescribeStoreConfigResult()
{}
void DescribeStoreConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto storeConfigInfoNode = value["StoreConfigInfo"];
if(!storeConfigInfoNode["EnableNotification"].isNull())
storeConfigInfo_.enableNotification = storeConfigInfoNode["EnableNotification"].asString() == "true";
if(!storeConfigInfoNode["NotificationWebHook"].isNull())
storeConfigInfo_.notificationWebHook = storeConfigInfoNode["NotificationWebHook"].asString();
if(!storeConfigInfoNode["NotificationSilentTimes"].isNull())
storeConfigInfo_.notificationSilentTimes = storeConfigInfoNode["NotificationSilentTimes"].asString();
if(!storeConfigInfoNode["StoreId"].isNull())
storeConfigInfo_.storeId = storeConfigInfoNode["StoreId"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
DescribeStoreConfigResult::StoreConfigInfo DescribeStoreConfigResult::getStoreConfigInfo()const
{
return storeConfigInfo_;
}
std::string DescribeStoreConfigResult::getMessage()const
{
return message_;
}
std::string DescribeStoreConfigResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeStoreConfigResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeStoreConfigResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeStoreConfigResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeStoreConfigResult::getCode()const
{
return code_;
}
bool DescribeStoreConfigResult::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/cloudesl/model/DescribeStoreStatisticsRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeStoreStatisticsRequest;
DescribeStoreStatisticsRequest::DescribeStoreStatisticsRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStoreStatistics")
{
setMethod(HttpRequest::Method::Post);
}
DescribeStoreStatisticsRequest::~DescribeStoreStatisticsRequest()
{}
std::string DescribeStoreStatisticsRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeStoreStatisticsRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeStoreStatisticsRequest::getStoreId()const
{
return storeId_;
}
void DescribeStoreStatisticsRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
std::string DescribeStoreStatisticsRequest::getFromDate()const
{
return fromDate_;
}
void DescribeStoreStatisticsRequest::setFromDate(const std::string& fromDate)
{
fromDate_ = fromDate;
setBodyParameter("FromDate", fromDate);
}
std::string DescribeStoreStatisticsRequest::getToDate()const
{
return toDate_;
}
void DescribeStoreStatisticsRequest::setToDate(const std::string& toDate)
{
toDate_ = toDate;
setBodyParameter("ToDate", toDate);
}

View File

@@ -0,0 +1,130 @@
/*
* 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/cloudesl/model/DescribeStoreStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeStoreStatisticsResult::DescribeStoreStatisticsResult() :
ServiceResult()
{}
DescribeStoreStatisticsResult::DescribeStoreStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeStoreStatisticsResult::~DescribeStoreStatisticsResult()
{}
void DescribeStoreStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStoreStatisticsInfoListNode = value["StoreStatisticsInfoList"]["StoreStatisticsInfo"];
for (auto valueStoreStatisticsInfoListStoreStatisticsInfo : allStoreStatisticsInfoListNode)
{
StoreStatisticsInfo storeStatisticsInfoListObject;
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["SendFailEsl"].isNull())
storeStatisticsInfoListObject.sendFailEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["SendFailEsl"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["DisplayFailEsl"].isNull())
storeStatisticsInfoListObject.displayFailEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["DisplayFailEsl"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["StoreName"].isNull())
storeStatisticsInfoListObject.storeName = valueStoreStatisticsInfoListStoreStatisticsInfo["StoreName"].asString();
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["ActiveApDevice"].isNull())
storeStatisticsInfoListObject.activeApDevice = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["ActiveApDevice"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["UpdateFailureEsl"].isNull())
storeStatisticsInfoListObject.updateFailureEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["UpdateFailureEsl"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["UpdateEsl"].isNull())
storeStatisticsInfoListObject.updateEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["UpdateEsl"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["OfflineEslDevice"].isNull())
storeStatisticsInfoListObject.offlineEslDevice = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["OfflineEslDevice"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["StatisticsTime"].isNull())
storeStatisticsInfoListObject.statisticsTime = valueStoreStatisticsInfoListStoreStatisticsInfo["StatisticsTime"].asString();
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["StoreId"].isNull())
storeStatisticsInfoListObject.storeId = valueStoreStatisticsInfoListStoreStatisticsInfo["StoreId"].asString();
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["BindEsl"].isNull())
storeStatisticsInfoListObject.bindEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["BindEsl"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["AbnormalEsl"].isNull())
storeStatisticsInfoListObject.abnormalEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["AbnormalEsl"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["LowBatteryEsl"].isNull())
storeStatisticsInfoListObject.lowBatteryEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["LowBatteryEsl"].asString());
if(!valueStoreStatisticsInfoListStoreStatisticsInfo["BindItem"].isNull())
storeStatisticsInfoListObject.bindItem = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["BindItem"].asString());
storeStatisticsInfoList_.push_back(storeStatisticsInfoListObject);
}
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeStoreStatisticsResult::getMessage()const
{
return message_;
}
std::vector<DescribeStoreStatisticsResult::StoreStatisticsInfo> DescribeStoreStatisticsResult::getStoreStatisticsInfoList()const
{
return storeStatisticsInfoList_;
}
std::string DescribeStoreStatisticsResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeStoreStatisticsResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeStoreStatisticsResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeStoreStatisticsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeStoreStatisticsResult::getCode()const
{
return code_;
}
bool DescribeStoreStatisticsResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::DescribeStoresRequest;
DescribeStoresRequest::DescribeStoresRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DescribeStores")
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStores")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,17 @@ DescribeStoresRequest::DescribeStoresRequest() :
DescribeStoresRequest::~DescribeStoresRequest()
{}
std::string DescribeStoresRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeStoresRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeStoresRequest::getStoreName()const
{
return storeName_;
@@ -35,7 +46,7 @@ std::string DescribeStoresRequest::getStoreName()const
void DescribeStoresRequest::setStoreName(const std::string& storeName)
{
storeName_ = storeName;
setParameter("StoreName", storeName);
setBodyParameter("StoreName", storeName);
}
std::string DescribeStoresRequest::getStoreId()const
@@ -46,7 +57,7 @@ std::string DescribeStoresRequest::getStoreId()const
void DescribeStoresRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
int DescribeStoresRequest::getPageNumber()const
@@ -57,7 +68,7 @@ int DescribeStoresRequest::getPageNumber()const
void DescribeStoresRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeStoresRequest::getFromDate()const
@@ -68,7 +79,18 @@ std::string DescribeStoresRequest::getFromDate()const
void DescribeStoresRequest::setFromDate(const std::string& fromDate)
{
fromDate_ = fromDate;
setParameter("FromDate", fromDate);
setBodyParameter("FromDate", fromDate);
}
std::string DescribeStoresRequest::getTemplateVersion()const
{
return templateVersion_;
}
void DescribeStoresRequest::setTemplateVersion(const std::string& templateVersion)
{
templateVersion_ = templateVersion;
setBodyParameter("TemplateVersion", templateVersion);
}
std::string DescribeStoresRequest::getToDate()const
@@ -79,7 +101,7 @@ std::string DescribeStoresRequest::getToDate()const
void DescribeStoresRequest::setToDate(const std::string& toDate)
{
toDate_ = toDate;
setParameter("ToDate", toDate);
setBodyParameter("ToDate", toDate);
}
int DescribeStoresRequest::getPageSize()const
@@ -90,28 +112,17 @@ int DescribeStoresRequest::getPageSize()const
void DescribeStoresRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeStoresRequest::getBrand()const
std::string DescribeStoresRequest::getUserStoreCode()const
{
return brand_;
return userStoreCode_;
}
void DescribeStoresRequest::setBrand(const std::string& brand)
void DescribeStoresRequest::setUserStoreCode(const std::string& userStoreCode)
{
brand_ = brand;
setParameter("Brand", brand);
}
std::string DescribeStoresRequest::getGroups()const
{
return groups_;
}
void DescribeStoresRequest::setGroups(const std::string& groups)
{
groups_ = groups;
setParameter("Groups", groups);
userStoreCode_ = userStoreCode;
setBodyParameter("UserStoreCode", userStoreCode);
}

View File

@@ -43,44 +43,46 @@ void DescribeStoresResult::parse(const std::string &payload)
for (auto valueStoresStoreInfo : allStoresNode)
{
StoreInfo storesObject;
if(!valueStoresStoreInfo["CompanyId"].isNull())
storesObject.companyId = valueStoresStoreInfo["CompanyId"].asString();
if(!valueStoresStoreInfo["StoreId"].isNull())
storesObject.storeId = valueStoresStoreInfo["StoreId"].asString();
if(!valueStoresStoreInfo["StoreName"].isNull())
storesObject.storeName = valueStoresStoreInfo["StoreName"].asString();
if(!valueStoresStoreInfo["Brand"].isNull())
storesObject.brand = valueStoresStoreInfo["Brand"].asString();
if(!valueStoresStoreInfo["OutId"].isNull())
storesObject.outId = valueStoresStoreInfo["OutId"].asString();
if(!valueStoresStoreInfo["StoreId"].isNull())
storesObject.storeId = valueStoresStoreInfo["StoreId"].asString();
if(!valueStoresStoreInfo["GmtCreate"].isNull())
storesObject.gmtCreate = valueStoresStoreInfo["GmtCreate"].asString();
if(!valueStoresStoreInfo["ParentId"].isNull())
storesObject.parentId = valueStoresStoreInfo["ParentId"].asString();
if(!valueStoresStoreInfo["UserStoreCode"].isNull())
storesObject.userStoreCode = valueStoresStoreInfo["UserStoreCode"].asString();
if(!valueStoresStoreInfo["GmtModified"].isNull())
storesObject.gmtModified = valueStoresStoreInfo["GmtModified"].asString();
if(!valueStoresStoreInfo["Phone"].isNull())
storesObject.phone = valueStoresStoreInfo["Phone"].asString();
if(!valueStoresStoreInfo["Level"].isNull())
storesObject.level = valueStoresStoreInfo["Level"].asString();
if(!valueStoresStoreInfo["Groups"].isNull())
storesObject.groups = valueStoresStoreInfo["Groups"].asString();
if(!valueStoresStoreInfo["Comments"].isNull())
storesObject.comments = valueStoresStoreInfo["Comments"].asString();
if(!valueStoresStoreInfo["ParentId"].isNull())
storesObject.parentId = valueStoresStoreInfo["ParentId"].asString();
if(!valueStoresStoreInfo["GmtCreate"].isNull())
storesObject.gmtCreate = valueStoresStoreInfo["GmtCreate"].asString();
if(!valueStoresStoreInfo["GmtModified"].isNull())
storesObject.gmtModified = valueStoresStoreInfo["GmtModified"].asString();
if(!valueStoresStoreInfo["TemplateVersion"].isNull())
storesObject.templateVersion = valueStoresStoreInfo["TemplateVersion"].asString();
stores_.push_back(storesObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -104,6 +106,11 @@ int DescribeStoresResult::getPageNumber()const
return pageNumber_;
}
std::string DescribeStoresResult::getDynamicCode()const
{
return dynamicCode_;
}
std::vector<DescribeStoresResult::StoreInfo> DescribeStoresResult::getStores()const
{
return stores_;
@@ -114,6 +121,21 @@ std::string DescribeStoresResult::getErrorCode()const
return errorCode_;
}
std::string DescribeStoresResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeStoresResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeStoresResult::getCode()const
{
return code_;
}
bool DescribeStoresResult::getSuccess()const
{
return success_;

View File

@@ -0,0 +1,172 @@
/*
* 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/cloudesl/model/DescribeUserLogRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeUserLogRequest;
DescribeUserLogRequest::DescribeUserLogRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeUserLog")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUserLogRequest::~DescribeUserLogRequest()
{}
std::string DescribeUserLogRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeUserLogRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeUserLogRequest::getStoreId()const
{
return storeId_;
}
void DescribeUserLogRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
std::string DescribeUserLogRequest::getUserId()const
{
return userId_;
}
void DescribeUserLogRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
int DescribeUserLogRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeUserLogRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeUserLogRequest::getFromDate()const
{
return fromDate_;
}
void DescribeUserLogRequest::setFromDate(const std::string& fromDate)
{
fromDate_ = fromDate;
setBodyParameter("FromDate", fromDate);
}
std::string DescribeUserLogRequest::getOperationStatus()const
{
return operationStatus_;
}
void DescribeUserLogRequest::setOperationStatus(const std::string& operationStatus)
{
operationStatus_ = operationStatus;
setBodyParameter("OperationStatus", operationStatus);
}
std::string DescribeUserLogRequest::getToDate()const
{
return toDate_;
}
void DescribeUserLogRequest::setToDate(const std::string& toDate)
{
toDate_ = toDate;
setBodyParameter("ToDate", toDate);
}
std::string DescribeUserLogRequest::getEslBarCode()const
{
return eslBarCode_;
}
void DescribeUserLogRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setBodyParameter("EslBarCode", eslBarCode);
}
int DescribeUserLogRequest::getPageSize()const
{
return pageSize_;
}
void DescribeUserLogRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeUserLogRequest::getItemBarCode()const
{
return itemBarCode_;
}
void DescribeUserLogRequest::setItemBarCode(const std::string& itemBarCode)
{
itemBarCode_ = itemBarCode;
setBodyParameter("ItemBarCode", itemBarCode);
}
std::string DescribeUserLogRequest::getItemShortTitle()const
{
return itemShortTitle_;
}
void DescribeUserLogRequest::setItemShortTitle(const std::string& itemShortTitle)
{
itemShortTitle_ = itemShortTitle;
setBodyParameter("ItemShortTitle", itemShortTitle);
}
std::string DescribeUserLogRequest::getOperationType()const
{
return operationType_;
}
void DescribeUserLogRequest::setOperationType(const std::string& operationType)
{
operationType_ = operationType;
setBodyParameter("OperationType", operationType);
}
std::string DescribeUserLogRequest::getLogId()const
{
return logId_;
}
void DescribeUserLogRequest::setLogId(const std::string& logId)
{
logId_ = logId;
setBodyParameter("LogId", logId);
}

View File

@@ -0,0 +1,161 @@
/*
* 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/cloudesl/model/DescribeUserLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeUserLogResult::DescribeUserLogResult() :
ServiceResult()
{}
DescribeUserLogResult::DescribeUserLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserLogResult::~DescribeUserLogResult()
{}
void DescribeUserLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUserLogsNode = value["UserLogs"]["UserLogInfo"];
for (auto valueUserLogsUserLogInfo : allUserLogsNode)
{
UserLogInfo userLogsObject;
if(!valueUserLogsUserLogInfo["ResultCode"].isNull())
userLogsObject.resultCode = valueUserLogsUserLogInfo["ResultCode"].asString();
if(!valueUserLogsUserLogInfo["OperationSendTime"].isNull())
userLogsObject.operationSendTime = valueUserLogsUserLogInfo["OperationSendTime"].asString();
if(!valueUserLogsUserLogInfo["GmtCreate"].isNull())
userLogsObject.gmtCreate = valueUserLogsUserLogInfo["GmtCreate"].asString();
if(!valueUserLogsUserLogInfo["StoreId"].isNull())
userLogsObject.storeId = valueUserLogsUserLogInfo["StoreId"].asString();
if(!valueUserLogsUserLogInfo["GmtModified"].isNull())
userLogsObject.gmtModified = valueUserLogsUserLogInfo["GmtModified"].asString();
if(!valueUserLogsUserLogInfo["ActionPrice"].isNull())
userLogsObject.actionPrice = valueUserLogsUserLogInfo["ActionPrice"].asString();
if(!valueUserLogsUserLogInfo["OperationStatus"].isNull())
userLogsObject.operationStatus = valueUserLogsUserLogInfo["OperationStatus"].asString();
if(!valueUserLogsUserLogInfo["PriceUnit"].isNull())
userLogsObject.priceUnit = valueUserLogsUserLogInfo["PriceUnit"].asString();
if(!valueUserLogsUserLogInfo["LogId"].isNull())
userLogsObject.logId = valueUserLogsUserLogInfo["LogId"].asString();
if(!valueUserLogsUserLogInfo["ItemShortTitle"].isNull())
userLogsObject.itemShortTitle = valueUserLogsUserLogInfo["ItemShortTitle"].asString();
if(!valueUserLogsUserLogInfo["OperationType"].isNull())
userLogsObject.operationType = valueUserLogsUserLogInfo["OperationType"].asString();
if(!valueUserLogsUserLogInfo["OperationResponseTime"].isNull())
userLogsObject.operationResponseTime = valueUserLogsUserLogInfo["OperationResponseTime"].asString();
if(!valueUserLogsUserLogInfo["SpendTime"].isNull())
userLogsObject.spendTime = valueUserLogsUserLogInfo["SpendTime"].asString();
if(!valueUserLogsUserLogInfo["EslBarCode"].isNull())
userLogsObject.eslBarCode = valueUserLogsUserLogInfo["EslBarCode"].asString();
if(!valueUserLogsUserLogInfo["ItemId"].isNull())
userLogsObject.itemId = valueUserLogsUserLogInfo["ItemId"].asString();
if(!valueUserLogsUserLogInfo["ItemBarCode"].isNull())
userLogsObject.itemBarCode = valueUserLogsUserLogInfo["ItemBarCode"].asString();
if(!valueUserLogsUserLogInfo["BePromotion"].isNull())
userLogsObject.bePromotion = valueUserLogsUserLogInfo["BePromotion"].asString() == "true";
if(!valueUserLogsUserLogInfo["UserId"].isNull())
userLogsObject.userId = valueUserLogsUserLogInfo["UserId"].asString();
userLogs_.push_back(userLogsObject);
}
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeUserLogResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribeUserLogResult::getMessage()const
{
return message_;
}
int DescribeUserLogResult::getPageSize()const
{
return pageSize_;
}
int DescribeUserLogResult::getPageNumber()const
{
return pageNumber_;
}
std::string DescribeUserLogResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeUserLogResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeUserLogResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeUserLogResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeUserLogResult::getCode()const
{
return code_;
}
std::vector<DescribeUserLogResult::UserLogInfo> DescribeUserLogResult::getUserLogs()const
{
return userLogs_;
}
bool DescribeUserLogResult::getSuccess()const
{
return success_;
}

View File

@@ -1,172 +0,0 @@
/*
* 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/cloudesl/model/DescribeUserOperationLogRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeUserOperationLogRequest;
DescribeUserOperationLogRequest::DescribeUserOperationLogRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DescribeUserOperationLog")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUserOperationLogRequest::~DescribeUserOperationLogRequest()
{}
long DescribeUserOperationLogRequest::getOperateUserId()const
{
return operateUserId_;
}
void DescribeUserOperationLogRequest::setOperateUserId(long operateUserId)
{
operateUserId_ = operateUserId;
setParameter("OperateUserId", std::to_string(operateUserId));
}
std::string DescribeUserOperationLogRequest::getStoreId()const
{
return storeId_;
}
void DescribeUserOperationLogRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}
int DescribeUserOperationLogRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeUserOperationLogRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeUserOperationLogRequest::getFromDate()const
{
return fromDate_;
}
void DescribeUserOperationLogRequest::setFromDate(const std::string& fromDate)
{
fromDate_ = fromDate;
setParameter("FromDate", fromDate);
}
long DescribeUserOperationLogRequest::getItemId()const
{
return itemId_;
}
void DescribeUserOperationLogRequest::setItemId(long itemId)
{
itemId_ = itemId;
setParameter("ItemId", std::to_string(itemId));
}
std::string DescribeUserOperationLogRequest::getToDate()const
{
return toDate_;
}
void DescribeUserOperationLogRequest::setToDate(const std::string& toDate)
{
toDate_ = toDate;
setParameter("ToDate", toDate);
}
std::string DescribeUserOperationLogRequest::getEslBarCode()const
{
return eslBarCode_;
}
void DescribeUserOperationLogRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setParameter("EslBarCode", eslBarCode);
}
int DescribeUserOperationLogRequest::getPageSize()const
{
return pageSize_;
}
void DescribeUserOperationLogRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeUserOperationLogRequest::getItemBarCode()const
{
return itemBarCode_;
}
void DescribeUserOperationLogRequest::setItemBarCode(const std::string& itemBarCode)
{
itemBarCode_ = itemBarCode;
setParameter("ItemBarCode", itemBarCode);
}
std::string DescribeUserOperationLogRequest::getItemTitle()const
{
return itemTitle_;
}
void DescribeUserOperationLogRequest::setItemTitle(const std::string& itemTitle)
{
itemTitle_ = itemTitle;
setParameter("ItemTitle", itemTitle);
}
std::string DescribeUserOperationLogRequest::getOperateStatus()const
{
return operateStatus_;
}
void DescribeUserOperationLogRequest::setOperateStatus(const std::string& operateStatus)
{
operateStatus_ = operateStatus;
setParameter("OperateStatus", operateStatus);
}
bool DescribeUserOperationLogRequest::getReverse()const
{
return reverse_;
}
void DescribeUserOperationLogRequest::setReverse(bool reverse)
{
reverse_ = reverse;
setParameter("Reverse", reverse ? "true" : "false");
}
std::string DescribeUserOperationLogRequest::getOperateType()const
{
return operateType_;
}
void DescribeUserOperationLogRequest::setOperateType(const std::string& operateType)
{
operateType_ = operateType;
setParameter("OperateType", operateType);
}

View File

@@ -1,119 +0,0 @@
/*
* 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/cloudesl/model/DescribeUserOperationLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeUserOperationLogResult::DescribeUserOperationLogResult() :
ServiceResult()
{}
DescribeUserOperationLogResult::DescribeUserOperationLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserOperationLogResult::~DescribeUserOperationLogResult()
{}
void DescribeUserOperationLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOperationLogsNode = value["OperationLogs"]["OperationLogInfo"];
for (auto valueOperationLogsOperationLogInfo : allOperationLogsNode)
{
OperationLogInfo operationLogsObject;
if(!valueOperationLogsOperationLogInfo["OperateType"].isNull())
operationLogsObject.operateType = valueOperationLogsOperationLogInfo["OperateType"].asString();
if(!valueOperationLogsOperationLogInfo["OperateStatus"].isNull())
operationLogsObject.operateStatus = valueOperationLogsOperationLogInfo["OperateStatus"].asString();
if(!valueOperationLogsOperationLogInfo["OperateUserId"].isNull())
operationLogsObject.operateUserId = std::stol(valueOperationLogsOperationLogInfo["OperateUserId"].asString());
if(!valueOperationLogsOperationLogInfo["OperateTime"].isNull())
operationLogsObject.operateTime = valueOperationLogsOperationLogInfo["OperateTime"].asString();
if(!valueOperationLogsOperationLogInfo["StoreId"].isNull())
operationLogsObject.storeId = valueOperationLogsOperationLogInfo["StoreId"].asString();
if(!valueOperationLogsOperationLogInfo["ItemTitle"].isNull())
operationLogsObject.itemTitle = valueOperationLogsOperationLogInfo["ItemTitle"].asString();
if(!valueOperationLogsOperationLogInfo["ItemId"].isNull())
operationLogsObject.itemId = valueOperationLogsOperationLogInfo["ItemId"].asString();
if(!valueOperationLogsOperationLogInfo["ItemActionPrice"].isNull())
operationLogsObject.itemActionPrice = std::stoi(valueOperationLogsOperationLogInfo["ItemActionPrice"].asString());
if(!valueOperationLogsOperationLogInfo["ItemBarCode"].isNull())
operationLogsObject.itemBarCode = valueOperationLogsOperationLogInfo["ItemBarCode"].asString();
if(!valueOperationLogsOperationLogInfo["EslBarCode"].isNull())
operationLogsObject.eslBarCode = valueOperationLogsOperationLogInfo["EslBarCode"].asString();
if(!valueOperationLogsOperationLogInfo["ShelfCode"].isNull())
operationLogsObject.shelfCode = valueOperationLogsOperationLogInfo["ShelfCode"].asString();
operationLogs_.push_back(operationLogsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
std::vector<DescribeUserOperationLogResult::OperationLogInfo> DescribeUserOperationLogResult::getOperationLogs()const
{
return operationLogs_;
}
int DescribeUserOperationLogResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribeUserOperationLogResult::getMessage()const
{
return message_;
}
int DescribeUserOperationLogResult::getPageSize()const
{
return pageSize_;
}
int DescribeUserOperationLogResult::getPageNumber()const
{
return pageNumber_;
}
std::string DescribeUserOperationLogResult::getErrorCode()const
{
return errorCode_;
}
bool DescribeUserOperationLogResult::getSuccess()const
{
return success_;
}

View File

@@ -1,62 +0,0 @@
/*
* 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/cloudesl/model/DescribeUserRamPolicyRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeUserRamPolicyRequest;
DescribeUserRamPolicyRequest::DescribeUserRamPolicyRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DescribeUserRamPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUserRamPolicyRequest::~DescribeUserRamPolicyRequest()
{}
std::string DescribeUserRamPolicyRequest::getUserType()const
{
return userType_;
}
void DescribeUserRamPolicyRequest::setUserType(const std::string& userType)
{
userType_ = userType;
setParameter("UserType", userType);
}
std::string DescribeUserRamPolicyRequest::getStoreId()const
{
return storeId_;
}
void DescribeUserRamPolicyRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}
std::string DescribeUserRamPolicyRequest::getCompanyId()const
{
return companyId_;
}
void DescribeUserRamPolicyRequest::setCompanyId(const std::string& companyId)
{
companyId_ = companyId;
setParameter("CompanyId", companyId);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DescribeUsersRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeUsersRequest;
DescribeUsersRequest::DescribeUsersRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeUsers")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUsersRequest::~DescribeUsersRequest()
{}
std::string DescribeUsersRequest::getExtraParams()const
{
return extraParams_;
}
void DescribeUsersRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DescribeUsersRequest::getUserId()const
{
return userId_;
}
void DescribeUsersRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
int DescribeUsersRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeUsersRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
int DescribeUsersRequest::getPageSize()const
{
return pageSize_;
}
void DescribeUsersRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeUsersRequest::getUserType()const
{
return userType_;
}
void DescribeUsersRequest::setUserType(const std::string& userType)
{
userType_ = userType;
setBodyParameter("UserType", userType);
}
std::string DescribeUsersRequest::getUserName()const
{
return userName_;
}
void DescribeUsersRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setBodyParameter("UserName", userName);
}

View File

@@ -0,0 +1,147 @@
/*
* 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/cloudesl/model/DescribeUsersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DescribeUsersResult::DescribeUsersResult() :
ServiceResult()
{}
DescribeUsersResult::DescribeUsersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUsersResult::~DescribeUsersResult()
{}
void DescribeUsersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUsersNode = value["Users"]["UserInfo"];
for (auto valueUsersUserInfo : allUsersNode)
{
UserInfo usersObject;
if(!valueUsersUserInfo["Stores"].isNull())
usersObject.stores = valueUsersUserInfo["Stores"].asString();
if(!valueUsersUserInfo["UserName"].isNull())
usersObject.userName = valueUsersUserInfo["UserName"].asString();
if(!valueUsersUserInfo["UserId"].isNull())
usersObject.userId = valueUsersUserInfo["UserId"].asString();
if(!valueUsersUserInfo["UserType"].isNull())
usersObject.userType = valueUsersUserInfo["UserType"].asString();
if(!valueUsersUserInfo["OwnerId"].isNull())
usersObject.ownerId = valueUsersUserInfo["OwnerId"].asString();
if(!valueUsersUserInfo["Bid"].isNull())
usersObject.bid = valueUsersUserInfo["Bid"].asString();
auto allDingTalkInfosNode = valueUsersUserInfo["DingTalkInfos"]["DingTalkInfo"];
for (auto valueUsersUserInfoDingTalkInfosDingTalkInfo : allDingTalkInfosNode)
{
UserInfo::DingTalkInfo dingTalkInfosObject;
if(!valueUsersUserInfoDingTalkInfosDingTalkInfo["DingTalkCompanyId"].isNull())
dingTalkInfosObject.dingTalkCompanyId = valueUsersUserInfoDingTalkInfosDingTalkInfo["DingTalkCompanyId"].asString();
if(!valueUsersUserInfoDingTalkInfosDingTalkInfo["DingTalkUserId"].isNull())
dingTalkInfosObject.dingTalkUserId = valueUsersUserInfoDingTalkInfosDingTalkInfo["DingTalkUserId"].asString();
usersObject.dingTalkInfos.push_back(dingTalkInfosObject);
}
users_.push_back(usersObject);
}
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeUsersResult::getTotalCount()const
{
return totalCount_;
}
std::string DescribeUsersResult::getMessage()const
{
return message_;
}
int DescribeUsersResult::getPageSize()const
{
return pageSize_;
}
int DescribeUsersResult::getPageNumber()const
{
return pageNumber_;
}
std::string DescribeUsersResult::getDynamicCode()const
{
return dynamicCode_;
}
std::vector<DescribeUsersResult::UserInfo> DescribeUsersResult::getUsers()const
{
return users_;
}
std::string DescribeUsersResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeUsersResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeUsersResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeUsersResult::getCode()const
{
return code_;
}
bool DescribeUsersResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h>
using AlibabaCloud::Cloudesl::Model::DissociatePlanogramRailRequest;
DissociatePlanogramRailRequest::DissociatePlanogramRailRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "DissociatePlanogramRail")
{
setMethod(HttpRequest::Method::Post);
}
DissociatePlanogramRailRequest::~DissociatePlanogramRailRequest()
{}
std::string DissociatePlanogramRailRequest::getExtraParams()const
{
return extraParams_;
}
void DissociatePlanogramRailRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string DissociatePlanogramRailRequest::getStoreId()const
{
return storeId_;
}
void DissociatePlanogramRailRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
std::string DissociatePlanogramRailRequest::getRailCode()const
{
return railCode_;
}
void DissociatePlanogramRailRequest::setRailCode(const std::string& railCode)
{
railCode_ = railCode;
setBodyParameter("RailCode", railCode);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/DissociatePlanogramRailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
DissociatePlanogramRailResult::DissociatePlanogramRailResult() :
ServiceResult()
{}
DissociatePlanogramRailResult::DissociatePlanogramRailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DissociatePlanogramRailResult::~DissociatePlanogramRailResult()
{}
void DissociatePlanogramRailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DissociatePlanogramRailResult::getMessage()const
{
return message_;
}
std::string DissociatePlanogramRailResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DissociatePlanogramRailResult::getErrorCode()const
{
return errorCode_;
}
std::string DissociatePlanogramRailResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DissociatePlanogramRailResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DissociatePlanogramRailResult::getCode()const
{
return code_;
}
bool DissociatePlanogramRailResult::getSuccess()const
{
return success_;
}

View File

@@ -14,16 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/DescribeCompanyRequest.h>
#include <alibabacloud/cloudesl/model/GetUserRequest.h>
using AlibabaCloud::Cloudesl::Model::DescribeCompanyRequest;
using AlibabaCloud::Cloudesl::Model::GetUserRequest;
DescribeCompanyRequest::DescribeCompanyRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "DescribeCompany")
GetUserRequest::GetUserRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "GetUser")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCompanyRequest::~DescribeCompanyRequest()
GetUserRequest::~GetUserRequest()
{}
std::string GetUserRequest::getExtraParams()const
{
return extraParams_;
}
void GetUserRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string GetUserRequest::getUserId()const
{
return userId_;
}
void GetUserRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}

View File

@@ -0,0 +1,121 @@
/*
* 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/cloudesl/model/GetUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
GetUserResult::GetUserResult() :
ServiceResult()
{}
GetUserResult::GetUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserResult::~GetUserResult()
{}
void GetUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userNode = value["User"];
if(!userNode["Stores"].isNull())
user_.stores = userNode["Stores"].asString();
if(!userNode["UserName"].isNull())
user_.userName = userNode["UserName"].asString();
if(!userNode["UserId"].isNull())
user_.userId = userNode["UserId"].asString();
if(!userNode["UserType"].isNull())
user_.userType = userNode["UserType"].asString();
if(!userNode["OwnerId"].isNull())
user_.ownerId = userNode["OwnerId"].asString();
if(!userNode["Bid"].isNull())
user_.bid = userNode["Bid"].asString();
auto allDingTalkInfosNode = userNode["DingTalkInfos"]["DingTalkInfo"];
for (auto userNodeDingTalkInfosDingTalkInfo : allDingTalkInfosNode)
{
User::DingTalkInfo dingTalkInfoObject;
if(!userNodeDingTalkInfosDingTalkInfo["DingTalkCompanyId"].isNull())
dingTalkInfoObject.dingTalkCompanyId = userNodeDingTalkInfosDingTalkInfo["DingTalkCompanyId"].asString();
if(!userNodeDingTalkInfosDingTalkInfo["DingTalkUserId"].isNull())
dingTalkInfoObject.dingTalkUserId = userNodeDingTalkInfosDingTalkInfo["DingTalkUserId"].asString();
user_.dingTalkInfos.push_back(dingTalkInfoObject);
}
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetUserResult::User GetUserResult::getUser()const
{
return user_;
}
std::string GetUserResult::getMessage()const
{
return message_;
}
std::string GetUserResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string GetUserResult::getErrorCode()const
{
return errorCode_;
}
std::string GetUserResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string GetUserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetUserResult::getCode()const
{
return code_;
}
bool GetUserResult::getSuccess()const
{
return success_;
}

View File

@@ -1,84 +0,0 @@
/*
* 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/cloudesl/model/SearchApServiceRequest.h>
using AlibabaCloud::Cloudesl::Model::SearchApServiceRequest;
SearchApServiceRequest::SearchApServiceRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "SearchApService")
{
setMethod(HttpRequest::Method::Post);
}
SearchApServiceRequest::~SearchApServiceRequest()
{}
std::string SearchApServiceRequest::getApMac()const
{
return apMac_;
}
void SearchApServiceRequest::setApMac(const std::string& apMac)
{
apMac_ = apMac;
setParameter("ApMac", apMac);
}
std::string SearchApServiceRequest::getStoreId()const
{
return storeId_;
}
void SearchApServiceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}
int SearchApServiceRequest::getPageNumber()const
{
return pageNumber_;
}
void SearchApServiceRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int SearchApServiceRequest::getPageSize()const
{
return pageSize_;
}
void SearchApServiceRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
bool SearchApServiceRequest::getActivated()const
{
return activated_;
}
void SearchApServiceRequest::setActivated(bool activated)
{
activated_ = activated;
setParameter("Activated", activated ? "true" : "false");
}

View File

@@ -1,105 +0,0 @@
/*
* 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/cloudesl/model/SearchApServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
SearchApServiceResult::SearchApServiceResult() :
ServiceResult()
{}
SearchApServiceResult::SearchApServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchApServiceResult::~SearchApServiceResult()
{}
void SearchApServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItemsNode = value["Items"]["ApInfo"];
for (auto valueItemsApInfo : allItemsNode)
{
ApInfo itemsObject;
if(!valueItemsApInfo["IsActivate"].isNull())
itemsObject.isActivate = valueItemsApInfo["IsActivate"].asString() == "true";
if(!valueItemsApInfo["Mac"].isNull())
itemsObject.mac = valueItemsApInfo["Mac"].asString();
if(!valueItemsApInfo["Model"].isNull())
itemsObject.model = valueItemsApInfo["Model"].asString();
if(!valueItemsApInfo["Status"].isNull())
itemsObject.status = valueItemsApInfo["Status"].asString() == "true";
items_.push_back(itemsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int SearchApServiceResult::getTotalCount()const
{
return totalCount_;
}
std::string SearchApServiceResult::getMessage()const
{
return message_;
}
int SearchApServiceResult::getPageSize()const
{
return pageSize_;
}
int SearchApServiceResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<SearchApServiceResult::ApInfo> SearchApServiceResult::getItems()const
{
return items_;
}
std::string SearchApServiceResult::getErrorCode()const
{
return errorCode_;
}
bool SearchApServiceResult::getSuccess()const
{
return success_;
}

View File

@@ -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 <alibabacloud/cloudesl/model/UnassignUserRequest.h>
using AlibabaCloud::Cloudesl::Model::UnassignUserRequest;
UnassignUserRequest::UnassignUserRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "UnassignUser")
{
setMethod(HttpRequest::Method::Post);
}
UnassignUserRequest::~UnassignUserRequest()
{}
std::string UnassignUserRequest::getExtraParams()const
{
return extraParams_;
}
void UnassignUserRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string UnassignUserRequest::getUserId()const
{
return userId_;
}
void UnassignUserRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/UnassignUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
UnassignUserResult::UnassignUserResult() :
ServiceResult()
{}
UnassignUserResult::UnassignUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnassignUserResult::~UnassignUserResult()
{}
void UnassignUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UnassignUserResult::getMessage()const
{
return message_;
}
std::string UnassignUserResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string UnassignUserResult::getErrorCode()const
{
return errorCode_;
}
std::string UnassignUserResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string UnassignUserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UnassignUserResult::getCode()const
{
return code_;
}
bool UnassignUserResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::UnbindEslDeviceRequest;
UnbindEslDeviceRequest::UnbindEslDeviceRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "UnbindEslDevice")
RpcServiceRequest("cloudesl", "2020-02-01", "UnbindEslDevice")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,17 @@ UnbindEslDeviceRequest::UnbindEslDeviceRequest() :
UnbindEslDeviceRequest::~UnbindEslDeviceRequest()
{}
std::string UnbindEslDeviceRequest::getExtraParams()const
{
return extraParams_;
}
void UnbindEslDeviceRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string UnbindEslDeviceRequest::getStoreId()const
{
return storeId_;
@@ -35,7 +46,18 @@ std::string UnbindEslDeviceRequest::getStoreId()const
void UnbindEslDeviceRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
int UnbindEslDeviceRequest::getLayer()const
{
return layer_;
}
void UnbindEslDeviceRequest::setLayer(int layer)
{
layer_ = layer;
setBodyParameter("Layer", std::to_string(layer));
}
std::string UnbindEslDeviceRequest::getEslBarCode()const
@@ -46,7 +68,7 @@ std::string UnbindEslDeviceRequest::getEslBarCode()const
void UnbindEslDeviceRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setParameter("EslBarCode", eslBarCode);
setBodyParameter("EslBarCode", eslBarCode);
}
std::string UnbindEslDeviceRequest::getItemBarCode()const
@@ -57,6 +79,28 @@ std::string UnbindEslDeviceRequest::getItemBarCode()const
void UnbindEslDeviceRequest::setItemBarCode(const std::string& itemBarCode)
{
itemBarCode_ = itemBarCode;
setParameter("ItemBarCode", itemBarCode);
setBodyParameter("ItemBarCode", itemBarCode);
}
std::string UnbindEslDeviceRequest::getColumn()const
{
return column_;
}
void UnbindEslDeviceRequest::setColumn(const std::string& column)
{
column_ = column;
setBodyParameter("Column", column);
}
std::string UnbindEslDeviceRequest::getShelf()const
{
return shelf_;
}
void UnbindEslDeviceRequest::setShelf(const std::string& shelf)
{
shelf_ = shelf;
setBodyParameter("Shelf", shelf);
}

View File

@@ -39,12 +39,20 @@ void UnbindEslDeviceResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -53,11 +61,31 @@ std::string UnbindEslDeviceResult::getMessage()const
return message_;
}
std::string UnbindEslDeviceResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string UnbindEslDeviceResult::getErrorCode()const
{
return errorCode_;
}
std::string UnbindEslDeviceResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string UnbindEslDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UnbindEslDeviceResult::getCode()const
{
return code_;
}
bool UnbindEslDeviceResult::getSuccess()const
{
return success_;

View File

@@ -1,51 +0,0 @@
/*
* 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/cloudesl/model/UnbindEslDeviceShelfRequest.h>
using AlibabaCloud::Cloudesl::Model::UnbindEslDeviceShelfRequest;
UnbindEslDeviceShelfRequest::UnbindEslDeviceShelfRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "UnbindEslDeviceShelf")
{
setMethod(HttpRequest::Method::Post);
}
UnbindEslDeviceShelfRequest::~UnbindEslDeviceShelfRequest()
{}
std::string UnbindEslDeviceShelfRequest::getStoreId()const
{
return storeId_;
}
void UnbindEslDeviceShelfRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
}
std::string UnbindEslDeviceShelfRequest::getEslBarCode()const
{
return eslBarCode_;
}
void UnbindEslDeviceShelfRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setParameter("EslBarCode", eslBarCode);
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h>
using AlibabaCloud::Cloudesl::Model::UpdateEslDeviceLightRequest;
UpdateEslDeviceLightRequest::UpdateEslDeviceLightRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "UpdateEslDeviceLight")
{
setMethod(HttpRequest::Method::Post);
}
UpdateEslDeviceLightRequest::~UpdateEslDeviceLightRequest()
{}
std::string UpdateEslDeviceLightRequest::getExtraParams()const
{
return extraParams_;
}
void UpdateEslDeviceLightRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
int UpdateEslDeviceLightRequest::getLightUpTime()const
{
return lightUpTime_;
}
void UpdateEslDeviceLightRequest::setLightUpTime(int lightUpTime)
{
lightUpTime_ = lightUpTime;
setBodyParameter("LightUpTime", std::to_string(lightUpTime));
}
std::string UpdateEslDeviceLightRequest::getStoreId()const
{
return storeId_;
}
void UpdateEslDeviceLightRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
std::string UpdateEslDeviceLightRequest::getFrequency()const
{
return frequency_;
}
void UpdateEslDeviceLightRequest::setFrequency(const std::string& frequency)
{
frequency_ = frequency;
setBodyParameter("Frequency", frequency);
}
std::string UpdateEslDeviceLightRequest::getEslBarCode()const
{
return eslBarCode_;
}
void UpdateEslDeviceLightRequest::setEslBarCode(const std::string& eslBarCode)
{
eslBarCode_ = eslBarCode;
setBodyParameter("EslBarCode", eslBarCode);
}
std::string UpdateEslDeviceLightRequest::getLedColor()const
{
return ledColor_;
}
void UpdateEslDeviceLightRequest::setLedColor(const std::string& ledColor)
{
ledColor_ = ledColor;
setBodyParameter("LedColor", ledColor);
}
std::string UpdateEslDeviceLightRequest::getItemBarCode()const
{
return itemBarCode_;
}
void UpdateEslDeviceLightRequest::setItemBarCode(const std::string& itemBarCode)
{
itemBarCode_ = itemBarCode;
setBodyParameter("ItemBarCode", itemBarCode);
}

View File

@@ -0,0 +1,122 @@
/*
* 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/cloudesl/model/UpdateEslDeviceLightResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
UpdateEslDeviceLightResult::UpdateEslDeviceLightResult() :
ServiceResult()
{}
UpdateEslDeviceLightResult::UpdateEslDeviceLightResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateEslDeviceLightResult::~UpdateEslDeviceLightResult()
{}
void UpdateEslDeviceLightResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLightFailEslInfosNode = value["LightFailEslInfos"]["LightFailEslInfo"];
for (auto valueLightFailEslInfosLightFailEslInfo : allLightFailEslInfosNode)
{
LightFailEslInfo lightFailEslInfosObject;
if(!valueLightFailEslInfosLightFailEslInfo["ErrorMessage"].isNull())
lightFailEslInfosObject.errorMessage = valueLightFailEslInfosLightFailEslInfo["ErrorMessage"].asString();
if(!valueLightFailEslInfosLightFailEslInfo["EslBarCode"].isNull())
lightFailEslInfosObject.eslBarCode = valueLightFailEslInfosLightFailEslInfo["EslBarCode"].asString();
lightFailEslInfos_.push_back(lightFailEslInfosObject);
}
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["SuccessCount"].isNull())
successCount_ = std::stoi(value["SuccessCount"].asString());
if(!value["FailCount"].isNull())
failCount_ = std::stoi(value["FailCount"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UpdateEslDeviceLightResult::getMessage()const
{
return message_;
}
std::vector<UpdateEslDeviceLightResult::LightFailEslInfo> UpdateEslDeviceLightResult::getLightFailEslInfos()const
{
return lightFailEslInfos_;
}
int UpdateEslDeviceLightResult::getFailCount()const
{
return failCount_;
}
std::string UpdateEslDeviceLightResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string UpdateEslDeviceLightResult::getErrorCode()const
{
return errorCode_;
}
std::string UpdateEslDeviceLightResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string UpdateEslDeviceLightResult::getErrorMessage()const
{
return errorMessage_;
}
int UpdateEslDeviceLightResult::getSuccessCount()const
{
return successCount_;
}
std::string UpdateEslDeviceLightResult::getCode()const
{
return code_;
}
bool UpdateEslDeviceLightResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/cloudesl/model/UpdateStoreConfigRequest.h>
using AlibabaCloud::Cloudesl::Model::UpdateStoreConfigRequest;
UpdateStoreConfigRequest::UpdateStoreConfigRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "UpdateStoreConfig")
{
setMethod(HttpRequest::Method::Post);
}
UpdateStoreConfigRequest::~UpdateStoreConfigRequest()
{}
std::string UpdateStoreConfigRequest::getExtraParams()const
{
return extraParams_;
}
void UpdateStoreConfigRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string UpdateStoreConfigRequest::getStoreId()const
{
return storeId_;
}
void UpdateStoreConfigRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", storeId);
}
bool UpdateStoreConfigRequest::getEnableNotification()const
{
return enableNotification_;
}
void UpdateStoreConfigRequest::setEnableNotification(bool enableNotification)
{
enableNotification_ = enableNotification;
setBodyParameter("EnableNotification", enableNotification ? "true" : "false");
}
std::string UpdateStoreConfigRequest::getNotificationWebHook()const
{
return notificationWebHook_;
}
void UpdateStoreConfigRequest::setNotificationWebHook(const std::string& notificationWebHook)
{
notificationWebHook_ = notificationWebHook;
setBodyParameter("NotificationWebHook", notificationWebHook);
}
std::string UpdateStoreConfigRequest::getNotificationSilentTimes()const
{
return notificationSilentTimes_;
}
void UpdateStoreConfigRequest::setNotificationSilentTimes(const std::string& notificationSilentTimes)
{
notificationSilentTimes_ = notificationSilentTimes;
setBodyParameter("NotificationSilentTimes", notificationSilentTimes);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cloudesl/model/UpdateStoreConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
UpdateStoreConfigResult::UpdateStoreConfigResult() :
ServiceResult()
{}
UpdateStoreConfigResult::UpdateStoreConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateStoreConfigResult::~UpdateStoreConfigResult()
{}
void UpdateStoreConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UpdateStoreConfigResult::getMessage()const
{
return message_;
}
std::string UpdateStoreConfigResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string UpdateStoreConfigResult::getErrorCode()const
{
return errorCode_;
}
std::string UpdateStoreConfigResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string UpdateStoreConfigResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UpdateStoreConfigResult::getCode()const
{
return code_;
}
bool UpdateStoreConfigResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudesl::Model::UpdateStoreRequest;
UpdateStoreRequest::UpdateStoreRequest() :
RpcServiceRequest("cloudesl", "2018-08-01", "UpdateStore")
RpcServiceRequest("cloudesl", "2020-02-01", "UpdateStore")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,15 +27,15 @@ UpdateStoreRequest::UpdateStoreRequest() :
UpdateStoreRequest::~UpdateStoreRequest()
{}
std::string UpdateStoreRequest::getComments()const
std::string UpdateStoreRequest::getExtraParams()const
{
return comments_;
return extraParams_;
}
void UpdateStoreRequest::setComments(const std::string& comments)
void UpdateStoreRequest::setExtraParams(const std::string& extraParams)
{
comments_ = comments;
setParameter("Comments", comments);
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string UpdateStoreRequest::getStoreName()const
@@ -46,18 +46,7 @@ std::string UpdateStoreRequest::getStoreName()const
void UpdateStoreRequest::setStoreName(const std::string& storeName)
{
storeName_ = storeName;
setParameter("StoreName", storeName);
}
std::string UpdateStoreRequest::getGroups()const
{
return groups_;
}
void UpdateStoreRequest::setGroups(const std::string& groups)
{
groups_ = groups;
setParameter("Groups", groups);
setBodyParameter("StoreName", storeName);
}
std::string UpdateStoreRequest::getStoreId()const
@@ -68,7 +57,29 @@ std::string UpdateStoreRequest::getStoreId()const
void UpdateStoreRequest::setStoreId(const std::string& storeId)
{
storeId_ = storeId;
setParameter("StoreId", storeId);
setBodyParameter("StoreId", storeId);
}
std::string UpdateStoreRequest::getTemplateVersion()const
{
return templateVersion_;
}
void UpdateStoreRequest::setTemplateVersion(const std::string& templateVersion)
{
templateVersion_ = templateVersion;
setBodyParameter("TemplateVersion", templateVersion);
}
std::string UpdateStoreRequest::getUserStoreCode()const
{
return userStoreCode_;
}
void UpdateStoreRequest::setUserStoreCode(const std::string& userStoreCode)
{
userStoreCode_ = userStoreCode;
setBodyParameter("UserStoreCode", userStoreCode);
}
std::string UpdateStoreRequest::getPhone()const
@@ -79,28 +90,6 @@ std::string UpdateStoreRequest::getPhone()const
void UpdateStoreRequest::setPhone(const std::string& phone)
{
phone_ = phone;
setParameter("Phone", phone);
}
std::string UpdateStoreRequest::getOutId()const
{
return outId_;
}
void UpdateStoreRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
}
std::string UpdateStoreRequest::getBrand()const
{
return brand_;
}
void UpdateStoreRequest::setBrand(const std::string& brand)
{
brand_ = brand;
setParameter("Brand", brand);
setBodyParameter("Phone", phone);
}

View File

@@ -39,12 +39,20 @@ void UpdateStoreResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -53,11 +61,31 @@ std::string UpdateStoreResult::getMessage()const
return message_;
}
std::string UpdateStoreResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string UpdateStoreResult::getErrorCode()const
{
return errorCode_;
}
std::string UpdateStoreResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string UpdateStoreResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UpdateStoreResult::getCode()const
{
return code_;
}
bool UpdateStoreResult::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/cloudesl/model/UpdateUserRequest.h>
using AlibabaCloud::Cloudesl::Model::UpdateUserRequest;
UpdateUserRequest::UpdateUserRequest() :
RpcServiceRequest("cloudesl", "2020-02-01", "UpdateUser")
{
setMethod(HttpRequest::Method::Post);
}
UpdateUserRequest::~UpdateUserRequest()
{}
std::string UpdateUserRequest::getExtraParams()const
{
return extraParams_;
}
void UpdateUserRequest::setExtraParams(const std::string& extraParams)
{
extraParams_ = extraParams;
setBodyParameter("ExtraParams", extraParams);
}
std::string UpdateUserRequest::getDingTalkUserId()const
{
return dingTalkUserId_;
}
void UpdateUserRequest::setDingTalkUserId(const std::string& dingTalkUserId)
{
dingTalkUserId_ = dingTalkUserId;
setBodyParameter("DingTalkUserId", dingTalkUserId);
}
std::string UpdateUserRequest::getUserId()const
{
return userId_;
}
void UpdateUserRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
std::string UpdateUserRequest::getDingTalkCompanyId()const
{
return dingTalkCompanyId_;
}
void UpdateUserRequest::setDingTalkCompanyId(const std::string& dingTalkCompanyId)
{
dingTalkCompanyId_ = dingTalkCompanyId;
setBodyParameter("DingTalkCompanyId", dingTalkCompanyId);
}

View File

@@ -14,51 +14,79 @@
* limitations under the License.
*/
#include <alibabacloud/cloudesl/model/ActivateApServiceResult.h>
#include <alibabacloud/cloudesl/model/UpdateUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudesl;
using namespace AlibabaCloud::Cloudesl::Model;
ActivateApServiceResult::ActivateApServiceResult() :
UpdateUserResult::UpdateUserResult() :
ServiceResult()
{}
ActivateApServiceResult::ActivateApServiceResult(const std::string &payload) :
UpdateUserResult::UpdateUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ActivateApServiceResult::~ActivateApServiceResult()
UpdateUserResult::~UpdateUserResult()
{}
void ActivateApServiceResult::parse(const std::string &payload)
void UpdateUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ActivateApServiceResult::getMessage()const
std::string UpdateUserResult::getMessage()const
{
return message_;
}
std::string ActivateApServiceResult::getErrorCode()const
std::string UpdateUserResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string UpdateUserResult::getErrorCode()const
{
return errorCode_;
}
bool ActivateApServiceResult::getSuccess()const
std::string UpdateUserResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string UpdateUserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UpdateUserResult::getCode()const
{
return code_;
}
bool UpdateUserResult::getSuccess()const
{
return success_;
}