diff --git a/CHANGELOG b/CHANGELOG index 56db68933..966657de8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-04-03 Version: 1.36.339 +- Support shelf type for planogram position. + 2020-04-03 Version: 1.36.338 - Support namespaces. diff --git a/VERSION b/VERSION index ad58cf9ca..a80383f25 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.338 \ No newline at end of file +1.36.339 \ No newline at end of file diff --git a/cloudesl/CMakeLists.txt b/cloudesl/CMakeLists.txt new file mode 100644 index 000000000..980700e99 --- /dev/null +++ b/cloudesl/CMakeLists.txt @@ -0,0 +1,218 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(cloudesl_public_header + include/alibabacloud/cloudesl/CloudeslClient.h + include/alibabacloud/cloudesl/CloudeslExport.h ) + +set(cloudesl_public_header_model + include/alibabacloud/cloudesl/model/ActivateApDeviceRequest.h + include/alibabacloud/cloudesl/model/ActivateApDeviceResult.h + include/alibabacloud/cloudesl/model/AddApDeviceRequest.h + include/alibabacloud/cloudesl/model/AddApDeviceResult.h + include/alibabacloud/cloudesl/model/AddPlanogramShelfRequest.h + include/alibabacloud/cloudesl/model/AddPlanogramShelfResult.h + include/alibabacloud/cloudesl/model/AddUserRequest.h + include/alibabacloud/cloudesl/model/AddUserResult.h + include/alibabacloud/cloudesl/model/AssignUserRequest.h + include/alibabacloud/cloudesl/model/AssignUserResult.h + include/alibabacloud/cloudesl/model/AssociatePlanogramRailRequest.h + include/alibabacloud/cloudesl/model/AssociatePlanogramRailResult.h + include/alibabacloud/cloudesl/model/BatchInsertItemsRequest.h + include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h + include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h + include/alibabacloud/cloudesl/model/BindEslDeviceResult.h + include/alibabacloud/cloudesl/model/ComposePlanogramPositionsRequest.h + include/alibabacloud/cloudesl/model/ComposePlanogramPositionsResult.h + include/alibabacloud/cloudesl/model/CreateStoreRequest.h + include/alibabacloud/cloudesl/model/CreateStoreResult.h + include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h + include/alibabacloud/cloudesl/model/DeleteApDeviceResult.h + include/alibabacloud/cloudesl/model/DeletePlanogramShelfRequest.h + include/alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h + include/alibabacloud/cloudesl/model/DeleteStoreRequest.h + include/alibabacloud/cloudesl/model/DeleteStoreResult.h + include/alibabacloud/cloudesl/model/DeleteUserRequest.h + include/alibabacloud/cloudesl/model/DeleteUserResult.h + include/alibabacloud/cloudesl/model/DescribeAlarmsRequest.h + include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h + include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.h + include/alibabacloud/cloudesl/model/DescribeApDevicesResult.h + include/alibabacloud/cloudesl/model/DescribeBindersRequest.h + include/alibabacloud/cloudesl/model/DescribeBindersResult.h + include/alibabacloud/cloudesl/model/DescribeEslDevicesRequest.h + include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h + include/alibabacloud/cloudesl/model/DescribeItemsRequest.h + include/alibabacloud/cloudesl/model/DescribeItemsResult.h + include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesRequest.h + include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesResult.h + include/alibabacloud/cloudesl/model/DescribePlanogramPositionsRequest.h + include/alibabacloud/cloudesl/model/DescribePlanogramPositionsResult.h + include/alibabacloud/cloudesl/model/DescribePlanogramRailsRequest.h + include/alibabacloud/cloudesl/model/DescribePlanogramRailsResult.h + include/alibabacloud/cloudesl/model/DescribePlanogramShelvesRequest.h + include/alibabacloud/cloudesl/model/DescribePlanogramShelvesResult.h + include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h + include/alibabacloud/cloudesl/model/DescribeStoreConfigResult.h + include/alibabacloud/cloudesl/model/DescribeStoresRequest.h + include/alibabacloud/cloudesl/model/DescribeStoresResult.h + include/alibabacloud/cloudesl/model/DescribeUserLogRequest.h + include/alibabacloud/cloudesl/model/DescribeUserLogResult.h + include/alibabacloud/cloudesl/model/DescribeUsersRequest.h + include/alibabacloud/cloudesl/model/DescribeUsersResult.h + include/alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h + include/alibabacloud/cloudesl/model/DissociatePlanogramRailResult.h + include/alibabacloud/cloudesl/model/GetUserRequest.h + include/alibabacloud/cloudesl/model/GetUserResult.h + include/alibabacloud/cloudesl/model/UnassignUserRequest.h + include/alibabacloud/cloudesl/model/UnassignUserResult.h + include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h + include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h + include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h + include/alibabacloud/cloudesl/model/UpdateEslDeviceLightResult.h + include/alibabacloud/cloudesl/model/UpdateStoreRequest.h + include/alibabacloud/cloudesl/model/UpdateStoreResult.h + include/alibabacloud/cloudesl/model/UpdateStoreConfigRequest.h + include/alibabacloud/cloudesl/model/UpdateStoreConfigResult.h ) + +set(cloudesl_src + src/CloudeslClient.cc + src/model/ActivateApDeviceRequest.cc + src/model/ActivateApDeviceResult.cc + src/model/AddApDeviceRequest.cc + src/model/AddApDeviceResult.cc + src/model/AddPlanogramShelfRequest.cc + src/model/AddPlanogramShelfResult.cc + src/model/AddUserRequest.cc + src/model/AddUserResult.cc + src/model/AssignUserRequest.cc + src/model/AssignUserResult.cc + src/model/AssociatePlanogramRailRequest.cc + src/model/AssociatePlanogramRailResult.cc + src/model/BatchInsertItemsRequest.cc + src/model/BatchInsertItemsResult.cc + src/model/BindEslDeviceRequest.cc + src/model/BindEslDeviceResult.cc + src/model/ComposePlanogramPositionsRequest.cc + src/model/ComposePlanogramPositionsResult.cc + src/model/CreateStoreRequest.cc + src/model/CreateStoreResult.cc + src/model/DeleteApDeviceRequest.cc + src/model/DeleteApDeviceResult.cc + src/model/DeletePlanogramShelfRequest.cc + src/model/DeletePlanogramShelfResult.cc + src/model/DeleteStoreRequest.cc + src/model/DeleteStoreResult.cc + src/model/DeleteUserRequest.cc + src/model/DeleteUserResult.cc + src/model/DescribeAlarmsRequest.cc + src/model/DescribeAlarmsResult.cc + src/model/DescribeApDevicesRequest.cc + src/model/DescribeApDevicesResult.cc + src/model/DescribeBindersRequest.cc + src/model/DescribeBindersResult.cc + src/model/DescribeEslDevicesRequest.cc + src/model/DescribeEslDevicesResult.cc + src/model/DescribeItemsRequest.cc + src/model/DescribeItemsResult.cc + src/model/DescribePlanogramEslDevicesRequest.cc + src/model/DescribePlanogramEslDevicesResult.cc + src/model/DescribePlanogramPositionsRequest.cc + src/model/DescribePlanogramPositionsResult.cc + src/model/DescribePlanogramRailsRequest.cc + src/model/DescribePlanogramRailsResult.cc + src/model/DescribePlanogramShelvesRequest.cc + src/model/DescribePlanogramShelvesResult.cc + src/model/DescribeStoreConfigRequest.cc + src/model/DescribeStoreConfigResult.cc + src/model/DescribeStoresRequest.cc + src/model/DescribeStoresResult.cc + src/model/DescribeUserLogRequest.cc + src/model/DescribeUserLogResult.cc + src/model/DescribeUsersRequest.cc + src/model/DescribeUsersResult.cc + src/model/DissociatePlanogramRailRequest.cc + src/model/DissociatePlanogramRailResult.cc + src/model/GetUserRequest.cc + src/model/GetUserResult.cc + src/model/UnassignUserRequest.cc + src/model/UnassignUserResult.cc + src/model/UnbindEslDeviceRequest.cc + src/model/UnbindEslDeviceResult.cc + src/model/UpdateEslDeviceLightRequest.cc + src/model/UpdateEslDeviceLightResult.cc + src/model/UpdateStoreRequest.cc + src/model/UpdateStoreResult.cc + src/model/UpdateStoreConfigRequest.cc + src/model/UpdateStoreConfigResult.cc ) + +add_library(cloudesl ${LIB_TYPE} + ${cloudesl_public_header} + ${cloudesl_public_header_model} + ${cloudesl_src}) + +set_target_properties(cloudesl + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}cloudesl + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(cloudesl + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_CLOUDESL_LIBRARY) +endif() + +target_include_directories(cloudesl + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(cloudesl + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(cloudesl + jsoncpp) + target_include_directories(cloudesl + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(cloudesl + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(cloudesl + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(cloudesl + PRIVATE /usr/include/jsoncpp) + target_link_libraries(cloudesl + jsoncpp) +endif() + +install(FILES ${cloudesl_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudesl) +install(FILES ${cloudesl_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudesl/model) +install(TARGETS cloudesl + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/CloudeslClient.h b/cloudesl/include/alibabacloud/cloudesl/CloudeslClient.h new file mode 100644 index 000000000..88adbb3d2 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/CloudeslClient.h @@ -0,0 +1,318 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_CLOUDESLCLIENT_H_ +#define ALIBABACLOUD_CLOUDESL_CLOUDESLCLIENT_H_ + +#include +#include +#include +#include +#include "CloudeslExport.h" +#include "model/ActivateApDeviceRequest.h" +#include "model/ActivateApDeviceResult.h" +#include "model/AddApDeviceRequest.h" +#include "model/AddApDeviceResult.h" +#include "model/AddPlanogramShelfRequest.h" +#include "model/AddPlanogramShelfResult.h" +#include "model/AddUserRequest.h" +#include "model/AddUserResult.h" +#include "model/AssignUserRequest.h" +#include "model/AssignUserResult.h" +#include "model/AssociatePlanogramRailRequest.h" +#include "model/AssociatePlanogramRailResult.h" +#include "model/BatchInsertItemsRequest.h" +#include "model/BatchInsertItemsResult.h" +#include "model/BindEslDeviceRequest.h" +#include "model/BindEslDeviceResult.h" +#include "model/ComposePlanogramPositionsRequest.h" +#include "model/ComposePlanogramPositionsResult.h" +#include "model/CreateStoreRequest.h" +#include "model/CreateStoreResult.h" +#include "model/DeleteApDeviceRequest.h" +#include "model/DeleteApDeviceResult.h" +#include "model/DeletePlanogramShelfRequest.h" +#include "model/DeletePlanogramShelfResult.h" +#include "model/DeleteStoreRequest.h" +#include "model/DeleteStoreResult.h" +#include "model/DeleteUserRequest.h" +#include "model/DeleteUserResult.h" +#include "model/DescribeAlarmsRequest.h" +#include "model/DescribeAlarmsResult.h" +#include "model/DescribeApDevicesRequest.h" +#include "model/DescribeApDevicesResult.h" +#include "model/DescribeBindersRequest.h" +#include "model/DescribeBindersResult.h" +#include "model/DescribeEslDevicesRequest.h" +#include "model/DescribeEslDevicesResult.h" +#include "model/DescribeItemsRequest.h" +#include "model/DescribeItemsResult.h" +#include "model/DescribePlanogramEslDevicesRequest.h" +#include "model/DescribePlanogramEslDevicesResult.h" +#include "model/DescribePlanogramPositionsRequest.h" +#include "model/DescribePlanogramPositionsResult.h" +#include "model/DescribePlanogramRailsRequest.h" +#include "model/DescribePlanogramRailsResult.h" +#include "model/DescribePlanogramShelvesRequest.h" +#include "model/DescribePlanogramShelvesResult.h" +#include "model/DescribeStoreConfigRequest.h" +#include "model/DescribeStoreConfigResult.h" +#include "model/DescribeStoresRequest.h" +#include "model/DescribeStoresResult.h" +#include "model/DescribeUserLogRequest.h" +#include "model/DescribeUserLogResult.h" +#include "model/DescribeUsersRequest.h" +#include "model/DescribeUsersResult.h" +#include "model/DissociatePlanogramRailRequest.h" +#include "model/DissociatePlanogramRailResult.h" +#include "model/GetUserRequest.h" +#include "model/GetUserResult.h" +#include "model/UnassignUserRequest.h" +#include "model/UnassignUserResult.h" +#include "model/UnbindEslDeviceRequest.h" +#include "model/UnbindEslDeviceResult.h" +#include "model/UpdateEslDeviceLightRequest.h" +#include "model/UpdateEslDeviceLightResult.h" +#include "model/UpdateStoreRequest.h" +#include "model/UpdateStoreResult.h" +#include "model/UpdateStoreConfigRequest.h" +#include "model/UpdateStoreConfigResult.h" + + +namespace AlibabaCloud +{ + namespace Cloudesl + { + class ALIBABACLOUD_CLOUDESL_EXPORT CloudeslClient : public RpcServiceClient + { + public: + typedef Outcome ActivateApDeviceOutcome; + typedef std::future ActivateApDeviceOutcomeCallable; + typedef std::function&)> ActivateApDeviceAsyncHandler; + typedef Outcome AddApDeviceOutcome; + typedef std::future AddApDeviceOutcomeCallable; + typedef std::function&)> AddApDeviceAsyncHandler; + typedef Outcome AddPlanogramShelfOutcome; + typedef std::future AddPlanogramShelfOutcomeCallable; + typedef std::function&)> AddPlanogramShelfAsyncHandler; + typedef Outcome AddUserOutcome; + typedef std::future AddUserOutcomeCallable; + typedef std::function&)> AddUserAsyncHandler; + typedef Outcome AssignUserOutcome; + typedef std::future AssignUserOutcomeCallable; + typedef std::function&)> AssignUserAsyncHandler; + typedef Outcome AssociatePlanogramRailOutcome; + typedef std::future AssociatePlanogramRailOutcomeCallable; + typedef std::function&)> AssociatePlanogramRailAsyncHandler; + typedef Outcome BatchInsertItemsOutcome; + typedef std::future BatchInsertItemsOutcomeCallable; + typedef std::function&)> BatchInsertItemsAsyncHandler; + typedef Outcome BindEslDeviceOutcome; + typedef std::future BindEslDeviceOutcomeCallable; + typedef std::function&)> BindEslDeviceAsyncHandler; + typedef Outcome ComposePlanogramPositionsOutcome; + typedef std::future ComposePlanogramPositionsOutcomeCallable; + typedef std::function&)> ComposePlanogramPositionsAsyncHandler; + typedef Outcome CreateStoreOutcome; + typedef std::future CreateStoreOutcomeCallable; + typedef std::function&)> CreateStoreAsyncHandler; + typedef Outcome DeleteApDeviceOutcome; + typedef std::future DeleteApDeviceOutcomeCallable; + typedef std::function&)> DeleteApDeviceAsyncHandler; + typedef Outcome DeletePlanogramShelfOutcome; + typedef std::future DeletePlanogramShelfOutcomeCallable; + typedef std::function&)> DeletePlanogramShelfAsyncHandler; + typedef Outcome DeleteStoreOutcome; + typedef std::future DeleteStoreOutcomeCallable; + typedef std::function&)> DeleteStoreAsyncHandler; + typedef Outcome DeleteUserOutcome; + typedef std::future DeleteUserOutcomeCallable; + typedef std::function&)> DeleteUserAsyncHandler; + typedef Outcome DescribeAlarmsOutcome; + typedef std::future DescribeAlarmsOutcomeCallable; + typedef std::function&)> DescribeAlarmsAsyncHandler; + typedef Outcome DescribeApDevicesOutcome; + typedef std::future DescribeApDevicesOutcomeCallable; + typedef std::function&)> DescribeApDevicesAsyncHandler; + typedef Outcome DescribeBindersOutcome; + typedef std::future DescribeBindersOutcomeCallable; + typedef std::function&)> DescribeBindersAsyncHandler; + typedef Outcome DescribeEslDevicesOutcome; + typedef std::future DescribeEslDevicesOutcomeCallable; + typedef std::function&)> DescribeEslDevicesAsyncHandler; + typedef Outcome DescribeItemsOutcome; + typedef std::future DescribeItemsOutcomeCallable; + typedef std::function&)> DescribeItemsAsyncHandler; + typedef Outcome DescribePlanogramEslDevicesOutcome; + typedef std::future DescribePlanogramEslDevicesOutcomeCallable; + typedef std::function&)> DescribePlanogramEslDevicesAsyncHandler; + typedef Outcome DescribePlanogramPositionsOutcome; + typedef std::future DescribePlanogramPositionsOutcomeCallable; + typedef std::function&)> DescribePlanogramPositionsAsyncHandler; + typedef Outcome DescribePlanogramRailsOutcome; + typedef std::future DescribePlanogramRailsOutcomeCallable; + typedef std::function&)> DescribePlanogramRailsAsyncHandler; + typedef Outcome DescribePlanogramShelvesOutcome; + typedef std::future DescribePlanogramShelvesOutcomeCallable; + typedef std::function&)> DescribePlanogramShelvesAsyncHandler; + typedef Outcome DescribeStoreConfigOutcome; + typedef std::future DescribeStoreConfigOutcomeCallable; + typedef std::function&)> DescribeStoreConfigAsyncHandler; + typedef Outcome DescribeStoresOutcome; + typedef std::future DescribeStoresOutcomeCallable; + typedef std::function&)> DescribeStoresAsyncHandler; + typedef Outcome DescribeUserLogOutcome; + typedef std::future DescribeUserLogOutcomeCallable; + typedef std::function&)> DescribeUserLogAsyncHandler; + typedef Outcome DescribeUsersOutcome; + typedef std::future DescribeUsersOutcomeCallable; + typedef std::function&)> DescribeUsersAsyncHandler; + typedef Outcome DissociatePlanogramRailOutcome; + typedef std::future DissociatePlanogramRailOutcomeCallable; + typedef std::function&)> DissociatePlanogramRailAsyncHandler; + typedef Outcome GetUserOutcome; + typedef std::future GetUserOutcomeCallable; + typedef std::function&)> GetUserAsyncHandler; + typedef Outcome UnassignUserOutcome; + typedef std::future UnassignUserOutcomeCallable; + typedef std::function&)> UnassignUserAsyncHandler; + typedef Outcome UnbindEslDeviceOutcome; + typedef std::future UnbindEslDeviceOutcomeCallable; + typedef std::function&)> UnbindEslDeviceAsyncHandler; + typedef Outcome UpdateEslDeviceLightOutcome; + typedef std::future UpdateEslDeviceLightOutcomeCallable; + typedef std::function&)> UpdateEslDeviceLightAsyncHandler; + typedef Outcome UpdateStoreOutcome; + typedef std::future UpdateStoreOutcomeCallable; + typedef std::function&)> UpdateStoreAsyncHandler; + typedef Outcome UpdateStoreConfigOutcome; + typedef std::future UpdateStoreConfigOutcomeCallable; + typedef std::function&)> UpdateStoreConfigAsyncHandler; + + CloudeslClient(const Credentials &credentials, const ClientConfiguration &configuration); + CloudeslClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + CloudeslClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~CloudeslClient(); + ActivateApDeviceOutcome activateApDevice(const Model::ActivateApDeviceRequest &request)const; + void activateApDeviceAsync(const Model::ActivateApDeviceRequest& request, const ActivateApDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActivateApDeviceOutcomeCallable activateApDeviceCallable(const Model::ActivateApDeviceRequest& request) const; + AddApDeviceOutcome addApDevice(const Model::AddApDeviceRequest &request)const; + void addApDeviceAsync(const Model::AddApDeviceRequest& request, const AddApDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddApDeviceOutcomeCallable addApDeviceCallable(const Model::AddApDeviceRequest& request) const; + AddPlanogramShelfOutcome addPlanogramShelf(const Model::AddPlanogramShelfRequest &request)const; + void addPlanogramShelfAsync(const Model::AddPlanogramShelfRequest& request, const AddPlanogramShelfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPlanogramShelfOutcomeCallable addPlanogramShelfCallable(const Model::AddPlanogramShelfRequest& request) const; + AddUserOutcome addUser(const Model::AddUserRequest &request)const; + void addUserAsync(const Model::AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddUserOutcomeCallable addUserCallable(const Model::AddUserRequest& request) const; + AssignUserOutcome assignUser(const Model::AssignUserRequest &request)const; + void assignUserAsync(const Model::AssignUserRequest& request, const AssignUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssignUserOutcomeCallable assignUserCallable(const Model::AssignUserRequest& request) const; + AssociatePlanogramRailOutcome associatePlanogramRail(const Model::AssociatePlanogramRailRequest &request)const; + void associatePlanogramRailAsync(const Model::AssociatePlanogramRailRequest& request, const AssociatePlanogramRailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociatePlanogramRailOutcomeCallable associatePlanogramRailCallable(const Model::AssociatePlanogramRailRequest& request) const; + BatchInsertItemsOutcome batchInsertItems(const Model::BatchInsertItemsRequest &request)const; + void batchInsertItemsAsync(const Model::BatchInsertItemsRequest& request, const BatchInsertItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchInsertItemsOutcomeCallable batchInsertItemsCallable(const Model::BatchInsertItemsRequest& request) const; + BindEslDeviceOutcome bindEslDevice(const Model::BindEslDeviceRequest &request)const; + void bindEslDeviceAsync(const Model::BindEslDeviceRequest& request, const BindEslDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindEslDeviceOutcomeCallable bindEslDeviceCallable(const Model::BindEslDeviceRequest& request) const; + ComposePlanogramPositionsOutcome composePlanogramPositions(const Model::ComposePlanogramPositionsRequest &request)const; + void composePlanogramPositionsAsync(const Model::ComposePlanogramPositionsRequest& request, const ComposePlanogramPositionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ComposePlanogramPositionsOutcomeCallable composePlanogramPositionsCallable(const Model::ComposePlanogramPositionsRequest& request) const; + CreateStoreOutcome createStore(const Model::CreateStoreRequest &request)const; + void createStoreAsync(const Model::CreateStoreRequest& request, const CreateStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateStoreOutcomeCallable createStoreCallable(const Model::CreateStoreRequest& request) const; + DeleteApDeviceOutcome deleteApDevice(const Model::DeleteApDeviceRequest &request)const; + void deleteApDeviceAsync(const Model::DeleteApDeviceRequest& request, const DeleteApDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApDeviceOutcomeCallable deleteApDeviceCallable(const Model::DeleteApDeviceRequest& request) const; + DeletePlanogramShelfOutcome deletePlanogramShelf(const Model::DeletePlanogramShelfRequest &request)const; + void deletePlanogramShelfAsync(const Model::DeletePlanogramShelfRequest& request, const DeletePlanogramShelfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePlanogramShelfOutcomeCallable deletePlanogramShelfCallable(const Model::DeletePlanogramShelfRequest& request) const; + DeleteStoreOutcome deleteStore(const Model::DeleteStoreRequest &request)const; + void deleteStoreAsync(const Model::DeleteStoreRequest& request, const DeleteStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteStoreOutcomeCallable deleteStoreCallable(const Model::DeleteStoreRequest& request) const; + DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; + void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; + DescribeAlarmsOutcome describeAlarms(const Model::DescribeAlarmsRequest &request)const; + void describeAlarmsAsync(const Model::DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlarmsOutcomeCallable describeAlarmsCallable(const Model::DescribeAlarmsRequest& request) const; + DescribeApDevicesOutcome describeApDevices(const Model::DescribeApDevicesRequest &request)const; + void describeApDevicesAsync(const Model::DescribeApDevicesRequest& request, const DescribeApDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApDevicesOutcomeCallable describeApDevicesCallable(const Model::DescribeApDevicesRequest& request) const; + DescribeBindersOutcome describeBinders(const Model::DescribeBindersRequest &request)const; + void describeBindersAsync(const Model::DescribeBindersRequest& request, const DescribeBindersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBindersOutcomeCallable describeBindersCallable(const Model::DescribeBindersRequest& request) const; + DescribeEslDevicesOutcome describeEslDevices(const Model::DescribeEslDevicesRequest &request)const; + void describeEslDevicesAsync(const Model::DescribeEslDevicesRequest& request, const DescribeEslDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEslDevicesOutcomeCallable describeEslDevicesCallable(const Model::DescribeEslDevicesRequest& request) const; + DescribeItemsOutcome describeItems(const Model::DescribeItemsRequest &request)const; + void describeItemsAsync(const Model::DescribeItemsRequest& request, const DescribeItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeItemsOutcomeCallable describeItemsCallable(const Model::DescribeItemsRequest& request) const; + DescribePlanogramEslDevicesOutcome describePlanogramEslDevices(const Model::DescribePlanogramEslDevicesRequest &request)const; + void describePlanogramEslDevicesAsync(const Model::DescribePlanogramEslDevicesRequest& request, const DescribePlanogramEslDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlanogramEslDevicesOutcomeCallable describePlanogramEslDevicesCallable(const Model::DescribePlanogramEslDevicesRequest& request) const; + DescribePlanogramPositionsOutcome describePlanogramPositions(const Model::DescribePlanogramPositionsRequest &request)const; + void describePlanogramPositionsAsync(const Model::DescribePlanogramPositionsRequest& request, const DescribePlanogramPositionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlanogramPositionsOutcomeCallable describePlanogramPositionsCallable(const Model::DescribePlanogramPositionsRequest& request) const; + DescribePlanogramRailsOutcome describePlanogramRails(const Model::DescribePlanogramRailsRequest &request)const; + void describePlanogramRailsAsync(const Model::DescribePlanogramRailsRequest& request, const DescribePlanogramRailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlanogramRailsOutcomeCallable describePlanogramRailsCallable(const Model::DescribePlanogramRailsRequest& request) const; + DescribePlanogramShelvesOutcome describePlanogramShelves(const Model::DescribePlanogramShelvesRequest &request)const; + void describePlanogramShelvesAsync(const Model::DescribePlanogramShelvesRequest& request, const DescribePlanogramShelvesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlanogramShelvesOutcomeCallable describePlanogramShelvesCallable(const Model::DescribePlanogramShelvesRequest& request) const; + DescribeStoreConfigOutcome describeStoreConfig(const Model::DescribeStoreConfigRequest &request)const; + void describeStoreConfigAsync(const Model::DescribeStoreConfigRequest& request, const DescribeStoreConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStoreConfigOutcomeCallable describeStoreConfigCallable(const Model::DescribeStoreConfigRequest& request) const; + DescribeStoresOutcome describeStores(const Model::DescribeStoresRequest &request)const; + void describeStoresAsync(const Model::DescribeStoresRequest& request, const DescribeStoresAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStoresOutcomeCallable describeStoresCallable(const Model::DescribeStoresRequest& request) const; + DescribeUserLogOutcome describeUserLog(const Model::DescribeUserLogRequest &request)const; + void describeUserLogAsync(const Model::DescribeUserLogRequest& request, const DescribeUserLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserLogOutcomeCallable describeUserLogCallable(const Model::DescribeUserLogRequest& request) const; + DescribeUsersOutcome describeUsers(const Model::DescribeUsersRequest &request)const; + void describeUsersAsync(const Model::DescribeUsersRequest& request, const DescribeUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUsersOutcomeCallable describeUsersCallable(const Model::DescribeUsersRequest& request) const; + DissociatePlanogramRailOutcome dissociatePlanogramRail(const Model::DissociatePlanogramRailRequest &request)const; + void dissociatePlanogramRailAsync(const Model::DissociatePlanogramRailRequest& request, const DissociatePlanogramRailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DissociatePlanogramRailOutcomeCallable dissociatePlanogramRailCallable(const Model::DissociatePlanogramRailRequest& request) const; + GetUserOutcome getUser(const Model::GetUserRequest &request)const; + void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const; + UnassignUserOutcome unassignUser(const Model::UnassignUserRequest &request)const; + void unassignUserAsync(const Model::UnassignUserRequest& request, const UnassignUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassignUserOutcomeCallable unassignUserCallable(const Model::UnassignUserRequest& request) const; + UnbindEslDeviceOutcome unbindEslDevice(const Model::UnbindEslDeviceRequest &request)const; + void unbindEslDeviceAsync(const Model::UnbindEslDeviceRequest& request, const UnbindEslDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindEslDeviceOutcomeCallable unbindEslDeviceCallable(const Model::UnbindEslDeviceRequest& request) const; + UpdateEslDeviceLightOutcome updateEslDeviceLight(const Model::UpdateEslDeviceLightRequest &request)const; + void updateEslDeviceLightAsync(const Model::UpdateEslDeviceLightRequest& request, const UpdateEslDeviceLightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEslDeviceLightOutcomeCallable updateEslDeviceLightCallable(const Model::UpdateEslDeviceLightRequest& request) const; + UpdateStoreOutcome updateStore(const Model::UpdateStoreRequest &request)const; + void updateStoreAsync(const Model::UpdateStoreRequest& request, const UpdateStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateStoreOutcomeCallable updateStoreCallable(const Model::UpdateStoreRequest& request) const; + UpdateStoreConfigOutcome updateStoreConfig(const Model::UpdateStoreConfigRequest &request)const; + void updateStoreConfigAsync(const Model::UpdateStoreConfigRequest& request, const UpdateStoreConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateStoreConfigOutcomeCallable updateStoreConfigCallable(const Model::UpdateStoreConfigRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_CLOUDESL_CLOUDESLCLIENT_H_ diff --git a/cloudesl/include/alibabacloud/cloudesl/CloudeslExport.h b/cloudesl/include/alibabacloud/cloudesl/CloudeslExport.h new file mode 100644 index 000000000..f77cdf5f6 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/CloudeslExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_CLOUDESLEXPORT_H_ +#define ALIBABACLOUD_CLOUDESL_CLOUDESLEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_CLOUDESL_LIBRARY) +# define ALIBABACLOUD_CLOUDESL_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_CLOUDESL_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_CLOUDESL_EXPORT +#endif + +#endif // !ALIBABACLOUD_CLOUDESL_CLOUDESLEXPORT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceRequest.h new file mode 100644 index 000000000..e2985500d --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICEREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApDeviceRequest : public RpcServiceRequest + { + + public: + ActivateApDeviceRequest(); + ~ActivateApDeviceRequest(); + + std::string getApMac()const; + void setApMac(const std::string& apMac); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + + private: + std::string apMac_; + std::string storeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICEREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceResult.h new file mode 100644 index 000000000..7b906d628 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApDeviceResult : public ServiceResult + { + public: + + + ActivateApDeviceResult(); + explicit ActivateApDeviceResult(const std::string &payload); + ~ActivateApDeviceResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceRequest.h new file mode 100644 index 000000000..ff8e2036d --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICEREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AddApDeviceRequest : public RpcServiceRequest + { + + public: + AddApDeviceRequest(); + ~AddApDeviceRequest(); + + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getApMac()const; + void setApMac(const std::string& apMac); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + + private: + std::string remark_; + std::string apMac_; + std::string storeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICEREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceResult.h new file mode 100644 index 000000000..d4698de77 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AddApDeviceResult : public ServiceResult + { + public: + + + AddApDeviceResult(); + explicit AddApDeviceResult(const std::string &payload); + ~AddApDeviceResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfRequest.h new file mode 100644 index 000000000..14a7d198d --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AddPlanogramShelfRequest : public RpcServiceRequest + { + + public: + AddPlanogramShelfRequest(); + ~AddPlanogramShelfRequest(); + + std::string getShelfType()const; + void setShelfType(const std::string& shelfType); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getShelf()const; + void setShelf(const std::string& shelf); + + private: + std::string shelfType_; + std::string storeId_; + std::string shelf_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfResult.h new file mode 100644 index 000000000..b540db400 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AddPlanogramShelfResult : public ServiceResult + { + public: + + + AddPlanogramShelfResult(); + explicit AddPlanogramShelfResult(const std::string &payload); + ~AddPlanogramShelfResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AddUserRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/AddUserRequest.h new file mode 100644 index 000000000..977e0c05a --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AddUserRequest : public RpcServiceRequest + { + + public: + AddUserRequest(); + ~AddUserRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AddUserResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AddUserResult.h new file mode 100644 index 000000000..d83661626 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddUserResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AddUserResult : public ServiceResult + { + public: + + + AddUserResult(); + explicit AddUserResult(const std::string &payload); + ~AddUserResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AssignUserRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/AssignUserRequest.h new file mode 100644 index 000000000..b9e0b0890 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AssignUserRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AssignUserRequest : public RpcServiceRequest + { + + public: + AssignUserRequest(); + ~AssignUserRequest(); + + std::string getStores()const; + void setStores(const std::string& stores); + std::string getUserType()const; + void setUserType(const std::string& userType); + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string stores_; + std::string userType_; + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AssignUserResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AssignUserResult.h new file mode 100644 index 000000000..642ecddb5 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AssignUserResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AssignUserResult : public ServiceResult + { + public: + + + AssignUserResult(); + explicit AssignUserResult(const std::string &payload); + ~AssignUserResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AssociatePlanogramRailRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/AssociatePlanogramRailRequest.h new file mode 100644 index 000000000..bcc58a801 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AssociatePlanogramRailRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AssociatePlanogramRailRequest : public RpcServiceRequest + { + + public: + AssociatePlanogramRailRequest(); + ~AssociatePlanogramRailRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + std::string getShelf()const; + void setShelf(const std::string& shelf); + std::string getRailCode()const; + void setRailCode(const std::string& railCode); + + private: + std::string storeId_; + int layer_; + std::string shelf_; + std::string railCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AssociatePlanogramRailResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AssociatePlanogramRailResult.h new file mode 100644 index 000000000..3f42dcfb3 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AssociatePlanogramRailResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AssociatePlanogramRailResult : public ServiceResult + { + public: + + + AssociatePlanogramRailResult(); + explicit AssociatePlanogramRailResult(const std::string &payload); + ~AssociatePlanogramRailResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ASSOCIATEPLANOGRAMRAILRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsRequest.h new file mode 100644 index 000000000..d33486b45 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsRequest.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BATCHINSERTITEMSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_BATCHINSERTITEMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT BatchInsertItemsRequest : public RpcServiceRequest + { + public: + struct ItemInfo + { + int memberPrice; + int actionPrice; + bool beSourceCode; + std::string brandName; + std::string promotionStart; + std::string priceUnit; + std::string rank; + int itemInfoIndex; + std::string itemBarCode; + std::string customizeFeatureK; + std::string customizeFeatureL; + std::string customizeFeatureM; + bool bePromotion; + std::string customizeFeatureN; + std::string customizeFeatureO; + std::string promotionEnd; + std::string itemTitle; + std::string customizeFeatureC; + std::string customizeFeatureD; + std::string itemQrCode; + std::string customizeFeatureE; + std::string inventoryStatus; + std::string promotionReason; + std::string customizeFeatureF; + std::string customizeFeatureG; + std::string customizeFeatureH; + std::string customizeFeatureI; + std::string customizeFeatureJ; + std::string customizeFeatureA; + std::string customizeFeatureB; + int suggestPrice; + std::string forestFirstId; + std::string productionPlace; + std::string manufacturer; + std::string sourceCode; + std::string itemId; + int salesPrice; + int originalPrice; + std::string itemShortTitle; + std::string forestSecondId; + std::string itemPicUrl; + std::string supplierName; + std::string material; + std::string modelNumber; + std::string saleSpec; + std::string categoryName; + std::string taxFee; + std::string energyEfficiency; + std::string promotionText; + std::string skuId; + }; + + public: + BatchInsertItemsRequest(); + ~BatchInsertItemsRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::vector getItemInfo()const; + void setItemInfo(const std::vector& itemInfo); + + private: + std::string storeId_; + std::vector itemInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_BATCHINSERTITEMSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h new file mode 100644 index 000000000..56a12665b --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BATCHINSERTITEMSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_BATCHINSERTITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT BatchInsertItemsResult : public ServiceResult + { + public: + struct BatchResult + { + std::string message; + int index; + std::string errorCode; + bool success; + }; + + + BatchInsertItemsResult(); + explicit BatchInsertItemsResult(const std::string &payload); + ~BatchInsertItemsResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::vector getBatchResults()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::vector batchResults_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_BATCHINSERTITEMSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h new file mode 100644 index 000000000..fbc3ed79c --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICEREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT BindEslDeviceRequest : public RpcServiceRequest + { + + public: + BindEslDeviceRequest(); + ~BindEslDeviceRequest(); + + std::string getColumn()const; + void setColumn(const std::string& column); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + std::string getShelf()const; + void setShelf(const std::string& shelf); + std::string getEslBarCode()const; + void setEslBarCode(const std::string& eslBarCode); + std::string getItemBarCode()const; + void setItemBarCode(const std::string& itemBarCode); + + private: + std::string column_; + std::string storeId_; + int layer_; + std::string shelf_; + std::string eslBarCode_; + std::string itemBarCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICEREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceResult.h new file mode 100644 index 000000000..dd4a2a297 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT BindEslDeviceResult : public ServiceResult + { + public: + + + BindEslDeviceResult(); + explicit BindEslDeviceResult(const std::string &payload); + ~BindEslDeviceResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsRequest.h new file mode 100644 index 000000000..11f616d16 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsRequest.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_COMPOSEPLANOGRAMPOSITIONSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_COMPOSEPLANOGRAMPOSITIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT ComposePlanogramPositionsRequest : public RpcServiceRequest + { + public: + struct ShelfPositionInfo + { + float offsetFrom; + float depth; + std::string column; + int facing; + float offsetTo; + std::string itemBarCode; + }; + + public: + ComposePlanogramPositionsRequest(); + ~ComposePlanogramPositionsRequest(); + + std::string getActionType()const; + void setActionType(const std::string& actionType); + bool getBeAutoRefresh()const; + void setBeAutoRefresh(bool beAutoRefresh); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + std::string getShelf()const; + void setShelf(const std::string& shelf); + std::string getLayerOrigin()const; + void setLayerOrigin(const std::string& layerOrigin); + std::vector getShelfPositionInfo()const; + void setShelfPositionInfo(const std::vector& shelfPositionInfo); + + private: + std::string actionType_; + bool beAutoRefresh_; + std::string storeId_; + int layer_; + std::string shelf_; + std::string layerOrigin_; + std::vector shelfPositionInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_COMPOSEPLANOGRAMPOSITIONSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsResult.h new file mode 100644 index 000000000..faf3faeb7 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_COMPOSEPLANOGRAMPOSITIONSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_COMPOSEPLANOGRAMPOSITIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT ComposePlanogramPositionsResult : public ServiceResult + { + public: + + + ComposePlanogramPositionsResult(); + explicit ComposePlanogramPositionsResult(const std::string &payload); + ~ComposePlanogramPositionsResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_COMPOSEPLANOGRAMPOSITIONSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreRequest.h new file mode 100644 index 000000000..a7ec01b1a --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_CREATESTOREREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_CREATESTOREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT CreateStoreRequest : public RpcServiceRequest + { + + public: + CreateStoreRequest(); + ~CreateStoreRequest(); + + std::string getStoreName()const; + void setStoreName(const std::string& storeName); + std::string getParentId()const; + void setParentId(const std::string& parentId); + std::string getPhone()const; + void setPhone(const std::string& phone); + std::string getUserStoreCode()const; + void setUserStoreCode(const std::string& userStoreCode); + + private: + std::string storeName_; + std::string parentId_; + std::string phone_; + std::string userStoreCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_CREATESTOREREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreResult.h b/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreResult.h new file mode 100644 index 000000000..8b7c21900 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_CREATESTORERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_CREATESTORERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT CreateStoreResult : public ServiceResult + { + public: + + + CreateStoreResult(); + explicit CreateStoreResult(const std::string &payload); + ~CreateStoreResult(); + std::string getMessage()const; + std::string getStoreId()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string storeId_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_CREATESTORERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h new file mode 100644 index 000000000..876eeeb89 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICEREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteApDeviceRequest : public RpcServiceRequest + { + + public: + DeleteApDeviceRequest(); + ~DeleteApDeviceRequest(); + + std::string getApMac()const; + void setApMac(const std::string& apMac); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + + private: + std::string apMac_; + std::string storeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICEREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceResult.h new file mode 100644 index 000000000..279dbce86 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteApDeviceResult : public ServiceResult + { + public: + + + DeleteApDeviceResult(); + explicit DeleteApDeviceResult(const std::string &payload); + ~DeleteApDeviceResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfRequest.h new file mode 100644 index 000000000..a2a979cf7 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeletePlanogramShelfRequest : public RpcServiceRequest + { + + public: + DeletePlanogramShelfRequest(); + ~DeletePlanogramShelfRequest(); + + bool getBeAutoRefresh()const; + void setBeAutoRefresh(bool beAutoRefresh); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getShelf()const; + void setShelf(const std::string& shelf); + + private: + bool beAutoRefresh_; + std::string storeId_; + std::string shelf_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h new file mode 100644 index 000000000..417394225 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeletePlanogramShelfResult : public ServiceResult + { + public: + + + DeletePlanogramShelfResult(); + explicit DeletePlanogramShelfResult(const std::string &payload); + ~DeletePlanogramShelfResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreRequest.h new file mode 100644 index 000000000..f026d40ae --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETESTOREREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETESTOREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteStoreRequest : public RpcServiceRequest + { + + public: + DeleteStoreRequest(); + ~DeleteStoreRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + + private: + std::string storeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETESTOREREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreResult.h new file mode 100644 index 000000000..515c8cdd4 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETESTORERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETESTORERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteStoreResult : public ServiceResult + { + public: + + + DeleteStoreResult(); + explicit DeleteStoreResult(const std::string &payload); + ~DeleteStoreResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETESTORERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserRequest.h new file mode 100644 index 000000000..0262f6814 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteUserRequest : public RpcServiceRequest + { + + public: + DeleteUserRequest(); + ~DeleteUserRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserResult.h new file mode 100644 index 000000000..ab17f8b36 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteUserResult : public ServiceResult + { + public: + + + DeleteUserResult(); + explicit DeleteUserResult(const std::string &payload); + ~DeleteUserResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsRequest.h new file mode 100644 index 000000000..93751f833 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEALARMSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEALARMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeAlarmsRequest : public RpcServiceRequest + { + + public: + DescribeAlarmsRequest(); + ~DescribeAlarmsRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getAlarmType()const; + void setAlarmType(const std::string& alarmType); + std::string getAlarmStatus()const; + void setAlarmStatus(const std::string& alarmStatus); + std::string getErrorType()const; + void setErrorType(const std::string& errorType); + std::string getAlarmId()const; + void setAlarmId(const std::string& alarmId); + std::string getDeviceMac()const; + void setDeviceMac(const std::string& deviceMac); + + private: + std::string storeId_; + int pageNumber_; + int pageSize_; + std::string alarmType_; + std::string alarmStatus_; + std::string errorType_; + std::string alarmId_; + std::string deviceMac_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEALARMSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h new file mode 100644 index 000000000..5b21a3171 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEALARMSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEALARMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeAlarmsResult : public ServiceResult + { + public: + struct AlarmInfo + { + std::string alarmId; + std::string retryGmtCreate; + std::string alarmType; + std::string deviceBarCode; + std::string deviceMac; + std::string itemBarCode; + std::string remark; + std::string deviceType; + std::string storeId; + std::string errorType; + std::string alarmTime; + std::string dealUserId; + std::string itemTitle; + std::string retryGmtModified; + std::string alarmStatus; + std::string dealTime; + long retryTimes; + }; + + + DescribeAlarmsResult(); + explicit DescribeAlarmsResult(const std::string &payload); + ~DescribeAlarmsResult(); + int getTotalCount()const; + int getPageSize()const; + std::string getMessage()const; + int getPageNumber()const; + std::vector getAlarms()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::string message_; + int pageNumber_; + std::vector alarms_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEALARMSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.h new file mode 100644 index 000000000..014ac164d --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEAPDEVICESREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEAPDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeApDevicesRequest : public RpcServiceRequest + { + + public: + DescribeApDevicesRequest(); + ~DescribeApDevicesRequest(); + + std::string getApMac()const; + void setApMac(const std::string& apMac); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getModel()const; + void setModel(const std::string& model); + bool getBeActivate()const; + void setBeActivate(bool beActivate); + bool getStatus()const; + void setStatus(bool status); + + private: + std::string apMac_; + std::string storeId_; + int pageNumber_; + int pageSize_; + std::string model_; + bool beActivate_; + bool status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEAPDEVICESREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesResult.h new file mode 100644 index 000000000..5807a518b --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEAPDEVICESRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEAPDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeApDevicesResult : public ServiceResult + { + public: + struct ApInfo + { + bool status; + bool beActivate; + std::string storeId; + std::string model; + std::string mac; + std::string remark; + }; + + + DescribeApDevicesResult(); + explicit DescribeApDevicesResult(const std::string &payload); + ~DescribeApDevicesResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getDynamicCode()const; + std::vector getApDevices()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string dynamicCode_; + std::vector apDevices_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEAPDEVICESRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeBindersRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeBindersRequest.h new file mode 100644 index 000000000..3595696e5 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeBindersRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEBINDERSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEBINDERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeBindersRequest : public RpcServiceRequest + { + + public: + DescribeBindersRequest(); + ~DescribeBindersRequest(); + + std::string getItemTitle()const; + void setItemTitle(const std::string& itemTitle); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getEslBarCode()const; + void setEslBarCode(const std::string& eslBarCode); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getItemBarCode()const; + void setItemBarCode(const std::string& itemBarCode); + + private: + std::string itemTitle_; + std::string storeId_; + int pageNumber_; + std::string eslBarCode_; + int pageSize_; + std::string itemBarCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEBINDERSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeBindersResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeBindersResult.h new file mode 100644 index 000000000..6a6170ba8 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeBindersResult.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEBINDERSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEBINDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeBindersResult : public ServiceResult + { + public: + struct EslItemBindInfo + { + std::string bindId; + std::string originalPrice; + std::string gmtModified; + std::string actionPrice; + std::string eslPic; + std::string promotionStart; + std::string itemBarCode; + std::string templateSceneId; + std::string itemId; + std::string promotionText; + std::string promotionEnd; + std::string eslModel; + std::string eslBarCode; + std::string priceUnit; + std::string itemShortTitle; + std::string storeId; + std::string itemTitle; + std::string eslStatus; + std::string skuId; + std::string templateId; + std::string eslConnectAp; + bool bePromotion; + }; + + + DescribeBindersResult(); + explicit DescribeBindersResult(const std::string &payload); + ~DescribeBindersResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getEslItemBindInfos()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + std::vector eslItemBindInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEBINDERSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesRequest.h new file mode 100644 index 000000000..2a1fb7c8a --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEESLDEVICESREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEESLDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeEslDevicesRequest : public RpcServiceRequest + { + + public: + DescribeEslDevicesRequest(); + ~DescribeEslDevicesRequest(); + + std::string getType()const; + void setType(const std::string& type); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getEslBarCode()const; + void setEslBarCode(const std::string& eslBarCode); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEslStatus()const; + void setEslStatus(const std::string& eslStatus); + int getToBatteryLevel()const; + void setToBatteryLevel(int toBatteryLevel); + int getFromBatteryLevel()const; + void setFromBatteryLevel(int fromBatteryLevel); + + private: + std::string type_; + std::string storeId_; + int pageNumber_; + std::string eslBarCode_; + int pageSize_; + std::string eslStatus_; + int toBatteryLevel_; + int fromBatteryLevel_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEESLDEVICESREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h new file mode 100644 index 000000000..2eb16a74f --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEESLDEVICESRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEESLDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeEslDevicesResult : public ServiceResult + { + public: + struct EslDeviceInfo + { + std::string eslBarCode; + std::string type; + int batteryLevel; + std::string storeId; + std::string model; + int screenWidth; + std::string eslStatus; + int screenHeight; + std::string lastCommunicateTime; + std::string mac; + }; + + + DescribeEslDevicesResult(); + explicit DescribeEslDevicesResult(const std::string &payload); + ~DescribeEslDevicesResult(); + int getTotalCount()const; + int getPageSize()const; + std::string getMessage()const; + int getPageNumber()const; + std::vector getEslDevices()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::string message_; + int pageNumber_; + std::vector eslDevices_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEESLDEVICESRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsRequest.h new file mode 100644 index 000000000..70d2ca38f --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEITEMSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEITEMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeItemsRequest : public RpcServiceRequest + { + + public: + DescribeItemsRequest(); + ~DescribeItemsRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getItemId()const; + void setItemId(const std::string& itemId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getItemBarCode()const; + void setItemBarCode(const std::string& itemBarCode); + bool getBePromotion()const; + void setBePromotion(bool bePromotion); + std::string getItemTitle()const; + void setItemTitle(const std::string& itemTitle); + std::string getSkuId()const; + void setSkuId(const std::string& skuId); + + private: + std::string storeId_; + int pageNumber_; + std::string itemId_; + int pageSize_; + std::string itemBarCode_; + bool bePromotion_; + std::string itemTitle_; + std::string skuId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEITEMSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsResult.h new file mode 100644 index 000000000..bb3fd6533 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsResult.h @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEITEMSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeItemsResult : public ServiceResult + { + public: + struct ItemInfo + { + std::string saleSpec; + int originalPrice; + std::string promotionStart; + std::string itemId; + std::string promotionEnd; + std::string brandName; + std::string energyEfficiency; + std::string inventoryStatus; + std::string manufacturer; + std::string taxFee; + std::string customizeFeatureJ; + std::string modelNumber; + std::string customizeFeatureI; + std::string customizeFeatureH; + std::string customizeFeatureG; + std::string promotionReason; + std::string customizeFeatureF; + std::string customizeFeatureE; + std::string customizeFeatureD; + std::string customizeFeatureC; + std::string customizeFeatureO; + std::string customizeFeatureN; + std::string customizeFeatureM; + std::string customizeFeatureL; + std::string customizeFeatureK; + int itemInfoIndex; + std::string itemQrCode; + std::string customizeFeatureB; + std::string customizeFeatureA; + int memberPrice; + std::string skuId; + bool bePromotion; + int suggestPrice; + std::string sourceCode; + std::string itemBarCode; + int salesPrice; + std::string itemShortTitle; + std::string itemPicUrl; + std::string itemTitle; + std::string productionPlace; + std::string forestFirstId; + int actionPrice; + std::string material; + std::string rank; + std::string forestSecondId; + std::string promotionText; + std::string priceUnit; + std::string supplierName; + std::string categoryName; + bool beSourceCode; + }; + + + DescribeItemsResult(); + explicit DescribeItemsResult(const std::string &payload); + ~DescribeItemsResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector items_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEITEMSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesRequest.h new file mode 100644 index 000000000..07fd14937 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMESLDEVICESREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMESLDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramEslDevicesRequest : public RpcServiceRequest + { + + public: + DescribePlanogramEslDevicesRequest(); + ~DescribePlanogramEslDevicesRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + std::string getShelf()const; + void setShelf(const std::string& shelf); + + private: + std::string storeId_; + int layer_; + std::string shelf_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMESLDEVICESREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesResult.h new file mode 100644 index 000000000..b5e557ff4 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMESLDEVICESRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMESLDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramEslDevicesResult : public ServiceResult + { + public: + struct EslDeviceLayerInfo + { + struct EslDevicePositionInfo + { + struct EslDevicePlanogramInfo + { + std::string eslModel; + std::string eslBarCode; + std::string itemTitle; + std::string itemBarCode; + }; + std::vector eslDevicePlanogramInfos; + std::string column; + }; + int layer; + std::vector eslDevicePositionInfos; + }; + + + DescribePlanogramEslDevicesResult(); + explicit DescribePlanogramEslDevicesResult(const std::string &payload); + ~DescribePlanogramEslDevicesResult(); + std::string getMessage()const; + std::string getStoreId()const; + std::string getShelf()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::vector getEslDeviceLayerInfos()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string storeId_; + std::string shelf_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string errorCode_; + std::vector eslDeviceLayerInfos_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMESLDEVICESRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramPositionsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramPositionsRequest.h new file mode 100644 index 000000000..3e62a6741 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramPositionsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramPositionsRequest : public RpcServiceRequest + { + + public: + DescribePlanogramPositionsRequest(); + ~DescribePlanogramPositionsRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + std::string getShelf()const; + void setShelf(const std::string& shelf); + + private: + std::string storeId_; + int layer_; + std::string shelf_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramPositionsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramPositionsResult.h new file mode 100644 index 000000000..a82fc6b6a --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramPositionsResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramPositionsResult : public ServiceResult + { + public: + struct LayerInfo + { + struct ShelfPositionInfo + { + int facing; + float offsetTo; + std::string column; + std::string itemTitle; + std::string itemBarCode; + float offsetFrom; + float depth; + }; + std::string layerOrigin; + int layer; + std::vector shelfPositionInfos; + }; + + + DescribePlanogramPositionsResult(); + explicit DescribePlanogramPositionsResult(const std::string &payload); + ~DescribePlanogramPositionsResult(); + std::string getMessage()const; + std::string getStoreId()const; + std::string getShelf()const; + std::string getDynamicCode()const; + std::vector getLayerInfos()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string storeId_; + std::string shelf_; + std::string dynamicCode_; + std::vector layerInfos_; + std::string dynamicMessage_; + std::string errorCode_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsRequest.h new file mode 100644 index 000000000..71015c10f --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramRailsRequest : public RpcServiceRequest + { + + public: + DescribePlanogramRailsRequest(); + ~DescribePlanogramRailsRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getShelf()const; + void setShelf(const std::string& shelf); + std::string getRailCode()const; + void setRailCode(const std::string& railCode); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string storeId_; + int layer_; + int pageNumber_; + std::string shelf_; + std::string railCode_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsResult.h new file mode 100644 index 000000000..b4c56ac57 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramRailsResult : public ServiceResult + { + public: + struct PlanogramRailInfo + { + std::string railCode; + std::string shelf; + int gapUnit; + int layer; + }; + + + DescribePlanogramRailsResult(); + explicit DescribePlanogramRailsResult(const std::string &payload); + ~DescribePlanogramRailsResult(); + std::vector getPlanogramRailInfos()const; + int getTotalCount()const; + std::string getMessage()const; + std::string getStoreId()const; + int getPageSize()const; + int getPageNumber()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector planogramRailInfos_; + int totalCount_; + std::string message_; + std::string storeId_; + int pageSize_; + int pageNumber_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string errorCode_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesRequest.h new file mode 100644 index 000000000..9625dcad1 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMSHELVESREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMSHELVESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramShelvesRequest : public RpcServiceRequest + { + + public: + DescribePlanogramShelvesRequest(); + ~DescribePlanogramShelvesRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + + private: + std::string storeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMSHELVESREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesResult.h new file mode 100644 index 000000000..bac009470 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMSHELVESRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMSHELVESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramShelvesResult : public ServiceResult + { + public: + struct ShelfInfo + { + struct LayerInfo + { + int layer; + }; + std::string shelf; + std::vector layerInfos; + }; + + + DescribePlanogramShelvesResult(); + explicit DescribePlanogramShelvesResult(const std::string &payload); + ~DescribePlanogramShelvesResult(); + std::vector getShelfInfos()const; + std::string getMessage()const; + std::string getStoreId()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector shelfInfos_; + std::string message_; + std::string storeId_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string errorCode_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMSHELVESRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h new file mode 100644 index 000000000..88a1ba7fe --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORECONFIGREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeStoreConfigRequest : public RpcServiceRequest + { + + public: + DescribeStoreConfigRequest(); + ~DescribeStoreConfigRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + + private: + std::string storeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORECONFIGREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigResult.h new file mode 100644 index 000000000..2b7092149 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORECONFIGRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeStoreConfigResult : public ServiceResult + { + public: + struct StoreConfigInfo + { + std::string storeId; + bool enableNotification; + std::string notificationSilentTimes; + std::string notificationWebHook; + }; + + + DescribeStoreConfigResult(); + explicit DescribeStoreConfigResult(const std::string &payload); + ~DescribeStoreConfigResult(); + StoreConfigInfo getStoreConfigInfo()const; + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + StoreConfigInfo storeConfigInfo_; + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORECONFIGRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresRequest.h new file mode 100644 index 000000000..3273cd18f --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeStoresRequest : public RpcServiceRequest + { + + public: + DescribeStoresRequest(); + ~DescribeStoresRequest(); + + std::string getStoreName()const; + void setStoreName(const std::string& storeName); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getFromDate()const; + void setFromDate(const std::string& fromDate); + std::string getToDate()const; + void setToDate(const std::string& toDate); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getUserStoreCode()const; + void setUserStoreCode(const std::string& userStoreCode); + + private: + std::string storeName_; + std::string storeId_; + int pageNumber_; + std::string fromDate_; + std::string toDate_; + int pageSize_; + std::string userStoreCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresResult.h new file mode 100644 index 000000000..36fc40a44 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeStoresResult : public ServiceResult + { + public: + struct StoreInfo + { + std::string parentId; + std::string gmtCreate; + std::string userStoreCode; + std::string storeName; + std::string storeId; + std::string phone; + std::string gmtModified; + std::string level; + }; + + + DescribeStoresResult(); + explicit DescribeStoresResult(const std::string &payload); + ~DescribeStoresResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getDynamicCode()const; + std::vector getStores()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string dynamicCode_; + std::vector stores_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogRequest.h new file mode 100644 index 000000000..678254cb3 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERLOGREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUserLogRequest : public RpcServiceRequest + { + + public: + DescribeUserLogRequest(); + ~DescribeUserLogRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getFromDate()const; + void setFromDate(const std::string& fromDate); + std::string getOperationStatus()const; + void setOperationStatus(const std::string& operationStatus); + std::string getToDate()const; + void setToDate(const std::string& toDate); + std::string getEslBarCode()const; + void setEslBarCode(const std::string& eslBarCode); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getItemBarCode()const; + void setItemBarCode(const std::string& itemBarCode); + std::string getItemShortTitle()const; + void setItemShortTitle(const std::string& itemShortTitle); + std::string getOperationType()const; + void setOperationType(const std::string& operationType); + std::string getLogId()const; + void setLogId(const std::string& logId); + + private: + std::string storeId_; + std::string userId_; + int pageNumber_; + std::string fromDate_; + std::string operationStatus_; + std::string toDate_; + std::string eslBarCode_; + int pageSize_; + std::string itemBarCode_; + std::string itemShortTitle_; + std::string operationType_; + std::string logId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERLOGREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogResult.h new file mode 100644 index 000000000..e0b45a5a7 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogResult.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERLOGRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUserLogResult : public ServiceResult + { + public: + struct UserLogInfo + { + std::string operationResponseTime; + std::string gmtModified; + std::string actionPrice; + std::string operationSendTime; + std::string itemBarCode; + std::string spendTime; + std::string itemId; + std::string gmtCreate; + std::string eslBarCode; + std::string priceUnit; + std::string itemShortTitle; + std::string storeId; + std::string userId; + std::string operationStatus; + std::string operationType; + std::string logId; + std::string resultCode; + bool bePromotion; + }; + + + DescribeUserLogResult(); + explicit DescribeUserLogResult(const std::string &payload); + ~DescribeUserLogResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + std::vector getUserLogs()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + std::vector userLogs_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERLOGRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUsersRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUsersRequest.h new file mode 100644 index 000000000..87dd89961 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUsersRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUsersRequest : public RpcServiceRequest + { + + public: + DescribeUsersRequest(); + ~DescribeUsersRequest(); + + std::string getUserType()const; + void setUserType(const std::string& userType); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string userType_; + std::string userId_; + int pageNumber_; + int pageSize_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUsersResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUsersResult.h new file mode 100644 index 000000000..727da3b8d --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUsersResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUsersResult : public ServiceResult + { + public: + struct UserInfo + { + std::string userName; + std::string userId; + std::string stores; + std::string userType; + }; + + + DescribeUsersResult(); + explicit DescribeUsersResult(const std::string &payload); + ~DescribeUsersResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getDynamicCode()const; + std::vector getUsers()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string dynamicCode_; + std::vector users_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h new file mode 100644 index 000000000..afa64ad02 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DISSOCIATEPLANOGRAMRAILREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DISSOCIATEPLANOGRAMRAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DissociatePlanogramRailRequest : public RpcServiceRequest + { + + public: + DissociatePlanogramRailRequest(); + ~DissociatePlanogramRailRequest(); + + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getRailCode()const; + void setRailCode(const std::string& railCode); + + private: + std::string storeId_; + std::string railCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DISSOCIATEPLANOGRAMRAILREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailResult.h new file mode 100644 index 000000000..5248a2ff6 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DISSOCIATEPLANOGRAMRAILRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DISSOCIATEPLANOGRAMRAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DissociatePlanogramRailResult : public ServiceResult + { + public: + + + DissociatePlanogramRailResult(); + explicit DissociatePlanogramRailResult(const std::string &payload); + ~DissociatePlanogramRailResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DISSOCIATEPLANOGRAMRAILRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/GetUserRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/GetUserRequest.h new file mode 100644 index 000000000..ce80f7c04 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/GetUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_GETUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT GetUserRequest : public RpcServiceRequest + { + + public: + GetUserRequest(); + ~GetUserRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_GETUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/GetUserResult.h b/cloudesl/include/alibabacloud/cloudesl/model/GetUserResult.h new file mode 100644 index 000000000..ad0992d74 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/GetUserResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_GETUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_GETUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT GetUserResult : public ServiceResult + { + public: + struct User + { + std::string userName; + std::string userId; + std::string stores; + std::string userType; + }; + + + GetUserResult(); + explicit GetUserResult(const std::string &payload); + ~GetUserResult(); + User getUser()const; + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + User user_; + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_GETUSERRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UnassignUserRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/UnassignUserRequest.h new file mode 100644 index 000000000..b4e669e63 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UnassignUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UNASSIGNUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UNASSIGNUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UnassignUserRequest : public RpcServiceRequest + { + + public: + UnassignUserRequest(); + ~UnassignUserRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UNASSIGNUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UnassignUserResult.h b/cloudesl/include/alibabacloud/cloudesl/model/UnassignUserResult.h new file mode 100644 index 000000000..ccce27019 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UnassignUserResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UNASSIGNUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UNASSIGNUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UnassignUserResult : public ServiceResult + { + public: + + + UnassignUserResult(); + explicit UnassignUserResult(const std::string &payload); + ~UnassignUserResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UNASSIGNUSERRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h new file mode 100644 index 000000000..870df7d13 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICEREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UnbindEslDeviceRequest : public RpcServiceRequest + { + + public: + UnbindEslDeviceRequest(); + ~UnbindEslDeviceRequest(); + + std::string getColumn()const; + void setColumn(const std::string& column); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + std::string getShelf()const; + void setShelf(const std::string& shelf); + std::string getEslBarCode()const; + void setEslBarCode(const std::string& eslBarCode); + std::string getItemBarCode()const; + void setItemBarCode(const std::string& itemBarCode); + + private: + std::string column_; + std::string storeId_; + int layer_; + std::string shelf_; + std::string eslBarCode_; + std::string itemBarCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICEREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h new file mode 100644 index 000000000..fe340065e --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UnbindEslDeviceResult : public ServiceResult + { + public: + + + UnbindEslDeviceResult(); + explicit UnbindEslDeviceResult(const std::string &payload); + ~UnbindEslDeviceResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h new file mode 100644 index 000000000..60e391c49 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UPDATEESLDEVICELIGHTREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UPDATEESLDEVICELIGHTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UpdateEslDeviceLightRequest : public RpcServiceRequest + { + + public: + UpdateEslDeviceLightRequest(); + ~UpdateEslDeviceLightRequest(); + + int getLightUpTime()const; + void setLightUpTime(int lightUpTime); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getFrequency()const; + void setFrequency(const std::string& frequency); + std::string getEslBarCode()const; + void setEslBarCode(const std::string& eslBarCode); + std::string getLedColor()const; + void setLedColor(const std::string& ledColor); + std::string getItemBarCode()const; + void setItemBarCode(const std::string& itemBarCode); + + private: + int lightUpTime_; + std::string storeId_; + std::string frequency_; + std::string eslBarCode_; + std::string ledColor_; + std::string itemBarCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UPDATEESLDEVICELIGHTREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightResult.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightResult.h new file mode 100644 index 000000000..02fc554cb --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UPDATEESLDEVICELIGHTRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UPDATEESLDEVICELIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UpdateEslDeviceLightResult : public ServiceResult + { + public: + struct LightFailEslInfo + { + std::string eslBarCode; + std::string errorMessage; + }; + + + UpdateEslDeviceLightResult(); + explicit UpdateEslDeviceLightResult(const std::string &payload); + ~UpdateEslDeviceLightResult(); + std::string getMessage()const; + std::vector getLightFailEslInfos()const; + int getFailCount()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + int getSuccessCount()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector lightFailEslInfos_; + int failCount_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + int successCount_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UPDATEESLDEVICELIGHTRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreConfigRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreConfigRequest.h new file mode 100644 index 000000000..e72e296ca --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreConfigRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORECONFIGREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UpdateStoreConfigRequest : public RpcServiceRequest + { + + public: + UpdateStoreConfigRequest(); + ~UpdateStoreConfigRequest(); + + bool getEnableNotification()const; + void setEnableNotification(bool enableNotification); + std::string getNotificationWebHook()const; + void setNotificationWebHook(const std::string& notificationWebHook); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getNotificationSilentTimes()const; + void setNotificationSilentTimes(const std::string& notificationSilentTimes); + + private: + bool enableNotification_; + std::string notificationWebHook_; + std::string storeId_; + std::string notificationSilentTimes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORECONFIGREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreConfigResult.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreConfigResult.h new file mode 100644 index 000000000..5bb2ae116 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreConfigResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORECONFIGRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UpdateStoreConfigResult : public ServiceResult + { + public: + + + UpdateStoreConfigResult(); + explicit UpdateStoreConfigResult(const std::string &payload); + ~UpdateStoreConfigResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORECONFIGRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreRequest.h new file mode 100644 index 000000000..2363f7ef0 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTOREREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTOREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UpdateStoreRequest : public RpcServiceRequest + { + + public: + UpdateStoreRequest(); + ~UpdateStoreRequest(); + + std::string getStoreName()const; + void setStoreName(const std::string& storeName); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getPhone()const; + void setPhone(const std::string& phone); + std::string getUserStoreCode()const; + void setUserStoreCode(const std::string& userStoreCode); + + private: + std::string storeName_; + std::string storeId_; + std::string phone_; + std::string userStoreCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTOREREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreResult.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreResult.h new file mode 100644 index 000000000..81b85987b --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UpdateStoreResult : public ServiceResult + { + public: + + + UpdateStoreResult(); + explicit UpdateStoreResult(const std::string &payload); + ~UpdateStoreResult(); + std::string getMessage()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UPDATESTORERESULT_H_ \ No newline at end of file diff --git a/cloudesl/src/CloudeslClient.cc b/cloudesl/src/CloudeslClient.cc new file mode 100644 index 000000000..cb6ddedd2 --- /dev/null +++ b/cloudesl/src/CloudeslClient.cc @@ -0,0 +1,1277 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +namespace +{ + const std::string SERVICE_NAME = "cloudesl"; +} + +CloudeslClient::CloudeslClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cloudesl"); +} + +CloudeslClient::CloudeslClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cloudesl"); +} + +CloudeslClient::CloudeslClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cloudesl"); +} + +CloudeslClient::~CloudeslClient() +{} + +CloudeslClient::ActivateApDeviceOutcome CloudeslClient::activateApDevice(const ActivateApDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActivateApDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActivateApDeviceOutcome(ActivateApDeviceResult(outcome.result())); + else + return ActivateApDeviceOutcome(outcome.error()); +} + +void CloudeslClient::activateApDeviceAsync(const ActivateApDeviceRequest& request, const ActivateApDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activateApDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::ActivateApDeviceOutcomeCallable CloudeslClient::activateApDeviceCallable(const ActivateApDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activateApDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::AddApDeviceOutcome CloudeslClient::addApDevice(const AddApDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddApDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddApDeviceOutcome(AddApDeviceResult(outcome.result())); + else + return AddApDeviceOutcome(outcome.error()); +} + +void CloudeslClient::addApDeviceAsync(const AddApDeviceRequest& request, const AddApDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addApDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::AddApDeviceOutcomeCallable CloudeslClient::addApDeviceCallable(const AddApDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addApDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::AddPlanogramShelfOutcome CloudeslClient::addPlanogramShelf(const AddPlanogramShelfRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddPlanogramShelfOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddPlanogramShelfOutcome(AddPlanogramShelfResult(outcome.result())); + else + return AddPlanogramShelfOutcome(outcome.error()); +} + +void CloudeslClient::addPlanogramShelfAsync(const AddPlanogramShelfRequest& request, const AddPlanogramShelfAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addPlanogramShelf(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::AddPlanogramShelfOutcomeCallable CloudeslClient::addPlanogramShelfCallable(const AddPlanogramShelfRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addPlanogramShelf(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::AddUserOutcome CloudeslClient::addUser(const AddUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUserOutcome(AddUserResult(outcome.result())); + else + return AddUserOutcome(outcome.error()); +} + +void CloudeslClient::addUserAsync(const AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::AddUserOutcomeCallable CloudeslClient::addUserCallable(const AddUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::AssignUserOutcome CloudeslClient::assignUser(const AssignUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssignUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssignUserOutcome(AssignUserResult(outcome.result())); + else + return AssignUserOutcome(outcome.error()); +} + +void CloudeslClient::assignUserAsync(const AssignUserRequest& request, const AssignUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, assignUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::AssignUserOutcomeCallable CloudeslClient::assignUserCallable(const AssignUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->assignUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::AssociatePlanogramRailOutcome CloudeslClient::associatePlanogramRail(const AssociatePlanogramRailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociatePlanogramRailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociatePlanogramRailOutcome(AssociatePlanogramRailResult(outcome.result())); + else + return AssociatePlanogramRailOutcome(outcome.error()); +} + +void CloudeslClient::associatePlanogramRailAsync(const AssociatePlanogramRailRequest& request, const AssociatePlanogramRailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associatePlanogramRail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::AssociatePlanogramRailOutcomeCallable CloudeslClient::associatePlanogramRailCallable(const AssociatePlanogramRailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associatePlanogramRail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::BatchInsertItemsOutcome CloudeslClient::batchInsertItems(const BatchInsertItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchInsertItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchInsertItemsOutcome(BatchInsertItemsResult(outcome.result())); + else + return BatchInsertItemsOutcome(outcome.error()); +} + +void CloudeslClient::batchInsertItemsAsync(const BatchInsertItemsRequest& request, const BatchInsertItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchInsertItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::BatchInsertItemsOutcomeCallable CloudeslClient::batchInsertItemsCallable(const BatchInsertItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchInsertItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::BindEslDeviceOutcome CloudeslClient::bindEslDevice(const BindEslDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindEslDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindEslDeviceOutcome(BindEslDeviceResult(outcome.result())); + else + return BindEslDeviceOutcome(outcome.error()); +} + +void CloudeslClient::bindEslDeviceAsync(const BindEslDeviceRequest& request, const BindEslDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindEslDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::BindEslDeviceOutcomeCallable CloudeslClient::bindEslDeviceCallable(const BindEslDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindEslDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::ComposePlanogramPositionsOutcome CloudeslClient::composePlanogramPositions(const ComposePlanogramPositionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ComposePlanogramPositionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ComposePlanogramPositionsOutcome(ComposePlanogramPositionsResult(outcome.result())); + else + return ComposePlanogramPositionsOutcome(outcome.error()); +} + +void CloudeslClient::composePlanogramPositionsAsync(const ComposePlanogramPositionsRequest& request, const ComposePlanogramPositionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, composePlanogramPositions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::ComposePlanogramPositionsOutcomeCallable CloudeslClient::composePlanogramPositionsCallable(const ComposePlanogramPositionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->composePlanogramPositions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::CreateStoreOutcome CloudeslClient::createStore(const CreateStoreRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStoreOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStoreOutcome(CreateStoreResult(outcome.result())); + else + return CreateStoreOutcome(outcome.error()); +} + +void CloudeslClient::createStoreAsync(const CreateStoreRequest& request, const CreateStoreAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStore(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::CreateStoreOutcomeCallable CloudeslClient::createStoreCallable(const CreateStoreRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStore(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DeleteApDeviceOutcome CloudeslClient::deleteApDevice(const DeleteApDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApDeviceOutcome(DeleteApDeviceResult(outcome.result())); + else + return DeleteApDeviceOutcome(outcome.error()); +} + +void CloudeslClient::deleteApDeviceAsync(const DeleteApDeviceRequest& request, const DeleteApDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DeleteApDeviceOutcomeCallable CloudeslClient::deleteApDeviceCallable(const DeleteApDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DeletePlanogramShelfOutcome CloudeslClient::deletePlanogramShelf(const DeletePlanogramShelfRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePlanogramShelfOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePlanogramShelfOutcome(DeletePlanogramShelfResult(outcome.result())); + else + return DeletePlanogramShelfOutcome(outcome.error()); +} + +void CloudeslClient::deletePlanogramShelfAsync(const DeletePlanogramShelfRequest& request, const DeletePlanogramShelfAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePlanogramShelf(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DeletePlanogramShelfOutcomeCallable CloudeslClient::deletePlanogramShelfCallable(const DeletePlanogramShelfRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePlanogramShelf(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DeleteStoreOutcome CloudeslClient::deleteStore(const DeleteStoreRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteStoreOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteStoreOutcome(DeleteStoreResult(outcome.result())); + else + return DeleteStoreOutcome(outcome.error()); +} + +void CloudeslClient::deleteStoreAsync(const DeleteStoreRequest& request, const DeleteStoreAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteStore(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DeleteStoreOutcomeCallable CloudeslClient::deleteStoreCallable(const DeleteStoreRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteStore(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DeleteUserOutcome CloudeslClient::deleteUser(const DeleteUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserOutcome(DeleteUserResult(outcome.result())); + else + return DeleteUserOutcome(outcome.error()); +} + +void CloudeslClient::deleteUserAsync(const DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DeleteUserOutcomeCallable CloudeslClient::deleteUserCallable(const DeleteUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeAlarmsOutcome CloudeslClient::describeAlarms(const DescribeAlarmsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlarmsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlarmsOutcome(DescribeAlarmsResult(outcome.result())); + else + return DescribeAlarmsOutcome(outcome.error()); +} + +void CloudeslClient::describeAlarmsAsync(const DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlarms(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeAlarmsOutcomeCallable CloudeslClient::describeAlarmsCallable(const DescribeAlarmsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlarms(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeApDevicesOutcome CloudeslClient::describeApDevices(const DescribeApDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApDevicesOutcome(DescribeApDevicesResult(outcome.result())); + else + return DescribeApDevicesOutcome(outcome.error()); +} + +void CloudeslClient::describeApDevicesAsync(const DescribeApDevicesRequest& request, const DescribeApDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeApDevicesOutcomeCallable CloudeslClient::describeApDevicesCallable(const DescribeApDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeBindersOutcome CloudeslClient::describeBinders(const DescribeBindersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBindersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBindersOutcome(DescribeBindersResult(outcome.result())); + else + return DescribeBindersOutcome(outcome.error()); +} + +void CloudeslClient::describeBindersAsync(const DescribeBindersRequest& request, const DescribeBindersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBinders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeBindersOutcomeCallable CloudeslClient::describeBindersCallable(const DescribeBindersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBinders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeEslDevicesOutcome CloudeslClient::describeEslDevices(const DescribeEslDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEslDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEslDevicesOutcome(DescribeEslDevicesResult(outcome.result())); + else + return DescribeEslDevicesOutcome(outcome.error()); +} + +void CloudeslClient::describeEslDevicesAsync(const DescribeEslDevicesRequest& request, const DescribeEslDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEslDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeEslDevicesOutcomeCallable CloudeslClient::describeEslDevicesCallable(const DescribeEslDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEslDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeItemsOutcome CloudeslClient::describeItems(const DescribeItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeItemsOutcome(DescribeItemsResult(outcome.result())); + else + return DescribeItemsOutcome(outcome.error()); +} + +void CloudeslClient::describeItemsAsync(const DescribeItemsRequest& request, const DescribeItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeItemsOutcomeCallable CloudeslClient::describeItemsCallable(const DescribeItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribePlanogramEslDevicesOutcome CloudeslClient::describePlanogramEslDevices(const DescribePlanogramEslDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlanogramEslDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlanogramEslDevicesOutcome(DescribePlanogramEslDevicesResult(outcome.result())); + else + return DescribePlanogramEslDevicesOutcome(outcome.error()); +} + +void CloudeslClient::describePlanogramEslDevicesAsync(const DescribePlanogramEslDevicesRequest& request, const DescribePlanogramEslDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlanogramEslDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribePlanogramEslDevicesOutcomeCallable CloudeslClient::describePlanogramEslDevicesCallable(const DescribePlanogramEslDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlanogramEslDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribePlanogramPositionsOutcome CloudeslClient::describePlanogramPositions(const DescribePlanogramPositionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlanogramPositionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlanogramPositionsOutcome(DescribePlanogramPositionsResult(outcome.result())); + else + return DescribePlanogramPositionsOutcome(outcome.error()); +} + +void CloudeslClient::describePlanogramPositionsAsync(const DescribePlanogramPositionsRequest& request, const DescribePlanogramPositionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlanogramPositions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribePlanogramPositionsOutcomeCallable CloudeslClient::describePlanogramPositionsCallable(const DescribePlanogramPositionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlanogramPositions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribePlanogramRailsOutcome CloudeslClient::describePlanogramRails(const DescribePlanogramRailsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlanogramRailsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlanogramRailsOutcome(DescribePlanogramRailsResult(outcome.result())); + else + return DescribePlanogramRailsOutcome(outcome.error()); +} + +void CloudeslClient::describePlanogramRailsAsync(const DescribePlanogramRailsRequest& request, const DescribePlanogramRailsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlanogramRails(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribePlanogramRailsOutcomeCallable CloudeslClient::describePlanogramRailsCallable(const DescribePlanogramRailsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlanogramRails(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribePlanogramShelvesOutcome CloudeslClient::describePlanogramShelves(const DescribePlanogramShelvesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlanogramShelvesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlanogramShelvesOutcome(DescribePlanogramShelvesResult(outcome.result())); + else + return DescribePlanogramShelvesOutcome(outcome.error()); +} + +void CloudeslClient::describePlanogramShelvesAsync(const DescribePlanogramShelvesRequest& request, const DescribePlanogramShelvesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlanogramShelves(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribePlanogramShelvesOutcomeCallable CloudeslClient::describePlanogramShelvesCallable(const DescribePlanogramShelvesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlanogramShelves(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeStoreConfigOutcome CloudeslClient::describeStoreConfig(const DescribeStoreConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStoreConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStoreConfigOutcome(DescribeStoreConfigResult(outcome.result())); + else + return DescribeStoreConfigOutcome(outcome.error()); +} + +void CloudeslClient::describeStoreConfigAsync(const DescribeStoreConfigRequest& request, const DescribeStoreConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStoreConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeStoreConfigOutcomeCallable CloudeslClient::describeStoreConfigCallable(const DescribeStoreConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStoreConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeStoresOutcome CloudeslClient::describeStores(const DescribeStoresRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStoresOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStoresOutcome(DescribeStoresResult(outcome.result())); + else + return DescribeStoresOutcome(outcome.error()); +} + +void CloudeslClient::describeStoresAsync(const DescribeStoresRequest& request, const DescribeStoresAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStores(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeStoresOutcomeCallable CloudeslClient::describeStoresCallable(const DescribeStoresRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStores(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeUserLogOutcome CloudeslClient::describeUserLog(const DescribeUserLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserLogOutcome(DescribeUserLogResult(outcome.result())); + else + return DescribeUserLogOutcome(outcome.error()); +} + +void CloudeslClient::describeUserLogAsync(const DescribeUserLogRequest& request, const DescribeUserLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeUserLogOutcomeCallable CloudeslClient::describeUserLogCallable(const DescribeUserLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DescribeUsersOutcome CloudeslClient::describeUsers(const DescribeUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUsersOutcome(DescribeUsersResult(outcome.result())); + else + return DescribeUsersOutcome(outcome.error()); +} + +void CloudeslClient::describeUsersAsync(const DescribeUsersRequest& request, const DescribeUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeUsersOutcomeCallable CloudeslClient::describeUsersCallable(const DescribeUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::DissociatePlanogramRailOutcome CloudeslClient::dissociatePlanogramRail(const DissociatePlanogramRailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DissociatePlanogramRailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DissociatePlanogramRailOutcome(DissociatePlanogramRailResult(outcome.result())); + else + return DissociatePlanogramRailOutcome(outcome.error()); +} + +void CloudeslClient::dissociatePlanogramRailAsync(const DissociatePlanogramRailRequest& request, const DissociatePlanogramRailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dissociatePlanogramRail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DissociatePlanogramRailOutcomeCallable CloudeslClient::dissociatePlanogramRailCallable(const DissociatePlanogramRailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dissociatePlanogramRail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::GetUserOutcome CloudeslClient::getUser(const GetUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserOutcome(GetUserResult(outcome.result())); + else + return GetUserOutcome(outcome.error()); +} + +void CloudeslClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::GetUserOutcomeCallable CloudeslClient::getUserCallable(const GetUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::UnassignUserOutcome CloudeslClient::unassignUser(const UnassignUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnassignUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassignUserOutcome(UnassignUserResult(outcome.result())); + else + return UnassignUserOutcome(outcome.error()); +} + +void CloudeslClient::unassignUserAsync(const UnassignUserRequest& request, const UnassignUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassignUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::UnassignUserOutcomeCallable CloudeslClient::unassignUserCallable(const UnassignUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassignUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::UnbindEslDeviceOutcome CloudeslClient::unbindEslDevice(const UnbindEslDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindEslDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindEslDeviceOutcome(UnbindEslDeviceResult(outcome.result())); + else + return UnbindEslDeviceOutcome(outcome.error()); +} + +void CloudeslClient::unbindEslDeviceAsync(const UnbindEslDeviceRequest& request, const UnbindEslDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindEslDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::UnbindEslDeviceOutcomeCallable CloudeslClient::unbindEslDeviceCallable(const UnbindEslDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindEslDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::UpdateEslDeviceLightOutcome CloudeslClient::updateEslDeviceLight(const UpdateEslDeviceLightRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEslDeviceLightOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEslDeviceLightOutcome(UpdateEslDeviceLightResult(outcome.result())); + else + return UpdateEslDeviceLightOutcome(outcome.error()); +} + +void CloudeslClient::updateEslDeviceLightAsync(const UpdateEslDeviceLightRequest& request, const UpdateEslDeviceLightAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEslDeviceLight(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::UpdateEslDeviceLightOutcomeCallable CloudeslClient::updateEslDeviceLightCallable(const UpdateEslDeviceLightRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEslDeviceLight(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::UpdateStoreOutcome CloudeslClient::updateStore(const UpdateStoreRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateStoreOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateStoreOutcome(UpdateStoreResult(outcome.result())); + else + return UpdateStoreOutcome(outcome.error()); +} + +void CloudeslClient::updateStoreAsync(const UpdateStoreRequest& request, const UpdateStoreAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateStore(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::UpdateStoreOutcomeCallable CloudeslClient::updateStoreCallable(const UpdateStoreRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateStore(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudeslClient::UpdateStoreConfigOutcome CloudeslClient::updateStoreConfig(const UpdateStoreConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateStoreConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateStoreConfigOutcome(UpdateStoreConfigResult(outcome.result())); + else + return UpdateStoreConfigOutcome(outcome.error()); +} + +void CloudeslClient::updateStoreConfigAsync(const UpdateStoreConfigRequest& request, const UpdateStoreConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateStoreConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::UpdateStoreConfigOutcomeCallable CloudeslClient::updateStoreConfigCallable(const UpdateStoreConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateStoreConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/cloudesl/src/model/ActivateApDeviceRequest.cc b/cloudesl/src/model/ActivateApDeviceRequest.cc new file mode 100644 index 000000000..1364aa60e --- /dev/null +++ b/cloudesl/src/model/ActivateApDeviceRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::ActivateApDeviceRequest; + +ActivateApDeviceRequest::ActivateApDeviceRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "ActivateApDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +ActivateApDeviceRequest::~ActivateApDeviceRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/ActivateApDeviceResult.cc b/cloudesl/src/model/ActivateApDeviceResult.cc new file mode 100644 index 000000000..fa6bb8673 --- /dev/null +++ b/cloudesl/src/model/ActivateApDeviceResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/AddApDeviceRequest.cc b/cloudesl/src/model/AddApDeviceRequest.cc new file mode 100644 index 000000000..e474a94ee --- /dev/null +++ b/cloudesl/src/model/AddApDeviceRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::AddApDeviceRequest; + +AddApDeviceRequest::AddApDeviceRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AddApDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +AddApDeviceRequest::~AddApDeviceRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/AddApDeviceResult.cc b/cloudesl/src/model/AddApDeviceResult.cc new file mode 100644 index 000000000..ec78bc45c --- /dev/null +++ b/cloudesl/src/model/AddApDeviceResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/AddPlanogramShelfRequest.cc b/cloudesl/src/model/AddPlanogramShelfRequest.cc new file mode 100644 index 000000000..5ac249a21 --- /dev/null +++ b/cloudesl/src/model/AddPlanogramShelfRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::AddPlanogramShelfRequest; + +AddPlanogramShelfRequest::AddPlanogramShelfRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AddPlanogramShelf") +{ + setMethod(HttpRequest::Method::Post); +} + +AddPlanogramShelfRequest::~AddPlanogramShelfRequest() +{} + +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::getShelf()const +{ + return shelf_; +} + +void AddPlanogramShelfRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + diff --git a/cloudesl/src/model/AddPlanogramShelfResult.cc b/cloudesl/src/model/AddPlanogramShelfResult.cc new file mode 100644 index 000000000..d0b04eaa5 --- /dev/null +++ b/cloudesl/src/model/AddPlanogramShelfResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +AddPlanogramShelfResult::AddPlanogramShelfResult() : + ServiceResult() +{} + +AddPlanogramShelfResult::AddPlanogramShelfResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddPlanogramShelfResult::~AddPlanogramShelfResult() +{} + +void AddPlanogramShelfResult::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 AddPlanogramShelfResult::getMessage()const +{ + return message_; +} + +std::string AddPlanogramShelfResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AddPlanogramShelfResult::getErrorCode()const +{ + return errorCode_; +} + +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_; +} + diff --git a/cloudesl/src/model/AddUserRequest.cc b/cloudesl/src/model/AddUserRequest.cc new file mode 100644 index 000000000..c5cf3acad --- /dev/null +++ b/cloudesl/src/model/AddUserRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::AddUserRequest; + +AddUserRequest::AddUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AddUser") +{ + setMethod(HttpRequest::Method::Post); +} + +AddUserRequest::~AddUserRequest() +{} + +std::string AddUserRequest::getUserId()const +{ + return userId_; +} + +void AddUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/cloudesl/src/model/AddUserResult.cc b/cloudesl/src/model/AddUserResult.cc new file mode 100644 index 000000000..e2b5510aa --- /dev/null +++ b/cloudesl/src/model/AddUserResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +AddUserResult::AddUserResult() : + ServiceResult() +{} + +AddUserResult::AddUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddUserResult::~AddUserResult() +{} + +void AddUserResult::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 AddUserResult::getMessage()const +{ + return message_; +} + +std::string AddUserResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AddUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddUserResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string AddUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AddUserResult::getCode()const +{ + return code_; +} + +bool AddUserResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/AssignUserRequest.cc b/cloudesl/src/model/AssignUserRequest.cc new file mode 100644 index 000000000..e1ec3569f --- /dev/null +++ b/cloudesl/src/model/AssignUserRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::AssignUserRequest; + +AssignUserRequest::AssignUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AssignUser") +{ + setMethod(HttpRequest::Method::Post); +} + +AssignUserRequest::~AssignUserRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/AssignUserResult.cc b/cloudesl/src/model/AssignUserResult.cc new file mode 100644 index 000000000..1a3644e8d --- /dev/null +++ b/cloudesl/src/model/AssignUserResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +AssignUserResult::AssignUserResult() : + ServiceResult() +{} + +AssignUserResult::AssignUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssignUserResult::~AssignUserResult() +{} + +void AssignUserResult::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 AssignUserResult::getMessage()const +{ + return message_; +} + +std::string AssignUserResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AssignUserResult::getErrorCode()const +{ + return errorCode_; +} + +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_; +} + diff --git a/cloudesl/src/model/AssociatePlanogramRailRequest.cc b/cloudesl/src/model/AssociatePlanogramRailRequest.cc new file mode 100644 index 000000000..cae99a365 --- /dev/null +++ b/cloudesl/src/model/AssociatePlanogramRailRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::AssociatePlanogramRailRequest; + +AssociatePlanogramRailRequest::AssociatePlanogramRailRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AssociatePlanogramRail") +{ + setMethod(HttpRequest::Method::Post); +} + +AssociatePlanogramRailRequest::~AssociatePlanogramRailRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/AssociatePlanogramRailResult.cc b/cloudesl/src/model/AssociatePlanogramRailResult.cc new file mode 100644 index 000000000..609c7a787 --- /dev/null +++ b/cloudesl/src/model/AssociatePlanogramRailResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/BatchInsertItemsRequest.cc b/cloudesl/src/model/BatchInsertItemsRequest.cc new file mode 100644 index 000000000..af941aeb3 --- /dev/null +++ b/cloudesl/src/model/BatchInsertItemsRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::BatchInsertItemsRequest; + +BatchInsertItemsRequest::BatchInsertItemsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "BatchInsertItems") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchInsertItemsRequest::~BatchInsertItemsRequest() +{} + +std::string BatchInsertItemsRequest::getStoreId()const +{ + return storeId_; +} + +void BatchInsertItemsRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::vector BatchInsertItemsRequest::getItemInfo()const +{ + return itemInfo_; +} + +void BatchInsertItemsRequest::setItemInfo(const std::vector& itemInfo) +{ + itemInfo_ = itemInfo; + for(int dep1 = 0; dep1!= itemInfo.size(); dep1++) { + auto itemInfoObj = itemInfo.at(dep1); + 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 + ".BeSourceCode", itemInfoObj.beSourceCode ? "true" : "false"); + setParameter(itemInfoObjStr + ".BrandName", itemInfoObj.brandName); + setParameter(itemInfoObjStr + ".PromotionStart", itemInfoObj.promotionStart); + 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 + ".CustomizeFeatureC", itemInfoObj.customizeFeatureC); + setParameter(itemInfoObjStr + ".CustomizeFeatureD", itemInfoObj.customizeFeatureD); + 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 + ".CustomizeFeatureG", itemInfoObj.customizeFeatureG); + setParameter(itemInfoObjStr + ".CustomizeFeatureH", itemInfoObj.customizeFeatureH); + setParameter(itemInfoObjStr + ".CustomizeFeatureI", itemInfoObj.customizeFeatureI); + setParameter(itemInfoObjStr + ".CustomizeFeatureJ", itemInfoObj.customizeFeatureJ); + 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 + ".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 + ".PromotionText", itemInfoObj.promotionText); + setParameter(itemInfoObjStr + ".SkuId", itemInfoObj.skuId); + } +} + diff --git a/cloudesl/src/model/BatchInsertItemsResult.cc b/cloudesl/src/model/BatchInsertItemsResult.cc new file mode 100644 index 000000000..fc807ff14 --- /dev/null +++ b/cloudesl/src/model/BatchInsertItemsResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +BatchInsertItemsResult::BatchInsertItemsResult() : + ServiceResult() +{} + +BatchInsertItemsResult::BatchInsertItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchInsertItemsResult::~BatchInsertItemsResult() +{} + +void BatchInsertItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBatchResultsNode = value["BatchResults"]["BatchResult"]; + for (auto valueBatchResultsBatchResult : allBatchResultsNode) + { + BatchResult batchResultsObject; + 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["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 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::getBatchResults()const +{ + return batchResults_; +} + +std::string BatchInsertItemsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string BatchInsertItemsResult::getCode()const +{ + return code_; +} + +bool BatchInsertItemsResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/BindEslDeviceRequest.cc b/cloudesl/src/model/BindEslDeviceRequest.cc new file mode 100644 index 000000000..a26aaa704 --- /dev/null +++ b/cloudesl/src/model/BindEslDeviceRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::BindEslDeviceRequest; + +BindEslDeviceRequest::BindEslDeviceRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "BindEslDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +BindEslDeviceRequest::~BindEslDeviceRequest() +{} + +std::string BindEslDeviceRequest::getColumn()const +{ + return column_; +} + +void BindEslDeviceRequest::setColumn(const std::string& column) +{ + column_ = column; + setBodyParameter("Column", column); +} + +std::string BindEslDeviceRequest::getStoreId()const +{ + return storeId_; +} + +void BindEslDeviceRequest::setStoreId(const std::string& storeId) +{ + 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::getShelf()const +{ + return shelf_; +} + +void BindEslDeviceRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + +std::string BindEslDeviceRequest::getEslBarCode()const +{ + return eslBarCode_; +} + +void BindEslDeviceRequest::setEslBarCode(const std::string& eslBarCode) +{ + eslBarCode_ = eslBarCode; + setBodyParameter("EslBarCode", eslBarCode); +} + +std::string BindEslDeviceRequest::getItemBarCode()const +{ + return itemBarCode_; +} + +void BindEslDeviceRequest::setItemBarCode(const std::string& itemBarCode) +{ + itemBarCode_ = itemBarCode; + setBodyParameter("ItemBarCode", itemBarCode); +} + diff --git a/cloudesl/src/model/BindEslDeviceResult.cc b/cloudesl/src/model/BindEslDeviceResult.cc new file mode 100644 index 000000000..dbc9807eb --- /dev/null +++ b/cloudesl/src/model/BindEslDeviceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +BindEslDeviceResult::BindEslDeviceResult() : + ServiceResult() +{} + +BindEslDeviceResult::BindEslDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindEslDeviceResult::~BindEslDeviceResult() +{} + +void BindEslDeviceResult::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 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_; +} + diff --git a/cloudesl/src/model/ComposePlanogramPositionsRequest.cc b/cloudesl/src/model/ComposePlanogramPositionsRequest.cc new file mode 100644 index 000000000..13dab746e --- /dev/null +++ b/cloudesl/src/model/ComposePlanogramPositionsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::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); +} + +bool ComposePlanogramPositionsRequest::getBeAutoRefresh()const +{ + return beAutoRefresh_; +} + +void ComposePlanogramPositionsRequest::setBeAutoRefresh(bool beAutoRefresh) +{ + beAutoRefresh_ = beAutoRefresh; + setBodyParameter("BeAutoRefresh", beAutoRefresh ? "true" : "false"); +} + +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::getShelf()const +{ + return shelf_; +} + +void ComposePlanogramPositionsRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + +std::string ComposePlanogramPositionsRequest::getLayerOrigin()const +{ + return layerOrigin_; +} + +void ComposePlanogramPositionsRequest::setLayerOrigin(const std::string& layerOrigin) +{ + layerOrigin_ = layerOrigin; + setBodyParameter("LayerOrigin", layerOrigin); +} + +std::vector ComposePlanogramPositionsRequest::getShelfPositionInfo()const +{ + return shelfPositionInfo_; +} + +void ComposePlanogramPositionsRequest::setShelfPositionInfo(const std::vector& 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); + } +} + diff --git a/cloudesl/src/model/ComposePlanogramPositionsResult.cc b/cloudesl/src/model/ComposePlanogramPositionsResult.cc new file mode 100644 index 000000000..b705336f2 --- /dev/null +++ b/cloudesl/src/model/ComposePlanogramPositionsResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/CreateStoreRequest.cc b/cloudesl/src/model/CreateStoreRequest.cc new file mode 100644 index 000000000..8cb4c115f --- /dev/null +++ b/cloudesl/src/model/CreateStoreRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::CreateStoreRequest; + +CreateStoreRequest::CreateStoreRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "CreateStore") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateStoreRequest::~CreateStoreRequest() +{} + +std::string CreateStoreRequest::getStoreName()const +{ + return storeName_; +} + +void CreateStoreRequest::setStoreName(const std::string& storeName) +{ + storeName_ = storeName; + setBodyParameter("StoreName", storeName); +} + +std::string CreateStoreRequest::getParentId()const +{ + return parentId_; +} + +void CreateStoreRequest::setParentId(const std::string& parentId) +{ + parentId_ = parentId; + setBodyParameter("ParentId", parentId); +} + +std::string CreateStoreRequest::getPhone()const +{ + return phone_; +} + +void CreateStoreRequest::setPhone(const std::string& phone) +{ + phone_ = phone; + setBodyParameter("Phone", phone); +} + +std::string CreateStoreRequest::getUserStoreCode()const +{ + return userStoreCode_; +} + +void CreateStoreRequest::setUserStoreCode(const std::string& userStoreCode) +{ + userStoreCode_ = userStoreCode; + setBodyParameter("UserStoreCode", userStoreCode); +} + diff --git a/cloudesl/src/model/CreateStoreResult.cc b/cloudesl/src/model/CreateStoreResult.cc new file mode 100644 index 000000000..cde44bcdf --- /dev/null +++ b/cloudesl/src/model/CreateStoreResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +CreateStoreResult::CreateStoreResult() : + ServiceResult() +{} + +CreateStoreResult::CreateStoreResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStoreResult::~CreateStoreResult() +{} + +void CreateStoreResult::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["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"; + +} + +std::string CreateStoreResult::getMessage()const +{ + return message_; +} + +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_; +} + diff --git a/cloudesl/src/model/DeleteApDeviceRequest.cc b/cloudesl/src/model/DeleteApDeviceRequest.cc new file mode 100644 index 000000000..41bc99580 --- /dev/null +++ b/cloudesl/src/model/DeleteApDeviceRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::DeleteApDeviceRequest; + +DeleteApDeviceRequest::DeleteApDeviceRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DeleteApDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteApDeviceRequest::~DeleteApDeviceRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/DeleteApDeviceResult.cc b/cloudesl/src/model/DeleteApDeviceResult.cc new file mode 100644 index 000000000..57465a865 --- /dev/null +++ b/cloudesl/src/model/DeleteApDeviceResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/DeletePlanogramShelfRequest.cc b/cloudesl/src/model/DeletePlanogramShelfRequest.cc new file mode 100644 index 000000000..55ba57ad5 --- /dev/null +++ b/cloudesl/src/model/DeletePlanogramShelfRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DeletePlanogramShelfRequest; + +DeletePlanogramShelfRequest::DeletePlanogramShelfRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DeletePlanogramShelf") +{ + setMethod(HttpRequest::Method::Post); +} + +DeletePlanogramShelfRequest::~DeletePlanogramShelfRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/DeletePlanogramShelfResult.cc b/cloudesl/src/model/DeletePlanogramShelfResult.cc new file mode 100644 index 000000000..6efe80665 --- /dev/null +++ b/cloudesl/src/model/DeletePlanogramShelfResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DeletePlanogramShelfResult::DeletePlanogramShelfResult() : + ServiceResult() +{} + +DeletePlanogramShelfResult::DeletePlanogramShelfResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePlanogramShelfResult::~DeletePlanogramShelfResult() +{} + +void DeletePlanogramShelfResult::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 DeletePlanogramShelfResult::getMessage()const +{ + return message_; +} + +std::string DeletePlanogramShelfResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeletePlanogramShelfResult::getErrorCode()const +{ + return errorCode_; +} + +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_; +} + diff --git a/cloudesl/src/model/DeleteStoreRequest.cc b/cloudesl/src/model/DeleteStoreRequest.cc new file mode 100644 index 000000000..4c88146bf --- /dev/null +++ b/cloudesl/src/model/DeleteStoreRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::DeleteStoreRequest; + +DeleteStoreRequest::DeleteStoreRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DeleteStore") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteStoreRequest::~DeleteStoreRequest() +{} + +std::string DeleteStoreRequest::getStoreId()const +{ + return storeId_; +} + +void DeleteStoreRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + diff --git a/cloudesl/src/model/DeleteStoreResult.cc b/cloudesl/src/model/DeleteStoreResult.cc new file mode 100644 index 000000000..0413da75f --- /dev/null +++ b/cloudesl/src/model/DeleteStoreResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DeleteStoreResult::DeleteStoreResult() : + ServiceResult() +{} + +DeleteStoreResult::DeleteStoreResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteStoreResult::~DeleteStoreResult() +{} + +void DeleteStoreResult::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 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_; +} + diff --git a/cloudesl/src/model/DeleteUserRequest.cc b/cloudesl/src/model/DeleteUserRequest.cc new file mode 100644 index 000000000..7987ab001 --- /dev/null +++ b/cloudesl/src/model/DeleteUserRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::DeleteUserRequest; + +DeleteUserRequest::DeleteUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DeleteUser") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteUserRequest::~DeleteUserRequest() +{} + +std::string DeleteUserRequest::getUserId()const +{ + return userId_; +} + +void DeleteUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/cloudesl/src/model/DeleteUserResult.cc b/cloudesl/src/model/DeleteUserResult.cc new file mode 100644 index 000000000..7b8b33124 --- /dev/null +++ b/cloudesl/src/model/DeleteUserResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DeleteUserResult::DeleteUserResult() : + ServiceResult() +{} + +DeleteUserResult::DeleteUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserResult::~DeleteUserResult() +{} + +void DeleteUserResult::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 DeleteUserResult::getMessage()const +{ + return message_; +} + +std::string DeleteUserResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeleteUserResult::getErrorCode()const +{ + return errorCode_; +} + +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_; +} + diff --git a/cloudesl/src/model/DescribeAlarmsRequest.cc b/cloudesl/src/model/DescribeAlarmsRequest.cc new file mode 100644 index 000000000..30b84ca4e --- /dev/null +++ b/cloudesl/src/model/DescribeAlarmsRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribeAlarmsRequest; + +DescribeAlarmsRequest::DescribeAlarmsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeAlarms") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeAlarmsRequest::~DescribeAlarmsRequest() +{} + +std::string DescribeAlarmsRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeAlarmsRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribeAlarmsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAlarmsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeAlarmsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAlarmsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeAlarmsRequest::getAlarmType()const +{ + return alarmType_; +} + +void DescribeAlarmsRequest::setAlarmType(const std::string& alarmType) +{ + alarmType_ = alarmType; + setBodyParameter("AlarmType", alarmType); +} + +std::string DescribeAlarmsRequest::getAlarmStatus()const +{ + return alarmStatus_; +} + +void DescribeAlarmsRequest::setAlarmStatus(const std::string& alarmStatus) +{ + alarmStatus_ = alarmStatus; + setBodyParameter("AlarmStatus", alarmStatus); +} + +std::string DescribeAlarmsRequest::getErrorType()const +{ + return errorType_; +} + +void DescribeAlarmsRequest::setErrorType(const std::string& errorType) +{ + errorType_ = errorType; + setBodyParameter("ErrorType", errorType); +} + +std::string DescribeAlarmsRequest::getAlarmId()const +{ + return alarmId_; +} + +void DescribeAlarmsRequest::setAlarmId(const std::string& alarmId) +{ + alarmId_ = alarmId; + setBodyParameter("AlarmId", alarmId); +} + +std::string DescribeAlarmsRequest::getDeviceMac()const +{ + return deviceMac_; +} + +void DescribeAlarmsRequest::setDeviceMac(const std::string& deviceMac) +{ + deviceMac_ = deviceMac; + setBodyParameter("DeviceMac", deviceMac); +} + diff --git a/cloudesl/src/model/DescribeAlarmsResult.cc b/cloudesl/src/model/DescribeAlarmsResult.cc new file mode 100644 index 000000000..82705e0e7 --- /dev/null +++ b/cloudesl/src/model/DescribeAlarmsResult.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DescribeAlarmsResult::DescribeAlarmsResult() : + ServiceResult() +{} + +DescribeAlarmsResult::DescribeAlarmsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlarmsResult::~DescribeAlarmsResult() +{} + +void DescribeAlarmsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAlarmsNode = value["Alarms"]["AlarmInfo"]; + for (auto valueAlarmsAlarmInfo : allAlarmsNode) + { + AlarmInfo alarmsObject; + 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["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["AlarmType"].isNull()) + alarmsObject.alarmType = valueAlarmsAlarmInfo["AlarmType"].asString(); + if(!valueAlarmsAlarmInfo["AlarmStatus"].isNull()) + alarmsObject.alarmStatus = valueAlarmsAlarmInfo["AlarmStatus"].asString(); + alarms_.push_back(alarmsObject); + } + 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["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"; + +} + +int DescribeAlarmsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeAlarmsResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeAlarmsResult::getMessage()const +{ + return message_; +} + +int DescribeAlarmsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeAlarmsResult::getAlarms()const +{ + 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_; +} + diff --git a/cloudesl/src/model/DescribeApDevicesRequest.cc b/cloudesl/src/model/DescribeApDevicesRequest.cc new file mode 100644 index 000000000..b394a5206 --- /dev/null +++ b/cloudesl/src/model/DescribeApDevicesRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribeApDevicesRequest; + +DescribeApDevicesRequest::DescribeApDevicesRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeApDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeApDevicesRequest::~DescribeApDevicesRequest() +{} + +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"); +} + diff --git a/cloudesl/src/model/DescribeApDevicesResult.cc b/cloudesl/src/model/DescribeApDevicesResult.cc new file mode 100644 index 000000000..17d9ce18b --- /dev/null +++ b/cloudesl/src/model/DescribeApDevicesResult.cc @@ -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 +#include + +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::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_; +} + diff --git a/cloudesl/src/model/DescribeBindersRequest.cc b/cloudesl/src/model/DescribeBindersRequest.cc new file mode 100644 index 000000000..c198ca7ce --- /dev/null +++ b/cloudesl/src/model/DescribeBindersRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribeBindersRequest; + +DescribeBindersRequest::DescribeBindersRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeBinders") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeBindersRequest::~DescribeBindersRequest() +{} + +std::string DescribeBindersRequest::getItemTitle()const +{ + return itemTitle_; +} + +void DescribeBindersRequest::setItemTitle(const std::string& itemTitle) +{ + itemTitle_ = itemTitle; + setBodyParameter("ItemTitle", itemTitle); +} + +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); +} + diff --git a/cloudesl/src/model/DescribeBindersResult.cc b/cloudesl/src/model/DescribeBindersResult.cc new file mode 100644 index 000000000..e6a662a71 --- /dev/null +++ b/cloudesl/src/model/DescribeBindersResult.cc @@ -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 +#include + +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::getEslItemBindInfos()const +{ + return eslItemBindInfos_; +} + diff --git a/cloudesl/src/model/DescribeEslDevicesRequest.cc b/cloudesl/src/model/DescribeEslDevicesRequest.cc new file mode 100644 index 000000000..cbfe1baec --- /dev/null +++ b/cloudesl/src/model/DescribeEslDevicesRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribeEslDevicesRequest; + +DescribeEslDevicesRequest::DescribeEslDevicesRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeEslDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeEslDevicesRequest::~DescribeEslDevicesRequest() +{} + +std::string DescribeEslDevicesRequest::getType()const +{ + return type_; +} + +void DescribeEslDevicesRequest::setType(const std::string& type) +{ + type_ = type; + setBodyParameter("Type", type); +} + +std::string DescribeEslDevicesRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeEslDevicesRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribeEslDevicesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeEslDevicesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeEslDevicesRequest::getEslBarCode()const +{ + return eslBarCode_; +} + +void DescribeEslDevicesRequest::setEslBarCode(const std::string& eslBarCode) +{ + eslBarCode_ = eslBarCode; + setBodyParameter("EslBarCode", eslBarCode); +} + +int DescribeEslDevicesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeEslDevicesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeEslDevicesRequest::getEslStatus()const +{ + return eslStatus_; +} + +void DescribeEslDevicesRequest::setEslStatus(const std::string& eslStatus) +{ + eslStatus_ = eslStatus; + setBodyParameter("EslStatus", eslStatus); +} + +int DescribeEslDevicesRequest::getToBatteryLevel()const +{ + return toBatteryLevel_; +} + +void DescribeEslDevicesRequest::setToBatteryLevel(int toBatteryLevel) +{ + toBatteryLevel_ = toBatteryLevel; + setBodyParameter("ToBatteryLevel", std::to_string(toBatteryLevel)); +} + +int DescribeEslDevicesRequest::getFromBatteryLevel()const +{ + return fromBatteryLevel_; +} + +void DescribeEslDevicesRequest::setFromBatteryLevel(int fromBatteryLevel) +{ + fromBatteryLevel_ = fromBatteryLevel; + setBodyParameter("FromBatteryLevel", std::to_string(fromBatteryLevel)); +} + diff --git a/cloudesl/src/model/DescribeEslDevicesResult.cc b/cloudesl/src/model/DescribeEslDevicesResult.cc new file mode 100644 index 000000000..c0b544843 --- /dev/null +++ b/cloudesl/src/model/DescribeEslDevicesResult.cc @@ -0,0 +1,145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DescribeEslDevicesResult::DescribeEslDevicesResult() : + ServiceResult() +{} + +DescribeEslDevicesResult::DescribeEslDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEslDevicesResult::~DescribeEslDevicesResult() +{} + +void DescribeEslDevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEslDevicesNode = value["EslDevices"]["EslDeviceInfo"]; + for (auto valueEslDevicesEslDeviceInfo : allEslDevicesNode) + { + EslDeviceInfo eslDevicesObject; + if(!valueEslDevicesEslDeviceInfo["LastCommunicateTime"].isNull()) + eslDevicesObject.lastCommunicateTime = valueEslDevicesEslDeviceInfo["LastCommunicateTime"].asString(); + if(!valueEslDevicesEslDeviceInfo["Model"].isNull()) + eslDevicesObject.model = valueEslDevicesEslDeviceInfo["Model"].asString(); + if(!valueEslDevicesEslDeviceInfo["EslStatus"].isNull()) + eslDevicesObject.eslStatus = valueEslDevicesEslDeviceInfo["EslStatus"].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["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["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"; + +} + +int DescribeEslDevicesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeEslDevicesResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeEslDevicesResult::getMessage()const +{ + return message_; +} + +int DescribeEslDevicesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeEslDevicesResult::getEslDevices()const +{ + 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_; +} + diff --git a/cloudesl/src/model/DescribeItemsRequest.cc b/cloudesl/src/model/DescribeItemsRequest.cc new file mode 100644 index 000000000..62555c89b --- /dev/null +++ b/cloudesl/src/model/DescribeItemsRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribeItemsRequest; + +DescribeItemsRequest::DescribeItemsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeItems") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeItemsRequest::~DescribeItemsRequest() +{} + +std::string DescribeItemsRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeItemsRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribeItemsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeItemsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeItemsRequest::getItemId()const +{ + return itemId_; +} + +void DescribeItemsRequest::setItemId(const std::string& itemId) +{ + itemId_ = itemId; + setBodyParameter("ItemId", itemId); +} + +int DescribeItemsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeItemsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeItemsRequest::getItemBarCode()const +{ + return itemBarCode_; +} + +void DescribeItemsRequest::setItemBarCode(const std::string& itemBarCode) +{ + itemBarCode_ = itemBarCode; + setBodyParameter("ItemBarCode", itemBarCode); +} + +bool DescribeItemsRequest::getBePromotion()const +{ + return bePromotion_; +} + +void DescribeItemsRequest::setBePromotion(bool bePromotion) +{ + bePromotion_ = bePromotion; + setBodyParameter("BePromotion", bePromotion ? "true" : "false"); +} + +std::string DescribeItemsRequest::getItemTitle()const +{ + return itemTitle_; +} + +void DescribeItemsRequest::setItemTitle(const std::string& itemTitle) +{ + itemTitle_ = itemTitle; + setBodyParameter("ItemTitle", itemTitle); +} + +std::string DescribeItemsRequest::getSkuId()const +{ + return skuId_; +} + +void DescribeItemsRequest::setSkuId(const std::string& skuId) +{ + skuId_ = skuId; + setBodyParameter("SkuId", skuId); +} + diff --git a/cloudesl/src/model/DescribeItemsResult.cc b/cloudesl/src/model/DescribeItemsResult.cc new file mode 100644 index 000000000..1c6db8f15 --- /dev/null +++ b/cloudesl/src/model/DescribeItemsResult.cc @@ -0,0 +1,225 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DescribeItemsResult::DescribeItemsResult() : + ServiceResult() +{} + +DescribeItemsResult::DescribeItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeItemsResult::~DescribeItemsResult() +{} + +void DescribeItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["ItemInfo"]; + for (auto valueItemsItemInfo : allItemsNode) + { + ItemInfo itemsObject; + if(!valueItemsItemInfo["CategoryName"].isNull()) + itemsObject.categoryName = valueItemsItemInfo["CategoryName"].asString(); + if(!valueItemsItemInfo["EnergyEfficiency"].isNull()) + itemsObject.energyEfficiency = valueItemsItemInfo["EnergyEfficiency"].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["OriginalPrice"].isNull()) + itemsObject.originalPrice = std::stoi(valueItemsItemInfo["OriginalPrice"].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["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(); + items_.push_back(itemsObject); + } + 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["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"; + +} + +int DescribeItemsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeItemsResult::getMessage()const +{ + return message_; +} + +int DescribeItemsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeItemsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector 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::getCode()const +{ + return code_; +} + +bool DescribeItemsResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/DescribePlanogramEslDevicesRequest.cc b/cloudesl/src/model/DescribePlanogramEslDevicesRequest.cc new file mode 100644 index 000000000..38c111dda --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramEslDevicesRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribePlanogramEslDevicesRequest; + +DescribePlanogramEslDevicesRequest::DescribePlanogramEslDevicesRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramEslDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePlanogramEslDevicesRequest::~DescribePlanogramEslDevicesRequest() +{} + +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::getShelf()const +{ + return shelf_; +} + +void DescribePlanogramEslDevicesRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + diff --git a/cloudesl/src/model/DescribePlanogramEslDevicesResult.cc b/cloudesl/src/model/DescribePlanogramEslDevicesResult.cc new file mode 100644 index 000000000..6bec7c3e9 --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramEslDevicesResult.cc @@ -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 +#include + +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 = allEslDeviceLayerInfosNode["EslDevicePositionInfos"]["EslDevicePositionInfo"]; + for (auto allEslDeviceLayerInfosNodeEslDevicePositionInfosEslDevicePositionInfo : allEslDevicePositionInfosNode) + { + EslDeviceLayerInfo::EslDevicePositionInfo eslDevicePositionInfosObject; + if(!allEslDeviceLayerInfosNodeEslDevicePositionInfosEslDevicePositionInfo["Column"].isNull()) + eslDevicePositionInfosObject.column = allEslDeviceLayerInfosNodeEslDevicePositionInfosEslDevicePositionInfo["Column"].asString(); + auto allEslDevicePlanogramInfosNode = allEslDevicePositionInfosNode["EslDevicePlanogramInfos"]["EslDevicePlanogramInfo"]; + for (auto allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo : allEslDevicePlanogramInfosNode) + { + EslDeviceLayerInfo::EslDevicePositionInfo::EslDevicePlanogramInfo eslDevicePlanogramInfosObject; + if(!allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo["EslBarCode"].isNull()) + eslDevicePlanogramInfosObject.eslBarCode = allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo["EslBarCode"].asString(); + if(!allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo["EslModel"].isNull()) + eslDevicePlanogramInfosObject.eslModel = allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo["EslModel"].asString(); + if(!allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemBarCode"].isNull()) + eslDevicePlanogramInfosObject.itemBarCode = allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemBarCode"].asString(); + if(!allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemTitle"].isNull()) + eslDevicePlanogramInfosObject.itemTitle = allEslDevicePositionInfosNodeEslDevicePlanogramInfosEslDevicePlanogramInfo["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::getEslDeviceLayerInfos()const +{ + return eslDeviceLayerInfos_; +} + +std::string DescribePlanogramEslDevicesResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribePlanogramEslDevicesResult::getCode()const +{ + return code_; +} + +bool DescribePlanogramEslDevicesResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/DescribePlanogramPositionsRequest.cc b/cloudesl/src/model/DescribePlanogramPositionsRequest.cc new file mode 100644 index 000000000..52c95d122 --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramPositionsRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribePlanogramPositionsRequest; + +DescribePlanogramPositionsRequest::DescribePlanogramPositionsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramPositions") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePlanogramPositionsRequest::~DescribePlanogramPositionsRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/DescribePlanogramPositionsResult.cc b/cloudesl/src/model/DescribePlanogramPositionsResult.cc new file mode 100644 index 000000000..592b4b42e --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramPositionsResult.cc @@ -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 +#include + +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(); + auto allShelfPositionInfosNode = allLayerInfosNode["ShelfPositionInfos"]["ShelfPositionInfo"]; + for (auto allLayerInfosNodeShelfPositionInfosShelfPositionInfo : allShelfPositionInfosNode) + { + LayerInfo::ShelfPositionInfo shelfPositionInfosObject; + if(!allLayerInfosNodeShelfPositionInfosShelfPositionInfo["Column"].isNull()) + shelfPositionInfosObject.column = allLayerInfosNodeShelfPositionInfosShelfPositionInfo["Column"].asString(); + if(!allLayerInfosNodeShelfPositionInfosShelfPositionInfo["Depth"].isNull()) + shelfPositionInfosObject.depth = std::stof(allLayerInfosNodeShelfPositionInfosShelfPositionInfo["Depth"].asString()); + if(!allLayerInfosNodeShelfPositionInfosShelfPositionInfo["Facing"].isNull()) + shelfPositionInfosObject.facing = std::stoi(allLayerInfosNodeShelfPositionInfosShelfPositionInfo["Facing"].asString()); + if(!allLayerInfosNodeShelfPositionInfosShelfPositionInfo["ItemBarCode"].isNull()) + shelfPositionInfosObject.itemBarCode = allLayerInfosNodeShelfPositionInfosShelfPositionInfo["ItemBarCode"].asString(); + if(!allLayerInfosNodeShelfPositionInfosShelfPositionInfo["ItemTitle"].isNull()) + shelfPositionInfosObject.itemTitle = allLayerInfosNodeShelfPositionInfosShelfPositionInfo["ItemTitle"].asString(); + if(!allLayerInfosNodeShelfPositionInfosShelfPositionInfo["OffsetFrom"].isNull()) + shelfPositionInfosObject.offsetFrom = std::stof(allLayerInfosNodeShelfPositionInfosShelfPositionInfo["OffsetFrom"].asString()); + if(!allLayerInfosNodeShelfPositionInfosShelfPositionInfo["OffsetTo"].isNull()) + shelfPositionInfosObject.offsetTo = std::stof(allLayerInfosNodeShelfPositionInfosShelfPositionInfo["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"; + +} + +std::string DescribePlanogramPositionsResult::getMessage()const +{ + return message_; +} + +std::string DescribePlanogramPositionsResult::getStoreId()const +{ + return storeId_; +} + +std::string DescribePlanogramPositionsResult::getShelf()const +{ + return shelf_; +} + +std::string DescribePlanogramPositionsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::vector 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_; +} + diff --git a/cloudesl/src/model/DescribePlanogramRailsRequest.cc b/cloudesl/src/model/DescribePlanogramRailsRequest.cc new file mode 100644 index 000000000..c87902d3a --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramRailsRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribePlanogramRailsRequest; + +DescribePlanogramRailsRequest::DescribePlanogramRailsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramRails") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePlanogramRailsRequest::~DescribePlanogramRailsRequest() +{} + +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)); +} + +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); +} + +int DescribePlanogramRailsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePlanogramRailsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/cloudesl/src/model/DescribePlanogramRailsResult.cc b/cloudesl/src/model/DescribePlanogramRailsResult.cc new file mode 100644 index 000000000..84e11d0ed --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramRailsResult.cc @@ -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 +#include + +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::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_; +} + diff --git a/cloudesl/src/model/DescribePlanogramShelvesRequest.cc b/cloudesl/src/model/DescribePlanogramShelvesRequest.cc new file mode 100644 index 000000000..807f9cd3e --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramShelvesRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::DescribePlanogramShelvesRequest; + +DescribePlanogramShelvesRequest::DescribePlanogramShelvesRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramShelves") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePlanogramShelvesRequest::~DescribePlanogramShelvesRequest() +{} + +std::string DescribePlanogramShelvesRequest::getStoreId()const +{ + return storeId_; +} + +void DescribePlanogramShelvesRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + diff --git a/cloudesl/src/model/DescribePlanogramShelvesResult.cc b/cloudesl/src/model/DescribePlanogramShelvesResult.cc new file mode 100644 index 000000000..5fdece675 --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramShelvesResult.cc @@ -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 +#include + +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(); + auto allLayerInfosNode = allShelfInfosNode["LayerInfos"]["LayerInfo"]; + for (auto allShelfInfosNodeLayerInfosLayerInfo : allLayerInfosNode) + { + ShelfInfo::LayerInfo layerInfosObject; + if(!allShelfInfosNodeLayerInfosLayerInfo["Layer"].isNull()) + layerInfosObject.layer = std::stoi(allShelfInfosNodeLayerInfosLayerInfo["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"; + +} + +std::vector DescribePlanogramShelvesResult::getShelfInfos()const +{ + return shelfInfos_; +} + +std::string DescribePlanogramShelvesResult::getMessage()const +{ + return message_; +} + +std::string DescribePlanogramShelvesResult::getStoreId()const +{ + return storeId_; +} + +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_; +} + diff --git a/cloudesl/src/model/DescribeStoreConfigRequest.cc b/cloudesl/src/model/DescribeStoreConfigRequest.cc new file mode 100644 index 000000000..8d873bd48 --- /dev/null +++ b/cloudesl/src/model/DescribeStoreConfigRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::DescribeStoreConfigRequest; + +DescribeStoreConfigRequest::DescribeStoreConfigRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStoreConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeStoreConfigRequest::~DescribeStoreConfigRequest() +{} + +std::string DescribeStoreConfigRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeStoreConfigRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + diff --git a/cloudesl/src/model/DescribeStoreConfigResult.cc b/cloudesl/src/model/DescribeStoreConfigResult.cc new file mode 100644 index 000000000..15f994393 --- /dev/null +++ b/cloudesl/src/model/DescribeStoreConfigResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/DescribeStoresRequest.cc b/cloudesl/src/model/DescribeStoresRequest.cc new file mode 100644 index 000000000..8a70106df --- /dev/null +++ b/cloudesl/src/model/DescribeStoresRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribeStoresRequest; + +DescribeStoresRequest::DescribeStoresRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStores") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeStoresRequest::~DescribeStoresRequest() +{} + +std::string DescribeStoresRequest::getStoreName()const +{ + return storeName_; +} + +void DescribeStoresRequest::setStoreName(const std::string& storeName) +{ + storeName_ = storeName; + setBodyParameter("StoreName", storeName); +} + +std::string DescribeStoresRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeStoresRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribeStoresRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeStoresRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeStoresRequest::getFromDate()const +{ + return fromDate_; +} + +void DescribeStoresRequest::setFromDate(const std::string& fromDate) +{ + fromDate_ = fromDate; + setBodyParameter("FromDate", fromDate); +} + +std::string DescribeStoresRequest::getToDate()const +{ + return toDate_; +} + +void DescribeStoresRequest::setToDate(const std::string& toDate) +{ + toDate_ = toDate; + setBodyParameter("ToDate", toDate); +} + +int DescribeStoresRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeStoresRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeStoresRequest::getUserStoreCode()const +{ + return userStoreCode_; +} + +void DescribeStoresRequest::setUserStoreCode(const std::string& userStoreCode) +{ + userStoreCode_ = userStoreCode; + setBodyParameter("UserStoreCode", userStoreCode); +} + diff --git a/cloudesl/src/model/DescribeStoresResult.cc b/cloudesl/src/model/DescribeStoresResult.cc new file mode 100644 index 000000000..6707be232 --- /dev/null +++ b/cloudesl/src/model/DescribeStoresResult.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DescribeStoresResult::DescribeStoresResult() : + ServiceResult() +{} + +DescribeStoresResult::DescribeStoresResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStoresResult::~DescribeStoresResult() +{} + +void DescribeStoresResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStoresNode = value["Stores"]["StoreInfo"]; + for (auto valueStoresStoreInfo : allStoresNode) + { + StoreInfo storesObject; + if(!valueStoresStoreInfo["StoreName"].isNull()) + storesObject.storeName = valueStoresStoreInfo["StoreName"].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(); + stores_.push_back(storesObject); + } + 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["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"; + +} + +int DescribeStoresResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeStoresResult::getMessage()const +{ + return message_; +} + +int DescribeStoresResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeStoresResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeStoresResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::vector DescribeStoresResult::getStores()const +{ + return stores_; +} + +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_; +} + diff --git a/cloudesl/src/model/DescribeUserLogRequest.cc b/cloudesl/src/model/DescribeUserLogRequest.cc new file mode 100644 index 000000000..81dd8618e --- /dev/null +++ b/cloudesl/src/model/DescribeUserLogRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribeUserLogRequest; + +DescribeUserLogRequest::DescribeUserLogRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeUserLog") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeUserLogRequest::~DescribeUserLogRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/DescribeUserLogResult.cc b/cloudesl/src/model/DescribeUserLogResult.cc new file mode 100644 index 000000000..575f133eb --- /dev/null +++ b/cloudesl/src/model/DescribeUserLogResult.cc @@ -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 +#include + +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::getUserLogs()const +{ + return userLogs_; +} + +bool DescribeUserLogResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/DescribeUsersRequest.cc b/cloudesl/src/model/DescribeUsersRequest.cc new file mode 100644 index 000000000..db565bd73 --- /dev/null +++ b/cloudesl/src/model/DescribeUsersRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::DescribeUsersRequest; + +DescribeUsersRequest::DescribeUsersRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeUsers") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeUsersRequest::~DescribeUsersRequest() +{} + +std::string DescribeUsersRequest::getUserType()const +{ + return userType_; +} + +void DescribeUsersRequest::setUserType(const std::string& userType) +{ + userType_ = userType; + setBodyParameter("UserType", userType); +} + +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::getUserName()const +{ + return userName_; +} + +void DescribeUsersRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setBodyParameter("UserName", userName); +} + diff --git a/cloudesl/src/model/DescribeUsersResult.cc b/cloudesl/src/model/DescribeUsersResult.cc new file mode 100644 index 000000000..3e8268f22 --- /dev/null +++ b/cloudesl/src/model/DescribeUsersResult.cc @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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(); + 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::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_; +} + diff --git a/cloudesl/src/model/DissociatePlanogramRailRequest.cc b/cloudesl/src/model/DissociatePlanogramRailRequest.cc new file mode 100644 index 000000000..88b057574 --- /dev/null +++ b/cloudesl/src/model/DissociatePlanogramRailRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::DissociatePlanogramRailRequest; + +DissociatePlanogramRailRequest::DissociatePlanogramRailRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DissociatePlanogramRail") +{ + setMethod(HttpRequest::Method::Post); +} + +DissociatePlanogramRailRequest::~DissociatePlanogramRailRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/DissociatePlanogramRailResult.cc b/cloudesl/src/model/DissociatePlanogramRailResult.cc new file mode 100644 index 000000000..14f70a0d7 --- /dev/null +++ b/cloudesl/src/model/DissociatePlanogramRailResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/GetUserRequest.cc b/cloudesl/src/model/GetUserRequest.cc new file mode 100644 index 000000000..970187c18 --- /dev/null +++ b/cloudesl/src/model/GetUserRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::GetUserRequest; + +GetUserRequest::GetUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "GetUser") +{ + setMethod(HttpRequest::Method::Post); +} + +GetUserRequest::~GetUserRequest() +{} + +std::string GetUserRequest::getUserId()const +{ + return userId_; +} + +void GetUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/cloudesl/src/model/GetUserResult.cc b/cloudesl/src/model/GetUserResult.cc new file mode 100644 index 000000000..7766316cc --- /dev/null +++ b/cloudesl/src/model/GetUserResult.cc @@ -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 +#include + +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(!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_; +} + diff --git a/cloudesl/src/model/UnassignUserRequest.cc b/cloudesl/src/model/UnassignUserRequest.cc new file mode 100644 index 000000000..29b3e224b --- /dev/null +++ b/cloudesl/src/model/UnassignUserRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::UnassignUserRequest; + +UnassignUserRequest::UnassignUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UnassignUser") +{ + setMethod(HttpRequest::Method::Post); +} + +UnassignUserRequest::~UnassignUserRequest() +{} + +std::string UnassignUserRequest::getUserId()const +{ + return userId_; +} + +void UnassignUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/cloudesl/src/model/UnassignUserResult.cc b/cloudesl/src/model/UnassignUserResult.cc new file mode 100644 index 000000000..6798951e2 --- /dev/null +++ b/cloudesl/src/model/UnassignUserResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/UnbindEslDeviceRequest.cc b/cloudesl/src/model/UnbindEslDeviceRequest.cc new file mode 100644 index 000000000..9c614a871 --- /dev/null +++ b/cloudesl/src/model/UnbindEslDeviceRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::UnbindEslDeviceRequest; + +UnbindEslDeviceRequest::UnbindEslDeviceRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UnbindEslDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +UnbindEslDeviceRequest::~UnbindEslDeviceRequest() +{} + +std::string UnbindEslDeviceRequest::getColumn()const +{ + return column_; +} + +void UnbindEslDeviceRequest::setColumn(const std::string& column) +{ + column_ = column; + setBodyParameter("Column", column); +} + +std::string UnbindEslDeviceRequest::getStoreId()const +{ + return storeId_; +} + +void UnbindEslDeviceRequest::setStoreId(const std::string& storeId) +{ + 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::getShelf()const +{ + return shelf_; +} + +void UnbindEslDeviceRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + +std::string UnbindEslDeviceRequest::getEslBarCode()const +{ + return eslBarCode_; +} + +void UnbindEslDeviceRequest::setEslBarCode(const std::string& eslBarCode) +{ + eslBarCode_ = eslBarCode; + setBodyParameter("EslBarCode", eslBarCode); +} + +std::string UnbindEslDeviceRequest::getItemBarCode()const +{ + return itemBarCode_; +} + +void UnbindEslDeviceRequest::setItemBarCode(const std::string& itemBarCode) +{ + itemBarCode_ = itemBarCode; + setBodyParameter("ItemBarCode", itemBarCode); +} + diff --git a/cloudesl/src/model/UnbindEslDeviceResult.cc b/cloudesl/src/model/UnbindEslDeviceResult.cc new file mode 100644 index 000000000..b9b341310 --- /dev/null +++ b/cloudesl/src/model/UnbindEslDeviceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +UnbindEslDeviceResult::UnbindEslDeviceResult() : + ServiceResult() +{} + +UnbindEslDeviceResult::UnbindEslDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindEslDeviceResult::~UnbindEslDeviceResult() +{} + +void UnbindEslDeviceResult::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 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_; +} + diff --git a/cloudesl/src/model/UpdateEslDeviceLightRequest.cc b/cloudesl/src/model/UpdateEslDeviceLightRequest.cc new file mode 100644 index 000000000..ac99590f5 --- /dev/null +++ b/cloudesl/src/model/UpdateEslDeviceLightRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::UpdateEslDeviceLightRequest; + +UpdateEslDeviceLightRequest::UpdateEslDeviceLightRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UpdateEslDeviceLight") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateEslDeviceLightRequest::~UpdateEslDeviceLightRequest() +{} + +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); +} + diff --git a/cloudesl/src/model/UpdateEslDeviceLightResult.cc b/cloudesl/src/model/UpdateEslDeviceLightResult.cc new file mode 100644 index 000000000..ea8837764 --- /dev/null +++ b/cloudesl/src/model/UpdateEslDeviceLightResult.cc @@ -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 +#include + +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::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_; +} + diff --git a/cloudesl/src/model/UpdateStoreConfigRequest.cc b/cloudesl/src/model/UpdateStoreConfigRequest.cc new file mode 100644 index 000000000..1dbbad186 --- /dev/null +++ b/cloudesl/src/model/UpdateStoreConfigRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::UpdateStoreConfigRequest; + +UpdateStoreConfigRequest::UpdateStoreConfigRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UpdateStoreConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateStoreConfigRequest::~UpdateStoreConfigRequest() +{} + +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::getStoreId()const +{ + return storeId_; +} + +void UpdateStoreConfigRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string UpdateStoreConfigRequest::getNotificationSilentTimes()const +{ + return notificationSilentTimes_; +} + +void UpdateStoreConfigRequest::setNotificationSilentTimes(const std::string& notificationSilentTimes) +{ + notificationSilentTimes_ = notificationSilentTimes; + setBodyParameter("NotificationSilentTimes", notificationSilentTimes); +} + diff --git a/cloudesl/src/model/UpdateStoreConfigResult.cc b/cloudesl/src/model/UpdateStoreConfigResult.cc new file mode 100644 index 000000000..8f45f976c --- /dev/null +++ b/cloudesl/src/model/UpdateStoreConfigResult.cc @@ -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 +#include + +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_; +} + diff --git a/cloudesl/src/model/UpdateStoreRequest.cc b/cloudesl/src/model/UpdateStoreRequest.cc new file mode 100644 index 000000000..69bc393c8 --- /dev/null +++ b/cloudesl/src/model/UpdateStoreRequest.cc @@ -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 + +using AlibabaCloud::Cloudesl::Model::UpdateStoreRequest; + +UpdateStoreRequest::UpdateStoreRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UpdateStore") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateStoreRequest::~UpdateStoreRequest() +{} + +std::string UpdateStoreRequest::getStoreName()const +{ + return storeName_; +} + +void UpdateStoreRequest::setStoreName(const std::string& storeName) +{ + storeName_ = storeName; + setBodyParameter("StoreName", storeName); +} + +std::string UpdateStoreRequest::getStoreId()const +{ + return storeId_; +} + +void UpdateStoreRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string UpdateStoreRequest::getPhone()const +{ + return phone_; +} + +void UpdateStoreRequest::setPhone(const std::string& phone) +{ + phone_ = phone; + setBodyParameter("Phone", phone); +} + +std::string UpdateStoreRequest::getUserStoreCode()const +{ + return userStoreCode_; +} + +void UpdateStoreRequest::setUserStoreCode(const std::string& userStoreCode) +{ + userStoreCode_ = userStoreCode; + setBodyParameter("UserStoreCode", userStoreCode); +} + diff --git a/cloudesl/src/model/UpdateStoreResult.cc b/cloudesl/src/model/UpdateStoreResult.cc new file mode 100644 index 000000000..acb538541 --- /dev/null +++ b/cloudesl/src/model/UpdateStoreResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +UpdateStoreResult::UpdateStoreResult() : + ServiceResult() +{} + +UpdateStoreResult::UpdateStoreResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateStoreResult::~UpdateStoreResult() +{} + +void UpdateStoreResult::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 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_; +} +