diff --git a/CHANGELOG b/CHANGELOG index 3290a78e4..552a5cc31 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-06-18 Version: 1.36.790 +- Supported 20210618 version for sdk. + 2021-06-17 Version: 1.36.789 - Generated 2019-11-20 for `Ga`. diff --git a/VERSION b/VERSION index 17e6e5ee0..4060cd9ad 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.789 \ No newline at end of file +1.36.790 \ No newline at end of file diff --git a/cloudesl/CMakeLists.txt b/cloudesl/CMakeLists.txt index 40e41448c..a76a43029 100644 --- a/cloudesl/CMakeLists.txt +++ b/cloudesl/CMakeLists.txt @@ -21,101 +21,169 @@ set(cloudesl_public_header include/alibabacloud/cloudesl/CloudeslExport.h ) set(cloudesl_public_header_model - include/alibabacloud/cloudesl/model/ActivateApServiceRequest.h - include/alibabacloud/cloudesl/model/ActivateApServiceResult.h - include/alibabacloud/cloudesl/model/ActivateApService2Request.h - include/alibabacloud/cloudesl/model/ActivateApService2Result.h + 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/AddRoleActionsRequest.h + include/alibabacloud/cloudesl/model/AddRoleActionsResult.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/BindApStoreServiceRequest.h - include/alibabacloud/cloudesl/model/BindApStoreServiceResult.h include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h include/alibabacloud/cloudesl/model/BindEslDeviceResult.h - include/alibabacloud/cloudesl/model/BindEslDeviceShelfRequest.h - include/alibabacloud/cloudesl/model/BindEslDeviceShelfResult.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/DeleteApServiceRequest.h - include/alibabacloud/cloudesl/model/DeleteApServiceResult.h - include/alibabacloud/cloudesl/model/DeleteEslDeviceRequest.h - include/alibabacloud/cloudesl/model/DeleteEslDeviceResult.h - include/alibabacloud/cloudesl/model/DeleteItemRequest.h - include/alibabacloud/cloudesl/model/DeleteItemResult.h - include/alibabacloud/cloudesl/model/DeleteItemBySkuIdRequest.h - include/alibabacloud/cloudesl/model/DeleteItemBySkuIdResult.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/DeleteRoleActionsRequest.h + include/alibabacloud/cloudesl/model/DeleteRoleActionsResult.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/DescribeCompanyRequest.h - include/alibabacloud/cloudesl/model/DescribeCompanyResult.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/DescribeClientPackageRequest.h + include/alibabacloud/cloudesl/model/DescribeClientPackageResult.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/DescribeRoleActionsRequest.h + include/alibabacloud/cloudesl/model/DescribeRoleActionsResult.h + include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h + include/alibabacloud/cloudesl/model/DescribeStoreConfigResult.h + include/alibabacloud/cloudesl/model/DescribeStoreStatisticsRequest.h + include/alibabacloud/cloudesl/model/DescribeStoreStatisticsResult.h include/alibabacloud/cloudesl/model/DescribeStoresRequest.h include/alibabacloud/cloudesl/model/DescribeStoresResult.h - include/alibabacloud/cloudesl/model/DescribeUserOperationLogRequest.h - include/alibabacloud/cloudesl/model/DescribeUserOperationLogResult.h - include/alibabacloud/cloudesl/model/DescribeUserRamPolicyRequest.h - include/alibabacloud/cloudesl/model/DescribeUserRamPolicyResult.h - include/alibabacloud/cloudesl/model/SearchApServiceRequest.h - include/alibabacloud/cloudesl/model/SearchApServiceResult.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/UnbindEslDeviceShelfRequest.h - include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfResult.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/UpdateStoreResult.h + include/alibabacloud/cloudesl/model/UpdateStoreConfigRequest.h + include/alibabacloud/cloudesl/model/UpdateStoreConfigResult.h + include/alibabacloud/cloudesl/model/UpdateUserRequest.h + include/alibabacloud/cloudesl/model/UpdateUserResult.h ) set(cloudesl_src src/CloudeslClient.cc - src/model/ActivateApServiceRequest.cc - src/model/ActivateApServiceResult.cc - src/model/ActivateApService2Request.cc - src/model/ActivateApService2Result.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/AddRoleActionsRequest.cc + src/model/AddRoleActionsResult.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/BindApStoreServiceRequest.cc - src/model/BindApStoreServiceResult.cc src/model/BindEslDeviceRequest.cc src/model/BindEslDeviceResult.cc - src/model/BindEslDeviceShelfRequest.cc - src/model/BindEslDeviceShelfResult.cc + src/model/ComposePlanogramPositionsRequest.cc + src/model/ComposePlanogramPositionsResult.cc src/model/CreateStoreRequest.cc src/model/CreateStoreResult.cc - src/model/DeleteApServiceRequest.cc - src/model/DeleteApServiceResult.cc - src/model/DeleteEslDeviceRequest.cc - src/model/DeleteEslDeviceResult.cc - src/model/DeleteItemRequest.cc - src/model/DeleteItemResult.cc - src/model/DeleteItemBySkuIdRequest.cc - src/model/DeleteItemBySkuIdResult.cc + src/model/DeleteApDeviceRequest.cc + src/model/DeleteApDeviceResult.cc + src/model/DeletePlanogramShelfRequest.cc + src/model/DeletePlanogramShelfResult.cc + src/model/DeleteRoleActionsRequest.cc + src/model/DeleteRoleActionsResult.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/DescribeCompanyRequest.cc - src/model/DescribeCompanyResult.cc + src/model/DescribeApDevicesRequest.cc + src/model/DescribeApDevicesResult.cc + src/model/DescribeBindersRequest.cc + src/model/DescribeBindersResult.cc + src/model/DescribeClientPackageRequest.cc + src/model/DescribeClientPackageResult.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/DescribeRoleActionsRequest.cc + src/model/DescribeRoleActionsResult.cc + src/model/DescribeStoreConfigRequest.cc + src/model/DescribeStoreConfigResult.cc + src/model/DescribeStoreStatisticsRequest.cc + src/model/DescribeStoreStatisticsResult.cc src/model/DescribeStoresRequest.cc src/model/DescribeStoresResult.cc - src/model/DescribeUserOperationLogRequest.cc - src/model/DescribeUserOperationLogResult.cc - src/model/DescribeUserRamPolicyRequest.cc - src/model/DescribeUserRamPolicyResult.cc - src/model/SearchApServiceRequest.cc - src/model/SearchApServiceResult.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/UnbindEslDeviceShelfRequest.cc - src/model/UnbindEslDeviceShelfResult.cc + src/model/UpdateEslDeviceLightRequest.cc + src/model/UpdateEslDeviceLightResult.cc src/model/UpdateStoreRequest.cc - src/model/UpdateStoreResult.cc ) + src/model/UpdateStoreResult.cc + src/model/UpdateStoreConfigRequest.cc + src/model/UpdateStoreConfigResult.cc + src/model/UpdateUserRequest.cc + src/model/UpdateUserResult.cc ) add_library(cloudesl ${LIB_TYPE} ${cloudesl_public_header} diff --git a/cloudesl/include/alibabacloud/cloudesl/CloudeslClient.h b/cloudesl/include/alibabacloud/cloudesl/CloudeslClient.h index 311d21490..61bd9bc56 100644 --- a/cloudesl/include/alibabacloud/cloudesl/CloudeslClient.h +++ b/cloudesl/include/alibabacloud/cloudesl/CloudeslClient.h @@ -22,52 +22,86 @@ #include #include #include "CloudeslExport.h" -#include "model/ActivateApServiceRequest.h" -#include "model/ActivateApServiceResult.h" -#include "model/ActivateApService2Request.h" -#include "model/ActivateApService2Result.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/AddRoleActionsRequest.h" +#include "model/AddRoleActionsResult.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/BindApStoreServiceRequest.h" -#include "model/BindApStoreServiceResult.h" #include "model/BindEslDeviceRequest.h" #include "model/BindEslDeviceResult.h" -#include "model/BindEslDeviceShelfRequest.h" -#include "model/BindEslDeviceShelfResult.h" +#include "model/ComposePlanogramPositionsRequest.h" +#include "model/ComposePlanogramPositionsResult.h" #include "model/CreateStoreRequest.h" #include "model/CreateStoreResult.h" -#include "model/DeleteApServiceRequest.h" -#include "model/DeleteApServiceResult.h" -#include "model/DeleteEslDeviceRequest.h" -#include "model/DeleteEslDeviceResult.h" -#include "model/DeleteItemRequest.h" -#include "model/DeleteItemResult.h" -#include "model/DeleteItemBySkuIdRequest.h" -#include "model/DeleteItemBySkuIdResult.h" +#include "model/DeleteApDeviceRequest.h" +#include "model/DeleteApDeviceResult.h" +#include "model/DeletePlanogramShelfRequest.h" +#include "model/DeletePlanogramShelfResult.h" +#include "model/DeleteRoleActionsRequest.h" +#include "model/DeleteRoleActionsResult.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/DescribeCompanyRequest.h" -#include "model/DescribeCompanyResult.h" +#include "model/DescribeApDevicesRequest.h" +#include "model/DescribeApDevicesResult.h" +#include "model/DescribeBindersRequest.h" +#include "model/DescribeBindersResult.h" +#include "model/DescribeClientPackageRequest.h" +#include "model/DescribeClientPackageResult.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/DescribeRoleActionsRequest.h" +#include "model/DescribeRoleActionsResult.h" +#include "model/DescribeStoreConfigRequest.h" +#include "model/DescribeStoreConfigResult.h" +#include "model/DescribeStoreStatisticsRequest.h" +#include "model/DescribeStoreStatisticsResult.h" #include "model/DescribeStoresRequest.h" #include "model/DescribeStoresResult.h" -#include "model/DescribeUserOperationLogRequest.h" -#include "model/DescribeUserOperationLogResult.h" -#include "model/DescribeUserRamPolicyRequest.h" -#include "model/DescribeUserRamPolicyResult.h" -#include "model/SearchApServiceRequest.h" -#include "model/SearchApServiceResult.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/UnbindEslDeviceShelfRequest.h" -#include "model/UnbindEslDeviceShelfResult.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" +#include "model/UpdateUserRequest.h" +#include "model/UpdateUserResult.h" namespace AlibabaCloud @@ -77,149 +111,251 @@ namespace AlibabaCloud class ALIBABACLOUD_CLOUDESL_EXPORT CloudeslClient : public RpcServiceClient { public: - typedef Outcome ActivateApServiceOutcome; - typedef std::future ActivateApServiceOutcomeCallable; - typedef std::function&)> ActivateApServiceAsyncHandler; - typedef Outcome ActivateApService2Outcome; - typedef std::future ActivateApService2OutcomeCallable; - typedef std::function&)> ActivateApService2AsyncHandler; + 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 AddRoleActionsOutcome; + typedef std::future AddRoleActionsOutcomeCallable; + typedef std::function&)> AddRoleActionsAsyncHandler; + 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 BindApStoreServiceOutcome; - typedef std::future BindApStoreServiceOutcomeCallable; - typedef std::function&)> BindApStoreServiceAsyncHandler; typedef Outcome BindEslDeviceOutcome; typedef std::future BindEslDeviceOutcomeCallable; typedef std::function&)> BindEslDeviceAsyncHandler; - typedef Outcome BindEslDeviceShelfOutcome; - typedef std::future BindEslDeviceShelfOutcomeCallable; - typedef std::function&)> BindEslDeviceShelfAsyncHandler; + typedef Outcome ComposePlanogramPositionsOutcome; + typedef std::future ComposePlanogramPositionsOutcomeCallable; + typedef std::function&)> ComposePlanogramPositionsAsyncHandler; typedef Outcome CreateStoreOutcome; typedef std::future CreateStoreOutcomeCallable; typedef std::function&)> CreateStoreAsyncHandler; - typedef Outcome DeleteApServiceOutcome; - typedef std::future DeleteApServiceOutcomeCallable; - typedef std::function&)> DeleteApServiceAsyncHandler; - typedef Outcome DeleteEslDeviceOutcome; - typedef std::future DeleteEslDeviceOutcomeCallable; - typedef std::function&)> DeleteEslDeviceAsyncHandler; - typedef Outcome DeleteItemOutcome; - typedef std::future DeleteItemOutcomeCallable; - typedef std::function&)> DeleteItemAsyncHandler; - typedef Outcome DeleteItemBySkuIdOutcome; - typedef std::future DeleteItemBySkuIdOutcomeCallable; - typedef std::function&)> DeleteItemBySkuIdAsyncHandler; + typedef Outcome DeleteApDeviceOutcome; + typedef std::future DeleteApDeviceOutcomeCallable; + typedef std::function&)> DeleteApDeviceAsyncHandler; + typedef Outcome DeletePlanogramShelfOutcome; + typedef std::future DeletePlanogramShelfOutcomeCallable; + typedef std::function&)> DeletePlanogramShelfAsyncHandler; + typedef Outcome DeleteRoleActionsOutcome; + typedef std::future DeleteRoleActionsOutcomeCallable; + typedef std::function&)> DeleteRoleActionsAsyncHandler; 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 DescribeCompanyOutcome; - typedef std::future DescribeCompanyOutcomeCallable; - typedef std::function&)> DescribeCompanyAsyncHandler; + typedef Outcome DescribeApDevicesOutcome; + typedef std::future DescribeApDevicesOutcomeCallable; + typedef std::function&)> DescribeApDevicesAsyncHandler; + typedef Outcome DescribeBindersOutcome; + typedef std::future DescribeBindersOutcomeCallable; + typedef std::function&)> DescribeBindersAsyncHandler; + typedef Outcome DescribeClientPackageOutcome; + typedef std::future DescribeClientPackageOutcomeCallable; + typedef std::function&)> DescribeClientPackageAsyncHandler; 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 DescribeRoleActionsOutcome; + typedef std::future DescribeRoleActionsOutcomeCallable; + typedef std::function&)> DescribeRoleActionsAsyncHandler; + typedef Outcome DescribeStoreConfigOutcome; + typedef std::future DescribeStoreConfigOutcomeCallable; + typedef std::function&)> DescribeStoreConfigAsyncHandler; + typedef Outcome DescribeStoreStatisticsOutcome; + typedef std::future DescribeStoreStatisticsOutcomeCallable; + typedef std::function&)> DescribeStoreStatisticsAsyncHandler; typedef Outcome DescribeStoresOutcome; typedef std::future DescribeStoresOutcomeCallable; typedef std::function&)> DescribeStoresAsyncHandler; - typedef Outcome DescribeUserOperationLogOutcome; - typedef std::future DescribeUserOperationLogOutcomeCallable; - typedef std::function&)> DescribeUserOperationLogAsyncHandler; - typedef Outcome DescribeUserRamPolicyOutcome; - typedef std::future DescribeUserRamPolicyOutcomeCallable; - typedef std::function&)> DescribeUserRamPolicyAsyncHandler; - typedef Outcome SearchApServiceOutcome; - typedef std::future SearchApServiceOutcomeCallable; - typedef std::function&)> SearchApServiceAsyncHandler; + 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 UnbindEslDeviceShelfOutcome; - typedef std::future UnbindEslDeviceShelfOutcomeCallable; - typedef std::function&)> UnbindEslDeviceShelfAsyncHandler; + 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; + typedef Outcome UpdateUserOutcome; + typedef std::future UpdateUserOutcomeCallable; + typedef std::function&)> UpdateUserAsyncHandler; 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(); - ActivateApServiceOutcome activateApService(const Model::ActivateApServiceRequest &request)const; - void activateApServiceAsync(const Model::ActivateApServiceRequest& request, const ActivateApServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActivateApServiceOutcomeCallable activateApServiceCallable(const Model::ActivateApServiceRequest& request) const; - ActivateApService2Outcome activateApService2(const Model::ActivateApService2Request &request)const; - void activateApService2Async(const Model::ActivateApService2Request& request, const ActivateApService2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActivateApService2OutcomeCallable activateApService2Callable(const Model::ActivateApService2Request& request) const; + 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; + AddRoleActionsOutcome addRoleActions(const Model::AddRoleActionsRequest &request)const; + void addRoleActionsAsync(const Model::AddRoleActionsRequest& request, const AddRoleActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddRoleActionsOutcomeCallable addRoleActionsCallable(const Model::AddRoleActionsRequest& 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; - BindApStoreServiceOutcome bindApStoreService(const Model::BindApStoreServiceRequest &request)const; - void bindApStoreServiceAsync(const Model::BindApStoreServiceRequest& request, const BindApStoreServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BindApStoreServiceOutcomeCallable bindApStoreServiceCallable(const Model::BindApStoreServiceRequest& 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; - BindEslDeviceShelfOutcome bindEslDeviceShelf(const Model::BindEslDeviceShelfRequest &request)const; - void bindEslDeviceShelfAsync(const Model::BindEslDeviceShelfRequest& request, const BindEslDeviceShelfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BindEslDeviceShelfOutcomeCallable bindEslDeviceShelfCallable(const Model::BindEslDeviceShelfRequest& 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; - DeleteApServiceOutcome deleteApService(const Model::DeleteApServiceRequest &request)const; - void deleteApServiceAsync(const Model::DeleteApServiceRequest& request, const DeleteApServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteApServiceOutcomeCallable deleteApServiceCallable(const Model::DeleteApServiceRequest& request) const; - DeleteEslDeviceOutcome deleteEslDevice(const Model::DeleteEslDeviceRequest &request)const; - void deleteEslDeviceAsync(const Model::DeleteEslDeviceRequest& request, const DeleteEslDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteEslDeviceOutcomeCallable deleteEslDeviceCallable(const Model::DeleteEslDeviceRequest& request) const; - DeleteItemOutcome deleteItem(const Model::DeleteItemRequest &request)const; - void deleteItemAsync(const Model::DeleteItemRequest& request, const DeleteItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteItemOutcomeCallable deleteItemCallable(const Model::DeleteItemRequest& request) const; - DeleteItemBySkuIdOutcome deleteItemBySkuId(const Model::DeleteItemBySkuIdRequest &request)const; - void deleteItemBySkuIdAsync(const Model::DeleteItemBySkuIdRequest& request, const DeleteItemBySkuIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteItemBySkuIdOutcomeCallable deleteItemBySkuIdCallable(const Model::DeleteItemBySkuIdRequest& 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; + DeleteRoleActionsOutcome deleteRoleActions(const Model::DeleteRoleActionsRequest &request)const; + void deleteRoleActionsAsync(const Model::DeleteRoleActionsRequest& request, const DeleteRoleActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRoleActionsOutcomeCallable deleteRoleActionsCallable(const Model::DeleteRoleActionsRequest& 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; - DescribeCompanyOutcome describeCompany(const Model::DescribeCompanyRequest &request)const; - void describeCompanyAsync(const Model::DescribeCompanyRequest& request, const DescribeCompanyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCompanyOutcomeCallable describeCompanyCallable(const Model::DescribeCompanyRequest& 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; + DescribeClientPackageOutcome describeClientPackage(const Model::DescribeClientPackageRequest &request)const; + void describeClientPackageAsync(const Model::DescribeClientPackageRequest& request, const DescribeClientPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClientPackageOutcomeCallable describeClientPackageCallable(const Model::DescribeClientPackageRequest& 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; + DescribeRoleActionsOutcome describeRoleActions(const Model::DescribeRoleActionsRequest &request)const; + void describeRoleActionsAsync(const Model::DescribeRoleActionsRequest& request, const DescribeRoleActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRoleActionsOutcomeCallable describeRoleActionsCallable(const Model::DescribeRoleActionsRequest& 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; + DescribeStoreStatisticsOutcome describeStoreStatistics(const Model::DescribeStoreStatisticsRequest &request)const; + void describeStoreStatisticsAsync(const Model::DescribeStoreStatisticsRequest& request, const DescribeStoreStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStoreStatisticsOutcomeCallable describeStoreStatisticsCallable(const Model::DescribeStoreStatisticsRequest& 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; - DescribeUserOperationLogOutcome describeUserOperationLog(const Model::DescribeUserOperationLogRequest &request)const; - void describeUserOperationLogAsync(const Model::DescribeUserOperationLogRequest& request, const DescribeUserOperationLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUserOperationLogOutcomeCallable describeUserOperationLogCallable(const Model::DescribeUserOperationLogRequest& request) const; - DescribeUserRamPolicyOutcome describeUserRamPolicy(const Model::DescribeUserRamPolicyRequest &request)const; - void describeUserRamPolicyAsync(const Model::DescribeUserRamPolicyRequest& request, const DescribeUserRamPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeUserRamPolicyOutcomeCallable describeUserRamPolicyCallable(const Model::DescribeUserRamPolicyRequest& request) const; - SearchApServiceOutcome searchApService(const Model::SearchApServiceRequest &request)const; - void searchApServiceAsync(const Model::SearchApServiceRequest& request, const SearchApServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchApServiceOutcomeCallable searchApServiceCallable(const Model::SearchApServiceRequest& 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; - UnbindEslDeviceShelfOutcome unbindEslDeviceShelf(const Model::UnbindEslDeviceShelfRequest &request)const; - void unbindEslDeviceShelfAsync(const Model::UnbindEslDeviceShelfRequest& request, const UnbindEslDeviceShelfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnbindEslDeviceShelfOutcomeCallable unbindEslDeviceShelfCallable(const Model::UnbindEslDeviceShelfRequest& 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; + UpdateUserOutcome updateUser(const Model::UpdateUserRequest &request)const; + void updateUserAsync(const Model::UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateUserOutcomeCallable updateUserCallable(const Model::UpdateUserRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BindApStoreServiceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceRequest.h similarity index 69% rename from cloudesl/include/alibabacloud/cloudesl/model/BindApStoreServiceRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceRequest.h index 7214ada17..8617f6c25 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/BindApStoreServiceRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/ActivateApDeviceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BINDAPSTORESERVICEREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_BINDAPSTORESERVICEREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICEREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPDEVICEREQUEST_H_ #include #include @@ -28,19 +28,22 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT BindApStoreServiceRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApDeviceRequest : public RpcServiceRequest { public: - BindApStoreServiceRequest(); - ~BindApStoreServiceRequest(); + ActivateApDeviceRequest(); + ~ActivateApDeviceRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getApMac()const; void setApMac(const std::string& apMac); std::string getStoreId()const; void setStoreId(const std::string& storeId); private: + std::string extraParams_; std::string apMac_; std::string storeId_; @@ -48,4 +51,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_BINDAPSTORESERVICEREQUEST_H_ \ No newline at end of file +#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..1041bd1f2 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + 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); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + + private: + std::string extraParams_; + std::string clientToken_; + std::string remark_; + std::string apMac_; + std::string storeId_; + std::string serialNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICEREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BindApStoreServiceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceResult.h similarity index 64% rename from cloudesl/include/alibabacloud/cloudesl/model/BindApStoreServiceResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceResult.h index 966a7ac26..d4698de77 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/BindApStoreServiceResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddApDeviceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BINDAPSTORESERVICERESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_BINDAPSTORESERVICERESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDAPDEVICERESULT_H_ #include #include @@ -29,27 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT BindApStoreServiceResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT AddApDeviceResult : public ServiceResult { public: - BindApStoreServiceResult(); - explicit BindApStoreServiceResult(const std::string &payload); - ~BindApStoreServiceResult(); + 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_BINDAPSTORESERVICERESULT_H_ \ No newline at end of file +#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..2016d252f --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getShelfType()const; + void setShelfType(const std::string& shelfType); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getZone()const; + void setZone(const std::string& zone); + std::string getShelf()const; + void setShelf(const std::string& shelf); + std::string getCategory()const; + void setCategory(const std::string& category); + + private: + std::string extraParams_; + std::string clientToken_; + std::string shelfType_; + std::string storeId_; + std::string zone_; + std::string shelf_; + std::string category_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteItemBySkuIdResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfResult.h similarity index 63% rename from cloudesl/include/alibabacloud/cloudesl/model/DeleteItemBySkuIdResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfResult.h index 083c8e686..b540db400 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteItemBySkuIdResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddPlanogramShelfResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMBYSKUIDRESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMBYSKUIDRESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFRESULT_H_ #include #include @@ -29,27 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DeleteItemBySkuIdResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT AddPlanogramShelfResult : public ServiceResult { public: - DeleteItemBySkuIdResult(); - explicit DeleteItemBySkuIdResult(const std::string &payload); - ~DeleteItemBySkuIdResult(); + 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_DELETEITEMBYSKUIDRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDPLANOGRAMSHELFRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AddRoleActionsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/AddRoleActionsRequest.h new file mode 100644 index 000000000..82ed20e98 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddRoleActionsRequest.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_ADDROLEACTIONSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDROLEACTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AddRoleActionsRequest : public RpcServiceRequest + { + + public: + AddRoleActionsRequest(); + ~AddRoleActionsRequest(); + + std::string getRoleCode()const; + void setRoleCode(const std::string& roleCode); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getAccessControlLists()const; + void setAccessControlLists(const std::string& accessControlLists); + + private: + std::string roleCode_; + std::string extraParams_; + std::string clientToken_; + std::string accessControlLists_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDROLEACTIONSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/AddRoleActionsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AddRoleActionsResult.h new file mode 100644 index 000000000..49e41233f --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddRoleActionsResult.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_ADDROLEACTIONSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDROLEACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT AddRoleActionsResult : public ServiceResult + { + public: + + + AddRoleActionsResult(); + explicit AddRoleActionsResult(const std::string &payload); + ~AddRoleActionsResult(); + 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_ADDROLEACTIONSRESULT_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..d14e0bdfe --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddUserRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string extraParams_; + std::string clientToken_; + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApService2Result.h b/cloudesl/include/alibabacloud/cloudesl/model/AddUserResult.h similarity index 68% rename from cloudesl/include/alibabacloud/cloudesl/model/ActivateApService2Result.h rename to cloudesl/include/alibabacloud/cloudesl/model/AddUserResult.h index 5f29f0456..d83661626 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApService2Result.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/AddUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2RESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2RESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_ #include #include @@ -29,16 +29,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApService2Result : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT AddUserResult : public ServiceResult { public: - ActivateApService2Result(); - explicit ActivateApService2Result(const std::string &payload); - ~ActivateApService2Result(); + 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; @@ -46,7 +49,10 @@ namespace AlibabaCloud 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_; @@ -54,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2RESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ADDUSERRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserRamPolicyRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/AssignUserRequest.h similarity index 60% rename from cloudesl/include/alibabacloud/cloudesl/model/DescribeUserRamPolicyRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/AssignUserRequest.h index d702154a3..2eb04851a 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserRamPolicyRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/AssignUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERRAMPOLICYREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERRAMPOLICYREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUserRamPolicyRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT AssignUserRequest : public RpcServiceRequest { public: - DescribeUserRamPolicyRequest(); - ~DescribeUserRamPolicyRequest(); + AssignUserRequest(); + ~AssignUserRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getStores()const; + void setStores(const std::string& stores); std::string getUserType()const; void setUserType(const std::string& userType); - std::string getStoreId()const; - void setStoreId(const std::string& storeId); - std::string getCompanyId()const; - void setCompanyId(const std::string& companyId); + std::string getUserId()const; + void setUserId(const std::string& userId); private: + std::string extraParams_; + std::string stores_; std::string userType_; - std::string storeId_; - std::string companyId_; + std::string userId_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERRAMPOLICYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteItemResult.h b/cloudesl/include/alibabacloud/cloudesl/model/AssignUserResult.h similarity index 65% rename from cloudesl/include/alibabacloud/cloudesl/model/DeleteItemResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/AssignUserResult.h index bbf27e7af..642ecddb5 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteItemResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/AssignUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMRESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMRESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_ASSIGNUSERRESULT_H_ #include #include @@ -29,27 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DeleteItemResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT AssignUserResult : public ServiceResult { public: - DeleteItemResult(); - explicit DeleteItemResult(const std::string &payload); - ~DeleteItemResult(); + 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_DELETEITEMRESULT_H_ \ No newline at end of file +#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..2e528e895 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/AssociatePlanogramRailRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + 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 extraParams_; + 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 index 7769cbb0f..d667d11d2 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsRequest.h @@ -35,58 +35,75 @@ namespace AlibabaCloud { int memberPrice; int actionPrice; - std::string productionPlace; bool beSourceCode; - std::string storeId; std::string brandName; std::string promotionStart; - std::string sourceCode; - long itemId; - std::string extraAttribute; - std::string companyId; 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; - int originalPrice; - std::string itemShortTitle; std::string customizeFeatureC; - std::string itemQrCode; std::string customizeFeatureD; - std::string promotionReason; + std::string itemQrCode; std::string customizeFeatureE; + std::string inventoryStatus; + std::string promotionReason; std::string customizeFeatureF; - std::string forestSecondId; std::string customizeFeatureG; std::string customizeFeatureH; std::string customizeFeatureI; std::string customizeFeatureJ; - std::string optionGroups; - std::string modelNumber; - std::string saleSpec; std::string customizeFeatureA; std::string customizeFeatureB; int suggestPrice; std::string forestFirstId; + std::string productionPlace; + std::string manufacturer; + std::string sourceCode; + std::string itemId; + bool beMember; + std::string templateSceneId; + 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 skuId; std::string promotionText; + std::string skuId; }; public: BatchInsertItemsRequest(); ~BatchInsertItemsRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); + bool getSyncByItemId()const; + void setSyncByItemId(bool syncByItemId); std::vector getItemInfo()const; void setItemInfo(const std::vector& itemInfo); private: + std::string extraParams_; std::string storeId_; + bool syncByItemId_; std::vector itemInfo_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h index 7cf250ab4..56a12665b 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h @@ -45,16 +45,24 @@ namespace AlibabaCloud 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_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h index 758880248..920a55c4a 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h @@ -35,17 +35,29 @@ namespace AlibabaCloud BindEslDeviceRequest(); ~BindEslDeviceRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); std::string getEslBarCode()const; void setEslBarCode(const std::string& eslBarCode); std::string getItemBarCode()const; void setItemBarCode(const std::string& itemBarCode); + std::string getColumn()const; + void setColumn(const std::string& column); + std::string getShelf()const; + void setShelf(const std::string& shelf); private: + std::string extraParams_; std::string storeId_; + int layer_; std::string eslBarCode_; std::string itemBarCode_; + std::string column_; + std::string shelf_; }; } diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceResult.h index c9036ade3..dd4a2a297 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceResult.h @@ -38,14 +38,22 @@ namespace AlibabaCloud 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_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsRequest.h new file mode 100644 index 000000000..1787d3929 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/ComposePlanogramPositionsRequest.h @@ -0,0 +1,79 @@ +/* + * 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); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + std::string getLayerOrigin()const; + void setLayerOrigin(const std::string& layerOrigin); + bool getBeAutoRefresh()const; + void setBeAutoRefresh(bool beAutoRefresh); + std::string getShelf()const; + void setShelf(const std::string& shelf); + std::vector getShelfPositionInfo()const; + void setShelfPositionInfo(const std::vector& shelfPositionInfo); + + private: + std::string actionType_; + std::string extraParams_; + std::string storeId_; + int layer_; + std::string layerOrigin_; + bool beAutoRefresh_; + std::string shelf_; + 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 index c0f2ca3a3..374b51f3f 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreRequest.h @@ -35,32 +35,26 @@ namespace AlibabaCloud CreateStoreRequest(); ~CreateStoreRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getStoreName()const; void setStoreName(const std::string& storeName); std::string getParentId()const; void setParentId(const std::string& parentId); - std::string getCompanyId()const; - void setCompanyId(const std::string& companyId); - std::string getBrand()const; - void setBrand(const std::string& brand); - std::string getComments()const; - void setComments(const std::string& comments); - std::string getGroups()const; - void setGroups(const std::string& groups); + std::string getUserStoreCode()const; + void setUserStoreCode(const std::string& userStoreCode); std::string getPhone()const; void setPhone(const std::string& phone); - std::string getOutId()const; - void setOutId(const std::string& outId); private: + std::string extraParams_; + std::string clientToken_; std::string storeName_; std::string parentId_; - std::string companyId_; - std::string brand_; - std::string comments_; - std::string groups_; + std::string userStoreCode_; std::string phone_; - std::string outId_; }; } diff --git a/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreResult.h b/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreResult.h index 3cf554e13..8b7c21900 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/CreateStoreResult.h @@ -39,7 +39,11 @@ namespace AlibabaCloud ~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: @@ -47,7 +51,11 @@ namespace AlibabaCloud private: std::string message_; std::string storeId_; + std::string dynamicCode_; std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; bool success_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApService2Request.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h similarity index 70% rename from cloudesl/include/alibabacloud/cloudesl/model/ActivateApService2Request.h rename to cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h index 1fe2579a1..6000b22d5 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApService2Request.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2REQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2REQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICEREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPDEVICEREQUEST_H_ #include #include @@ -28,19 +28,22 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApService2Request : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteApDeviceRequest : public RpcServiceRequest { public: - ActivateApService2Request(); - ~ActivateApService2Request(); + DeleteApDeviceRequest(); + ~DeleteApDeviceRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getApMac()const; void setApMac(const std::string& apMac); std::string getStoreId()const; void setStoreId(const std::string& storeId); private: + std::string extraParams_; std::string apMac_; std::string storeId_; @@ -48,4 +51,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICE2REQUEST_H_ \ No newline at end of file +#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/DeleteApServiceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteApServiceResult.h deleted file mode 100644 index 81e2a1be7..000000000 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteApServiceResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPSERVICERESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPSERVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudesl - { - namespace Model - { - class ALIBABACLOUD_CLOUDESL_EXPORT DeleteApServiceResult : public ServiceResult - { - public: - - - DeleteApServiceResult(); - explicit DeleteApServiceResult(const std::string &payload); - ~DeleteApServiceResult(); - std::string getMessage()const; - std::string getErrorCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string errorCode_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPSERVICERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteEslDeviceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteEslDeviceResult.h deleted file mode 100644 index 184f4882c..000000000 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteEslDeviceResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEESLDEVICERESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEESLDEVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudesl - { - namespace Model - { - class ALIBABACLOUD_CLOUDESL_EXPORT DeleteEslDeviceResult : public ServiceResult - { - public: - - - DeleteEslDeviceResult(); - explicit DeleteEslDeviceResult(const std::string &payload); - ~DeleteEslDeviceResult(); - std::string getMessage()const; - std::string getErrorCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string errorCode_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEESLDEVICERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfRequest.h similarity index 60% rename from cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfRequest.h index 5baa7afc4..1636d8bb8 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICESHELFREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICESHELFREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFREQUEST_H_ #include #include @@ -28,24 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT UnbindEslDeviceShelfRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DeletePlanogramShelfRequest : public RpcServiceRequest { public: - UnbindEslDeviceShelfRequest(); - ~UnbindEslDeviceShelfRequest(); + DeletePlanogramShelfRequest(); + ~DeletePlanogramShelfRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + bool getBeAutoRefresh()const; + void setBeAutoRefresh(bool beAutoRefresh); std::string getStoreId()const; void setStoreId(const std::string& storeId); - std::string getEslBarCode()const; - void setEslBarCode(const std::string& eslBarCode); + std::string getShelf()const; + void setShelf(const std::string& shelf); private: + std::string extraParams_; + bool beAutoRefresh_; std::string storeId_; - std::string eslBarCode_; + std::string shelf_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICESHELFREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h similarity index 63% rename from cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h index 85e006543..417394225 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceShelfResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeletePlanogramShelfResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICESHELFRESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_UNBINDESLDEVICESHELFRESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFRESULT_H_ #include #include @@ -29,27 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT UnbindEslDeviceShelfResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT DeletePlanogramShelfResult : public ServiceResult { public: - UnbindEslDeviceShelfResult(); - explicit UnbindEslDeviceShelfResult(const std::string &payload); - ~UnbindEslDeviceShelfResult(); + 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_UNBINDESLDEVICESHELFRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEPLANOGRAMSHELFRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteItemBySkuIdRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteRoleActionsRequest.h similarity index 55% rename from cloudesl/include/alibabacloud/cloudesl/model/DeleteItemBySkuIdRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/DeleteRoleActionsRequest.h index 0dbf1f107..caf465f46 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteItemBySkuIdRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteRoleActionsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMBYSKUIDREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMBYSKUIDREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEROLEACTIONSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEROLEACTIONSREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DeleteItemBySkuIdRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteRoleActionsRequest : public RpcServiceRequest { public: - DeleteItemBySkuIdRequest(); - ~DeleteItemBySkuIdRequest(); + DeleteRoleActionsRequest(); + ~DeleteRoleActionsRequest(); - std::string getStoreId()const; - void setStoreId(const std::string& storeId); - std::string getSkuId()const; - void setSkuId(const std::string& skuId); + std::string getRoleCode()const; + void setRoleCode(const std::string& roleCode); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getAccessControlLists()const; + void setAccessControlLists(const std::string& accessControlLists); private: - std::string storeId_; - std::string skuId_; + std::string roleCode_; + std::string extraParams_; + std::string accessControlLists_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMBYSKUIDREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEROLEACTIONSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteRoleActionsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteRoleActionsResult.h new file mode 100644 index 000000000..0997906a2 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteRoleActionsResult.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_DELETEROLEACTIONSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEROLEACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteRoleActionsResult : public ServiceResult + { + public: + + + DeleteRoleActionsResult(); + explicit DeleteRoleActionsResult(const std::string &payload); + ~DeleteRoleActionsResult(); + 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_DELETEROLEACTIONSRESULT_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 index f026d40ae..850658814 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreRequest.h @@ -35,10 +35,13 @@ namespace AlibabaCloud DeleteStoreRequest(); ~DeleteStoreRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); private: + std::string extraParams_; std::string storeId_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreResult.h index 3886be1c7..515c8cdd4 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteStoreResult.h @@ -38,14 +38,22 @@ namespace AlibabaCloud 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_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteItemRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserRequest.h similarity index 63% rename from cloudesl/include/alibabacloud/cloudesl/model/DeleteItemRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/DeleteUserRequest.h index b64b1cb8b..17e46d93a 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteItemRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DeleteItemRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteUserRequest : public RpcServiceRequest { public: - DeleteItemRequest(); - ~DeleteItemRequest(); + DeleteUserRequest(); + ~DeleteUserRequest(); - std::string getStoreId()const; - void setStoreId(const std::string& storeId); - std::string getItemBarCode()const; - void setItemBarCode(const std::string& itemBarCode); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getUserId()const; + void setUserId(const std::string& userId); private: - std::string storeId_; - std::string itemBarCode_; + std::string extraParams_; + std::string userId_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEITEMREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceShelfResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserResult.h similarity index 64% rename from cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceShelfResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/DeleteUserResult.h index 5f080a8d5..ab17f8b36 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceShelfResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DeleteUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICESHELFRESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICESHELFRESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEUSERRESULT_H_ #include #include @@ -29,27 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT BindEslDeviceShelfResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT DeleteUserResult : public ServiceResult { public: - BindEslDeviceShelfResult(); - explicit BindEslDeviceShelfResult(const std::string &payload); - ~BindEslDeviceShelfResult(); + 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_BINDESLDEVICESHELFRESULT_H_ \ No newline at end of file +#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 index 5ce794848..d51c6f203 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsRequest.h @@ -35,16 +35,14 @@ namespace AlibabaCloud DescribeAlarmsRequest(); ~DescribeAlarmsRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getFromAlarmTime()const; - void setFromAlarmTime(const std::string& fromAlarmTime); int getPageSize()const; void setPageSize(int pageSize); - std::string getToAlarmTime()const; - void setToAlarmTime(const std::string& toAlarmTime); std::string getAlarmType()const; void setAlarmType(const std::string& alarmType); std::string getAlarmStatus()const; @@ -53,17 +51,19 @@ namespace AlibabaCloud 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 extraParams_; std::string storeId_; int pageNumber_; - std::string fromAlarmTime_; int pageSize_; - std::string toAlarmTime_; std::string alarmType_; std::string alarmStatus_; std::string errorType_; std::string alarmId_; + std::string deviceMac_; }; } diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h index 7798ecc12..5b21a3171 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeAlarmsResult.h @@ -35,21 +35,22 @@ namespace AlibabaCloud struct AlarmInfo { std::string alarmId; - std::string companyId; + std::string retryGmtCreate; std::string alarmType; std::string deviceBarCode; std::string deviceMac; std::string itemBarCode; - std::string vendor; + std::string remark; std::string deviceType; - std::string errorType; std::string storeId; + std::string errorType; std::string alarmTime; - long dealUserId; + std::string dealUserId; std::string itemTitle; + std::string retryGmtModified; std::string alarmStatus; - std::string model; std::string dealTime; + long retryTimes; }; @@ -57,22 +58,30 @@ namespace AlibabaCloud explicit DescribeAlarmsResult(const std::string &payload); ~DescribeAlarmsResult(); int getTotalCount()const; - std::string getMessage()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_; - std::string message_; 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_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.h new file mode 100644 index 000000000..222fcdc48 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + 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 extraParams_; + 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/SearchApServiceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesResult.h similarity index 62% rename from cloudesl/include/alibabacloud/cloudesl/model/SearchApServiceResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesResult.h index cee67c385..5807a518b 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/SearchApServiceResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeApDevicesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_SEARCHAPSERVICERESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_SEARCHAPSERVICERESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEAPDEVICESRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEAPDEVICESRESULT_H_ #include #include @@ -29,27 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT SearchApServiceResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeApDevicesResult : public ServiceResult { public: struct ApInfo { bool status; - bool isActivate; + bool beActivate; + std::string storeId; std::string model; std::string mac; + std::string remark; }; - SearchApServiceResult(); - explicit SearchApServiceResult(const std::string &payload); - ~SearchApServiceResult(); + DescribeApDevicesResult(); + explicit DescribeApDevicesResult(const std::string &payload); + ~DescribeApDevicesResult(); int getTotalCount()const; std::string getMessage()const; int getPageSize()const; int getPageNumber()const; - std::vector getItems()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: @@ -59,12 +65,16 @@ namespace AlibabaCloud std::string message_; int pageSize_; int pageNumber_; - std::vector items_; + std::string dynamicCode_; + std::vector apDevices_; std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_SEARCHAPSERVICERESULT_H_ \ No newline at end of file +#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..532307dbe --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeBindersRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + 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); + std::string getItemTitle()const; + void setItemTitle(const std::string& itemTitle); + + private: + std::string extraParams_; + std::string storeId_; + int pageNumber_; + std::string eslBarCode_; + int pageSize_; + std::string itemBarCode_; + std::string itemTitle_; + + }; + } + } +} +#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/DescribeClientPackageRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeClientPackageRequest.h new file mode 100644 index 000000000..a249359b5 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeClientPackageRequest.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_DESCRIBECLIENTPACKAGEREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECLIENTPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeClientPackageRequest : public RpcServiceRequest + { + + public: + DescribeClientPackageRequest(); + ~DescribeClientPackageRequest(); + + std::string getClientType()const; + void setClientType(const std::string& clientType); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + + private: + std::string clientType_; + std::string extraParams_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECLIENTPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserRamPolicyResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeClientPackageResult.h similarity index 56% rename from cloudesl/include/alibabacloud/cloudesl/model/DescribeUserRamPolicyResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/DescribeClientPackageResult.h index 33756980c..90830aef9 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserRamPolicyResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeClientPackageResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERRAMPOLICYRESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERRAMPOLICYRESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECLIENTPACKAGERESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECLIENTPACKAGERESULT_H_ #include #include @@ -29,29 +29,43 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUserRamPolicyResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeClientPackageResult : public ServiceResult { public: - DescribeUserRamPolicyResult(); - explicit DescribeUserRamPolicyResult(const std::string &payload); - ~DescribeUserRamPolicyResult(); - std::string getPolicy()const; + DescribeClientPackageResult(); + explicit DescribeClientPackageResult(const std::string &payload); + ~DescribeClientPackageResult(); + std::string getDescription()const; std::string getMessage()const; + std::string getVersion()const; + std::string getDynamicCode()const; std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + std::string getUpdateType()const; + std::string getCode()const; + std::string getUrl()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string policy_; + std::string description_; std::string message_; + std::string version_; + std::string dynamicCode_; std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string updateType_; + std::string code_; + std::string url_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERRAMPOLICYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECLIENTPACKAGERESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeCompanyResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeCompanyResult.h deleted file mode 100644 index 3940b1ce5..000000000 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeCompanyResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECOMPANYRESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECOMPANYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudesl - { - namespace Model - { - class ALIBABACLOUD_CLOUDESL_EXPORT DescribeCompanyResult : public ServiceResult - { - public: - - - DescribeCompanyResult(); - explicit DescribeCompanyResult(const std::string &payload); - ~DescribeCompanyResult(); - std::string getStatus()const; - std::string getMessage()const; - std::string getCompanyId()const; - std::string getPlatform()const; - std::string getErrorCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string status_; - std::string message_; - std::string companyId_; - std::string platform_; - std::string errorCode_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECOMPANYRESULT_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 index 68c1bbecd..0435efe13 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesRequest.h @@ -35,47 +35,35 @@ namespace AlibabaCloud DescribeEslDevicesRequest(); ~DescribeEslDevicesRequest(); - std::string getStoreId()const; - void setStoreId(const std::string& storeId); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getType()const; void setType(const std::string& type); - std::string getMac()const; - void setMac(const std::string& mac); + 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); - std::string getVendor()const; - void setVendor(const std::string& vendor); int getPageSize()const; void setPageSize(int pageSize); - std::string getItemBarCode()const; - void setItemBarCode(const std::string& itemBarCode); std::string getEslStatus()const; void setEslStatus(const std::string& eslStatus); int getToBatteryLevel()const; void setToBatteryLevel(int toBatteryLevel); int getFromBatteryLevel()const; void setFromBatteryLevel(int fromBatteryLevel); - std::string getShelfCode()const; - void setShelfCode(const std::string& shelfCode); - bool getBeBind()const; - void setBeBind(bool beBind); private: - std::string storeId_; + std::string extraParams_; std::string type_; - std::string mac_; + std::string storeId_; int pageNumber_; std::string eslBarCode_; - std::string vendor_; int pageSize_; - std::string itemBarCode_; std::string eslStatus_; int toBatteryLevel_; int fromBatteryLevel_; - std::string shelfCode_; - bool beBind_; }; } diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h index 508598d9d..2eb16a74f 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeEslDevicesResult.h @@ -34,27 +34,16 @@ namespace AlibabaCloud public: struct EslDeviceInfo { - int itemActionPrice; - int batteryLevel; - std::string itemPriceUnit; - std::string companyId; - std::string itemBarCode; - std::string vendor; - std::string screenHeight; - std::string lastCommunicateTime; - long itemId; - std::string mac; - std::string beBind; std::string eslBarCode; std::string type; + int batteryLevel; std::string storeId; - std::string connectAp; - std::string itemTitle; std::string model; - std::string screenWidth; + int screenWidth; std::string eslStatus; - std::string positionCode; - std::string shelfCode; + int screenHeight; + std::string lastCommunicateTime; + std::string mac; }; @@ -62,22 +51,30 @@ namespace AlibabaCloud explicit DescribeEslDevicesResult(const std::string &payload); ~DescribeEslDevicesResult(); int getTotalCount()const; - std::string getMessage()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_; - std::string message_; 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_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsRequest.h index b6213316b..097e13da4 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsRequest.h @@ -35,12 +35,14 @@ namespace AlibabaCloud DescribeItemsRequest(); ~DescribeItemsRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); int getPageNumber()const; void setPageNumber(int pageNumber); - long getItemId()const; - void setItemId(long itemId); + std::string getItemId()const; + void setItemId(const std::string& itemId); int getPageSize()const; void setPageSize(int pageSize); std::string getItemBarCode()const; @@ -49,20 +51,18 @@ namespace AlibabaCloud void setBePromotion(bool bePromotion); std::string getItemTitle()const; void setItemTitle(const std::string& itemTitle); - std::string getShelfCode()const; - void setShelfCode(const std::string& shelfCode); std::string getSkuId()const; void setSkuId(const std::string& skuId); private: + std::string extraParams_; std::string storeId_; int pageNumber_; - long itemId_; + std::string itemId_; int pageSize_; std::string itemBarCode_; bool bePromotion_; std::string itemTitle_; - std::string shelfCode_; std::string skuId_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsResult.h index db98f586f..593222bc7 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeItemsResult.h @@ -34,48 +34,59 @@ namespace AlibabaCloud public: struct ItemInfo { - int suggestPrice; std::string saleSpec; - std::string sourceCode; int originalPrice; std::string promotionStart; - std::string itemBarCode; - long itemId; - std::string brandName; + std::string itemId; std::string promotionEnd; + std::string brandName; std::string energyEfficiency; - std::string itemShortTitle; - std::string storeId; - std::string itemTitle; - std::string productionPlace; - std::string extraAttribute; - std::string positionCode; - std::string modelNumber; + std::string inventoryStatus; + std::string manufacturer; + std::string taxFee; std::string customizeFeatureJ; - std::string forestFirstId; + std::string modelNumber; std::string customizeFeatureI; - std::string optionGroups; std::string customizeFeatureH; - std::string promotionReason; std::string customizeFeatureG; - std::string companyId; + std::string promotionReason; std::string customizeFeatureF; std::string customizeFeatureE; std::string customizeFeatureD; std::string customizeFeatureC; - int actionPrice; - std::string rank; - std::string forestSecondId; - std::string promotionText; + std::string customizeFeatureO; + std::string customizeFeatureN; + std::string customizeFeatureM; + std::string customizeFeatureL; + std::string customizeFeatureK; + int itemInfoIndex; std::string itemQrCode; - std::string priceUnit; + std::string gmtCreate; std::string customizeFeatureB; - std::string categoryName; - bool beSourceCode; std::string customizeFeatureA; int memberPrice; std::string skuId; bool bePromotion; + int suggestPrice; + std::string sourceCode; + std::string gmtModified; + std::string itemBarCode; + int salesPrice; + std::string itemShortTitle; + std::string itemPicUrl; + std::string itemTitle; + bool beMember; + 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; }; @@ -87,7 +98,12 @@ namespace AlibabaCloud 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 getTemplateSceneId()const; + std::string getCode()const; bool getSuccess()const; protected: @@ -98,7 +114,12 @@ namespace AlibabaCloud int pageSize_; int pageNumber_; std::vector items_; + std::string dynamicCode_; std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string templateSceneId_; + std::string code_; bool success_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DeleteEslDeviceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesRequest.h similarity index 60% rename from cloudesl/include/alibabacloud/cloudesl/model/DeleteEslDeviceRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesRequest.h index 480be72fc..dcca02020 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteEslDeviceRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramEslDevicesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEESLDEVICEREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEESLDEVICEREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMESLDEVICESREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMESLDEVICESREQUEST_H_ #include #include @@ -28,24 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DeleteEslDeviceRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramEslDevicesRequest : public RpcServiceRequest { public: - DeleteEslDeviceRequest(); - ~DeleteEslDeviceRequest(); + DescribePlanogramEslDevicesRequest(); + ~DescribePlanogramEslDevicesRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); std::string getEslBarCode()const; void setEslBarCode(const std::string& eslBarCode); + std::string getShelf()const; + void setShelf(const std::string& shelf); private: + std::string extraParams_; std::string storeId_; + int layer_; std::string eslBarCode_; + std::string shelf_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEESLDEVICEREQUEST_H_ \ No newline at end of file +#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..43826d86d --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramPositionsRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + 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 extraParams_; + 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..1e5857bce --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramPositionsResult.h @@ -0,0 +1,88 @@ +/* + * 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; + std::string railCode; + int layer; + std::vector shelfPositionInfos; + }; + + + DescribePlanogramPositionsResult(); + explicit DescribePlanogramPositionsResult(const std::string &payload); + ~DescribePlanogramPositionsResult(); + std::string getMessage()const; + std::string getStoreId()const; + std::string getShelfType()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 shelfType_; + 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..8b9c320a4 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getShelf()const; + void setShelf(const std::string& shelf); + std::string getRailCode()const; + void setRailCode(const std::string& railCode); + + private: + std::string extraParams_; + std::string storeId_; + int layer_; + int pageNumber_; + int pageSize_; + std::string shelf_; + std::string railCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserOperationLogResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsResult.h similarity index 56% rename from cloudesl/include/alibabacloud/cloudesl/model/DescribeUserOperationLogResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsResult.h index 320198136..b4c56ac57 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserOperationLogResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramRailsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSEROPERATIONLOGRESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSEROPERATIONLOGRESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSRESULT_H_ #include #include @@ -29,49 +29,52 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUserOperationLogResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramRailsResult : public ServiceResult { public: - struct OperationLogInfo + struct PlanogramRailInfo { - int itemActionPrice; - std::string operateTime; - std::string operateStatus; - std::string eslBarCode; - std::string storeId; - std::string itemTitle; - long operateUserId; - std::string itemBarCode; - std::string itemId; - std::string operateType; - std::string shelfCode; + std::string railCode; + std::string shelf; + int gapUnit; + int layer; }; - DescribeUserOperationLogResult(); - explicit DescribeUserOperationLogResult(const std::string &payload); - ~DescribeUserOperationLogResult(); - std::vector getOperationLogs()const; + 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 operationLogs_; + 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_DESCRIBEUSEROPERATIONLOGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMRAILSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/SearchApServiceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesRequest.h similarity index 68% rename from cloudesl/include/alibabacloud/cloudesl/model/SearchApServiceRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesRequest.h index cb6c44b6c..635243862 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/SearchApServiceRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_SEARCHAPSERVICEREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_SEARCHAPSERVICEREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMSHELVESREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMSHELVESREQUEST_H_ #include #include @@ -28,33 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT SearchApServiceRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramShelvesRequest : public RpcServiceRequest { public: - SearchApServiceRequest(); - ~SearchApServiceRequest(); + DescribePlanogramShelvesRequest(); + ~DescribePlanogramShelvesRequest(); - std::string getApMac()const; - void setApMac(const std::string& apMac); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); int getPageNumber()const; void setPageNumber(int pageNumber); int getPageSize()const; void setPageSize(int pageSize); - bool getActivated()const; - void setActivated(bool activated); private: - std::string apMac_; + std::string extraParams_; std::string storeId_; int pageNumber_; int pageSize_; - bool activated_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_SEARCHAPSERVICEREQUEST_H_ \ No newline at end of file +#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..9e9385c99 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribePlanogramShelvesResult.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_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 category; + std::string shelfType; + std::string zone; + std::string shelf; + std::vector layerInfos; + bool beMatch; + }; + + + DescribePlanogramShelvesResult(); + explicit DescribePlanogramShelvesResult(const std::string &payload); + ~DescribePlanogramShelvesResult(); + std::vector getShelfInfos()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 shelfInfos_; + 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_DESCRIBEPLANOGRAMSHELVESRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeRoleActionsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeRoleActionsRequest.h new file mode 100644 index 000000000..1726b7d1a --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeRoleActionsRequest.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_DESCRIBEROLEACTIONSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEROLEACTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeRoleActionsRequest : public RpcServiceRequest + { + + public: + DescribeRoleActionsRequest(); + ~DescribeRoleActionsRequest(); + + std::string getRoleCode()const; + void setRoleCode(const std::string& roleCode); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + + private: + std::string roleCode_; + std::string extraParams_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEROLEACTIONSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeRoleActionsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeRoleActionsResult.h new file mode 100644 index 000000000..54ca913ad --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeRoleActionsResult.h @@ -0,0 +1,75 @@ +/* + * 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_DESCRIBEROLEACTIONSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEROLEACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeRoleActionsResult : public ServiceResult + { + public: + struct RoleAclInfo + { + struct RoleActionInfo + { + std::string code; + }; + std::vector accessControlLists; + std::string roleCode; + std::string name; + }; + + + DescribeRoleActionsResult(); + explicit DescribeRoleActionsResult(const std::string &payload); + ~DescribeRoleActionsResult(); + std::string getMessage()const; + std::vector getRoleAclInfos()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::vector roleAclInfos_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEROLEACTIONSRESULT_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApServiceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h similarity index 67% rename from cloudesl/include/alibabacloud/cloudesl/model/ActivateApServiceRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h index 52e642e5b..18382ac01 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApServiceRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreConfigRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICEREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICEREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORECONFIGREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORECONFIGREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApServiceRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeStoreConfigRequest : public RpcServiceRequest { public: - ActivateApServiceRequest(); - ~ActivateApServiceRequest(); + DescribeStoreConfigRequest(); + ~DescribeStoreConfigRequest(); - std::string getApMac()const; - void setApMac(const std::string& apMac); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); private: - std::string apMac_; + std::string extraParams_; std::string storeId_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICEREQUEST_H_ \ No newline at end of file +#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/DescribeStoreStatisticsRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreStatisticsRequest.h new file mode 100644 index 000000000..d026b76a8 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreStatisticsRequest.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_DESCRIBESTORESTATISTICSREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeStoreStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeStoreStatisticsRequest(); + ~DescribeStoreStatisticsRequest(); + + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + std::string getFromDate()const; + void setFromDate(const std::string& fromDate); + std::string getToDate()const; + void setToDate(const std::string& toDate); + + private: + std::string extraParams_; + std::string storeId_; + std::string fromDate_; + std::string toDate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreStatisticsResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreStatisticsResult.h new file mode 100644 index 000000000..d99a8eded --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoreStatisticsResult.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_DESCRIBESTORESTATISTICSRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeStoreStatisticsResult : public ServiceResult + { + public: + struct StoreStatisticsInfo + { + std::string storeName; + int bindEsl; + int bindItem; + std::string statisticsTime; + int sendFailEsl; + int lowBatteryEsl; + int offlineEslDevice; + int displayFailEsl; + int activeApDevice; + std::string storeId; + int updateEsl; + int updateFailureEsl; + int abnormalEsl; + }; + + + DescribeStoreStatisticsResult(); + explicit DescribeStoreStatisticsResult(const std::string &payload); + ~DescribeStoreStatisticsResult(); + std::string getMessage()const; + std::vector getStoreStatisticsInfoList()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::vector storeStatisticsInfoList_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBESTORESTATISTICSRESULT_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 index f116823ea..8af39a5aa 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud DescribeStoresRequest(); ~DescribeStoresRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreName()const; void setStoreName(const std::string& storeName); std::string getStoreId()const; @@ -43,24 +45,25 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getFromDate()const; void setFromDate(const std::string& fromDate); + std::string getTemplateVersion()const; + void setTemplateVersion(const std::string& templateVersion); std::string getToDate()const; void setToDate(const std::string& toDate); int getPageSize()const; void setPageSize(int pageSize); - std::string getBrand()const; - void setBrand(const std::string& brand); - std::string getGroups()const; - void setGroups(const std::string& groups); + std::string getUserStoreCode()const; + void setUserStoreCode(const std::string& userStoreCode); private: + std::string extraParams_; std::string storeName_; std::string storeId_; int pageNumber_; std::string fromDate_; + std::string templateVersion_; std::string toDate_; int pageSize_; - std::string brand_; - std::string groups_; + std::string userStoreCode_; }; } diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresResult.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresResult.h index a2ce43b76..630144202 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeStoresResult.h @@ -34,17 +34,14 @@ namespace AlibabaCloud public: struct StoreInfo { - std::string brand; std::string parentId; std::string gmtCreate; - std::string companyId; - std::string storeId; + std::string userStoreCode; std::string storeName; + std::string storeId; std::string phone; - std::string groups; - std::string comments; std::string gmtModified; - std::string outId; + std::string templateVersion; std::string level; }; @@ -56,8 +53,12 @@ namespace AlibabaCloud 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: @@ -67,8 +68,12 @@ namespace AlibabaCloud 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_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserOperationLogRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogRequest.h similarity index 59% rename from cloudesl/include/alibabacloud/cloudesl/model/DescribeUserOperationLogRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogRequest.h index 6a195e478..1b3c8a52f 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserOperationLogRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUserLogRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSEROPERATIONLOGREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSEROPERATIONLOGREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERLOGREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSERLOGREQUEST_H_ #include #include @@ -28,23 +28,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUserOperationLogRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DescribeUserLogRequest : public RpcServiceRequest { public: - DescribeUserOperationLogRequest(); - ~DescribeUserOperationLogRequest(); + DescribeUserLogRequest(); + ~DescribeUserLogRequest(); - long getOperateUserId()const; - void setOperateUserId(long operateUserId); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); 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); - long getItemId()const; - void setItemId(long itemId); + std::string getOperationStatus()const; + void setOperationStatus(const std::string& operationStatus); std::string getToDate()const; void setToDate(const std::string& toDate); std::string getEslBarCode()const; @@ -53,32 +55,30 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getItemBarCode()const; void setItemBarCode(const std::string& itemBarCode); - std::string getItemTitle()const; - void setItemTitle(const std::string& itemTitle); - std::string getOperateStatus()const; - void setOperateStatus(const std::string& operateStatus); - bool getReverse()const; - void setReverse(bool reverse); - std::string getOperateType()const; - void setOperateType(const std::string& operateType); + 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: - long operateUserId_; + std::string extraParams_; std::string storeId_; + std::string userId_; int pageNumber_; std::string fromDate_; - long itemId_; + std::string operationStatus_; std::string toDate_; std::string eslBarCode_; int pageSize_; std::string itemBarCode_; - std::string itemTitle_; - std::string operateStatus_; - bool reverse_; - std::string operateType_; + std::string itemShortTitle_; + std::string operationType_; + std::string logId_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEUSEROPERATIONLOGREQUEST_H_ \ No newline at end of file +#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..bb9d383f1 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUsersRequest.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_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 getExtraParams()const; + void setExtraParams(const std::string& extraParams); + 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 getUserType()const; + void setUserType(const std::string& userType); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string extraParams_; + std::string userId_; + int pageNumber_; + int pageSize_; + std::string userType_; + 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..da78b984a --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/DescribeUsersResult.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_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 + { + struct DingTalkInfo + { + std::string dingTalkCompanyId; + std::string dingTalkUserId; + }; + std::string userName; + std::string ownerId; + std::string userId; + std::vector dingTalkInfos; + std::string stores; + std::string bid; + 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/BindEslDeviceShelfRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h similarity index 61% rename from cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceShelfRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h index d59fe7201..8ed804d70 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/BindEslDeviceShelfRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/DissociatePlanogramRailRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICESHELFREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICESHELFREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DISSOCIATEPLANOGRAMRAILREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_DISSOCIATEPLANOGRAMRAILREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT BindEslDeviceShelfRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT DissociatePlanogramRailRequest : public RpcServiceRequest { public: - BindEslDeviceShelfRequest(); - ~BindEslDeviceShelfRequest(); + DissociatePlanogramRailRequest(); + ~DissociatePlanogramRailRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); - std::string getShelfCode()const; - void setShelfCode(const std::string& shelfCode); - std::string getEslBarCode()const; - void setEslBarCode(const std::string& eslBarCode); + std::string getRailCode()const; + void setRailCode(const std::string& railCode); private: + std::string extraParams_; std::string storeId_; - std::string shelfCode_; - std::string eslBarCode_; + std::string railCode_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_BINDESLDEVICESHELFREQUEST_H_ \ No newline at end of file +#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/DescribeCompanyRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/GetUserRequest.h similarity index 62% rename from cloudesl/include/alibabacloud/cloudesl/model/DescribeCompanyRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/GetUserRequest.h index d31b6fb82..98c675d27 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DescribeCompanyRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/GetUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECOMPANYREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECOMPANYREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_GETUSERREQUEST_H_ #include #include @@ -28,18 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DescribeCompanyRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT GetUserRequest : public RpcServiceRequest { public: - DescribeCompanyRequest(); - ~DescribeCompanyRequest(); + GetUserRequest(); + ~GetUserRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getUserId()const; + void setUserId(const std::string& userId); private: + std::string extraParams_; + std::string userId_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBECOMPANYREQUEST_H_ \ No newline at end of file +#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..5d0f577d8 --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/GetUserResult.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_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 + { + struct DingTalkInfo + { + std::string dingTalkCompanyId; + std::string dingTalkUserId; + }; + std::string userName; + std::string ownerId; + std::string userId; + std::vector dingTalkInfos; + std::string stores; + std::string bid; + 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/DeleteApServiceRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/UnassignUserRequest.h similarity index 61% rename from cloudesl/include/alibabacloud/cloudesl/model/DeleteApServiceRequest.h rename to cloudesl/include/alibabacloud/cloudesl/model/UnassignUserRequest.h index 2b42d209a..5b52e9d88 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/DeleteApServiceRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/UnassignUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPSERVICEREQUEST_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPSERVICEREQUEST_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UNASSIGNUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UNASSIGNUSERREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT DeleteApServiceRequest : public RpcServiceRequest + class ALIBABACLOUD_CLOUDESL_EXPORT UnassignUserRequest : public RpcServiceRequest { public: - DeleteApServiceRequest(); - ~DeleteApServiceRequest(); + UnassignUserRequest(); + ~UnassignUserRequest(); - std::string getApMac()const; - void setApMac(const std::string& apMac); - std::string getStoreId()const; - void setStoreId(const std::string& storeId); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getUserId()const; + void setUserId(const std::string& userId); private: - std::string apMac_; - std::string storeId_; + std::string extraParams_; + std::string userId_; }; } } } -#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETEAPSERVICEREQUEST_H_ \ No newline at end of file +#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 index ab2a93c13..d122dd39a 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h @@ -35,17 +35,29 @@ namespace AlibabaCloud UnbindEslDeviceRequest(); ~UnbindEslDeviceRequest(); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreId()const; void setStoreId(const std::string& storeId); + int getLayer()const; + void setLayer(int layer); std::string getEslBarCode()const; void setEslBarCode(const std::string& eslBarCode); std::string getItemBarCode()const; void setItemBarCode(const std::string& itemBarCode); + std::string getColumn()const; + void setColumn(const std::string& column); + std::string getShelf()const; + void setShelf(const std::string& shelf); private: + std::string extraParams_; std::string storeId_; + int layer_; std::string eslBarCode_; std::string itemBarCode_; + std::string column_; + std::string shelf_; }; } diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h index 4f656a141..fe340065e 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h @@ -38,14 +38,22 @@ namespace AlibabaCloud 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_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h new file mode 100644 index 000000000..de3adb9ea --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.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_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(); + + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + 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: + std::string extraParams_; + 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..b665190ad --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreConfigRequest.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_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(); + + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getStoreId()const; + void setStoreId(const std::string& storeId); + bool getEnableNotification()const; + void setEnableNotification(bool enableNotification); + std::string getNotificationWebHook()const; + void setNotificationWebHook(const std::string& notificationWebHook); + std::string getNotificationSilentTimes()const; + void setNotificationSilentTimes(const std::string& notificationSilentTimes); + + private: + std::string extraParams_; + std::string storeId_; + bool enableNotification_; + std::string notificationWebHook_; + 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 index 83d799c73..b35ea368f 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreRequest.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreRequest.h @@ -35,29 +35,26 @@ namespace AlibabaCloud UpdateStoreRequest(); ~UpdateStoreRequest(); - std::string getComments()const; - void setComments(const std::string& comments); + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); std::string getStoreName()const; void setStoreName(const std::string& storeName); - std::string getGroups()const; - void setGroups(const std::string& groups); std::string getStoreId()const; void setStoreId(const std::string& storeId); + std::string getTemplateVersion()const; + void setTemplateVersion(const std::string& templateVersion); + std::string getUserStoreCode()const; + void setUserStoreCode(const std::string& userStoreCode); std::string getPhone()const; void setPhone(const std::string& phone); - std::string getOutId()const; - void setOutId(const std::string& outId); - std::string getBrand()const; - void setBrand(const std::string& brand); private: - std::string comments_; + std::string extraParams_; std::string storeName_; - std::string groups_; std::string storeId_; + std::string templateVersion_; + std::string userStoreCode_; std::string phone_; - std::string outId_; - std::string brand_; }; } diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreResult.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreResult.h index a3ff098d7..81b85987b 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateStoreResult.h @@ -38,14 +38,22 @@ namespace AlibabaCloud 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_; }; diff --git a/cloudesl/include/alibabacloud/cloudesl/model/UpdateUserRequest.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateUserRequest.h new file mode 100644 index 000000000..1d157bf5e --- /dev/null +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateUserRequest.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_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudesl + { + namespace Model + { + class ALIBABACLOUD_CLOUDESL_EXPORT UpdateUserRequest : public RpcServiceRequest + { + + public: + UpdateUserRequest(); + ~UpdateUserRequest(); + + std::string getExtraParams()const; + void setExtraParams(const std::string& extraParams); + std::string getDingTalkUserId()const; + void setDingTalkUserId(const std::string& dingTalkUserId); + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getDingTalkCompanyId()const; + void setDingTalkCompanyId(const std::string& dingTalkCompanyId); + + private: + std::string extraParams_; + std::string dingTalkUserId_; + std::string userId_; + std::string dingTalkCompanyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UPDATEUSERREQUEST_H_ \ No newline at end of file diff --git a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApServiceResult.h b/cloudesl/include/alibabacloud/cloudesl/model/UpdateUserResult.h similarity index 64% rename from cloudesl/include/alibabacloud/cloudesl/model/ActivateApServiceResult.h rename to cloudesl/include/alibabacloud/cloudesl/model/UpdateUserResult.h index 178b333da..5061ec9e0 100644 --- a/cloudesl/include/alibabacloud/cloudesl/model/ActivateApServiceResult.h +++ b/cloudesl/include/alibabacloud/cloudesl/model/UpdateUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICERESULT_H_ -#define ALIBABACLOUD_CLOUDESL_MODEL_ACTIVATEAPSERVICERESULT_H_ +#ifndef ALIBABACLOUD_CLOUDESL_MODEL_UPDATEUSERRESULT_H_ +#define ALIBABACLOUD_CLOUDESL_MODEL_UPDATEUSERRESULT_H_ #include #include @@ -29,27 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDESL_EXPORT ActivateApServiceResult : public ServiceResult + class ALIBABACLOUD_CLOUDESL_EXPORT UpdateUserResult : public ServiceResult { public: - ActivateApServiceResult(); - explicit ActivateApServiceResult(const std::string &payload); - ~ActivateApServiceResult(); + UpdateUserResult(); + explicit UpdateUserResult(const std::string &payload); + ~UpdateUserResult(); 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_ACTIVATEAPSERVICERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CLOUDESL_MODEL_UPDATEUSERRESULT_H_ \ No newline at end of file diff --git a/cloudesl/src/CloudeslClient.cc b/cloudesl/src/CloudeslClient.cc index 1a4e48d55..3649a0f75 100644 --- a/cloudesl/src/CloudeslClient.cc +++ b/cloudesl/src/CloudeslClient.cc @@ -51,72 +51,252 @@ CloudeslClient::CloudeslClient(const std::string & accessKeyId, const std::strin CloudeslClient::~CloudeslClient() {} -CloudeslClient::ActivateApServiceOutcome CloudeslClient::activateApService(const ActivateApServiceRequest &request) const +CloudeslClient::ActivateApDeviceOutcome CloudeslClient::activateApDevice(const ActivateApDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ActivateApServiceOutcome(endpointOutcome.error()); + return ActivateApDeviceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ActivateApServiceOutcome(ActivateApServiceResult(outcome.result())); + return ActivateApDeviceOutcome(ActivateApDeviceResult(outcome.result())); else - return ActivateApServiceOutcome(outcome.error()); + return ActivateApDeviceOutcome(outcome.error()); } -void CloudeslClient::activateApServiceAsync(const ActivateApServiceRequest& request, const ActivateApServiceAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::activateApDeviceAsync(const ActivateApDeviceRequest& request, const ActivateApDeviceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, activateApService(request), context); + handler(this, request, activateApDevice(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::ActivateApServiceOutcomeCallable CloudeslClient::activateApServiceCallable(const ActivateApServiceRequest &request) const +CloudeslClient::ActivateApDeviceOutcomeCallable CloudeslClient::activateApDeviceCallable(const ActivateApDeviceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->activateApService(request); + return this->activateApDevice(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CloudeslClient::ActivateApService2Outcome CloudeslClient::activateApService2(const ActivateApService2Request &request) const +CloudeslClient::AddApDeviceOutcome CloudeslClient::addApDevice(const AddApDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ActivateApService2Outcome(endpointOutcome.error()); + return AddApDeviceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ActivateApService2Outcome(ActivateApService2Result(outcome.result())); + return AddApDeviceOutcome(AddApDeviceResult(outcome.result())); else - return ActivateApService2Outcome(outcome.error()); + return AddApDeviceOutcome(outcome.error()); } -void CloudeslClient::activateApService2Async(const ActivateApService2Request& request, const ActivateApService2AsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::addApDeviceAsync(const AddApDeviceRequest& request, const AddApDeviceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, activateApService2(request), context); + handler(this, request, addApDevice(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::ActivateApService2OutcomeCallable CloudeslClient::activateApService2Callable(const ActivateApService2Request &request) const +CloudeslClient::AddApDeviceOutcomeCallable CloudeslClient::addApDeviceCallable(const AddApDeviceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->activateApService2(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::AddRoleActionsOutcome CloudeslClient::addRoleActions(const AddRoleActionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddRoleActionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddRoleActionsOutcome(AddRoleActionsResult(outcome.result())); + else + return AddRoleActionsOutcome(outcome.error()); +} + +void CloudeslClient::addRoleActionsAsync(const AddRoleActionsRequest& request, const AddRoleActionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addRoleActions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::AddRoleActionsOutcomeCallable CloudeslClient::addRoleActionsCallable(const AddRoleActionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addRoleActions(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)(); })); @@ -159,42 +339,6 @@ CloudeslClient::BatchInsertItemsOutcomeCallable CloudeslClient::batchInsertItems return task->get_future(); } -CloudeslClient::BindApStoreServiceOutcome CloudeslClient::bindApStoreService(const BindApStoreServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BindApStoreServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BindApStoreServiceOutcome(BindApStoreServiceResult(outcome.result())); - else - return BindApStoreServiceOutcome(outcome.error()); -} - -void CloudeslClient::bindApStoreServiceAsync(const BindApStoreServiceRequest& request, const BindApStoreServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, bindApStoreService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudeslClient::BindApStoreServiceOutcomeCallable CloudeslClient::bindApStoreServiceCallable(const BindApStoreServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->bindApStoreService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CloudeslClient::BindEslDeviceOutcome CloudeslClient::bindEslDevice(const BindEslDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,36 +375,36 @@ CloudeslClient::BindEslDeviceOutcomeCallable CloudeslClient::bindEslDeviceCallab return task->get_future(); } -CloudeslClient::BindEslDeviceShelfOutcome CloudeslClient::bindEslDeviceShelf(const BindEslDeviceShelfRequest &request) const +CloudeslClient::ComposePlanogramPositionsOutcome CloudeslClient::composePlanogramPositions(const ComposePlanogramPositionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BindEslDeviceShelfOutcome(endpointOutcome.error()); + return ComposePlanogramPositionsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BindEslDeviceShelfOutcome(BindEslDeviceShelfResult(outcome.result())); + return ComposePlanogramPositionsOutcome(ComposePlanogramPositionsResult(outcome.result())); else - return BindEslDeviceShelfOutcome(outcome.error()); + return ComposePlanogramPositionsOutcome(outcome.error()); } -void CloudeslClient::bindEslDeviceShelfAsync(const BindEslDeviceShelfRequest& request, const BindEslDeviceShelfAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::composePlanogramPositionsAsync(const ComposePlanogramPositionsRequest& request, const ComposePlanogramPositionsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, bindEslDeviceShelf(request), context); + handler(this, request, composePlanogramPositions(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::BindEslDeviceShelfOutcomeCallable CloudeslClient::bindEslDeviceShelfCallable(const BindEslDeviceShelfRequest &request) const +CloudeslClient::ComposePlanogramPositionsOutcomeCallable CloudeslClient::composePlanogramPositionsCallable(const ComposePlanogramPositionsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->bindEslDeviceShelf(request); + return this->composePlanogramPositions(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -303,144 +447,108 @@ CloudeslClient::CreateStoreOutcomeCallable CloudeslClient::createStoreCallable(c return task->get_future(); } -CloudeslClient::DeleteApServiceOutcome CloudeslClient::deleteApService(const DeleteApServiceRequest &request) const +CloudeslClient::DeleteApDeviceOutcome CloudeslClient::deleteApDevice(const DeleteApDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteApServiceOutcome(endpointOutcome.error()); + return DeleteApDeviceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteApServiceOutcome(DeleteApServiceResult(outcome.result())); + return DeleteApDeviceOutcome(DeleteApDeviceResult(outcome.result())); else - return DeleteApServiceOutcome(outcome.error()); + return DeleteApDeviceOutcome(outcome.error()); } -void CloudeslClient::deleteApServiceAsync(const DeleteApServiceRequest& request, const DeleteApServiceAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::deleteApDeviceAsync(const DeleteApDeviceRequest& request, const DeleteApDeviceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteApService(request), context); + handler(this, request, deleteApDevice(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::DeleteApServiceOutcomeCallable CloudeslClient::deleteApServiceCallable(const DeleteApServiceRequest &request) const +CloudeslClient::DeleteApDeviceOutcomeCallable CloudeslClient::deleteApDeviceCallable(const DeleteApDeviceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteApService(request); + return this->deleteApDevice(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CloudeslClient::DeleteEslDeviceOutcome CloudeslClient::deleteEslDevice(const DeleteEslDeviceRequest &request) const +CloudeslClient::DeletePlanogramShelfOutcome CloudeslClient::deletePlanogramShelf(const DeletePlanogramShelfRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteEslDeviceOutcome(endpointOutcome.error()); + return DeletePlanogramShelfOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteEslDeviceOutcome(DeleteEslDeviceResult(outcome.result())); + return DeletePlanogramShelfOutcome(DeletePlanogramShelfResult(outcome.result())); else - return DeleteEslDeviceOutcome(outcome.error()); + return DeletePlanogramShelfOutcome(outcome.error()); } -void CloudeslClient::deleteEslDeviceAsync(const DeleteEslDeviceRequest& request, const DeleteEslDeviceAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::deletePlanogramShelfAsync(const DeletePlanogramShelfRequest& request, const DeletePlanogramShelfAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteEslDevice(request), context); + handler(this, request, deletePlanogramShelf(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::DeleteEslDeviceOutcomeCallable CloudeslClient::deleteEslDeviceCallable(const DeleteEslDeviceRequest &request) const +CloudeslClient::DeletePlanogramShelfOutcomeCallable CloudeslClient::deletePlanogramShelfCallable(const DeletePlanogramShelfRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteEslDevice(request); + return this->deletePlanogramShelf(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CloudeslClient::DeleteItemOutcome CloudeslClient::deleteItem(const DeleteItemRequest &request) const +CloudeslClient::DeleteRoleActionsOutcome CloudeslClient::deleteRoleActions(const DeleteRoleActionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteItemOutcome(endpointOutcome.error()); + return DeleteRoleActionsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteItemOutcome(DeleteItemResult(outcome.result())); + return DeleteRoleActionsOutcome(DeleteRoleActionsResult(outcome.result())); else - return DeleteItemOutcome(outcome.error()); + return DeleteRoleActionsOutcome(outcome.error()); } -void CloudeslClient::deleteItemAsync(const DeleteItemRequest& request, const DeleteItemAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::deleteRoleActionsAsync(const DeleteRoleActionsRequest& request, const DeleteRoleActionsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteItem(request), context); + handler(this, request, deleteRoleActions(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::DeleteItemOutcomeCallable CloudeslClient::deleteItemCallable(const DeleteItemRequest &request) const +CloudeslClient::DeleteRoleActionsOutcomeCallable CloudeslClient::deleteRoleActionsCallable(const DeleteRoleActionsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteItem(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CloudeslClient::DeleteItemBySkuIdOutcome CloudeslClient::deleteItemBySkuId(const DeleteItemBySkuIdRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteItemBySkuIdOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteItemBySkuIdOutcome(DeleteItemBySkuIdResult(outcome.result())); - else - return DeleteItemBySkuIdOutcome(outcome.error()); -} - -void CloudeslClient::deleteItemBySkuIdAsync(const DeleteItemBySkuIdRequest& request, const DeleteItemBySkuIdAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteItemBySkuId(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CloudeslClient::DeleteItemBySkuIdOutcomeCallable CloudeslClient::deleteItemBySkuIdCallable(const DeleteItemBySkuIdRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteItemBySkuId(request); + return this->deleteRoleActions(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -483,6 +591,42 @@ CloudeslClient::DeleteStoreOutcomeCallable CloudeslClient::deleteStoreCallable(c 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(); @@ -519,36 +663,108 @@ CloudeslClient::DescribeAlarmsOutcomeCallable CloudeslClient::describeAlarmsCall return task->get_future(); } -CloudeslClient::DescribeCompanyOutcome CloudeslClient::describeCompany(const DescribeCompanyRequest &request) const +CloudeslClient::DescribeApDevicesOutcome CloudeslClient::describeApDevices(const DescribeApDevicesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeCompanyOutcome(endpointOutcome.error()); + return DescribeApDevicesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeCompanyOutcome(DescribeCompanyResult(outcome.result())); + return DescribeApDevicesOutcome(DescribeApDevicesResult(outcome.result())); else - return DescribeCompanyOutcome(outcome.error()); + return DescribeApDevicesOutcome(outcome.error()); } -void CloudeslClient::describeCompanyAsync(const DescribeCompanyRequest& request, const DescribeCompanyAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::describeApDevicesAsync(const DescribeApDevicesRequest& request, const DescribeApDevicesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCompany(request), context); + handler(this, request, describeApDevices(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::DescribeCompanyOutcomeCallable CloudeslClient::describeCompanyCallable(const DescribeCompanyRequest &request) const +CloudeslClient::DescribeApDevicesOutcomeCallable CloudeslClient::describeApDevicesCallable(const DescribeApDevicesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCompany(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::DescribeClientPackageOutcome CloudeslClient::describeClientPackage(const DescribeClientPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClientPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClientPackageOutcome(DescribeClientPackageResult(outcome.result())); + else + return DescribeClientPackageOutcome(outcome.error()); +} + +void CloudeslClient::describeClientPackageAsync(const DescribeClientPackageRequest& request, const DescribeClientPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClientPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeClientPackageOutcomeCallable CloudeslClient::describeClientPackageCallable(const DescribeClientPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClientPackage(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -627,6 +843,258 @@ CloudeslClient::DescribeItemsOutcomeCallable CloudeslClient::describeItemsCallab 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::DescribeRoleActionsOutcome CloudeslClient::describeRoleActions(const DescribeRoleActionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRoleActionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRoleActionsOutcome(DescribeRoleActionsResult(outcome.result())); + else + return DescribeRoleActionsOutcome(outcome.error()); +} + +void CloudeslClient::describeRoleActionsAsync(const DescribeRoleActionsRequest& request, const DescribeRoleActionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRoleActions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeRoleActionsOutcomeCallable CloudeslClient::describeRoleActionsCallable(const DescribeRoleActionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRoleActions(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::DescribeStoreStatisticsOutcome CloudeslClient::describeStoreStatistics(const DescribeStoreStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStoreStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStoreStatisticsOutcome(DescribeStoreStatisticsResult(outcome.result())); + else + return DescribeStoreStatisticsOutcome(outcome.error()); +} + +void CloudeslClient::describeStoreStatisticsAsync(const DescribeStoreStatisticsRequest& request, const DescribeStoreStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStoreStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::DescribeStoreStatisticsOutcomeCallable CloudeslClient::describeStoreStatisticsCallable(const DescribeStoreStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStoreStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudeslClient::DescribeStoresOutcome CloudeslClient::describeStores(const DescribeStoresRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,108 +1131,180 @@ CloudeslClient::DescribeStoresOutcomeCallable CloudeslClient::describeStoresCall return task->get_future(); } -CloudeslClient::DescribeUserOperationLogOutcome CloudeslClient::describeUserOperationLog(const DescribeUserOperationLogRequest &request) const +CloudeslClient::DescribeUserLogOutcome CloudeslClient::describeUserLog(const DescribeUserLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeUserOperationLogOutcome(endpointOutcome.error()); + return DescribeUserLogOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeUserOperationLogOutcome(DescribeUserOperationLogResult(outcome.result())); + return DescribeUserLogOutcome(DescribeUserLogResult(outcome.result())); else - return DescribeUserOperationLogOutcome(outcome.error()); + return DescribeUserLogOutcome(outcome.error()); } -void CloudeslClient::describeUserOperationLogAsync(const DescribeUserOperationLogRequest& request, const DescribeUserOperationLogAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::describeUserLogAsync(const DescribeUserLogRequest& request, const DescribeUserLogAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeUserOperationLog(request), context); + handler(this, request, describeUserLog(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::DescribeUserOperationLogOutcomeCallable CloudeslClient::describeUserOperationLogCallable(const DescribeUserOperationLogRequest &request) const +CloudeslClient::DescribeUserLogOutcomeCallable CloudeslClient::describeUserLogCallable(const DescribeUserLogRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeUserOperationLog(request); + return this->describeUserLog(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CloudeslClient::DescribeUserRamPolicyOutcome CloudeslClient::describeUserRamPolicy(const DescribeUserRamPolicyRequest &request) const +CloudeslClient::DescribeUsersOutcome CloudeslClient::describeUsers(const DescribeUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeUserRamPolicyOutcome(endpointOutcome.error()); + return DescribeUsersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeUserRamPolicyOutcome(DescribeUserRamPolicyResult(outcome.result())); + return DescribeUsersOutcome(DescribeUsersResult(outcome.result())); else - return DescribeUserRamPolicyOutcome(outcome.error()); + return DescribeUsersOutcome(outcome.error()); } -void CloudeslClient::describeUserRamPolicyAsync(const DescribeUserRamPolicyRequest& request, const DescribeUserRamPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::describeUsersAsync(const DescribeUsersRequest& request, const DescribeUsersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeUserRamPolicy(request), context); + handler(this, request, describeUsers(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::DescribeUserRamPolicyOutcomeCallable CloudeslClient::describeUserRamPolicyCallable(const DescribeUserRamPolicyRequest &request) const +CloudeslClient::DescribeUsersOutcomeCallable CloudeslClient::describeUsersCallable(const DescribeUsersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeUserRamPolicy(request); + return this->describeUsers(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CloudeslClient::SearchApServiceOutcome CloudeslClient::searchApService(const SearchApServiceRequest &request) const +CloudeslClient::DissociatePlanogramRailOutcome CloudeslClient::dissociatePlanogramRail(const DissociatePlanogramRailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SearchApServiceOutcome(endpointOutcome.error()); + return DissociatePlanogramRailOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SearchApServiceOutcome(SearchApServiceResult(outcome.result())); + return DissociatePlanogramRailOutcome(DissociatePlanogramRailResult(outcome.result())); else - return SearchApServiceOutcome(outcome.error()); + return DissociatePlanogramRailOutcome(outcome.error()); } -void CloudeslClient::searchApServiceAsync(const SearchApServiceRequest& request, const SearchApServiceAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::dissociatePlanogramRailAsync(const DissociatePlanogramRailRequest& request, const DissociatePlanogramRailAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, searchApService(request), context); + handler(this, request, dissociatePlanogramRail(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::SearchApServiceOutcomeCallable CloudeslClient::searchApServiceCallable(const SearchApServiceRequest &request) const +CloudeslClient::DissociatePlanogramRailOutcomeCallable CloudeslClient::dissociatePlanogramRailCallable(const DissociatePlanogramRailRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->searchApService(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)(); })); @@ -807,36 +1347,36 @@ CloudeslClient::UnbindEslDeviceOutcomeCallable CloudeslClient::unbindEslDeviceCa return task->get_future(); } -CloudeslClient::UnbindEslDeviceShelfOutcome CloudeslClient::unbindEslDeviceShelf(const UnbindEslDeviceShelfRequest &request) const +CloudeslClient::UpdateEslDeviceLightOutcome CloudeslClient::updateEslDeviceLight(const UpdateEslDeviceLightRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UnbindEslDeviceShelfOutcome(endpointOutcome.error()); + return UpdateEslDeviceLightOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UnbindEslDeviceShelfOutcome(UnbindEslDeviceShelfResult(outcome.result())); + return UpdateEslDeviceLightOutcome(UpdateEslDeviceLightResult(outcome.result())); else - return UnbindEslDeviceShelfOutcome(outcome.error()); + return UpdateEslDeviceLightOutcome(outcome.error()); } -void CloudeslClient::unbindEslDeviceShelfAsync(const UnbindEslDeviceShelfRequest& request, const UnbindEslDeviceShelfAsyncHandler& handler, const std::shared_ptr& context) const +void CloudeslClient::updateEslDeviceLightAsync(const UpdateEslDeviceLightRequest& request, const UpdateEslDeviceLightAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, unbindEslDeviceShelf(request), context); + handler(this, request, updateEslDeviceLight(request), context); }; asyncExecute(new Runnable(fn)); } -CloudeslClient::UnbindEslDeviceShelfOutcomeCallable CloudeslClient::unbindEslDeviceShelfCallable(const UnbindEslDeviceShelfRequest &request) const +CloudeslClient::UpdateEslDeviceLightOutcomeCallable CloudeslClient::updateEslDeviceLightCallable(const UpdateEslDeviceLightRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->unbindEslDeviceShelf(request); + return this->updateEslDeviceLight(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -879,3 +1419,75 @@ CloudeslClient::UpdateStoreOutcomeCallable CloudeslClient::updateStoreCallable(c 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(); +} + +CloudeslClient::UpdateUserOutcome CloudeslClient::updateUser(const UpdateUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateUserOutcome(UpdateUserResult(outcome.result())); + else + return UpdateUserOutcome(outcome.error()); +} + +void CloudeslClient::updateUserAsync(const UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudeslClient::UpdateUserOutcomeCallable CloudeslClient::updateUserCallable(const UpdateUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateUser(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..91669d2af --- /dev/null +++ b/cloudesl/src/model/ActivateApDeviceRequest.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::ActivateApDeviceRequest; + +ActivateApDeviceRequest::ActivateApDeviceRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "ActivateApDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +ActivateApDeviceRequest::~ActivateApDeviceRequest() +{} + +std::string ActivateApDeviceRequest::getExtraParams()const +{ + return extraParams_; +} + +void ActivateApDeviceRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string ActivateApDeviceRequest::getApMac()const +{ + return apMac_; +} + +void ActivateApDeviceRequest::setApMac(const std::string& apMac) +{ + apMac_ = apMac; + setBodyParameter("ApMac", apMac); +} + +std::string ActivateApDeviceRequest::getStoreId()const +{ + return storeId_; +} + +void ActivateApDeviceRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + 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/ActivateApService2Request.cc b/cloudesl/src/model/ActivateApService2Request.cc deleted file mode 100644 index f13be888c..000000000 --- a/cloudesl/src/model/ActivateApService2Request.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::ActivateApService2Request; - -ActivateApService2Request::ActivateApService2Request() : - RpcServiceRequest("cloudesl", "2018-08-01", "ActivateApService2") -{ - setMethod(HttpRequest::Method::Post); -} - -ActivateApService2Request::~ActivateApService2Request() -{} - -std::string ActivateApService2Request::getApMac()const -{ - return apMac_; -} - -void ActivateApService2Request::setApMac(const std::string& apMac) -{ - apMac_ = apMac; - setParameter("ApMac", apMac); -} - -std::string ActivateApService2Request::getStoreId()const -{ - return storeId_; -} - -void ActivateApService2Request::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - diff --git a/cloudesl/src/model/ActivateApServiceRequest.cc b/cloudesl/src/model/ActivateApServiceRequest.cc deleted file mode 100644 index 01ac2cbdc..000000000 --- a/cloudesl/src/model/ActivateApServiceRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::ActivateApServiceRequest; - -ActivateApServiceRequest::ActivateApServiceRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "ActivateApService") -{ - setMethod(HttpRequest::Method::Post); -} - -ActivateApServiceRequest::~ActivateApServiceRequest() -{} - -std::string ActivateApServiceRequest::getApMac()const -{ - return apMac_; -} - -void ActivateApServiceRequest::setApMac(const std::string& apMac) -{ - apMac_ = apMac; - setParameter("ApMac", apMac); -} - -std::string ActivateApServiceRequest::getStoreId()const -{ - return storeId_; -} - -void ActivateApServiceRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - diff --git a/cloudesl/src/model/AddApDeviceRequest.cc b/cloudesl/src/model/AddApDeviceRequest.cc new file mode 100644 index 000000000..49d163c24 --- /dev/null +++ b/cloudesl/src/model/AddApDeviceRequest.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::AddApDeviceRequest; + +AddApDeviceRequest::AddApDeviceRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AddApDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +AddApDeviceRequest::~AddApDeviceRequest() +{} + +std::string AddApDeviceRequest::getExtraParams()const +{ + return extraParams_; +} + +void AddApDeviceRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string AddApDeviceRequest::getClientToken()const +{ + return clientToken_; +} + +void AddApDeviceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string AddApDeviceRequest::getRemark()const +{ + return remark_; +} + +void AddApDeviceRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setBodyParameter("Remark", remark); +} + +std::string AddApDeviceRequest::getApMac()const +{ + return apMac_; +} + +void AddApDeviceRequest::setApMac(const std::string& apMac) +{ + apMac_ = apMac; + setBodyParameter("ApMac", apMac); +} + +std::string AddApDeviceRequest::getStoreId()const +{ + return storeId_; +} + +void AddApDeviceRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string AddApDeviceRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void AddApDeviceRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setBodyParameter("SerialNumber", serialNumber); +} + 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..aa442fb51 --- /dev/null +++ b/cloudesl/src/model/AddPlanogramShelfRequest.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::AddPlanogramShelfRequest; + +AddPlanogramShelfRequest::AddPlanogramShelfRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AddPlanogramShelf") +{ + setMethod(HttpRequest::Method::Post); +} + +AddPlanogramShelfRequest::~AddPlanogramShelfRequest() +{} + +std::string AddPlanogramShelfRequest::getExtraParams()const +{ + return extraParams_; +} + +void AddPlanogramShelfRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string AddPlanogramShelfRequest::getClientToken()const +{ + return clientToken_; +} + +void AddPlanogramShelfRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string AddPlanogramShelfRequest::getShelfType()const +{ + return shelfType_; +} + +void AddPlanogramShelfRequest::setShelfType(const std::string& shelfType) +{ + shelfType_ = shelfType; + setBodyParameter("ShelfType", shelfType); +} + +std::string AddPlanogramShelfRequest::getStoreId()const +{ + return storeId_; +} + +void AddPlanogramShelfRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string AddPlanogramShelfRequest::getZone()const +{ + return zone_; +} + +void AddPlanogramShelfRequest::setZone(const std::string& zone) +{ + zone_ = zone; + setBodyParameter("Zone", zone); +} + +std::string AddPlanogramShelfRequest::getShelf()const +{ + return shelf_; +} + +void AddPlanogramShelfRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + +std::string AddPlanogramShelfRequest::getCategory()const +{ + return category_; +} + +void AddPlanogramShelfRequest::setCategory(const std::string& category) +{ + category_ = category; + setBodyParameter("Category", category); +} + diff --git a/cloudesl/src/model/DeleteItemBySkuIdResult.cc b/cloudesl/src/model/AddPlanogramShelfResult.cc similarity index 52% rename from cloudesl/src/model/DeleteItemBySkuIdResult.cc rename to cloudesl/src/model/AddPlanogramShelfResult.cc index 0e2b631d0..d0b04eaa5 100644 --- a/cloudesl/src/model/DeleteItemBySkuIdResult.cc +++ b/cloudesl/src/model/AddPlanogramShelfResult.cc @@ -14,51 +14,79 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cloudesl; using namespace AlibabaCloud::Cloudesl::Model; -DeleteItemBySkuIdResult::DeleteItemBySkuIdResult() : +AddPlanogramShelfResult::AddPlanogramShelfResult() : ServiceResult() {} -DeleteItemBySkuIdResult::DeleteItemBySkuIdResult(const std::string &payload) : +AddPlanogramShelfResult::AddPlanogramShelfResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteItemBySkuIdResult::~DeleteItemBySkuIdResult() +AddPlanogramShelfResult::~AddPlanogramShelfResult() {} -void DeleteItemBySkuIdResult::parse(const std::string &payload) +void AddPlanogramShelfResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string DeleteItemBySkuIdResult::getMessage()const +std::string AddPlanogramShelfResult::getMessage()const { return message_; } -std::string DeleteItemBySkuIdResult::getErrorCode()const +std::string AddPlanogramShelfResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AddPlanogramShelfResult::getErrorCode()const { return errorCode_; } -bool DeleteItemBySkuIdResult::getSuccess()const +std::string AddPlanogramShelfResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string AddPlanogramShelfResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AddPlanogramShelfResult::getCode()const +{ + return code_; +} + +bool AddPlanogramShelfResult::getSuccess()const { return success_; } diff --git a/cloudesl/src/model/AddRoleActionsRequest.cc b/cloudesl/src/model/AddRoleActionsRequest.cc new file mode 100644 index 000000000..5c6125811 --- /dev/null +++ b/cloudesl/src/model/AddRoleActionsRequest.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::AddRoleActionsRequest; + +AddRoleActionsRequest::AddRoleActionsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AddRoleActions") +{ + setMethod(HttpRequest::Method::Post); +} + +AddRoleActionsRequest::~AddRoleActionsRequest() +{} + +std::string AddRoleActionsRequest::getRoleCode()const +{ + return roleCode_; +} + +void AddRoleActionsRequest::setRoleCode(const std::string& roleCode) +{ + roleCode_ = roleCode; + setBodyParameter("RoleCode", roleCode); +} + +std::string AddRoleActionsRequest::getExtraParams()const +{ + return extraParams_; +} + +void AddRoleActionsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string AddRoleActionsRequest::getClientToken()const +{ + return clientToken_; +} + +void AddRoleActionsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string AddRoleActionsRequest::getAccessControlLists()const +{ + return accessControlLists_; +} + +void AddRoleActionsRequest::setAccessControlLists(const std::string& accessControlLists) +{ + accessControlLists_ = accessControlLists; + setBodyParameter("AccessControlLists", accessControlLists); +} + diff --git a/cloudesl/src/model/AddRoleActionsResult.cc b/cloudesl/src/model/AddRoleActionsResult.cc new file mode 100644 index 000000000..35b681b9e --- /dev/null +++ b/cloudesl/src/model/AddRoleActionsResult.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; + +AddRoleActionsResult::AddRoleActionsResult() : + ServiceResult() +{} + +AddRoleActionsResult::AddRoleActionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddRoleActionsResult::~AddRoleActionsResult() +{} + +void AddRoleActionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddRoleActionsResult::getMessage()const +{ + return message_; +} + +std::string AddRoleActionsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AddRoleActionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddRoleActionsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string AddRoleActionsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AddRoleActionsResult::getCode()const +{ + return code_; +} + +bool AddRoleActionsResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/AddUserRequest.cc b/cloudesl/src/model/AddUserRequest.cc new file mode 100644 index 000000000..bf9bc7d42 --- /dev/null +++ b/cloudesl/src/model/AddUserRequest.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::AddUserRequest; + +AddUserRequest::AddUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AddUser") +{ + setMethod(HttpRequest::Method::Post); +} + +AddUserRequest::~AddUserRequest() +{} + +std::string AddUserRequest::getExtraParams()const +{ + return extraParams_; +} + +void AddUserRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string AddUserRequest::getClientToken()const +{ + return clientToken_; +} + +void AddUserRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + +std::string AddUserRequest::getUserId()const +{ + return userId_; +} + +void AddUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/cloudesl/src/model/ActivateApService2Result.cc b/cloudesl/src/model/AddUserResult.cc similarity index 59% rename from cloudesl/src/model/ActivateApService2Result.cc rename to cloudesl/src/model/AddUserResult.cc index 247607faa..e2b5510aa 100644 --- a/cloudesl/src/model/ActivateApService2Result.cc +++ b/cloudesl/src/model/AddUserResult.cc @@ -14,58 +14,79 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cloudesl; using namespace AlibabaCloud::Cloudesl::Model; -ActivateApService2Result::ActivateApService2Result() : +AddUserResult::AddUserResult() : ServiceResult() {} -ActivateApService2Result::ActivateApService2Result(const std::string &payload) : +AddUserResult::AddUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -ActivateApService2Result::~ActivateApService2Result() +AddUserResult::~AddUserResult() {} -void ActivateApService2Result::parse(const std::string &payload) +void AddUserResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string ActivateApService2Result::getMessage()const +std::string AddUserResult::getMessage()const { return message_; } -std::string ActivateApService2Result::getErrorCode()const +std::string AddUserResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AddUserResult::getErrorCode()const { return errorCode_; } -std::string ActivateApService2Result::getCode()const +std::string AddUserResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string AddUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AddUserResult::getCode()const { return code_; } -bool ActivateApService2Result::getSuccess()const +bool AddUserResult::getSuccess()const { return success_; } diff --git a/cloudesl/src/model/AssignUserRequest.cc b/cloudesl/src/model/AssignUserRequest.cc new file mode 100644 index 000000000..b09ea5d9e --- /dev/null +++ b/cloudesl/src/model/AssignUserRequest.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::AssignUserRequest; + +AssignUserRequest::AssignUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AssignUser") +{ + setMethod(HttpRequest::Method::Post); +} + +AssignUserRequest::~AssignUserRequest() +{} + +std::string AssignUserRequest::getExtraParams()const +{ + return extraParams_; +} + +void AssignUserRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string AssignUserRequest::getStores()const +{ + return stores_; +} + +void AssignUserRequest::setStores(const std::string& stores) +{ + stores_ = stores; + setBodyParameter("Stores", stores); +} + +std::string AssignUserRequest::getUserType()const +{ + return userType_; +} + +void AssignUserRequest::setUserType(const std::string& userType) +{ + userType_ = userType; + setBodyParameter("UserType", userType); +} + +std::string AssignUserRequest::getUserId()const +{ + return userId_; +} + +void AssignUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/cloudesl/src/model/DescribeCompanyResult.cc b/cloudesl/src/model/AssignUserResult.cc similarity index 54% rename from cloudesl/src/model/DescribeCompanyResult.cc rename to cloudesl/src/model/AssignUserResult.cc index d5ba7c5f2..1a3644e8d 100644 --- a/cloudesl/src/model/DescribeCompanyResult.cc +++ b/cloudesl/src/model/AssignUserResult.cc @@ -14,72 +14,79 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cloudesl; using namespace AlibabaCloud::Cloudesl::Model; -DescribeCompanyResult::DescribeCompanyResult() : +AssignUserResult::AssignUserResult() : ServiceResult() {} -DescribeCompanyResult::DescribeCompanyResult(const std::string &payload) : +AssignUserResult::AssignUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeCompanyResult::~DescribeCompanyResult() +AssignUserResult::~AssignUserResult() {} -void DescribeCompanyResult::parse(const std::string &payload) +void AssignUserResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); - if(!value["CompanyId"].isNull()) - companyId_ = value["CompanyId"].asString(); - if(!value["Platform"].isNull()) - platform_ = value["Platform"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string DescribeCompanyResult::getStatus()const -{ - return status_; -} - -std::string DescribeCompanyResult::getMessage()const +std::string AssignUserResult::getMessage()const { return message_; } -std::string DescribeCompanyResult::getCompanyId()const +std::string AssignUserResult::getDynamicCode()const { - return companyId_; + return dynamicCode_; } -std::string DescribeCompanyResult::getPlatform()const -{ - return platform_; -} - -std::string DescribeCompanyResult::getErrorCode()const +std::string AssignUserResult::getErrorCode()const { return errorCode_; } -bool DescribeCompanyResult::getSuccess()const +std::string AssignUserResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string AssignUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string AssignUserResult::getCode()const +{ + return code_; +} + +bool AssignUserResult::getSuccess()const { return success_; } diff --git a/cloudesl/src/model/AssociatePlanogramRailRequest.cc b/cloudesl/src/model/AssociatePlanogramRailRequest.cc new file mode 100644 index 000000000..7bcfefd2c --- /dev/null +++ b/cloudesl/src/model/AssociatePlanogramRailRequest.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::AssociatePlanogramRailRequest; + +AssociatePlanogramRailRequest::AssociatePlanogramRailRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "AssociatePlanogramRail") +{ + setMethod(HttpRequest::Method::Post); +} + +AssociatePlanogramRailRequest::~AssociatePlanogramRailRequest() +{} + +std::string AssociatePlanogramRailRequest::getExtraParams()const +{ + return extraParams_; +} + +void AssociatePlanogramRailRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string AssociatePlanogramRailRequest::getStoreId()const +{ + return storeId_; +} + +void AssociatePlanogramRailRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int AssociatePlanogramRailRequest::getLayer()const +{ + return layer_; +} + +void AssociatePlanogramRailRequest::setLayer(int layer) +{ + layer_ = layer; + setBodyParameter("Layer", std::to_string(layer)); +} + +std::string AssociatePlanogramRailRequest::getShelf()const +{ + return shelf_; +} + +void AssociatePlanogramRailRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + +std::string AssociatePlanogramRailRequest::getRailCode()const +{ + return railCode_; +} + +void AssociatePlanogramRailRequest::setRailCode(const std::string& railCode) +{ + railCode_ = railCode; + setBodyParameter("RailCode", railCode); +} + 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 index e20adaae7..d01b1e32c 100644 --- a/cloudesl/src/model/BatchInsertItemsRequest.cc +++ b/cloudesl/src/model/BatchInsertItemsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::BatchInsertItemsRequest; BatchInsertItemsRequest::BatchInsertItemsRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "BatchInsertItems") + RpcServiceRequest("cloudesl", "2020-02-01", "BatchInsertItems") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ BatchInsertItemsRequest::BatchInsertItemsRequest() : BatchInsertItemsRequest::~BatchInsertItemsRequest() {} +std::string BatchInsertItemsRequest::getExtraParams()const +{ + return extraParams_; +} + +void BatchInsertItemsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + std::string BatchInsertItemsRequest::getStoreId()const { return storeId_; @@ -35,7 +46,18 @@ std::string BatchInsertItemsRequest::getStoreId()const void BatchInsertItemsRequest::setStoreId(const std::string& storeId) { storeId_ = storeId; - setParameter("StoreId", storeId); + setBodyParameter("StoreId", storeId); +} + +bool BatchInsertItemsRequest::getSyncByItemId()const +{ + return syncByItemId_; +} + +void BatchInsertItemsRequest::setSyncByItemId(bool syncByItemId) +{ + syncByItemId_ = syncByItemId; + setBodyParameter("SyncByItemId", syncByItemId ? "true" : "false"); } std::vector BatchInsertItemsRequest::getItemInfo()const @@ -51,45 +73,56 @@ void BatchInsertItemsRequest::setItemInfo(const std::vector& itemInfo) std::string itemInfoObjStr = "ItemInfo." + std::to_string(dep1 + 1); setParameter(itemInfoObjStr + ".MemberPrice", std::to_string(itemInfoObj.memberPrice)); setParameter(itemInfoObjStr + ".ActionPrice", std::to_string(itemInfoObj.actionPrice)); - setParameter(itemInfoObjStr + ".ProductionPlace", itemInfoObj.productionPlace); setParameter(itemInfoObjStr + ".BeSourceCode", itemInfoObj.beSourceCode ? "true" : "false"); - setParameter(itemInfoObjStr + ".StoreId", itemInfoObj.storeId); setParameter(itemInfoObjStr + ".BrandName", itemInfoObj.brandName); setParameter(itemInfoObjStr + ".PromotionStart", itemInfoObj.promotionStart); - setParameter(itemInfoObjStr + ".SourceCode", itemInfoObj.sourceCode); - setParameter(itemInfoObjStr + ".ItemId", std::to_string(itemInfoObj.itemId)); - setParameter(itemInfoObjStr + ".ExtraAttribute", itemInfoObj.extraAttribute); - setParameter(itemInfoObjStr + ".CompanyId", itemInfoObj.companyId); setParameter(itemInfoObjStr + ".PriceUnit", itemInfoObj.priceUnit); setParameter(itemInfoObjStr + ".Rank", itemInfoObj.rank); + setParameter(itemInfoObjStr + ".ItemInfoIndex", std::to_string(itemInfoObj.itemInfoIndex)); setParameter(itemInfoObjStr + ".ItemBarCode", itemInfoObj.itemBarCode); + setParameter(itemInfoObjStr + ".CustomizeFeatureK", itemInfoObj.customizeFeatureK); + setParameter(itemInfoObjStr + ".CustomizeFeatureL", itemInfoObj.customizeFeatureL); + setParameter(itemInfoObjStr + ".CustomizeFeatureM", itemInfoObj.customizeFeatureM); setParameter(itemInfoObjStr + ".BePromotion", itemInfoObj.bePromotion ? "true" : "false"); + setParameter(itemInfoObjStr + ".CustomizeFeatureN", itemInfoObj.customizeFeatureN); + setParameter(itemInfoObjStr + ".CustomizeFeatureO", itemInfoObj.customizeFeatureO); setParameter(itemInfoObjStr + ".PromotionEnd", itemInfoObj.promotionEnd); setParameter(itemInfoObjStr + ".ItemTitle", itemInfoObj.itemTitle); - setParameter(itemInfoObjStr + ".OriginalPrice", std::to_string(itemInfoObj.originalPrice)); - setParameter(itemInfoObjStr + ".ItemShortTitle", itemInfoObj.itemShortTitle); setParameter(itemInfoObjStr + ".CustomizeFeatureC", itemInfoObj.customizeFeatureC); - setParameter(itemInfoObjStr + ".ItemQrCode", itemInfoObj.itemQrCode); setParameter(itemInfoObjStr + ".CustomizeFeatureD", itemInfoObj.customizeFeatureD); - setParameter(itemInfoObjStr + ".PromotionReason", itemInfoObj.promotionReason); + setParameter(itemInfoObjStr + ".ItemQrCode", itemInfoObj.itemQrCode); setParameter(itemInfoObjStr + ".CustomizeFeatureE", itemInfoObj.customizeFeatureE); + setParameter(itemInfoObjStr + ".InventoryStatus", itemInfoObj.inventoryStatus); + setParameter(itemInfoObjStr + ".PromotionReason", itemInfoObj.promotionReason); setParameter(itemInfoObjStr + ".CustomizeFeatureF", itemInfoObj.customizeFeatureF); - setParameter(itemInfoObjStr + ".ForestSecondId", itemInfoObj.forestSecondId); setParameter(itemInfoObjStr + ".CustomizeFeatureG", itemInfoObj.customizeFeatureG); setParameter(itemInfoObjStr + ".CustomizeFeatureH", itemInfoObj.customizeFeatureH); setParameter(itemInfoObjStr + ".CustomizeFeatureI", itemInfoObj.customizeFeatureI); setParameter(itemInfoObjStr + ".CustomizeFeatureJ", itemInfoObj.customizeFeatureJ); - setParameter(itemInfoObjStr + ".OptionGroups", itemInfoObj.optionGroups); - setParameter(itemInfoObjStr + ".ModelNumber", itemInfoObj.modelNumber); - setParameter(itemInfoObjStr + ".SaleSpec", itemInfoObj.saleSpec); setParameter(itemInfoObjStr + ".CustomizeFeatureA", itemInfoObj.customizeFeatureA); setParameter(itemInfoObjStr + ".CustomizeFeatureB", itemInfoObj.customizeFeatureB); setParameter(itemInfoObjStr + ".SuggestPrice", std::to_string(itemInfoObj.suggestPrice)); setParameter(itemInfoObjStr + ".ForestFirstId", itemInfoObj.forestFirstId); + setParameter(itemInfoObjStr + ".ProductionPlace", itemInfoObj.productionPlace); + setParameter(itemInfoObjStr + ".Manufacturer", itemInfoObj.manufacturer); + setParameter(itemInfoObjStr + ".SourceCode", itemInfoObj.sourceCode); + setParameter(itemInfoObjStr + ".ItemId", itemInfoObj.itemId); + setParameter(itemInfoObjStr + ".BeMember", itemInfoObj.beMember ? "true" : "false"); + setParameter(itemInfoObjStr + ".TemplateSceneId", itemInfoObj.templateSceneId); + setParameter(itemInfoObjStr + ".SalesPrice", std::to_string(itemInfoObj.salesPrice)); + setParameter(itemInfoObjStr + ".OriginalPrice", std::to_string(itemInfoObj.originalPrice)); + setParameter(itemInfoObjStr + ".ItemShortTitle", itemInfoObj.itemShortTitle); + setParameter(itemInfoObjStr + ".ForestSecondId", itemInfoObj.forestSecondId); + setParameter(itemInfoObjStr + ".ItemPicUrl", itemInfoObj.itemPicUrl); + setParameter(itemInfoObjStr + ".SupplierName", itemInfoObj.supplierName); + setParameter(itemInfoObjStr + ".Material", itemInfoObj.material); + setParameter(itemInfoObjStr + ".ModelNumber", itemInfoObj.modelNumber); + setParameter(itemInfoObjStr + ".SaleSpec", itemInfoObj.saleSpec); setParameter(itemInfoObjStr + ".CategoryName", itemInfoObj.categoryName); + setParameter(itemInfoObjStr + ".TaxFee", itemInfoObj.taxFee); setParameter(itemInfoObjStr + ".EnergyEfficiency", itemInfoObj.energyEfficiency); - setParameter(itemInfoObjStr + ".SkuId", itemInfoObj.skuId); setParameter(itemInfoObjStr + ".PromotionText", itemInfoObj.promotionText); + setParameter(itemInfoObjStr + ".SkuId", itemInfoObj.skuId); } } diff --git a/cloudesl/src/model/BatchInsertItemsResult.cc b/cloudesl/src/model/BatchInsertItemsResult.cc index 692e60ae4..fc807ff14 100644 --- a/cloudesl/src/model/BatchInsertItemsResult.cc +++ b/cloudesl/src/model/BatchInsertItemsResult.cc @@ -43,22 +43,30 @@ void BatchInsertItemsResult::parse(const std::string &payload) for (auto valueBatchResultsBatchResult : allBatchResultsNode) { BatchResult batchResultsObject; - if(!valueBatchResultsBatchResult["Index"].isNull()) - batchResultsObject.index = std::stoi(valueBatchResultsBatchResult["Index"].asString()); - if(!valueBatchResultsBatchResult["Success"].isNull()) - batchResultsObject.success = valueBatchResultsBatchResult["Success"].asString() == "true"; if(!valueBatchResultsBatchResult["Message"].isNull()) batchResultsObject.message = valueBatchResultsBatchResult["Message"].asString(); + if(!valueBatchResultsBatchResult["Index"].isNull()) + batchResultsObject.index = std::stoi(valueBatchResultsBatchResult["Index"].asString()); if(!valueBatchResultsBatchResult["ErrorCode"].isNull()) batchResultsObject.errorCode = valueBatchResultsBatchResult["ErrorCode"].asString(); + if(!valueBatchResultsBatchResult["Success"].isNull()) + batchResultsObject.success = valueBatchResultsBatchResult["Success"].asString() == "true"; batchResults_.push_back(batchResultsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -67,16 +75,36 @@ std::string BatchInsertItemsResult::getMessage()const return message_; } +std::string BatchInsertItemsResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string BatchInsertItemsResult::getErrorCode()const { return errorCode_; } +std::string BatchInsertItemsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + std::vector BatchInsertItemsResult::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/BindApStoreServiceRequest.cc b/cloudesl/src/model/BindApStoreServiceRequest.cc deleted file mode 100644 index 2d683fa2f..000000000 --- a/cloudesl/src/model/BindApStoreServiceRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::BindApStoreServiceRequest; - -BindApStoreServiceRequest::BindApStoreServiceRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "BindApStoreService") -{ - setMethod(HttpRequest::Method::Post); -} - -BindApStoreServiceRequest::~BindApStoreServiceRequest() -{} - -std::string BindApStoreServiceRequest::getApMac()const -{ - return apMac_; -} - -void BindApStoreServiceRequest::setApMac(const std::string& apMac) -{ - apMac_ = apMac; - setParameter("ApMac", apMac); -} - -std::string BindApStoreServiceRequest::getStoreId()const -{ - return storeId_; -} - -void BindApStoreServiceRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - diff --git a/cloudesl/src/model/BindApStoreServiceResult.cc b/cloudesl/src/model/BindApStoreServiceResult.cc deleted file mode 100644 index e60a5f7dc..000000000 --- a/cloudesl/src/model/BindApStoreServiceResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudesl; -using namespace AlibabaCloud::Cloudesl::Model; - -BindApStoreServiceResult::BindApStoreServiceResult() : - ServiceResult() -{} - -BindApStoreServiceResult::BindApStoreServiceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BindApStoreServiceResult::~BindApStoreServiceResult() -{} - -void BindApStoreServiceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - -} - -std::string BindApStoreServiceResult::getMessage()const -{ - return message_; -} - -std::string BindApStoreServiceResult::getErrorCode()const -{ - return errorCode_; -} - -bool BindApStoreServiceResult::getSuccess()const -{ - return success_; -} - diff --git a/cloudesl/src/model/BindEslDeviceRequest.cc b/cloudesl/src/model/BindEslDeviceRequest.cc index f99bc57c2..d0d1da98a 100644 --- a/cloudesl/src/model/BindEslDeviceRequest.cc +++ b/cloudesl/src/model/BindEslDeviceRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::BindEslDeviceRequest; BindEslDeviceRequest::BindEslDeviceRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "BindEslDevice") + RpcServiceRequest("cloudesl", "2020-02-01", "BindEslDevice") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ BindEslDeviceRequest::BindEslDeviceRequest() : BindEslDeviceRequest::~BindEslDeviceRequest() {} +std::string BindEslDeviceRequest::getExtraParams()const +{ + return extraParams_; +} + +void BindEslDeviceRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + std::string BindEslDeviceRequest::getStoreId()const { return storeId_; @@ -35,7 +46,18 @@ std::string BindEslDeviceRequest::getStoreId()const void BindEslDeviceRequest::setStoreId(const std::string& storeId) { storeId_ = storeId; - setParameter("StoreId", storeId); + setBodyParameter("StoreId", storeId); +} + +int BindEslDeviceRequest::getLayer()const +{ + return layer_; +} + +void BindEslDeviceRequest::setLayer(int layer) +{ + layer_ = layer; + setBodyParameter("Layer", std::to_string(layer)); } std::string BindEslDeviceRequest::getEslBarCode()const @@ -46,7 +68,7 @@ std::string BindEslDeviceRequest::getEslBarCode()const void BindEslDeviceRequest::setEslBarCode(const std::string& eslBarCode) { eslBarCode_ = eslBarCode; - setParameter("EslBarCode", eslBarCode); + setBodyParameter("EslBarCode", eslBarCode); } std::string BindEslDeviceRequest::getItemBarCode()const @@ -57,6 +79,28 @@ std::string BindEslDeviceRequest::getItemBarCode()const void BindEslDeviceRequest::setItemBarCode(const std::string& itemBarCode) { itemBarCode_ = itemBarCode; - setParameter("ItemBarCode", itemBarCode); + setBodyParameter("ItemBarCode", itemBarCode); +} + +std::string BindEslDeviceRequest::getColumn()const +{ + return column_; +} + +void BindEslDeviceRequest::setColumn(const std::string& column) +{ + column_ = column; + setBodyParameter("Column", column); +} + +std::string BindEslDeviceRequest::getShelf()const +{ + return shelf_; +} + +void BindEslDeviceRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); } diff --git a/cloudesl/src/model/BindEslDeviceResult.cc b/cloudesl/src/model/BindEslDeviceResult.cc index 92b4b6fa7..dbc9807eb 100644 --- a/cloudesl/src/model/BindEslDeviceResult.cc +++ b/cloudesl/src/model/BindEslDeviceResult.cc @@ -39,12 +39,20 @@ void BindEslDeviceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -53,11 +61,31 @@ std::string BindEslDeviceResult::getMessage()const return message_; } +std::string BindEslDeviceResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string BindEslDeviceResult::getErrorCode()const { return errorCode_; } +std::string BindEslDeviceResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string BindEslDeviceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string BindEslDeviceResult::getCode()const +{ + return code_; +} + bool BindEslDeviceResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/BindEslDeviceShelfRequest.cc b/cloudesl/src/model/BindEslDeviceShelfRequest.cc deleted file mode 100644 index ae19dfb10..000000000 --- a/cloudesl/src/model/BindEslDeviceShelfRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::BindEslDeviceShelfRequest; - -BindEslDeviceShelfRequest::BindEslDeviceShelfRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "BindEslDeviceShelf") -{ - setMethod(HttpRequest::Method::Post); -} - -BindEslDeviceShelfRequest::~BindEslDeviceShelfRequest() -{} - -std::string BindEslDeviceShelfRequest::getStoreId()const -{ - return storeId_; -} - -void BindEslDeviceShelfRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - -std::string BindEslDeviceShelfRequest::getShelfCode()const -{ - return shelfCode_; -} - -void BindEslDeviceShelfRequest::setShelfCode(const std::string& shelfCode) -{ - shelfCode_ = shelfCode; - setParameter("ShelfCode", shelfCode); -} - -std::string BindEslDeviceShelfRequest::getEslBarCode()const -{ - return eslBarCode_; -} - -void BindEslDeviceShelfRequest::setEslBarCode(const std::string& eslBarCode) -{ - eslBarCode_ = eslBarCode; - setParameter("EslBarCode", eslBarCode); -} - diff --git a/cloudesl/src/model/ComposePlanogramPositionsRequest.cc b/cloudesl/src/model/ComposePlanogramPositionsRequest.cc new file mode 100644 index 000000000..4e15ddbe2 --- /dev/null +++ b/cloudesl/src/model/ComposePlanogramPositionsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::ComposePlanogramPositionsRequest; + +ComposePlanogramPositionsRequest::ComposePlanogramPositionsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "ComposePlanogramPositions") +{ + setMethod(HttpRequest::Method::Post); +} + +ComposePlanogramPositionsRequest::~ComposePlanogramPositionsRequest() +{} + +std::string ComposePlanogramPositionsRequest::getActionType()const +{ + return actionType_; +} + +void ComposePlanogramPositionsRequest::setActionType(const std::string& actionType) +{ + actionType_ = actionType; + setBodyParameter("ActionType", actionType); +} + +std::string ComposePlanogramPositionsRequest::getExtraParams()const +{ + return extraParams_; +} + +void ComposePlanogramPositionsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string ComposePlanogramPositionsRequest::getStoreId()const +{ + return storeId_; +} + +void ComposePlanogramPositionsRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int ComposePlanogramPositionsRequest::getLayer()const +{ + return layer_; +} + +void ComposePlanogramPositionsRequest::setLayer(int layer) +{ + layer_ = layer; + setBodyParameter("Layer", std::to_string(layer)); +} + +std::string ComposePlanogramPositionsRequest::getLayerOrigin()const +{ + return layerOrigin_; +} + +void ComposePlanogramPositionsRequest::setLayerOrigin(const std::string& layerOrigin) +{ + layerOrigin_ = layerOrigin; + setBodyParameter("LayerOrigin", layerOrigin); +} + +bool ComposePlanogramPositionsRequest::getBeAutoRefresh()const +{ + return beAutoRefresh_; +} + +void ComposePlanogramPositionsRequest::setBeAutoRefresh(bool beAutoRefresh) +{ + beAutoRefresh_ = beAutoRefresh; + setBodyParameter("BeAutoRefresh", beAutoRefresh ? "true" : "false"); +} + +std::string ComposePlanogramPositionsRequest::getShelf()const +{ + return shelf_; +} + +void ComposePlanogramPositionsRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + +std::vector ComposePlanogramPositionsRequest::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 index ad5198e94..ccdb09055 100644 --- a/cloudesl/src/model/CreateStoreRequest.cc +++ b/cloudesl/src/model/CreateStoreRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::CreateStoreRequest; CreateStoreRequest::CreateStoreRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "CreateStore") + RpcServiceRequest("cloudesl", "2020-02-01", "CreateStore") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,28 @@ CreateStoreRequest::CreateStoreRequest() : CreateStoreRequest::~CreateStoreRequest() {} +std::string CreateStoreRequest::getExtraParams()const +{ + return extraParams_; +} + +void CreateStoreRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string CreateStoreRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateStoreRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setBodyParameter("ClientToken", clientToken); +} + std::string CreateStoreRequest::getStoreName()const { return storeName_; @@ -35,7 +57,7 @@ std::string CreateStoreRequest::getStoreName()const void CreateStoreRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setBodyParameter("StoreName", storeName); } std::string CreateStoreRequest::getParentId()const @@ -46,51 +68,18 @@ std::string CreateStoreRequest::getParentId()const void CreateStoreRequest::setParentId(const std::string& parentId) { parentId_ = parentId; - setParameter("ParentId", parentId); + setBodyParameter("ParentId", parentId); } -std::string CreateStoreRequest::getCompanyId()const +std::string CreateStoreRequest::getUserStoreCode()const { - return companyId_; + return userStoreCode_; } -void CreateStoreRequest::setCompanyId(const std::string& companyId) +void CreateStoreRequest::setUserStoreCode(const std::string& userStoreCode) { - companyId_ = companyId; - setParameter("CompanyId", companyId); -} - -std::string CreateStoreRequest::getBrand()const -{ - return brand_; -} - -void CreateStoreRequest::setBrand(const std::string& brand) -{ - brand_ = brand; - setParameter("Brand", brand); -} - -std::string CreateStoreRequest::getComments()const -{ - return comments_; -} - -void CreateStoreRequest::setComments(const std::string& comments) -{ - comments_ = comments; - setParameter("Comments", comments); -} - -std::string CreateStoreRequest::getGroups()const -{ - return groups_; -} - -void CreateStoreRequest::setGroups(const std::string& groups) -{ - groups_ = groups; - setParameter("Groups", groups); + userStoreCode_ = userStoreCode; + setBodyParameter("UserStoreCode", userStoreCode); } std::string CreateStoreRequest::getPhone()const @@ -101,17 +90,6 @@ std::string CreateStoreRequest::getPhone()const void CreateStoreRequest::setPhone(const std::string& phone) { phone_ = phone; - setParameter("Phone", phone); -} - -std::string CreateStoreRequest::getOutId()const -{ - return outId_; -} - -void CreateStoreRequest::setOutId(const std::string& outId) -{ - outId_ = outId; - setParameter("OutId", outId); + setBodyParameter("Phone", phone); } diff --git a/cloudesl/src/model/CreateStoreResult.cc b/cloudesl/src/model/CreateStoreResult.cc index 3e5ffbb4a..cde44bcdf 100644 --- a/cloudesl/src/model/CreateStoreResult.cc +++ b/cloudesl/src/model/CreateStoreResult.cc @@ -39,14 +39,22 @@ void CreateStoreResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["StoreId"].isNull()) storeId_ = value["StoreId"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -60,11 +68,31 @@ std::string CreateStoreResult::getStoreId()const return storeId_; } +std::string CreateStoreResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string CreateStoreResult::getErrorCode()const { return errorCode_; } +std::string CreateStoreResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string CreateStoreResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateStoreResult::getCode()const +{ + return code_; +} + bool CreateStoreResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/DeleteApDeviceRequest.cc b/cloudesl/src/model/DeleteApDeviceRequest.cc new file mode 100644 index 000000000..f74500475 --- /dev/null +++ b/cloudesl/src/model/DeleteApDeviceRequest.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::DeleteApDeviceRequest; + +DeleteApDeviceRequest::DeleteApDeviceRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DeleteApDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteApDeviceRequest::~DeleteApDeviceRequest() +{} + +std::string DeleteApDeviceRequest::getExtraParams()const +{ + return extraParams_; +} + +void DeleteApDeviceRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DeleteApDeviceRequest::getApMac()const +{ + return apMac_; +} + +void DeleteApDeviceRequest::setApMac(const std::string& apMac) +{ + apMac_ = apMac; + setBodyParameter("ApMac", apMac); +} + +std::string DeleteApDeviceRequest::getStoreId()const +{ + return storeId_; +} + +void DeleteApDeviceRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + 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/DeleteApServiceRequest.cc b/cloudesl/src/model/DeleteApServiceRequest.cc deleted file mode 100644 index 8f73393cb..000000000 --- a/cloudesl/src/model/DeleteApServiceRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::DeleteApServiceRequest; - -DeleteApServiceRequest::DeleteApServiceRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DeleteApService") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteApServiceRequest::~DeleteApServiceRequest() -{} - -std::string DeleteApServiceRequest::getApMac()const -{ - return apMac_; -} - -void DeleteApServiceRequest::setApMac(const std::string& apMac) -{ - apMac_ = apMac; - setParameter("ApMac", apMac); -} - -std::string DeleteApServiceRequest::getStoreId()const -{ - return storeId_; -} - -void DeleteApServiceRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - diff --git a/cloudesl/src/model/DeleteApServiceResult.cc b/cloudesl/src/model/DeleteApServiceResult.cc deleted file mode 100644 index 099368ad0..000000000 --- a/cloudesl/src/model/DeleteApServiceResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudesl; -using namespace AlibabaCloud::Cloudesl::Model; - -DeleteApServiceResult::DeleteApServiceResult() : - ServiceResult() -{} - -DeleteApServiceResult::DeleteApServiceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteApServiceResult::~DeleteApServiceResult() -{} - -void DeleteApServiceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - -} - -std::string DeleteApServiceResult::getMessage()const -{ - return message_; -} - -std::string DeleteApServiceResult::getErrorCode()const -{ - return errorCode_; -} - -bool DeleteApServiceResult::getSuccess()const -{ - return success_; -} - diff --git a/cloudesl/src/model/DeleteEslDeviceRequest.cc b/cloudesl/src/model/DeleteEslDeviceRequest.cc deleted file mode 100644 index e80433a72..000000000 --- a/cloudesl/src/model/DeleteEslDeviceRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::DeleteEslDeviceRequest; - -DeleteEslDeviceRequest::DeleteEslDeviceRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DeleteEslDevice") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteEslDeviceRequest::~DeleteEslDeviceRequest() -{} - -std::string DeleteEslDeviceRequest::getStoreId()const -{ - return storeId_; -} - -void DeleteEslDeviceRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - -std::string DeleteEslDeviceRequest::getEslBarCode()const -{ - return eslBarCode_; -} - -void DeleteEslDeviceRequest::setEslBarCode(const std::string& eslBarCode) -{ - eslBarCode_ = eslBarCode; - setParameter("EslBarCode", eslBarCode); -} - diff --git a/cloudesl/src/model/DeleteEslDeviceResult.cc b/cloudesl/src/model/DeleteEslDeviceResult.cc deleted file mode 100644 index b3643cc6a..000000000 --- a/cloudesl/src/model/DeleteEslDeviceResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudesl; -using namespace AlibabaCloud::Cloudesl::Model; - -DeleteEslDeviceResult::DeleteEslDeviceResult() : - ServiceResult() -{} - -DeleteEslDeviceResult::DeleteEslDeviceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteEslDeviceResult::~DeleteEslDeviceResult() -{} - -void DeleteEslDeviceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - -} - -std::string DeleteEslDeviceResult::getMessage()const -{ - return message_; -} - -std::string DeleteEslDeviceResult::getErrorCode()const -{ - return errorCode_; -} - -bool DeleteEslDeviceResult::getSuccess()const -{ - return success_; -} - diff --git a/cloudesl/src/model/DeleteItemBySkuIdRequest.cc b/cloudesl/src/model/DeleteItemBySkuIdRequest.cc deleted file mode 100644 index d69140058..000000000 --- a/cloudesl/src/model/DeleteItemBySkuIdRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::DeleteItemBySkuIdRequest; - -DeleteItemBySkuIdRequest::DeleteItemBySkuIdRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DeleteItemBySkuId") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteItemBySkuIdRequest::~DeleteItemBySkuIdRequest() -{} - -std::string DeleteItemBySkuIdRequest::getStoreId()const -{ - return storeId_; -} - -void DeleteItemBySkuIdRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - -std::string DeleteItemBySkuIdRequest::getSkuId()const -{ - return skuId_; -} - -void DeleteItemBySkuIdRequest::setSkuId(const std::string& skuId) -{ - skuId_ = skuId; - setParameter("SkuId", skuId); -} - diff --git a/cloudesl/src/model/DeleteItemResult.cc b/cloudesl/src/model/DeleteItemResult.cc deleted file mode 100644 index 7b644263c..000000000 --- a/cloudesl/src/model/DeleteItemResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudesl; -using namespace AlibabaCloud::Cloudesl::Model; - -DeleteItemResult::DeleteItemResult() : - ServiceResult() -{} - -DeleteItemResult::DeleteItemResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteItemResult::~DeleteItemResult() -{} - -void DeleteItemResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - -} - -std::string DeleteItemResult::getMessage()const -{ - return message_; -} - -std::string DeleteItemResult::getErrorCode()const -{ - return errorCode_; -} - -bool DeleteItemResult::getSuccess()const -{ - return success_; -} - diff --git a/cloudesl/src/model/DeletePlanogramShelfRequest.cc b/cloudesl/src/model/DeletePlanogramShelfRequest.cc new file mode 100644 index 000000000..99c1ab1b1 --- /dev/null +++ b/cloudesl/src/model/DeletePlanogramShelfRequest.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::DeletePlanogramShelfRequest; + +DeletePlanogramShelfRequest::DeletePlanogramShelfRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DeletePlanogramShelf") +{ + setMethod(HttpRequest::Method::Post); +} + +DeletePlanogramShelfRequest::~DeletePlanogramShelfRequest() +{} + +std::string DeletePlanogramShelfRequest::getExtraParams()const +{ + return extraParams_; +} + +void DeletePlanogramShelfRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +bool DeletePlanogramShelfRequest::getBeAutoRefresh()const +{ + return beAutoRefresh_; +} + +void DeletePlanogramShelfRequest::setBeAutoRefresh(bool beAutoRefresh) +{ + beAutoRefresh_ = beAutoRefresh; + setBodyParameter("BeAutoRefresh", beAutoRefresh ? "true" : "false"); +} + +std::string DeletePlanogramShelfRequest::getStoreId()const +{ + return storeId_; +} + +void DeletePlanogramShelfRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string DeletePlanogramShelfRequest::getShelf()const +{ + return shelf_; +} + +void DeletePlanogramShelfRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + diff --git a/cloudesl/src/model/UnbindEslDeviceShelfResult.cc b/cloudesl/src/model/DeletePlanogramShelfResult.cc similarity index 52% rename from cloudesl/src/model/UnbindEslDeviceShelfResult.cc rename to cloudesl/src/model/DeletePlanogramShelfResult.cc index 65a286661..6efe80665 100644 --- a/cloudesl/src/model/UnbindEslDeviceShelfResult.cc +++ b/cloudesl/src/model/DeletePlanogramShelfResult.cc @@ -14,51 +14,79 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cloudesl; using namespace AlibabaCloud::Cloudesl::Model; -UnbindEslDeviceShelfResult::UnbindEslDeviceShelfResult() : +DeletePlanogramShelfResult::DeletePlanogramShelfResult() : ServiceResult() {} -UnbindEslDeviceShelfResult::UnbindEslDeviceShelfResult(const std::string &payload) : +DeletePlanogramShelfResult::DeletePlanogramShelfResult(const std::string &payload) : ServiceResult() { parse(payload); } -UnbindEslDeviceShelfResult::~UnbindEslDeviceShelfResult() +DeletePlanogramShelfResult::~DeletePlanogramShelfResult() {} -void UnbindEslDeviceShelfResult::parse(const std::string &payload) +void DeletePlanogramShelfResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string UnbindEslDeviceShelfResult::getMessage()const +std::string DeletePlanogramShelfResult::getMessage()const { return message_; } -std::string UnbindEslDeviceShelfResult::getErrorCode()const +std::string DeletePlanogramShelfResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeletePlanogramShelfResult::getErrorCode()const { return errorCode_; } -bool UnbindEslDeviceShelfResult::getSuccess()const +std::string DeletePlanogramShelfResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DeletePlanogramShelfResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeletePlanogramShelfResult::getCode()const +{ + return code_; +} + +bool DeletePlanogramShelfResult::getSuccess()const { return success_; } diff --git a/cloudesl/src/model/DeleteRoleActionsRequest.cc b/cloudesl/src/model/DeleteRoleActionsRequest.cc new file mode 100644 index 000000000..0c7ae8332 --- /dev/null +++ b/cloudesl/src/model/DeleteRoleActionsRequest.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::DeleteRoleActionsRequest; + +DeleteRoleActionsRequest::DeleteRoleActionsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DeleteRoleActions") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteRoleActionsRequest::~DeleteRoleActionsRequest() +{} + +std::string DeleteRoleActionsRequest::getRoleCode()const +{ + return roleCode_; +} + +void DeleteRoleActionsRequest::setRoleCode(const std::string& roleCode) +{ + roleCode_ = roleCode; + setBodyParameter("RoleCode", roleCode); +} + +std::string DeleteRoleActionsRequest::getExtraParams()const +{ + return extraParams_; +} + +void DeleteRoleActionsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DeleteRoleActionsRequest::getAccessControlLists()const +{ + return accessControlLists_; +} + +void DeleteRoleActionsRequest::setAccessControlLists(const std::string& accessControlLists) +{ + accessControlLists_ = accessControlLists; + setBodyParameter("AccessControlLists", accessControlLists); +} + diff --git a/cloudesl/src/model/ActivateApServiceResult.cc b/cloudesl/src/model/DeleteRoleActionsResult.cc similarity index 52% rename from cloudesl/src/model/ActivateApServiceResult.cc rename to cloudesl/src/model/DeleteRoleActionsResult.cc index cf39128f1..cd2673366 100644 --- a/cloudesl/src/model/ActivateApServiceResult.cc +++ b/cloudesl/src/model/DeleteRoleActionsResult.cc @@ -14,51 +14,79 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cloudesl; using namespace AlibabaCloud::Cloudesl::Model; -ActivateApServiceResult::ActivateApServiceResult() : +DeleteRoleActionsResult::DeleteRoleActionsResult() : ServiceResult() {} -ActivateApServiceResult::ActivateApServiceResult(const std::string &payload) : +DeleteRoleActionsResult::DeleteRoleActionsResult(const std::string &payload) : ServiceResult() { parse(payload); } -ActivateApServiceResult::~ActivateApServiceResult() +DeleteRoleActionsResult::~DeleteRoleActionsResult() {} -void ActivateApServiceResult::parse(const std::string &payload) +void DeleteRoleActionsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string ActivateApServiceResult::getMessage()const +std::string DeleteRoleActionsResult::getMessage()const { return message_; } -std::string ActivateApServiceResult::getErrorCode()const +std::string DeleteRoleActionsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeleteRoleActionsResult::getErrorCode()const { return errorCode_; } -bool ActivateApServiceResult::getSuccess()const +std::string DeleteRoleActionsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DeleteRoleActionsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteRoleActionsResult::getCode()const +{ + return code_; +} + +bool DeleteRoleActionsResult::getSuccess()const { return success_; } diff --git a/cloudesl/src/model/DeleteStoreRequest.cc b/cloudesl/src/model/DeleteStoreRequest.cc index 8dc2bfedb..71ac360f3 100644 --- a/cloudesl/src/model/DeleteStoreRequest.cc +++ b/cloudesl/src/model/DeleteStoreRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::DeleteStoreRequest; DeleteStoreRequest::DeleteStoreRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DeleteStore") + RpcServiceRequest("cloudesl", "2020-02-01", "DeleteStore") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ DeleteStoreRequest::DeleteStoreRequest() : DeleteStoreRequest::~DeleteStoreRequest() {} +std::string DeleteStoreRequest::getExtraParams()const +{ + return extraParams_; +} + +void DeleteStoreRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + std::string DeleteStoreRequest::getStoreId()const { return storeId_; @@ -35,6 +46,6 @@ std::string DeleteStoreRequest::getStoreId()const void DeleteStoreRequest::setStoreId(const std::string& storeId) { storeId_ = storeId; - setParameter("StoreId", storeId); + setBodyParameter("StoreId", storeId); } diff --git a/cloudesl/src/model/DeleteStoreResult.cc b/cloudesl/src/model/DeleteStoreResult.cc index 84f2b0cff..0413da75f 100644 --- a/cloudesl/src/model/DeleteStoreResult.cc +++ b/cloudesl/src/model/DeleteStoreResult.cc @@ -39,12 +39,20 @@ void DeleteStoreResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -53,11 +61,31 @@ std::string DeleteStoreResult::getMessage()const return message_; } +std::string DeleteStoreResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string DeleteStoreResult::getErrorCode()const { return errorCode_; } +std::string DeleteStoreResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DeleteStoreResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteStoreResult::getCode()const +{ + return code_; +} + bool DeleteStoreResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/DeleteItemRequest.cc b/cloudesl/src/model/DeleteUserRequest.cc similarity index 50% rename from cloudesl/src/model/DeleteItemRequest.cc rename to cloudesl/src/model/DeleteUserRequest.cc index d74a7baa6..138e47dcc 100644 --- a/cloudesl/src/model/DeleteItemRequest.cc +++ b/cloudesl/src/model/DeleteUserRequest.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cloudesl::Model::DeleteItemRequest; +using AlibabaCloud::Cloudesl::Model::DeleteUserRequest; -DeleteItemRequest::DeleteItemRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DeleteItem") +DeleteUserRequest::DeleteUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DeleteUser") { setMethod(HttpRequest::Method::Post); } -DeleteItemRequest::~DeleteItemRequest() +DeleteUserRequest::~DeleteUserRequest() {} -std::string DeleteItemRequest::getStoreId()const +std::string DeleteUserRequest::getExtraParams()const { - return storeId_; + return extraParams_; } -void DeleteItemRequest::setStoreId(const std::string& storeId) +void DeleteUserRequest::setExtraParams(const std::string& extraParams) { - storeId_ = storeId; - setParameter("StoreId", storeId); + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); } -std::string DeleteItemRequest::getItemBarCode()const +std::string DeleteUserRequest::getUserId()const { - return itemBarCode_; + return userId_; } -void DeleteItemRequest::setItemBarCode(const std::string& itemBarCode) +void DeleteUserRequest::setUserId(const std::string& userId) { - itemBarCode_ = itemBarCode; - setParameter("ItemBarCode", itemBarCode); + userId_ = userId; + setBodyParameter("UserId", userId); } diff --git a/cloudesl/src/model/DescribeUserRamPolicyResult.cc b/cloudesl/src/model/DeleteUserResult.cc similarity index 54% rename from cloudesl/src/model/DescribeUserRamPolicyResult.cc rename to cloudesl/src/model/DeleteUserResult.cc index 24ff1571f..7b8b33124 100644 --- a/cloudesl/src/model/DescribeUserRamPolicyResult.cc +++ b/cloudesl/src/model/DeleteUserResult.cc @@ -14,58 +14,79 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cloudesl; using namespace AlibabaCloud::Cloudesl::Model; -DescribeUserRamPolicyResult::DescribeUserRamPolicyResult() : +DeleteUserResult::DeleteUserResult() : ServiceResult() {} -DescribeUserRamPolicyResult::DescribeUserRamPolicyResult(const std::string &payload) : +DeleteUserResult::DeleteUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeUserRamPolicyResult::~DescribeUserRamPolicyResult() +DeleteUserResult::~DeleteUserResult() {} -void DescribeUserRamPolicyResult::parse(const std::string &payload) +void DeleteUserResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); - if(!value["Policy"].isNull()) - policy_ = value["Policy"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string DescribeUserRamPolicyResult::getPolicy()const -{ - return policy_; -} - -std::string DescribeUserRamPolicyResult::getMessage()const +std::string DeleteUserResult::getMessage()const { return message_; } -std::string DescribeUserRamPolicyResult::getErrorCode()const +std::string DeleteUserResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeleteUserResult::getErrorCode()const { return errorCode_; } -bool DescribeUserRamPolicyResult::getSuccess()const +std::string DeleteUserResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DeleteUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteUserResult::getCode()const +{ + return code_; +} + +bool DeleteUserResult::getSuccess()const { return success_; } diff --git a/cloudesl/src/model/DescribeAlarmsRequest.cc b/cloudesl/src/model/DescribeAlarmsRequest.cc index 168b2f7a4..5ad9692cb 100644 --- a/cloudesl/src/model/DescribeAlarmsRequest.cc +++ b/cloudesl/src/model/DescribeAlarmsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::DescribeAlarmsRequest; DescribeAlarmsRequest::DescribeAlarmsRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DescribeAlarms") + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeAlarms") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ DescribeAlarmsRequest::DescribeAlarmsRequest() : DescribeAlarmsRequest::~DescribeAlarmsRequest() {} +std::string DescribeAlarmsRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeAlarmsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + std::string DescribeAlarmsRequest::getStoreId()const { return storeId_; @@ -35,7 +46,7 @@ std::string DescribeAlarmsRequest::getStoreId()const void DescribeAlarmsRequest::setStoreId(const std::string& storeId) { storeId_ = storeId; - setParameter("StoreId", storeId); + setBodyParameter("StoreId", storeId); } int DescribeAlarmsRequest::getPageNumber()const @@ -46,18 +57,7 @@ int DescribeAlarmsRequest::getPageNumber()const void DescribeAlarmsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeAlarmsRequest::getFromAlarmTime()const -{ - return fromAlarmTime_; -} - -void DescribeAlarmsRequest::setFromAlarmTime(const std::string& fromAlarmTime) -{ - fromAlarmTime_ = fromAlarmTime; - setParameter("FromAlarmTime", fromAlarmTime); + setBodyParameter("PageNumber", std::to_string(pageNumber)); } int DescribeAlarmsRequest::getPageSize()const @@ -68,18 +68,7 @@ int DescribeAlarmsRequest::getPageSize()const void DescribeAlarmsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeAlarmsRequest::getToAlarmTime()const -{ - return toAlarmTime_; -} - -void DescribeAlarmsRequest::setToAlarmTime(const std::string& toAlarmTime) -{ - toAlarmTime_ = toAlarmTime; - setParameter("ToAlarmTime", toAlarmTime); + setBodyParameter("PageSize", std::to_string(pageSize)); } std::string DescribeAlarmsRequest::getAlarmType()const @@ -90,7 +79,7 @@ std::string DescribeAlarmsRequest::getAlarmType()const void DescribeAlarmsRequest::setAlarmType(const std::string& alarmType) { alarmType_ = alarmType; - setParameter("AlarmType", alarmType); + setBodyParameter("AlarmType", alarmType); } std::string DescribeAlarmsRequest::getAlarmStatus()const @@ -101,7 +90,7 @@ std::string DescribeAlarmsRequest::getAlarmStatus()const void DescribeAlarmsRequest::setAlarmStatus(const std::string& alarmStatus) { alarmStatus_ = alarmStatus; - setParameter("AlarmStatus", alarmStatus); + setBodyParameter("AlarmStatus", alarmStatus); } std::string DescribeAlarmsRequest::getErrorType()const @@ -112,7 +101,7 @@ std::string DescribeAlarmsRequest::getErrorType()const void DescribeAlarmsRequest::setErrorType(const std::string& errorType) { errorType_ = errorType; - setParameter("ErrorType", errorType); + setBodyParameter("ErrorType", errorType); } std::string DescribeAlarmsRequest::getAlarmId()const @@ -123,6 +112,17 @@ std::string DescribeAlarmsRequest::getAlarmId()const void DescribeAlarmsRequest::setAlarmId(const std::string& alarmId) { alarmId_ = alarmId; - setParameter("AlarmId", alarmId); + setBodyParameter("AlarmId", alarmId); +} + +std::string DescribeAlarmsRequest::getDeviceMac()const +{ + return deviceMac_; +} + +void DescribeAlarmsRequest::setDeviceMac(const std::string& deviceMac) +{ + deviceMac_ = deviceMac; + setBodyParameter("DeviceMac", deviceMac); } diff --git a/cloudesl/src/model/DescribeAlarmsResult.cc b/cloudesl/src/model/DescribeAlarmsResult.cc index 67528e175..82705e0e7 100644 --- a/cloudesl/src/model/DescribeAlarmsResult.cc +++ b/cloudesl/src/model/DescribeAlarmsResult.cc @@ -43,52 +43,62 @@ void DescribeAlarmsResult::parse(const std::string &payload) for (auto valueAlarmsAlarmInfo : allAlarmsNode) { AlarmInfo alarmsObject; - if(!valueAlarmsAlarmInfo["AlarmId"].isNull()) - alarmsObject.alarmId = valueAlarmsAlarmInfo["AlarmId"].asString(); - if(!valueAlarmsAlarmInfo["AlarmType"].isNull()) - alarmsObject.alarmType = valueAlarmsAlarmInfo["AlarmType"].asString(); - if(!valueAlarmsAlarmInfo["DeviceType"].isNull()) - alarmsObject.deviceType = valueAlarmsAlarmInfo["DeviceType"].asString(); - if(!valueAlarmsAlarmInfo["DeviceBarCode"].isNull()) - alarmsObject.deviceBarCode = valueAlarmsAlarmInfo["DeviceBarCode"].asString(); - if(!valueAlarmsAlarmInfo["DeviceMac"].isNull()) - alarmsObject.deviceMac = valueAlarmsAlarmInfo["DeviceMac"].asString(); - if(!valueAlarmsAlarmInfo["ErrorType"].isNull()) - alarmsObject.errorType = valueAlarmsAlarmInfo["ErrorType"].asString(); - if(!valueAlarmsAlarmInfo["ItemBarCode"].isNull()) - alarmsObject.itemBarCode = valueAlarmsAlarmInfo["ItemBarCode"].asString(); - if(!valueAlarmsAlarmInfo["ItemTitle"].isNull()) - alarmsObject.itemTitle = valueAlarmsAlarmInfo["ItemTitle"].asString(); - if(!valueAlarmsAlarmInfo["CompanyId"].isNull()) - alarmsObject.companyId = valueAlarmsAlarmInfo["CompanyId"].asString(); + if(!valueAlarmsAlarmInfo["Remark"].isNull()) + alarmsObject.remark = valueAlarmsAlarmInfo["Remark"].asString(); if(!valueAlarmsAlarmInfo["StoreId"].isNull()) alarmsObject.storeId = valueAlarmsAlarmInfo["StoreId"].asString(); + if(!valueAlarmsAlarmInfo["DeviceBarCode"].isNull()) + alarmsObject.deviceBarCode = valueAlarmsAlarmInfo["DeviceBarCode"].asString(); + if(!valueAlarmsAlarmInfo["DealUserId"].isNull()) + alarmsObject.dealUserId = valueAlarmsAlarmInfo["DealUserId"].asString(); + if(!valueAlarmsAlarmInfo["DeviceType"].isNull()) + alarmsObject.deviceType = valueAlarmsAlarmInfo["DeviceType"].asString(); + if(!valueAlarmsAlarmInfo["ItemTitle"].isNull()) + alarmsObject.itemTitle = valueAlarmsAlarmInfo["ItemTitle"].asString(); if(!valueAlarmsAlarmInfo["AlarmTime"].isNull()) alarmsObject.alarmTime = valueAlarmsAlarmInfo["AlarmTime"].asString(); - if(!valueAlarmsAlarmInfo["AlarmStatus"].isNull()) - alarmsObject.alarmStatus = valueAlarmsAlarmInfo["AlarmStatus"].asString(); - if(!valueAlarmsAlarmInfo["DealUserId"].isNull()) - alarmsObject.dealUserId = std::stol(valueAlarmsAlarmInfo["DealUserId"].asString()); + if(!valueAlarmsAlarmInfo["ErrorType"].isNull()) + alarmsObject.errorType = valueAlarmsAlarmInfo["ErrorType"].asString(); + if(!valueAlarmsAlarmInfo["DeviceMac"].isNull()) + alarmsObject.deviceMac = valueAlarmsAlarmInfo["DeviceMac"].asString(); + if(!valueAlarmsAlarmInfo["AlarmId"].isNull()) + alarmsObject.alarmId = valueAlarmsAlarmInfo["AlarmId"].asString(); + if(!valueAlarmsAlarmInfo["RetryGmtCreate"].isNull()) + alarmsObject.retryGmtCreate = valueAlarmsAlarmInfo["RetryGmtCreate"].asString(); + if(!valueAlarmsAlarmInfo["RetryGmtModified"].isNull()) + alarmsObject.retryGmtModified = valueAlarmsAlarmInfo["RetryGmtModified"].asString(); + if(!valueAlarmsAlarmInfo["ItemBarCode"].isNull()) + alarmsObject.itemBarCode = valueAlarmsAlarmInfo["ItemBarCode"].asString(); + if(!valueAlarmsAlarmInfo["RetryTimes"].isNull()) + alarmsObject.retryTimes = std::stol(valueAlarmsAlarmInfo["RetryTimes"].asString()); if(!valueAlarmsAlarmInfo["DealTime"].isNull()) alarmsObject.dealTime = valueAlarmsAlarmInfo["DealTime"].asString(); - if(!valueAlarmsAlarmInfo["Vendor"].isNull()) - alarmsObject.vendor = valueAlarmsAlarmInfo["Vendor"].asString(); - if(!valueAlarmsAlarmInfo["Model"].isNull()) - alarmsObject.model = valueAlarmsAlarmInfo["Model"].asString(); + if(!valueAlarmsAlarmInfo["AlarmType"].isNull()) + alarmsObject.alarmType = valueAlarmsAlarmInfo["AlarmType"].asString(); + if(!valueAlarmsAlarmInfo["AlarmStatus"].isNull()) + alarmsObject.alarmStatus = valueAlarmsAlarmInfo["AlarmStatus"].asString(); alarms_.push_back(alarmsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -97,16 +107,16 @@ int DescribeAlarmsResult::getTotalCount()const return totalCount_; } -std::string DescribeAlarmsResult::getMessage()const -{ - return message_; -} - int DescribeAlarmsResult::getPageSize()const { return pageSize_; } +std::string DescribeAlarmsResult::getMessage()const +{ + return message_; +} + int DescribeAlarmsResult::getPageNumber()const { return pageNumber_; @@ -117,11 +127,31 @@ std::vector DescribeAlarmsResult::getAlarms()co return alarms_; } +std::string DescribeAlarmsResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string DescribeAlarmsResult::getErrorCode()const { return errorCode_; } +std::string DescribeAlarmsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeAlarmsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribeAlarmsResult::getCode()const +{ + return code_; +} + bool DescribeAlarmsResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/DescribeApDevicesRequest.cc b/cloudesl/src/model/DescribeApDevicesRequest.cc new file mode 100644 index 000000000..f72bb70db --- /dev/null +++ b/cloudesl/src/model/DescribeApDevicesRequest.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::DescribeApDevicesRequest; + +DescribeApDevicesRequest::DescribeApDevicesRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeApDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeApDevicesRequest::~DescribeApDevicesRequest() +{} + +std::string DescribeApDevicesRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeApDevicesRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribeApDevicesRequest::getApMac()const +{ + return apMac_; +} + +void DescribeApDevicesRequest::setApMac(const std::string& apMac) +{ + apMac_ = apMac; + setBodyParameter("ApMac", apMac); +} + +std::string DescribeApDevicesRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeApDevicesRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribeApDevicesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeApDevicesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeApDevicesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeApDevicesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeApDevicesRequest::getModel()const +{ + return model_; +} + +void DescribeApDevicesRequest::setModel(const std::string& model) +{ + model_ = model; + setBodyParameter("Model", model); +} + +bool DescribeApDevicesRequest::getBeActivate()const +{ + return beActivate_; +} + +void DescribeApDevicesRequest::setBeActivate(bool beActivate) +{ + beActivate_ = beActivate; + setBodyParameter("BeActivate", beActivate ? "true" : "false"); +} + +bool DescribeApDevicesRequest::getStatus()const +{ + return status_; +} + +void DescribeApDevicesRequest::setStatus(bool status) +{ + status_ = status; + setBodyParameter("Status", status ? "true" : "false"); +} + 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..b44efdabd --- /dev/null +++ b/cloudesl/src/model/DescribeBindersRequest.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::DescribeBindersRequest; + +DescribeBindersRequest::DescribeBindersRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeBinders") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeBindersRequest::~DescribeBindersRequest() +{} + +std::string DescribeBindersRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeBindersRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribeBindersRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeBindersRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribeBindersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBindersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeBindersRequest::getEslBarCode()const +{ + return eslBarCode_; +} + +void DescribeBindersRequest::setEslBarCode(const std::string& eslBarCode) +{ + eslBarCode_ = eslBarCode; + setBodyParameter("EslBarCode", eslBarCode); +} + +int DescribeBindersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBindersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBindersRequest::getItemBarCode()const +{ + return itemBarCode_; +} + +void DescribeBindersRequest::setItemBarCode(const std::string& itemBarCode) +{ + itemBarCode_ = itemBarCode; + setBodyParameter("ItemBarCode", itemBarCode); +} + +std::string DescribeBindersRequest::getItemTitle()const +{ + return itemTitle_; +} + +void DescribeBindersRequest::setItemTitle(const std::string& itemTitle) +{ + itemTitle_ = itemTitle; + setBodyParameter("ItemTitle", itemTitle); +} + 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/DescribeClientPackageRequest.cc b/cloudesl/src/model/DescribeClientPackageRequest.cc new file mode 100644 index 000000000..209d9872a --- /dev/null +++ b/cloudesl/src/model/DescribeClientPackageRequest.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::DescribeClientPackageRequest; + +DescribeClientPackageRequest::DescribeClientPackageRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeClientPackage") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeClientPackageRequest::~DescribeClientPackageRequest() +{} + +std::string DescribeClientPackageRequest::getClientType()const +{ + return clientType_; +} + +void DescribeClientPackageRequest::setClientType(const std::string& clientType) +{ + clientType_ = clientType; + setBodyParameter("ClientType", clientType); +} + +std::string DescribeClientPackageRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeClientPackageRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + diff --git a/cloudesl/src/model/DescribeClientPackageResult.cc b/cloudesl/src/model/DescribeClientPackageResult.cc new file mode 100644 index 000000000..5fc519846 --- /dev/null +++ b/cloudesl/src/model/DescribeClientPackageResult.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; + +DescribeClientPackageResult::DescribeClientPackageResult() : + ServiceResult() +{} + +DescribeClientPackageResult::DescribeClientPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClientPackageResult::~DescribeClientPackageResult() +{} + +void DescribeClientPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["UpdateType"].isNull()) + updateType_ = value["UpdateType"].asString(); + if(!value["Url"].isNull()) + url_ = value["Url"].asString(); + if(!value["Version"].isNull()) + version_ = value["Version"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeClientPackageResult::getDescription()const +{ + return description_; +} + +std::string DescribeClientPackageResult::getMessage()const +{ + return message_; +} + +std::string DescribeClientPackageResult::getVersion()const +{ + return version_; +} + +std::string DescribeClientPackageResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DescribeClientPackageResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeClientPackageResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeClientPackageResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribeClientPackageResult::getUpdateType()const +{ + return updateType_; +} + +std::string DescribeClientPackageResult::getCode()const +{ + return code_; +} + +std::string DescribeClientPackageResult::getUrl()const +{ + return url_; +} + +bool DescribeClientPackageResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/DescribeEslDevicesRequest.cc b/cloudesl/src/model/DescribeEslDevicesRequest.cc index f64d2535e..9fff1f406 100644 --- a/cloudesl/src/model/DescribeEslDevicesRequest.cc +++ b/cloudesl/src/model/DescribeEslDevicesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::DescribeEslDevicesRequest; DescribeEslDevicesRequest::DescribeEslDevicesRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DescribeEslDevices") + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeEslDevices") { setMethod(HttpRequest::Method::Post); } @@ -27,15 +27,15 @@ DescribeEslDevicesRequest::DescribeEslDevicesRequest() : DescribeEslDevicesRequest::~DescribeEslDevicesRequest() {} -std::string DescribeEslDevicesRequest::getStoreId()const +std::string DescribeEslDevicesRequest::getExtraParams()const { - return storeId_; + return extraParams_; } -void DescribeEslDevicesRequest::setStoreId(const std::string& storeId) +void DescribeEslDevicesRequest::setExtraParams(const std::string& extraParams) { - storeId_ = storeId; - setParameter("StoreId", storeId); + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); } std::string DescribeEslDevicesRequest::getType()const @@ -46,18 +46,18 @@ std::string DescribeEslDevicesRequest::getType()const void DescribeEslDevicesRequest::setType(const std::string& type) { type_ = type; - setParameter("Type", type); + setBodyParameter("Type", type); } -std::string DescribeEslDevicesRequest::getMac()const +std::string DescribeEslDevicesRequest::getStoreId()const { - return mac_; + return storeId_; } -void DescribeEslDevicesRequest::setMac(const std::string& mac) +void DescribeEslDevicesRequest::setStoreId(const std::string& storeId) { - mac_ = mac; - setParameter("Mac", mac); + storeId_ = storeId; + setBodyParameter("StoreId", storeId); } int DescribeEslDevicesRequest::getPageNumber()const @@ -68,7 +68,7 @@ int DescribeEslDevicesRequest::getPageNumber()const void DescribeEslDevicesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setBodyParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeEslDevicesRequest::getEslBarCode()const @@ -79,18 +79,7 @@ std::string DescribeEslDevicesRequest::getEslBarCode()const void DescribeEslDevicesRequest::setEslBarCode(const std::string& eslBarCode) { eslBarCode_ = eslBarCode; - setParameter("EslBarCode", eslBarCode); -} - -std::string DescribeEslDevicesRequest::getVendor()const -{ - return vendor_; -} - -void DescribeEslDevicesRequest::setVendor(const std::string& vendor) -{ - vendor_ = vendor; - setParameter("Vendor", vendor); + setBodyParameter("EslBarCode", eslBarCode); } int DescribeEslDevicesRequest::getPageSize()const @@ -101,18 +90,7 @@ int DescribeEslDevicesRequest::getPageSize()const void DescribeEslDevicesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeEslDevicesRequest::getItemBarCode()const -{ - return itemBarCode_; -} - -void DescribeEslDevicesRequest::setItemBarCode(const std::string& itemBarCode) -{ - itemBarCode_ = itemBarCode; - setParameter("ItemBarCode", itemBarCode); + setBodyParameter("PageSize", std::to_string(pageSize)); } std::string DescribeEslDevicesRequest::getEslStatus()const @@ -123,7 +101,7 @@ std::string DescribeEslDevicesRequest::getEslStatus()const void DescribeEslDevicesRequest::setEslStatus(const std::string& eslStatus) { eslStatus_ = eslStatus; - setParameter("EslStatus", eslStatus); + setBodyParameter("EslStatus", eslStatus); } int DescribeEslDevicesRequest::getToBatteryLevel()const @@ -134,7 +112,7 @@ int DescribeEslDevicesRequest::getToBatteryLevel()const void DescribeEslDevicesRequest::setToBatteryLevel(int toBatteryLevel) { toBatteryLevel_ = toBatteryLevel; - setParameter("ToBatteryLevel", std::to_string(toBatteryLevel)); + setBodyParameter("ToBatteryLevel", std::to_string(toBatteryLevel)); } int DescribeEslDevicesRequest::getFromBatteryLevel()const @@ -145,28 +123,6 @@ int DescribeEslDevicesRequest::getFromBatteryLevel()const void DescribeEslDevicesRequest::setFromBatteryLevel(int fromBatteryLevel) { fromBatteryLevel_ = fromBatteryLevel; - setParameter("FromBatteryLevel", std::to_string(fromBatteryLevel)); -} - -std::string DescribeEslDevicesRequest::getShelfCode()const -{ - return shelfCode_; -} - -void DescribeEslDevicesRequest::setShelfCode(const std::string& shelfCode) -{ - shelfCode_ = shelfCode; - setParameter("ShelfCode", shelfCode); -} - -bool DescribeEslDevicesRequest::getBeBind()const -{ - return beBind_; -} - -void DescribeEslDevicesRequest::setBeBind(bool beBind) -{ - beBind_ = beBind; - setParameter("BeBind", beBind ? "true" : "false"); + setBodyParameter("FromBatteryLevel", std::to_string(fromBatteryLevel)); } diff --git a/cloudesl/src/model/DescribeEslDevicesResult.cc b/cloudesl/src/model/DescribeEslDevicesResult.cc index b7ed66cf8..c0b544843 100644 --- a/cloudesl/src/model/DescribeEslDevicesResult.cc +++ b/cloudesl/src/model/DescribeEslDevicesResult.cc @@ -43,62 +43,48 @@ void DescribeEslDevicesResult::parse(const std::string &payload) for (auto valueEslDevicesEslDeviceInfo : allEslDevicesNode) { EslDeviceInfo eslDevicesObject; - if(!valueEslDevicesEslDeviceInfo["CompanyId"].isNull()) - eslDevicesObject.companyId = valueEslDevicesEslDeviceInfo["CompanyId"].asString(); - if(!valueEslDevicesEslDeviceInfo["StoreId"].isNull()) - eslDevicesObject.storeId = valueEslDevicesEslDeviceInfo["StoreId"].asString(); - if(!valueEslDevicesEslDeviceInfo["Mac"].isNull()) - eslDevicesObject.mac = valueEslDevicesEslDeviceInfo["Mac"].asString(); - if(!valueEslDevicesEslDeviceInfo["EslBarCode"].isNull()) - eslDevicesObject.eslBarCode = valueEslDevicesEslDeviceInfo["EslBarCode"].asString(); - if(!valueEslDevicesEslDeviceInfo["ItemBarCode"].isNull()) - eslDevicesObject.itemBarCode = valueEslDevicesEslDeviceInfo["ItemBarCode"].asString(); - if(!valueEslDevicesEslDeviceInfo["Vendor"].isNull()) - eslDevicesObject.vendor = valueEslDevicesEslDeviceInfo["Vendor"].asString(); - if(!valueEslDevicesEslDeviceInfo["ConnectAp"].isNull()) - eslDevicesObject.connectAp = valueEslDevicesEslDeviceInfo["ConnectAp"].asString(); - if(!valueEslDevicesEslDeviceInfo["Type"].isNull()) - eslDevicesObject.type = valueEslDevicesEslDeviceInfo["Type"].asString(); - if(!valueEslDevicesEslDeviceInfo["Model"].isNull()) - eslDevicesObject.model = valueEslDevicesEslDeviceInfo["Model"].asString(); - if(!valueEslDevicesEslDeviceInfo["BeBind"].isNull()) - eslDevicesObject.beBind = valueEslDevicesEslDeviceInfo["BeBind"].asString(); - if(!valueEslDevicesEslDeviceInfo["ScreenWidth"].isNull()) - eslDevicesObject.screenWidth = valueEslDevicesEslDeviceInfo["ScreenWidth"].asString(); - if(!valueEslDevicesEslDeviceInfo["ScreenHeight"].isNull()) - eslDevicesObject.screenHeight = valueEslDevicesEslDeviceInfo["ScreenHeight"].asString(); if(!valueEslDevicesEslDeviceInfo["LastCommunicateTime"].isNull()) eslDevicesObject.lastCommunicateTime = valueEslDevicesEslDeviceInfo["LastCommunicateTime"].asString(); - if(!valueEslDevicesEslDeviceInfo["BatteryLevel"].isNull()) - eslDevicesObject.batteryLevel = std::stoi(valueEslDevicesEslDeviceInfo["BatteryLevel"].asString()); + if(!valueEslDevicesEslDeviceInfo["Model"].isNull()) + eslDevicesObject.model = valueEslDevicesEslDeviceInfo["Model"].asString(); if(!valueEslDevicesEslDeviceInfo["EslStatus"].isNull()) eslDevicesObject.eslStatus = valueEslDevicesEslDeviceInfo["EslStatus"].asString(); - if(!valueEslDevicesEslDeviceInfo["ShelfCode"].isNull()) - eslDevicesObject.shelfCode = valueEslDevicesEslDeviceInfo["ShelfCode"].asString(); - if(!valueEslDevicesEslDeviceInfo["PositionCode"].isNull()) - eslDevicesObject.positionCode = valueEslDevicesEslDeviceInfo["PositionCode"].asString(); - if(!valueEslDevicesEslDeviceInfo["ItemId"].isNull()) - eslDevicesObject.itemId = std::stol(valueEslDevicesEslDeviceInfo["ItemId"].asString()); - if(!valueEslDevicesEslDeviceInfo["ItemTitle"].isNull()) - eslDevicesObject.itemTitle = valueEslDevicesEslDeviceInfo["ItemTitle"].asString(); - if(!valueEslDevicesEslDeviceInfo["ItemActionPrice"].isNull()) - eslDevicesObject.itemActionPrice = std::stoi(valueEslDevicesEslDeviceInfo["ItemActionPrice"].asString()); - if(!valueEslDevicesEslDeviceInfo["ItemPriceUnit"].isNull()) - eslDevicesObject.itemPriceUnit = valueEslDevicesEslDeviceInfo["ItemPriceUnit"].asString(); + if(!valueEslDevicesEslDeviceInfo["StoreId"].isNull()) + eslDevicesObject.storeId = valueEslDevicesEslDeviceInfo["StoreId"].asString(); + if(!valueEslDevicesEslDeviceInfo["EslBarCode"].isNull()) + eslDevicesObject.eslBarCode = valueEslDevicesEslDeviceInfo["EslBarCode"].asString(); + if(!valueEslDevicesEslDeviceInfo["Type"].isNull()) + eslDevicesObject.type = valueEslDevicesEslDeviceInfo["Type"].asString(); + if(!valueEslDevicesEslDeviceInfo["Mac"].isNull()) + eslDevicesObject.mac = valueEslDevicesEslDeviceInfo["Mac"].asString(); + if(!valueEslDevicesEslDeviceInfo["BatteryLevel"].isNull()) + eslDevicesObject.batteryLevel = std::stoi(valueEslDevicesEslDeviceInfo["BatteryLevel"].asString()); + if(!valueEslDevicesEslDeviceInfo["ScreenWidth"].isNull()) + eslDevicesObject.screenWidth = std::stoi(valueEslDevicesEslDeviceInfo["ScreenWidth"].asString()); + if(!valueEslDevicesEslDeviceInfo["ScreenHeight"].isNull()) + eslDevicesObject.screenHeight = std::stoi(valueEslDevicesEslDeviceInfo["ScreenHeight"].asString()); eslDevices_.push_back(eslDevicesObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -107,16 +93,16 @@ int DescribeEslDevicesResult::getTotalCount()const return totalCount_; } -std::string DescribeEslDevicesResult::getMessage()const -{ - return message_; -} - int DescribeEslDevicesResult::getPageSize()const { return pageSize_; } +std::string DescribeEslDevicesResult::getMessage()const +{ + return message_; +} + int DescribeEslDevicesResult::getPageNumber()const { return pageNumber_; @@ -127,11 +113,31 @@ std::vector DescribeEslDevicesResult::g return eslDevices_; } +std::string DescribeEslDevicesResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string DescribeEslDevicesResult::getErrorCode()const { return errorCode_; } +std::string DescribeEslDevicesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeEslDevicesResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribeEslDevicesResult::getCode()const +{ + return code_; +} + bool DescribeEslDevicesResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/DescribeItemsRequest.cc b/cloudesl/src/model/DescribeItemsRequest.cc index b87f16c21..57214f1d6 100644 --- a/cloudesl/src/model/DescribeItemsRequest.cc +++ b/cloudesl/src/model/DescribeItemsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::DescribeItemsRequest; DescribeItemsRequest::DescribeItemsRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DescribeItems") + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeItems") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ DescribeItemsRequest::DescribeItemsRequest() : DescribeItemsRequest::~DescribeItemsRequest() {} +std::string DescribeItemsRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeItemsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + std::string DescribeItemsRequest::getStoreId()const { return storeId_; @@ -35,7 +46,7 @@ std::string DescribeItemsRequest::getStoreId()const void DescribeItemsRequest::setStoreId(const std::string& storeId) { storeId_ = storeId; - setParameter("StoreId", storeId); + setBodyParameter("StoreId", storeId); } int DescribeItemsRequest::getPageNumber()const @@ -46,18 +57,18 @@ int DescribeItemsRequest::getPageNumber()const void DescribeItemsRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setBodyParameter("PageNumber", std::to_string(pageNumber)); } -long DescribeItemsRequest::getItemId()const +std::string DescribeItemsRequest::getItemId()const { return itemId_; } -void DescribeItemsRequest::setItemId(long itemId) +void DescribeItemsRequest::setItemId(const std::string& itemId) { itemId_ = itemId; - setParameter("ItemId", std::to_string(itemId)); + setBodyParameter("ItemId", itemId); } int DescribeItemsRequest::getPageSize()const @@ -68,7 +79,7 @@ int DescribeItemsRequest::getPageSize()const void DescribeItemsRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setBodyParameter("PageSize", std::to_string(pageSize)); } std::string DescribeItemsRequest::getItemBarCode()const @@ -79,7 +90,7 @@ std::string DescribeItemsRequest::getItemBarCode()const void DescribeItemsRequest::setItemBarCode(const std::string& itemBarCode) { itemBarCode_ = itemBarCode; - setParameter("ItemBarCode", itemBarCode); + setBodyParameter("ItemBarCode", itemBarCode); } bool DescribeItemsRequest::getBePromotion()const @@ -90,7 +101,7 @@ bool DescribeItemsRequest::getBePromotion()const void DescribeItemsRequest::setBePromotion(bool bePromotion) { bePromotion_ = bePromotion; - setParameter("BePromotion", bePromotion ? "true" : "false"); + setBodyParameter("BePromotion", bePromotion ? "true" : "false"); } std::string DescribeItemsRequest::getItemTitle()const @@ -101,18 +112,7 @@ std::string DescribeItemsRequest::getItemTitle()const void DescribeItemsRequest::setItemTitle(const std::string& itemTitle) { itemTitle_ = itemTitle; - setParameter("ItemTitle", itemTitle); -} - -std::string DescribeItemsRequest::getShelfCode()const -{ - return shelfCode_; -} - -void DescribeItemsRequest::setShelfCode(const std::string& shelfCode) -{ - shelfCode_ = shelfCode; - setParameter("ShelfCode", shelfCode); + setBodyParameter("ItemTitle", itemTitle); } std::string DescribeItemsRequest::getSkuId()const @@ -123,6 +123,6 @@ std::string DescribeItemsRequest::getSkuId()const void DescribeItemsRequest::setSkuId(const std::string& skuId) { skuId_ = skuId; - setParameter("SkuId", skuId); + setBodyParameter("SkuId", skuId); } diff --git a/cloudesl/src/model/DescribeItemsResult.cc b/cloudesl/src/model/DescribeItemsResult.cc index decbb687e..b26437c60 100644 --- a/cloudesl/src/model/DescribeItemsResult.cc +++ b/cloudesl/src/model/DescribeItemsResult.cc @@ -43,104 +43,136 @@ void DescribeItemsResult::parse(const std::string &payload) for (auto valueItemsItemInfo : allItemsNode) { ItemInfo itemsObject; - if(!valueItemsItemInfo["CompanyId"].isNull()) - itemsObject.companyId = valueItemsItemInfo["CompanyId"].asString(); - if(!valueItemsItemInfo["StoreId"].isNull()) - itemsObject.storeId = valueItemsItemInfo["StoreId"].asString(); - if(!valueItemsItemInfo["PriceUnit"].isNull()) - itemsObject.priceUnit = valueItemsItemInfo["PriceUnit"].asString(); - if(!valueItemsItemInfo["ActionPrice"].isNull()) - itemsObject.actionPrice = std::stoi(valueItemsItemInfo["ActionPrice"].asString()); - if(!valueItemsItemInfo["ItemBarCode"].isNull()) - itemsObject.itemBarCode = valueItemsItemInfo["ItemBarCode"].asString(); - if(!valueItemsItemInfo["ItemTitle"].isNull()) - itemsObject.itemTitle = valueItemsItemInfo["ItemTitle"].asString(); - if(!valueItemsItemInfo["ItemId"].isNull()) - itemsObject.itemId = std::stol(valueItemsItemInfo["ItemId"].asString()); - if(!valueItemsItemInfo["ModelNumber"].isNull()) - itemsObject.modelNumber = valueItemsItemInfo["ModelNumber"].asString(); - if(!valueItemsItemInfo["BrandName"].isNull()) - itemsObject.brandName = valueItemsItemInfo["BrandName"].asString(); - if(!valueItemsItemInfo["SaleSpec"].isNull()) - itemsObject.saleSpec = valueItemsItemInfo["SaleSpec"].asString(); if(!valueItemsItemInfo["CategoryName"].isNull()) itemsObject.categoryName = valueItemsItemInfo["CategoryName"].asString(); - if(!valueItemsItemInfo["Rank"].isNull()) - itemsObject.rank = valueItemsItemInfo["Rank"].asString(); if(!valueItemsItemInfo["EnergyEfficiency"].isNull()) itemsObject.energyEfficiency = valueItemsItemInfo["EnergyEfficiency"].asString(); - if(!valueItemsItemInfo["SkuId"].isNull()) - itemsObject.skuId = valueItemsItemInfo["SkuId"].asString(); - if(!valueItemsItemInfo["PromotionStart"].isNull()) - itemsObject.promotionStart = valueItemsItemInfo["PromotionStart"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureO"].isNull()) + itemsObject.customizeFeatureO = valueItemsItemInfo["CustomizeFeatureO"].asString(); + if(!valueItemsItemInfo["Manufacturer"].isNull()) + itemsObject.manufacturer = valueItemsItemInfo["Manufacturer"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureM"].isNull()) + itemsObject.customizeFeatureM = valueItemsItemInfo["CustomizeFeatureM"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureN"].isNull()) + itemsObject.customizeFeatureN = valueItemsItemInfo["CustomizeFeatureN"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureK"].isNull()) + itemsObject.customizeFeatureK = valueItemsItemInfo["CustomizeFeatureK"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureL"].isNull()) + itemsObject.customizeFeatureL = valueItemsItemInfo["CustomizeFeatureL"].asString(); if(!valueItemsItemInfo["PromotionEnd"].isNull()) itemsObject.promotionEnd = valueItemsItemInfo["PromotionEnd"].asString(); - if(!valueItemsItemInfo["PromotionText"].isNull()) - itemsObject.promotionText = valueItemsItemInfo["PromotionText"].asString(); - if(!valueItemsItemInfo["PromotionReason"].isNull()) - itemsObject.promotionReason = valueItemsItemInfo["PromotionReason"].asString(); - if(!valueItemsItemInfo["BePromotion"].isNull()) - itemsObject.bePromotion = valueItemsItemInfo["BePromotion"].asString() == "true"; - if(!valueItemsItemInfo["ItemQrCode"].isNull()) - itemsObject.itemQrCode = valueItemsItemInfo["ItemQrCode"].asString(); if(!valueItemsItemInfo["OriginalPrice"].isNull()) itemsObject.originalPrice = std::stoi(valueItemsItemInfo["OriginalPrice"].asString()); - if(!valueItemsItemInfo["MemberPrice"].isNull()) - itemsObject.memberPrice = std::stoi(valueItemsItemInfo["MemberPrice"].asString()); - if(!valueItemsItemInfo["SuggestPrice"].isNull()) - itemsObject.suggestPrice = std::stoi(valueItemsItemInfo["SuggestPrice"].asString()); - if(!valueItemsItemInfo["ItemShortTitle"].isNull()) - itemsObject.itemShortTitle = valueItemsItemInfo["ItemShortTitle"].asString(); - if(!valueItemsItemInfo["OptionGroups"].isNull()) - itemsObject.optionGroups = valueItemsItemInfo["OptionGroups"].asString(); - if(!valueItemsItemInfo["ProductionPlace"].isNull()) - itemsObject.productionPlace = valueItemsItemInfo["ProductionPlace"].asString(); - if(!valueItemsItemInfo["PositionCode"].isNull()) - itemsObject.positionCode = valueItemsItemInfo["PositionCode"].asString(); - if(!valueItemsItemInfo["ExtraAttribute"].isNull()) - itemsObject.extraAttribute = valueItemsItemInfo["ExtraAttribute"].asString(); - if(!valueItemsItemInfo["BeSourceCode"].isNull()) - itemsObject.beSourceCode = valueItemsItemInfo["BeSourceCode"].asString() == "true"; - if(!valueItemsItemInfo["SourceCode"].isNull()) - itemsObject.sourceCode = valueItemsItemInfo["SourceCode"].asString(); - if(!valueItemsItemInfo["ForestFirstId"].isNull()) - itemsObject.forestFirstId = valueItemsItemInfo["ForestFirstId"].asString(); - if(!valueItemsItemInfo["ForestSecondId"].isNull()) - itemsObject.forestSecondId = valueItemsItemInfo["ForestSecondId"].asString(); - if(!valueItemsItemInfo["CustomizeFeatureA"].isNull()) - itemsObject.customizeFeatureA = valueItemsItemInfo["CustomizeFeatureA"].asString(); - if(!valueItemsItemInfo["CustomizeFeatureB"].isNull()) - itemsObject.customizeFeatureB = valueItemsItemInfo["CustomizeFeatureB"].asString(); - if(!valueItemsItemInfo["CustomizeFeatureC"].isNull()) - itemsObject.customizeFeatureC = valueItemsItemInfo["CustomizeFeatureC"].asString(); - if(!valueItemsItemInfo["CustomizeFeatureD"].isNull()) - itemsObject.customizeFeatureD = valueItemsItemInfo["CustomizeFeatureD"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureI"].isNull()) + itemsObject.customizeFeatureI = valueItemsItemInfo["CustomizeFeatureI"].asString(); + if(!valueItemsItemInfo["ItemTitle"].isNull()) + itemsObject.itemTitle = valueItemsItemInfo["ItemTitle"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureJ"].isNull()) + itemsObject.customizeFeatureJ = valueItemsItemInfo["CustomizeFeatureJ"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureG"].isNull()) + itemsObject.customizeFeatureG = valueItemsItemInfo["CustomizeFeatureG"].asString(); + if(!valueItemsItemInfo["SaleSpec"].isNull()) + itemsObject.saleSpec = valueItemsItemInfo["SaleSpec"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureH"].isNull()) + itemsObject.customizeFeatureH = valueItemsItemInfo["CustomizeFeatureH"].asString(); if(!valueItemsItemInfo["CustomizeFeatureE"].isNull()) itemsObject.customizeFeatureE = valueItemsItemInfo["CustomizeFeatureE"].asString(); if(!valueItemsItemInfo["CustomizeFeatureF"].isNull()) itemsObject.customizeFeatureF = valueItemsItemInfo["CustomizeFeatureF"].asString(); - if(!valueItemsItemInfo["CustomizeFeatureG"].isNull()) - itemsObject.customizeFeatureG = valueItemsItemInfo["CustomizeFeatureG"].asString(); - if(!valueItemsItemInfo["CustomizeFeatureH"].isNull()) - itemsObject.customizeFeatureH = valueItemsItemInfo["CustomizeFeatureH"].asString(); - if(!valueItemsItemInfo["CustomizeFeatureI"].isNull()) - itemsObject.customizeFeatureI = valueItemsItemInfo["CustomizeFeatureI"].asString(); - if(!valueItemsItemInfo["CustomizeFeatureJ"].isNull()) - itemsObject.customizeFeatureJ = valueItemsItemInfo["CustomizeFeatureJ"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureC"].isNull()) + itemsObject.customizeFeatureC = valueItemsItemInfo["CustomizeFeatureC"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureD"].isNull()) + itemsObject.customizeFeatureD = valueItemsItemInfo["CustomizeFeatureD"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureA"].isNull()) + itemsObject.customizeFeatureA = valueItemsItemInfo["CustomizeFeatureA"].asString(); + if(!valueItemsItemInfo["CustomizeFeatureB"].isNull()) + itemsObject.customizeFeatureB = valueItemsItemInfo["CustomizeFeatureB"].asString(); + if(!valueItemsItemInfo["TaxFee"].isNull()) + itemsObject.taxFee = valueItemsItemInfo["TaxFee"].asString(); + if(!valueItemsItemInfo["PromotionText"].isNull()) + itemsObject.promotionText = valueItemsItemInfo["PromotionText"].asString(); + if(!valueItemsItemInfo["MemberPrice"].isNull()) + itemsObject.memberPrice = std::stoi(valueItemsItemInfo["MemberPrice"].asString()); + if(!valueItemsItemInfo["SupplierName"].isNull()) + itemsObject.supplierName = valueItemsItemInfo["SupplierName"].asString(); + if(!valueItemsItemInfo["ForestFirstId"].isNull()) + itemsObject.forestFirstId = valueItemsItemInfo["ForestFirstId"].asString(); + if(!valueItemsItemInfo["ModelNumber"].isNull()) + itemsObject.modelNumber = valueItemsItemInfo["ModelNumber"].asString(); + if(!valueItemsItemInfo["ItemShortTitle"].isNull()) + itemsObject.itemShortTitle = valueItemsItemInfo["ItemShortTitle"].asString(); + if(!valueItemsItemInfo["Material"].isNull()) + itemsObject.material = valueItemsItemInfo["Material"].asString(); + if(!valueItemsItemInfo["BePromotion"].isNull()) + itemsObject.bePromotion = valueItemsItemInfo["BePromotion"].asString() == "true"; + if(!valueItemsItemInfo["ForestSecondId"].isNull()) + itemsObject.forestSecondId = valueItemsItemInfo["ForestSecondId"].asString(); + if(!valueItemsItemInfo["BeSourceCode"].isNull()) + itemsObject.beSourceCode = valueItemsItemInfo["BeSourceCode"].asString() == "true"; + if(!valueItemsItemInfo["SalesPrice"].isNull()) + itemsObject.salesPrice = std::stoi(valueItemsItemInfo["SalesPrice"].asString()); + if(!valueItemsItemInfo["ItemPicUrl"].isNull()) + itemsObject.itemPicUrl = valueItemsItemInfo["ItemPicUrl"].asString(); + if(!valueItemsItemInfo["SkuId"].isNull()) + itemsObject.skuId = valueItemsItemInfo["SkuId"].asString(); + if(!valueItemsItemInfo["SuggestPrice"].isNull()) + itemsObject.suggestPrice = std::stoi(valueItemsItemInfo["SuggestPrice"].asString()); + if(!valueItemsItemInfo["Rank"].isNull()) + itemsObject.rank = valueItemsItemInfo["Rank"].asString(); + if(!valueItemsItemInfo["SourceCode"].isNull()) + itemsObject.sourceCode = valueItemsItemInfo["SourceCode"].asString(); + if(!valueItemsItemInfo["ProductionPlace"].isNull()) + itemsObject.productionPlace = valueItemsItemInfo["ProductionPlace"].asString(); + if(!valueItemsItemInfo["ItemInfoIndex"].isNull()) + itemsObject.itemInfoIndex = std::stoi(valueItemsItemInfo["ItemInfoIndex"].asString()); + if(!valueItemsItemInfo["InventoryStatus"].isNull()) + itemsObject.inventoryStatus = valueItemsItemInfo["InventoryStatus"].asString(); + if(!valueItemsItemInfo["PriceUnit"].isNull()) + itemsObject.priceUnit = valueItemsItemInfo["PriceUnit"].asString(); + if(!valueItemsItemInfo["ActionPrice"].isNull()) + itemsObject.actionPrice = std::stoi(valueItemsItemInfo["ActionPrice"].asString()); + if(!valueItemsItemInfo["BrandName"].isNull()) + itemsObject.brandName = valueItemsItemInfo["BrandName"].asString(); + if(!valueItemsItemInfo["ItemQrCode"].isNull()) + itemsObject.itemQrCode = valueItemsItemInfo["ItemQrCode"].asString(); + if(!valueItemsItemInfo["PromotionReason"].isNull()) + itemsObject.promotionReason = valueItemsItemInfo["PromotionReason"].asString(); + if(!valueItemsItemInfo["ItemBarCode"].isNull()) + itemsObject.itemBarCode = valueItemsItemInfo["ItemBarCode"].asString(); + if(!valueItemsItemInfo["ItemId"].isNull()) + itemsObject.itemId = valueItemsItemInfo["ItemId"].asString(); + if(!valueItemsItemInfo["PromotionStart"].isNull()) + itemsObject.promotionStart = valueItemsItemInfo["PromotionStart"].asString(); + if(!valueItemsItemInfo["GmtCreate"].isNull()) + itemsObject.gmtCreate = valueItemsItemInfo["GmtCreate"].asString(); + if(!valueItemsItemInfo["GmtModified"].isNull()) + itemsObject.gmtModified = valueItemsItemInfo["GmtModified"].asString(); + if(!valueItemsItemInfo["BeMember"].isNull()) + itemsObject.beMember = valueItemsItemInfo["BeMember"].asString() == "true"; items_.push_back(itemsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TemplateSceneId"].isNull()) + templateSceneId_ = value["TemplateSceneId"].asString(); } @@ -169,11 +201,36 @@ std::vector DescribeItemsResult::getItems()const return items_; } +std::string DescribeItemsResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string DescribeItemsResult::getErrorCode()const { return errorCode_; } +std::string DescribeItemsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeItemsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribeItemsResult::getTemplateSceneId()const +{ + return templateSceneId_; +} + +std::string DescribeItemsResult::getCode()const +{ + return code_; +} + bool DescribeItemsResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/DescribePlanogramEslDevicesRequest.cc b/cloudesl/src/model/DescribePlanogramEslDevicesRequest.cc new file mode 100644 index 000000000..d609e3d2e --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramEslDevicesRequest.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::DescribePlanogramEslDevicesRequest; + +DescribePlanogramEslDevicesRequest::DescribePlanogramEslDevicesRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramEslDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePlanogramEslDevicesRequest::~DescribePlanogramEslDevicesRequest() +{} + +std::string DescribePlanogramEslDevicesRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribePlanogramEslDevicesRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribePlanogramEslDevicesRequest::getStoreId()const +{ + return storeId_; +} + +void DescribePlanogramEslDevicesRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribePlanogramEslDevicesRequest::getLayer()const +{ + return layer_; +} + +void DescribePlanogramEslDevicesRequest::setLayer(int layer) +{ + layer_ = layer; + setBodyParameter("Layer", std::to_string(layer)); +} + +std::string DescribePlanogramEslDevicesRequest::getEslBarCode()const +{ + return eslBarCode_; +} + +void DescribePlanogramEslDevicesRequest::setEslBarCode(const std::string& eslBarCode) +{ + eslBarCode_ = eslBarCode; + setBodyParameter("EslBarCode", eslBarCode); +} + +std::string DescribePlanogramEslDevicesRequest::getShelf()const +{ + return shelf_; +} + +void DescribePlanogramEslDevicesRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + diff --git a/cloudesl/src/model/DescribePlanogramEslDevicesResult.cc b/cloudesl/src/model/DescribePlanogramEslDevicesResult.cc new file mode 100644 index 000000000..1f12f9f7d --- /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 = valueEslDeviceLayerInfosEslDeviceLayerInfo["EslDevicePositionInfos"]["EslDevicePositionInfo"]; + for (auto valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfo : allEslDevicePositionInfosNode) + { + EslDeviceLayerInfo::EslDevicePositionInfo eslDevicePositionInfosObject; + if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfo["Column"].isNull()) + eslDevicePositionInfosObject.column = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfo["Column"].asString(); + auto allEslDevicePlanogramInfosNode = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfo["EslDevicePlanogramInfos"]["EslDevicePlanogramInfo"]; + for (auto valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo : allEslDevicePlanogramInfosNode) + { + EslDeviceLayerInfo::EslDevicePositionInfo::EslDevicePlanogramInfo eslDevicePlanogramInfosObject; + if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["EslBarCode"].isNull()) + eslDevicePlanogramInfosObject.eslBarCode = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["EslBarCode"].asString(); + if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["EslModel"].isNull()) + eslDevicePlanogramInfosObject.eslModel = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["EslModel"].asString(); + if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemBarCode"].isNull()) + eslDevicePlanogramInfosObject.itemBarCode = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemBarCode"].asString(); + if(!valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemTitle"].isNull()) + eslDevicePlanogramInfosObject.itemTitle = valueEslDeviceLayerInfosEslDeviceLayerInfoEslDevicePositionInfosEslDevicePositionInfoEslDevicePlanogramInfosEslDevicePlanogramInfo["ItemTitle"].asString(); + eslDevicePositionInfosObject.eslDevicePlanogramInfos.push_back(eslDevicePlanogramInfosObject); + } + eslDeviceLayerInfosObject.eslDevicePositionInfos.push_back(eslDevicePositionInfosObject); + } + eslDeviceLayerInfos_.push_back(eslDeviceLayerInfosObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Shelf"].isNull()) + shelf_ = value["Shelf"].asString(); + if(!value["StoreId"].isNull()) + storeId_ = value["StoreId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribePlanogramEslDevicesResult::getMessage()const +{ + return message_; +} + +std::string DescribePlanogramEslDevicesResult::getStoreId()const +{ + return storeId_; +} + +std::string DescribePlanogramEslDevicesResult::getShelf()const +{ + return shelf_; +} + +std::string DescribePlanogramEslDevicesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DescribePlanogramEslDevicesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribePlanogramEslDevicesResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector DescribePlanogramEslDevicesResult::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..a5db1f8b0 --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramPositionsRequest.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::DescribePlanogramPositionsRequest; + +DescribePlanogramPositionsRequest::DescribePlanogramPositionsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramPositions") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePlanogramPositionsRequest::~DescribePlanogramPositionsRequest() +{} + +std::string DescribePlanogramPositionsRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribePlanogramPositionsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribePlanogramPositionsRequest::getStoreId()const +{ + return storeId_; +} + +void DescribePlanogramPositionsRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribePlanogramPositionsRequest::getLayer()const +{ + return layer_; +} + +void DescribePlanogramPositionsRequest::setLayer(int layer) +{ + layer_ = layer; + setBodyParameter("Layer", std::to_string(layer)); +} + +std::string DescribePlanogramPositionsRequest::getShelf()const +{ + return shelf_; +} + +void DescribePlanogramPositionsRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + diff --git a/cloudesl/src/model/DescribePlanogramPositionsResult.cc b/cloudesl/src/model/DescribePlanogramPositionsResult.cc new file mode 100644 index 000000000..a02b55428 --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramPositionsResult.cc @@ -0,0 +1,151 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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(); + if(!valueLayerInfosLayerInfo["RailCode"].isNull()) + layerInfosObject.railCode = valueLayerInfosLayerInfo["RailCode"].asString(); + auto allShelfPositionInfosNode = valueLayerInfosLayerInfo["ShelfPositionInfos"]["ShelfPositionInfo"]; + for (auto valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo : allShelfPositionInfosNode) + { + LayerInfo::ShelfPositionInfo shelfPositionInfosObject; + if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Column"].isNull()) + shelfPositionInfosObject.column = valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Column"].asString(); + if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Depth"].isNull()) + shelfPositionInfosObject.depth = std::stof(valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Depth"].asString()); + if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Facing"].isNull()) + shelfPositionInfosObject.facing = std::stoi(valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["Facing"].asString()); + if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["ItemBarCode"].isNull()) + shelfPositionInfosObject.itemBarCode = valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["ItemBarCode"].asString(); + if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["ItemTitle"].isNull()) + shelfPositionInfosObject.itemTitle = valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["ItemTitle"].asString(); + if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["OffsetFrom"].isNull()) + shelfPositionInfosObject.offsetFrom = std::stof(valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["OffsetFrom"].asString()); + if(!valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["OffsetTo"].isNull()) + shelfPositionInfosObject.offsetTo = std::stof(valueLayerInfosLayerInfoShelfPositionInfosShelfPositionInfo["OffsetTo"].asString()); + layerInfosObject.shelfPositionInfos.push_back(shelfPositionInfosObject); + } + layerInfos_.push_back(layerInfosObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Shelf"].isNull()) + shelf_ = value["Shelf"].asString(); + if(!value["StoreId"].isNull()) + storeId_ = value["StoreId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ShelfType"].isNull()) + shelfType_ = value["ShelfType"].asString(); + +} + +std::string DescribePlanogramPositionsResult::getMessage()const +{ + return message_; +} + +std::string DescribePlanogramPositionsResult::getStoreId()const +{ + return storeId_; +} + +std::string DescribePlanogramPositionsResult::getShelfType()const +{ + return shelfType_; +} + +std::string DescribePlanogramPositionsResult::getShelf()const +{ + return shelf_; +} + +std::string DescribePlanogramPositionsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::vector DescribePlanogramPositionsResult::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..23e46d0ce --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramRailsRequest.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::DescribePlanogramRailsRequest; + +DescribePlanogramRailsRequest::DescribePlanogramRailsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramRails") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePlanogramRailsRequest::~DescribePlanogramRailsRequest() +{} + +std::string DescribePlanogramRailsRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribePlanogramRailsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribePlanogramRailsRequest::getStoreId()const +{ + return storeId_; +} + +void DescribePlanogramRailsRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribePlanogramRailsRequest::getLayer()const +{ + return layer_; +} + +void DescribePlanogramRailsRequest::setLayer(int layer) +{ + layer_ = layer; + setBodyParameter("Layer", std::to_string(layer)); +} + +int DescribePlanogramRailsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribePlanogramRailsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribePlanogramRailsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePlanogramRailsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribePlanogramRailsRequest::getShelf()const +{ + return shelf_; +} + +void DescribePlanogramRailsRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); +} + +std::string DescribePlanogramRailsRequest::getRailCode()const +{ + return railCode_; +} + +void DescribePlanogramRailsRequest::setRailCode(const std::string& railCode) +{ + railCode_ = railCode; + setBodyParameter("RailCode", railCode); +} + 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..671adccf8 --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramShelvesRequest.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::DescribePlanogramShelvesRequest; + +DescribePlanogramShelvesRequest::DescribePlanogramShelvesRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribePlanogramShelves") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePlanogramShelvesRequest::~DescribePlanogramShelvesRequest() +{} + +std::string DescribePlanogramShelvesRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribePlanogramShelvesRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribePlanogramShelvesRequest::getStoreId()const +{ + return storeId_; +} + +void DescribePlanogramShelvesRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +int DescribePlanogramShelvesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribePlanogramShelvesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribePlanogramShelvesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePlanogramShelvesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/cloudesl/src/model/DescribePlanogramShelvesResult.cc b/cloudesl/src/model/DescribePlanogramShelvesResult.cc new file mode 100644 index 000000000..9148647aa --- /dev/null +++ b/cloudesl/src/model/DescribePlanogramShelvesResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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(); + if(!valueShelfInfosShelfInfo["BeMatch"].isNull()) + shelfInfosObject.beMatch = valueShelfInfosShelfInfo["BeMatch"].asString() == "true"; + if(!valueShelfInfosShelfInfo["Zone"].isNull()) + shelfInfosObject.zone = valueShelfInfosShelfInfo["Zone"].asString(); + if(!valueShelfInfosShelfInfo["Category"].isNull()) + shelfInfosObject.category = valueShelfInfosShelfInfo["Category"].asString(); + if(!valueShelfInfosShelfInfo["ShelfType"].isNull()) + shelfInfosObject.shelfType = valueShelfInfosShelfInfo["ShelfType"].asString(); + auto allLayerInfosNode = valueShelfInfosShelfInfo["LayerInfos"]["LayerInfo"]; + for (auto valueShelfInfosShelfInfoLayerInfosLayerInfo : allLayerInfosNode) + { + ShelfInfo::LayerInfo layerInfosObject; + if(!valueShelfInfosShelfInfoLayerInfosLayerInfo["Layer"].isNull()) + layerInfosObject.layer = std::stoi(valueShelfInfosShelfInfoLayerInfosLayerInfo["Layer"].asString()); + shelfInfosObject.layerInfos.push_back(layerInfosObject); + } + shelfInfos_.push_back(shelfInfosObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["StoreId"].isNull()) + storeId_ = value["StoreId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribePlanogramShelvesResult::getShelfInfos()const +{ + return shelfInfos_; +} + +int DescribePlanogramShelvesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribePlanogramShelvesResult::getMessage()const +{ + return message_; +} + +std::string DescribePlanogramShelvesResult::getStoreId()const +{ + return storeId_; +} + +int DescribePlanogramShelvesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribePlanogramShelvesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribePlanogramShelvesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DescribePlanogramShelvesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribePlanogramShelvesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribePlanogramShelvesResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribePlanogramShelvesResult::getCode()const +{ + return code_; +} + +bool DescribePlanogramShelvesResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/DescribeRoleActionsRequest.cc b/cloudesl/src/model/DescribeRoleActionsRequest.cc new file mode 100644 index 000000000..dbbe168e1 --- /dev/null +++ b/cloudesl/src/model/DescribeRoleActionsRequest.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::DescribeRoleActionsRequest; + +DescribeRoleActionsRequest::DescribeRoleActionsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeRoleActions") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRoleActionsRequest::~DescribeRoleActionsRequest() +{} + +std::string DescribeRoleActionsRequest::getRoleCode()const +{ + return roleCode_; +} + +void DescribeRoleActionsRequest::setRoleCode(const std::string& roleCode) +{ + roleCode_ = roleCode; + setBodyParameter("RoleCode", roleCode); +} + +std::string DescribeRoleActionsRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeRoleActionsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + diff --git a/cloudesl/src/model/DescribeRoleActionsResult.cc b/cloudesl/src/model/DescribeRoleActionsResult.cc new file mode 100644 index 000000000..92df3f1af --- /dev/null +++ b/cloudesl/src/model/DescribeRoleActionsResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DescribeRoleActionsResult::DescribeRoleActionsResult() : + ServiceResult() +{} + +DescribeRoleActionsResult::DescribeRoleActionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRoleActionsResult::~DescribeRoleActionsResult() +{} + +void DescribeRoleActionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRoleAclInfosNode = value["RoleAclInfos"]["RoleAclInfo"]; + for (auto valueRoleAclInfosRoleAclInfo : allRoleAclInfosNode) + { + RoleAclInfo roleAclInfosObject; + if(!valueRoleAclInfosRoleAclInfo["RoleCode"].isNull()) + roleAclInfosObject.roleCode = valueRoleAclInfosRoleAclInfo["RoleCode"].asString(); + if(!valueRoleAclInfosRoleAclInfo["Name"].isNull()) + roleAclInfosObject.name = valueRoleAclInfosRoleAclInfo["Name"].asString(); + auto allAccessControlListsNode = valueRoleAclInfosRoleAclInfo["AccessControlLists"]["RoleActionInfo"]; + for (auto valueRoleAclInfosRoleAclInfoAccessControlListsRoleActionInfo : allAccessControlListsNode) + { + RoleAclInfo::RoleActionInfo accessControlListsObject; + if(!valueRoleAclInfosRoleAclInfoAccessControlListsRoleActionInfo["Code"].isNull()) + accessControlListsObject.code = valueRoleAclInfosRoleAclInfoAccessControlListsRoleActionInfo["Code"].asString(); + roleAclInfosObject.accessControlLists.push_back(accessControlListsObject); + } + roleAclInfos_.push_back(roleAclInfosObject); + } + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeRoleActionsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeRoleActionsResult::getRoleAclInfos()const +{ + return roleAclInfos_; +} + +std::string DescribeRoleActionsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DescribeRoleActionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeRoleActionsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeRoleActionsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribeRoleActionsResult::getCode()const +{ + return code_; +} + +bool DescribeRoleActionsResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/DescribeStoreConfigRequest.cc b/cloudesl/src/model/DescribeStoreConfigRequest.cc new file mode 100644 index 000000000..4cf26cd75 --- /dev/null +++ b/cloudesl/src/model/DescribeStoreConfigRequest.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::DescribeStoreConfigRequest; + +DescribeStoreConfigRequest::DescribeStoreConfigRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStoreConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeStoreConfigRequest::~DescribeStoreConfigRequest() +{} + +std::string DescribeStoreConfigRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeStoreConfigRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribeStoreConfigRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeStoreConfigRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + 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/DescribeStoreStatisticsRequest.cc b/cloudesl/src/model/DescribeStoreStatisticsRequest.cc new file mode 100644 index 000000000..7b9945a1f --- /dev/null +++ b/cloudesl/src/model/DescribeStoreStatisticsRequest.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::DescribeStoreStatisticsRequest; + +DescribeStoreStatisticsRequest::DescribeStoreStatisticsRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStoreStatistics") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeStoreStatisticsRequest::~DescribeStoreStatisticsRequest() +{} + +std::string DescribeStoreStatisticsRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeStoreStatisticsRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribeStoreStatisticsRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeStoreStatisticsRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string DescribeStoreStatisticsRequest::getFromDate()const +{ + return fromDate_; +} + +void DescribeStoreStatisticsRequest::setFromDate(const std::string& fromDate) +{ + fromDate_ = fromDate; + setBodyParameter("FromDate", fromDate); +} + +std::string DescribeStoreStatisticsRequest::getToDate()const +{ + return toDate_; +} + +void DescribeStoreStatisticsRequest::setToDate(const std::string& toDate) +{ + toDate_ = toDate; + setBodyParameter("ToDate", toDate); +} + diff --git a/cloudesl/src/model/DescribeStoreStatisticsResult.cc b/cloudesl/src/model/DescribeStoreStatisticsResult.cc new file mode 100644 index 000000000..7d34ee945 --- /dev/null +++ b/cloudesl/src/model/DescribeStoreStatisticsResult.cc @@ -0,0 +1,130 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cloudesl; +using namespace AlibabaCloud::Cloudesl::Model; + +DescribeStoreStatisticsResult::DescribeStoreStatisticsResult() : + ServiceResult() +{} + +DescribeStoreStatisticsResult::DescribeStoreStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStoreStatisticsResult::~DescribeStoreStatisticsResult() +{} + +void DescribeStoreStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStoreStatisticsInfoListNode = value["StoreStatisticsInfoList"]["StoreStatisticsInfo"]; + for (auto valueStoreStatisticsInfoListStoreStatisticsInfo : allStoreStatisticsInfoListNode) + { + StoreStatisticsInfo storeStatisticsInfoListObject; + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["SendFailEsl"].isNull()) + storeStatisticsInfoListObject.sendFailEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["SendFailEsl"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["DisplayFailEsl"].isNull()) + storeStatisticsInfoListObject.displayFailEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["DisplayFailEsl"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["StoreName"].isNull()) + storeStatisticsInfoListObject.storeName = valueStoreStatisticsInfoListStoreStatisticsInfo["StoreName"].asString(); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["ActiveApDevice"].isNull()) + storeStatisticsInfoListObject.activeApDevice = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["ActiveApDevice"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["UpdateFailureEsl"].isNull()) + storeStatisticsInfoListObject.updateFailureEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["UpdateFailureEsl"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["UpdateEsl"].isNull()) + storeStatisticsInfoListObject.updateEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["UpdateEsl"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["OfflineEslDevice"].isNull()) + storeStatisticsInfoListObject.offlineEslDevice = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["OfflineEslDevice"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["StatisticsTime"].isNull()) + storeStatisticsInfoListObject.statisticsTime = valueStoreStatisticsInfoListStoreStatisticsInfo["StatisticsTime"].asString(); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["StoreId"].isNull()) + storeStatisticsInfoListObject.storeId = valueStoreStatisticsInfoListStoreStatisticsInfo["StoreId"].asString(); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["BindEsl"].isNull()) + storeStatisticsInfoListObject.bindEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["BindEsl"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["AbnormalEsl"].isNull()) + storeStatisticsInfoListObject.abnormalEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["AbnormalEsl"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["LowBatteryEsl"].isNull()) + storeStatisticsInfoListObject.lowBatteryEsl = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["LowBatteryEsl"].asString()); + if(!valueStoreStatisticsInfoListStoreStatisticsInfo["BindItem"].isNull()) + storeStatisticsInfoListObject.bindItem = std::stoi(valueStoreStatisticsInfoListStoreStatisticsInfo["BindItem"].asString()); + storeStatisticsInfoList_.push_back(storeStatisticsInfoListObject); + } + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeStoreStatisticsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeStoreStatisticsResult::getStoreStatisticsInfoList()const +{ + return storeStatisticsInfoList_; +} + +std::string DescribeStoreStatisticsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DescribeStoreStatisticsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DescribeStoreStatisticsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeStoreStatisticsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribeStoreStatisticsResult::getCode()const +{ + return code_; +} + +bool DescribeStoreStatisticsResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/DescribeStoresRequest.cc b/cloudesl/src/model/DescribeStoresRequest.cc index 587bda93e..add9f736d 100644 --- a/cloudesl/src/model/DescribeStoresRequest.cc +++ b/cloudesl/src/model/DescribeStoresRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::DescribeStoresRequest; DescribeStoresRequest::DescribeStoresRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DescribeStores") + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStores") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ DescribeStoresRequest::DescribeStoresRequest() : DescribeStoresRequest::~DescribeStoresRequest() {} +std::string DescribeStoresRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeStoresRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + std::string DescribeStoresRequest::getStoreName()const { return storeName_; @@ -35,7 +46,7 @@ std::string DescribeStoresRequest::getStoreName()const void DescribeStoresRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); + setBodyParameter("StoreName", storeName); } std::string DescribeStoresRequest::getStoreId()const @@ -46,7 +57,7 @@ std::string DescribeStoresRequest::getStoreId()const void DescribeStoresRequest::setStoreId(const std::string& storeId) { storeId_ = storeId; - setParameter("StoreId", storeId); + setBodyParameter("StoreId", storeId); } int DescribeStoresRequest::getPageNumber()const @@ -57,7 +68,7 @@ int DescribeStoresRequest::getPageNumber()const void DescribeStoresRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); + setBodyParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeStoresRequest::getFromDate()const @@ -68,7 +79,18 @@ std::string DescribeStoresRequest::getFromDate()const void DescribeStoresRequest::setFromDate(const std::string& fromDate) { fromDate_ = fromDate; - setParameter("FromDate", fromDate); + setBodyParameter("FromDate", fromDate); +} + +std::string DescribeStoresRequest::getTemplateVersion()const +{ + return templateVersion_; +} + +void DescribeStoresRequest::setTemplateVersion(const std::string& templateVersion) +{ + templateVersion_ = templateVersion; + setBodyParameter("TemplateVersion", templateVersion); } std::string DescribeStoresRequest::getToDate()const @@ -79,7 +101,7 @@ std::string DescribeStoresRequest::getToDate()const void DescribeStoresRequest::setToDate(const std::string& toDate) { toDate_ = toDate; - setParameter("ToDate", toDate); + setBodyParameter("ToDate", toDate); } int DescribeStoresRequest::getPageSize()const @@ -90,28 +112,17 @@ int DescribeStoresRequest::getPageSize()const void DescribeStoresRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); + setBodyParameter("PageSize", std::to_string(pageSize)); } -std::string DescribeStoresRequest::getBrand()const +std::string DescribeStoresRequest::getUserStoreCode()const { - return brand_; + return userStoreCode_; } -void DescribeStoresRequest::setBrand(const std::string& brand) +void DescribeStoresRequest::setUserStoreCode(const std::string& userStoreCode) { - brand_ = brand; - setParameter("Brand", brand); -} - -std::string DescribeStoresRequest::getGroups()const -{ - return groups_; -} - -void DescribeStoresRequest::setGroups(const std::string& groups) -{ - groups_ = groups; - setParameter("Groups", groups); + userStoreCode_ = userStoreCode; + setBodyParameter("UserStoreCode", userStoreCode); } diff --git a/cloudesl/src/model/DescribeStoresResult.cc b/cloudesl/src/model/DescribeStoresResult.cc index 41e0c7b6a..dcc231757 100644 --- a/cloudesl/src/model/DescribeStoresResult.cc +++ b/cloudesl/src/model/DescribeStoresResult.cc @@ -43,44 +43,46 @@ void DescribeStoresResult::parse(const std::string &payload) for (auto valueStoresStoreInfo : allStoresNode) { StoreInfo storesObject; - if(!valueStoresStoreInfo["CompanyId"].isNull()) - storesObject.companyId = valueStoresStoreInfo["CompanyId"].asString(); - if(!valueStoresStoreInfo["StoreId"].isNull()) - storesObject.storeId = valueStoresStoreInfo["StoreId"].asString(); if(!valueStoresStoreInfo["StoreName"].isNull()) storesObject.storeName = valueStoresStoreInfo["StoreName"].asString(); - if(!valueStoresStoreInfo["Brand"].isNull()) - storesObject.brand = valueStoresStoreInfo["Brand"].asString(); - if(!valueStoresStoreInfo["OutId"].isNull()) - storesObject.outId = valueStoresStoreInfo["OutId"].asString(); + if(!valueStoresStoreInfo["StoreId"].isNull()) + storesObject.storeId = valueStoresStoreInfo["StoreId"].asString(); + if(!valueStoresStoreInfo["GmtCreate"].isNull()) + storesObject.gmtCreate = valueStoresStoreInfo["GmtCreate"].asString(); + if(!valueStoresStoreInfo["ParentId"].isNull()) + storesObject.parentId = valueStoresStoreInfo["ParentId"].asString(); + if(!valueStoresStoreInfo["UserStoreCode"].isNull()) + storesObject.userStoreCode = valueStoresStoreInfo["UserStoreCode"].asString(); + if(!valueStoresStoreInfo["GmtModified"].isNull()) + storesObject.gmtModified = valueStoresStoreInfo["GmtModified"].asString(); if(!valueStoresStoreInfo["Phone"].isNull()) storesObject.phone = valueStoresStoreInfo["Phone"].asString(); if(!valueStoresStoreInfo["Level"].isNull()) storesObject.level = valueStoresStoreInfo["Level"].asString(); - if(!valueStoresStoreInfo["Groups"].isNull()) - storesObject.groups = valueStoresStoreInfo["Groups"].asString(); - if(!valueStoresStoreInfo["Comments"].isNull()) - storesObject.comments = valueStoresStoreInfo["Comments"].asString(); - if(!valueStoresStoreInfo["ParentId"].isNull()) - storesObject.parentId = valueStoresStoreInfo["ParentId"].asString(); - if(!valueStoresStoreInfo["GmtCreate"].isNull()) - storesObject.gmtCreate = valueStoresStoreInfo["GmtCreate"].asString(); - if(!valueStoresStoreInfo["GmtModified"].isNull()) - storesObject.gmtModified = valueStoresStoreInfo["GmtModified"].asString(); + if(!valueStoresStoreInfo["TemplateVersion"].isNull()) + storesObject.templateVersion = valueStoresStoreInfo["TemplateVersion"].asString(); stores_.push_back(storesObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -104,6 +106,11 @@ int DescribeStoresResult::getPageNumber()const return pageNumber_; } +std::string DescribeStoresResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::vector DescribeStoresResult::getStores()const { return stores_; @@ -114,6 +121,21 @@ std::string DescribeStoresResult::getErrorCode()const return errorCode_; } +std::string DescribeStoresResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeStoresResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DescribeStoresResult::getCode()const +{ + return code_; +} + bool DescribeStoresResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/DescribeUserLogRequest.cc b/cloudesl/src/model/DescribeUserLogRequest.cc new file mode 100644 index 000000000..ff9aedc81 --- /dev/null +++ b/cloudesl/src/model/DescribeUserLogRequest.cc @@ -0,0 +1,172 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cloudesl::Model::DescribeUserLogRequest; + +DescribeUserLogRequest::DescribeUserLogRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeUserLog") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeUserLogRequest::~DescribeUserLogRequest() +{} + +std::string DescribeUserLogRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeUserLogRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribeUserLogRequest::getStoreId()const +{ + return storeId_; +} + +void DescribeUserLogRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string DescribeUserLogRequest::getUserId()const +{ + return userId_; +} + +void DescribeUserLogRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + +int DescribeUserLogRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeUserLogRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeUserLogRequest::getFromDate()const +{ + return fromDate_; +} + +void DescribeUserLogRequest::setFromDate(const std::string& fromDate) +{ + fromDate_ = fromDate; + setBodyParameter("FromDate", fromDate); +} + +std::string DescribeUserLogRequest::getOperationStatus()const +{ + return operationStatus_; +} + +void DescribeUserLogRequest::setOperationStatus(const std::string& operationStatus) +{ + operationStatus_ = operationStatus; + setBodyParameter("OperationStatus", operationStatus); +} + +std::string DescribeUserLogRequest::getToDate()const +{ + return toDate_; +} + +void DescribeUserLogRequest::setToDate(const std::string& toDate) +{ + toDate_ = toDate; + setBodyParameter("ToDate", toDate); +} + +std::string DescribeUserLogRequest::getEslBarCode()const +{ + return eslBarCode_; +} + +void DescribeUserLogRequest::setEslBarCode(const std::string& eslBarCode) +{ + eslBarCode_ = eslBarCode; + setBodyParameter("EslBarCode", eslBarCode); +} + +int DescribeUserLogRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeUserLogRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeUserLogRequest::getItemBarCode()const +{ + return itemBarCode_; +} + +void DescribeUserLogRequest::setItemBarCode(const std::string& itemBarCode) +{ + itemBarCode_ = itemBarCode; + setBodyParameter("ItemBarCode", itemBarCode); +} + +std::string DescribeUserLogRequest::getItemShortTitle()const +{ + return itemShortTitle_; +} + +void DescribeUserLogRequest::setItemShortTitle(const std::string& itemShortTitle) +{ + itemShortTitle_ = itemShortTitle; + setBodyParameter("ItemShortTitle", itemShortTitle); +} + +std::string DescribeUserLogRequest::getOperationType()const +{ + return operationType_; +} + +void DescribeUserLogRequest::setOperationType(const std::string& operationType) +{ + operationType_ = operationType; + setBodyParameter("OperationType", operationType); +} + +std::string DescribeUserLogRequest::getLogId()const +{ + return logId_; +} + +void DescribeUserLogRequest::setLogId(const std::string& logId) +{ + logId_ = logId; + setBodyParameter("LogId", logId); +} + 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/DescribeUserOperationLogRequest.cc b/cloudesl/src/model/DescribeUserOperationLogRequest.cc deleted file mode 100644 index a34dd98ba..000000000 --- a/cloudesl/src/model/DescribeUserOperationLogRequest.cc +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::DescribeUserOperationLogRequest; - -DescribeUserOperationLogRequest::DescribeUserOperationLogRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DescribeUserOperationLog") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUserOperationLogRequest::~DescribeUserOperationLogRequest() -{} - -long DescribeUserOperationLogRequest::getOperateUserId()const -{ - return operateUserId_; -} - -void DescribeUserOperationLogRequest::setOperateUserId(long operateUserId) -{ - operateUserId_ = operateUserId; - setParameter("OperateUserId", std::to_string(operateUserId)); -} - -std::string DescribeUserOperationLogRequest::getStoreId()const -{ - return storeId_; -} - -void DescribeUserOperationLogRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - -int DescribeUserOperationLogRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeUserOperationLogRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeUserOperationLogRequest::getFromDate()const -{ - return fromDate_; -} - -void DescribeUserOperationLogRequest::setFromDate(const std::string& fromDate) -{ - fromDate_ = fromDate; - setParameter("FromDate", fromDate); -} - -long DescribeUserOperationLogRequest::getItemId()const -{ - return itemId_; -} - -void DescribeUserOperationLogRequest::setItemId(long itemId) -{ - itemId_ = itemId; - setParameter("ItemId", std::to_string(itemId)); -} - -std::string DescribeUserOperationLogRequest::getToDate()const -{ - return toDate_; -} - -void DescribeUserOperationLogRequest::setToDate(const std::string& toDate) -{ - toDate_ = toDate; - setParameter("ToDate", toDate); -} - -std::string DescribeUserOperationLogRequest::getEslBarCode()const -{ - return eslBarCode_; -} - -void DescribeUserOperationLogRequest::setEslBarCode(const std::string& eslBarCode) -{ - eslBarCode_ = eslBarCode; - setParameter("EslBarCode", eslBarCode); -} - -int DescribeUserOperationLogRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeUserOperationLogRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeUserOperationLogRequest::getItemBarCode()const -{ - return itemBarCode_; -} - -void DescribeUserOperationLogRequest::setItemBarCode(const std::string& itemBarCode) -{ - itemBarCode_ = itemBarCode; - setParameter("ItemBarCode", itemBarCode); -} - -std::string DescribeUserOperationLogRequest::getItemTitle()const -{ - return itemTitle_; -} - -void DescribeUserOperationLogRequest::setItemTitle(const std::string& itemTitle) -{ - itemTitle_ = itemTitle; - setParameter("ItemTitle", itemTitle); -} - -std::string DescribeUserOperationLogRequest::getOperateStatus()const -{ - return operateStatus_; -} - -void DescribeUserOperationLogRequest::setOperateStatus(const std::string& operateStatus) -{ - operateStatus_ = operateStatus; - setParameter("OperateStatus", operateStatus); -} - -bool DescribeUserOperationLogRequest::getReverse()const -{ - return reverse_; -} - -void DescribeUserOperationLogRequest::setReverse(bool reverse) -{ - reverse_ = reverse; - setParameter("Reverse", reverse ? "true" : "false"); -} - -std::string DescribeUserOperationLogRequest::getOperateType()const -{ - return operateType_; -} - -void DescribeUserOperationLogRequest::setOperateType(const std::string& operateType) -{ - operateType_ = operateType; - setParameter("OperateType", operateType); -} - diff --git a/cloudesl/src/model/DescribeUserOperationLogResult.cc b/cloudesl/src/model/DescribeUserOperationLogResult.cc deleted file mode 100644 index f0b69686e..000000000 --- a/cloudesl/src/model/DescribeUserOperationLogResult.cc +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudesl; -using namespace AlibabaCloud::Cloudesl::Model; - -DescribeUserOperationLogResult::DescribeUserOperationLogResult() : - ServiceResult() -{} - -DescribeUserOperationLogResult::DescribeUserOperationLogResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeUserOperationLogResult::~DescribeUserOperationLogResult() -{} - -void DescribeUserOperationLogResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allOperationLogsNode = value["OperationLogs"]["OperationLogInfo"]; - for (auto valueOperationLogsOperationLogInfo : allOperationLogsNode) - { - OperationLogInfo operationLogsObject; - if(!valueOperationLogsOperationLogInfo["OperateType"].isNull()) - operationLogsObject.operateType = valueOperationLogsOperationLogInfo["OperateType"].asString(); - if(!valueOperationLogsOperationLogInfo["OperateStatus"].isNull()) - operationLogsObject.operateStatus = valueOperationLogsOperationLogInfo["OperateStatus"].asString(); - if(!valueOperationLogsOperationLogInfo["OperateUserId"].isNull()) - operationLogsObject.operateUserId = std::stol(valueOperationLogsOperationLogInfo["OperateUserId"].asString()); - if(!valueOperationLogsOperationLogInfo["OperateTime"].isNull()) - operationLogsObject.operateTime = valueOperationLogsOperationLogInfo["OperateTime"].asString(); - if(!valueOperationLogsOperationLogInfo["StoreId"].isNull()) - operationLogsObject.storeId = valueOperationLogsOperationLogInfo["StoreId"].asString(); - if(!valueOperationLogsOperationLogInfo["ItemTitle"].isNull()) - operationLogsObject.itemTitle = valueOperationLogsOperationLogInfo["ItemTitle"].asString(); - if(!valueOperationLogsOperationLogInfo["ItemId"].isNull()) - operationLogsObject.itemId = valueOperationLogsOperationLogInfo["ItemId"].asString(); - if(!valueOperationLogsOperationLogInfo["ItemActionPrice"].isNull()) - operationLogsObject.itemActionPrice = std::stoi(valueOperationLogsOperationLogInfo["ItemActionPrice"].asString()); - if(!valueOperationLogsOperationLogInfo["ItemBarCode"].isNull()) - operationLogsObject.itemBarCode = valueOperationLogsOperationLogInfo["ItemBarCode"].asString(); - if(!valueOperationLogsOperationLogInfo["EslBarCode"].isNull()) - operationLogsObject.eslBarCode = valueOperationLogsOperationLogInfo["EslBarCode"].asString(); - if(!valueOperationLogsOperationLogInfo["ShelfCode"].isNull()) - operationLogsObject.shelfCode = valueOperationLogsOperationLogInfo["ShelfCode"].asString(); - operationLogs_.push_back(operationLogsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -std::vector DescribeUserOperationLogResult::getOperationLogs()const -{ - return operationLogs_; -} - -int DescribeUserOperationLogResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribeUserOperationLogResult::getMessage()const -{ - return message_; -} - -int DescribeUserOperationLogResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeUserOperationLogResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeUserOperationLogResult::getErrorCode()const -{ - return errorCode_; -} - -bool DescribeUserOperationLogResult::getSuccess()const -{ - return success_; -} - diff --git a/cloudesl/src/model/DescribeUserRamPolicyRequest.cc b/cloudesl/src/model/DescribeUserRamPolicyRequest.cc deleted file mode 100644 index d12b429c3..000000000 --- a/cloudesl/src/model/DescribeUserRamPolicyRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::DescribeUserRamPolicyRequest; - -DescribeUserRamPolicyRequest::DescribeUserRamPolicyRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DescribeUserRamPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUserRamPolicyRequest::~DescribeUserRamPolicyRequest() -{} - -std::string DescribeUserRamPolicyRequest::getUserType()const -{ - return userType_; -} - -void DescribeUserRamPolicyRequest::setUserType(const std::string& userType) -{ - userType_ = userType; - setParameter("UserType", userType); -} - -std::string DescribeUserRamPolicyRequest::getStoreId()const -{ - return storeId_; -} - -void DescribeUserRamPolicyRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - -std::string DescribeUserRamPolicyRequest::getCompanyId()const -{ - return companyId_; -} - -void DescribeUserRamPolicyRequest::setCompanyId(const std::string& companyId) -{ - companyId_ = companyId; - setParameter("CompanyId", companyId); -} - diff --git a/cloudesl/src/model/DescribeUsersRequest.cc b/cloudesl/src/model/DescribeUsersRequest.cc new file mode 100644 index 000000000..b7ccae713 --- /dev/null +++ b/cloudesl/src/model/DescribeUsersRequest.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::DescribeUsersRequest; + +DescribeUsersRequest::DescribeUsersRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DescribeUsers") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeUsersRequest::~DescribeUsersRequest() +{} + +std::string DescribeUsersRequest::getExtraParams()const +{ + return extraParams_; +} + +void DescribeUsersRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DescribeUsersRequest::getUserId()const +{ + return userId_; +} + +void DescribeUsersRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + +int DescribeUsersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeUsersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeUsersRequest::getUserType()const +{ + return userType_; +} + +void DescribeUsersRequest::setUserType(const std::string& userType) +{ + userType_ = userType; + setBodyParameter("UserType", userType); +} + +std::string DescribeUsersRequest::getUserName()const +{ + return userName_; +} + +void DescribeUsersRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setBodyParameter("UserName", userName); +} + diff --git a/cloudesl/src/model/DescribeUsersResult.cc b/cloudesl/src/model/DescribeUsersResult.cc new file mode 100644 index 000000000..5f654faca --- /dev/null +++ b/cloudesl/src/model/DescribeUsersResult.cc @@ -0,0 +1,147 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#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(); + if(!valueUsersUserInfo["OwnerId"].isNull()) + usersObject.ownerId = valueUsersUserInfo["OwnerId"].asString(); + if(!valueUsersUserInfo["Bid"].isNull()) + usersObject.bid = valueUsersUserInfo["Bid"].asString(); + auto allDingTalkInfosNode = valueUsersUserInfo["DingTalkInfos"]["DingTalkInfo"]; + for (auto valueUsersUserInfoDingTalkInfosDingTalkInfo : allDingTalkInfosNode) + { + UserInfo::DingTalkInfo dingTalkInfosObject; + if(!valueUsersUserInfoDingTalkInfosDingTalkInfo["DingTalkCompanyId"].isNull()) + dingTalkInfosObject.dingTalkCompanyId = valueUsersUserInfoDingTalkInfosDingTalkInfo["DingTalkCompanyId"].asString(); + if(!valueUsersUserInfoDingTalkInfosDingTalkInfo["DingTalkUserId"].isNull()) + dingTalkInfosObject.dingTalkUserId = valueUsersUserInfoDingTalkInfosDingTalkInfo["DingTalkUserId"].asString(); + usersObject.dingTalkInfos.push_back(dingTalkInfosObject); + } + users_.push_back(usersObject); + } + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeUsersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeUsersResult::getMessage()const +{ + return message_; +} + +int DescribeUsersResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeUsersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeUsersResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::vector DescribeUsersResult::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..07a73c6d0 --- /dev/null +++ b/cloudesl/src/model/DissociatePlanogramRailRequest.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::DissociatePlanogramRailRequest; + +DissociatePlanogramRailRequest::DissociatePlanogramRailRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "DissociatePlanogramRail") +{ + setMethod(HttpRequest::Method::Post); +} + +DissociatePlanogramRailRequest::~DissociatePlanogramRailRequest() +{} + +std::string DissociatePlanogramRailRequest::getExtraParams()const +{ + return extraParams_; +} + +void DissociatePlanogramRailRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string DissociatePlanogramRailRequest::getStoreId()const +{ + return storeId_; +} + +void DissociatePlanogramRailRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string DissociatePlanogramRailRequest::getRailCode()const +{ + return railCode_; +} + +void DissociatePlanogramRailRequest::setRailCode(const std::string& railCode) +{ + railCode_ = railCode; + setBodyParameter("RailCode", railCode); +} + 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/DescribeCompanyRequest.cc b/cloudesl/src/model/GetUserRequest.cc similarity index 50% rename from cloudesl/src/model/DescribeCompanyRequest.cc rename to cloudesl/src/model/GetUserRequest.cc index 114ae1c56..acd0189a6 100644 --- a/cloudesl/src/model/DescribeCompanyRequest.cc +++ b/cloudesl/src/model/GetUserRequest.cc @@ -14,16 +14,38 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cloudesl::Model::DescribeCompanyRequest; +using AlibabaCloud::Cloudesl::Model::GetUserRequest; -DescribeCompanyRequest::DescribeCompanyRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "DescribeCompany") +GetUserRequest::GetUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "GetUser") { setMethod(HttpRequest::Method::Post); } -DescribeCompanyRequest::~DescribeCompanyRequest() +GetUserRequest::~GetUserRequest() {} +std::string GetUserRequest::getExtraParams()const +{ + return extraParams_; +} + +void GetUserRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string GetUserRequest::getUserId()const +{ + return userId_; +} + +void GetUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/cloudesl/src/model/GetUserResult.cc b/cloudesl/src/model/GetUserResult.cc new file mode 100644 index 000000000..3fbec28a5 --- /dev/null +++ b/cloudesl/src/model/GetUserResult.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; + +GetUserResult::GetUserResult() : + ServiceResult() +{} + +GetUserResult::GetUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserResult::~GetUserResult() +{} + +void GetUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto userNode = value["User"]; + if(!userNode["Stores"].isNull()) + user_.stores = userNode["Stores"].asString(); + if(!userNode["UserName"].isNull()) + user_.userName = userNode["UserName"].asString(); + if(!userNode["UserId"].isNull()) + user_.userId = userNode["UserId"].asString(); + if(!userNode["UserType"].isNull()) + user_.userType = userNode["UserType"].asString(); + if(!userNode["OwnerId"].isNull()) + user_.ownerId = userNode["OwnerId"].asString(); + if(!userNode["Bid"].isNull()) + user_.bid = userNode["Bid"].asString(); + auto allDingTalkInfosNode = userNode["DingTalkInfos"]["DingTalkInfo"]; + for (auto userNodeDingTalkInfosDingTalkInfo : allDingTalkInfosNode) + { + User::DingTalkInfo dingTalkInfoObject; + if(!userNodeDingTalkInfosDingTalkInfo["DingTalkCompanyId"].isNull()) + dingTalkInfoObject.dingTalkCompanyId = userNodeDingTalkInfosDingTalkInfo["DingTalkCompanyId"].asString(); + if(!userNodeDingTalkInfosDingTalkInfo["DingTalkUserId"].isNull()) + dingTalkInfoObject.dingTalkUserId = userNodeDingTalkInfosDingTalkInfo["DingTalkUserId"].asString(); + user_.dingTalkInfos.push_back(dingTalkInfoObject); + } + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +GetUserResult::User GetUserResult::getUser()const +{ + return user_; +} + +std::string GetUserResult::getMessage()const +{ + return message_; +} + +std::string GetUserResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string GetUserResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetUserResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string GetUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetUserResult::getCode()const +{ + return code_; +} + +bool GetUserResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudesl/src/model/SearchApServiceRequest.cc b/cloudesl/src/model/SearchApServiceRequest.cc deleted file mode 100644 index 934d05623..000000000 --- a/cloudesl/src/model/SearchApServiceRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::SearchApServiceRequest; - -SearchApServiceRequest::SearchApServiceRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "SearchApService") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchApServiceRequest::~SearchApServiceRequest() -{} - -std::string SearchApServiceRequest::getApMac()const -{ - return apMac_; -} - -void SearchApServiceRequest::setApMac(const std::string& apMac) -{ - apMac_ = apMac; - setParameter("ApMac", apMac); -} - -std::string SearchApServiceRequest::getStoreId()const -{ - return storeId_; -} - -void SearchApServiceRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - -int SearchApServiceRequest::getPageNumber()const -{ - return pageNumber_; -} - -void SearchApServiceRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -int SearchApServiceRequest::getPageSize()const -{ - return pageSize_; -} - -void SearchApServiceRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -bool SearchApServiceRequest::getActivated()const -{ - return activated_; -} - -void SearchApServiceRequest::setActivated(bool activated) -{ - activated_ = activated; - setParameter("Activated", activated ? "true" : "false"); -} - diff --git a/cloudesl/src/model/SearchApServiceResult.cc b/cloudesl/src/model/SearchApServiceResult.cc deleted file mode 100644 index bfa88c618..000000000 --- a/cloudesl/src/model/SearchApServiceResult.cc +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cloudesl; -using namespace AlibabaCloud::Cloudesl::Model; - -SearchApServiceResult::SearchApServiceResult() : - ServiceResult() -{} - -SearchApServiceResult::SearchApServiceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchApServiceResult::~SearchApServiceResult() -{} - -void SearchApServiceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["ApInfo"]; - for (auto valueItemsApInfo : allItemsNode) - { - ApInfo itemsObject; - if(!valueItemsApInfo["IsActivate"].isNull()) - itemsObject.isActivate = valueItemsApInfo["IsActivate"].asString() == "true"; - if(!valueItemsApInfo["Mac"].isNull()) - itemsObject.mac = valueItemsApInfo["Mac"].asString(); - if(!valueItemsApInfo["Model"].isNull()) - itemsObject.model = valueItemsApInfo["Model"].asString(); - if(!valueItemsApInfo["Status"].isNull()) - itemsObject.status = valueItemsApInfo["Status"].asString() == "true"; - items_.push_back(itemsObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int SearchApServiceResult::getTotalCount()const -{ - return totalCount_; -} - -std::string SearchApServiceResult::getMessage()const -{ - return message_; -} - -int SearchApServiceResult::getPageSize()const -{ - return pageSize_; -} - -int SearchApServiceResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector SearchApServiceResult::getItems()const -{ - return items_; -} - -std::string SearchApServiceResult::getErrorCode()const -{ - return errorCode_; -} - -bool SearchApServiceResult::getSuccess()const -{ - return success_; -} - diff --git a/cloudesl/src/model/UnassignUserRequest.cc b/cloudesl/src/model/UnassignUserRequest.cc new file mode 100644 index 000000000..703c24b7b --- /dev/null +++ b/cloudesl/src/model/UnassignUserRequest.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::UnassignUserRequest; + +UnassignUserRequest::UnassignUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UnassignUser") +{ + setMethod(HttpRequest::Method::Post); +} + +UnassignUserRequest::~UnassignUserRequest() +{} + +std::string UnassignUserRequest::getExtraParams()const +{ + return extraParams_; +} + +void UnassignUserRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string UnassignUserRequest::getUserId()const +{ + return userId_; +} + +void UnassignUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + 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 index e751ffddd..ae9a4e1e5 100644 --- a/cloudesl/src/model/UnbindEslDeviceRequest.cc +++ b/cloudesl/src/model/UnbindEslDeviceRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::UnbindEslDeviceRequest; UnbindEslDeviceRequest::UnbindEslDeviceRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "UnbindEslDevice") + RpcServiceRequest("cloudesl", "2020-02-01", "UnbindEslDevice") { setMethod(HttpRequest::Method::Post); } @@ -27,6 +27,17 @@ UnbindEslDeviceRequest::UnbindEslDeviceRequest() : UnbindEslDeviceRequest::~UnbindEslDeviceRequest() {} +std::string UnbindEslDeviceRequest::getExtraParams()const +{ + return extraParams_; +} + +void UnbindEslDeviceRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + std::string UnbindEslDeviceRequest::getStoreId()const { return storeId_; @@ -35,7 +46,18 @@ std::string UnbindEslDeviceRequest::getStoreId()const void UnbindEslDeviceRequest::setStoreId(const std::string& storeId) { storeId_ = storeId; - setParameter("StoreId", storeId); + setBodyParameter("StoreId", storeId); +} + +int UnbindEslDeviceRequest::getLayer()const +{ + return layer_; +} + +void UnbindEslDeviceRequest::setLayer(int layer) +{ + layer_ = layer; + setBodyParameter("Layer", std::to_string(layer)); } std::string UnbindEslDeviceRequest::getEslBarCode()const @@ -46,7 +68,7 @@ std::string UnbindEslDeviceRequest::getEslBarCode()const void UnbindEslDeviceRequest::setEslBarCode(const std::string& eslBarCode) { eslBarCode_ = eslBarCode; - setParameter("EslBarCode", eslBarCode); + setBodyParameter("EslBarCode", eslBarCode); } std::string UnbindEslDeviceRequest::getItemBarCode()const @@ -57,6 +79,28 @@ std::string UnbindEslDeviceRequest::getItemBarCode()const void UnbindEslDeviceRequest::setItemBarCode(const std::string& itemBarCode) { itemBarCode_ = itemBarCode; - setParameter("ItemBarCode", itemBarCode); + setBodyParameter("ItemBarCode", itemBarCode); +} + +std::string UnbindEslDeviceRequest::getColumn()const +{ + return column_; +} + +void UnbindEslDeviceRequest::setColumn(const std::string& column) +{ + column_ = column; + setBodyParameter("Column", column); +} + +std::string UnbindEslDeviceRequest::getShelf()const +{ + return shelf_; +} + +void UnbindEslDeviceRequest::setShelf(const std::string& shelf) +{ + shelf_ = shelf; + setBodyParameter("Shelf", shelf); } diff --git a/cloudesl/src/model/UnbindEslDeviceResult.cc b/cloudesl/src/model/UnbindEslDeviceResult.cc index a1d179e42..b9b341310 100644 --- a/cloudesl/src/model/UnbindEslDeviceResult.cc +++ b/cloudesl/src/model/UnbindEslDeviceResult.cc @@ -39,12 +39,20 @@ void UnbindEslDeviceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -53,11 +61,31 @@ std::string UnbindEslDeviceResult::getMessage()const return message_; } +std::string UnbindEslDeviceResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string UnbindEslDeviceResult::getErrorCode()const { return errorCode_; } +std::string UnbindEslDeviceResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UnbindEslDeviceResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UnbindEslDeviceResult::getCode()const +{ + return code_; +} + bool UnbindEslDeviceResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/UnbindEslDeviceShelfRequest.cc b/cloudesl/src/model/UnbindEslDeviceShelfRequest.cc deleted file mode 100644 index a1f7ede3b..000000000 --- a/cloudesl/src/model/UnbindEslDeviceShelfRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cloudesl::Model::UnbindEslDeviceShelfRequest; - -UnbindEslDeviceShelfRequest::UnbindEslDeviceShelfRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "UnbindEslDeviceShelf") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindEslDeviceShelfRequest::~UnbindEslDeviceShelfRequest() -{} - -std::string UnbindEslDeviceShelfRequest::getStoreId()const -{ - return storeId_; -} - -void UnbindEslDeviceShelfRequest::setStoreId(const std::string& storeId) -{ - storeId_ = storeId; - setParameter("StoreId", storeId); -} - -std::string UnbindEslDeviceShelfRequest::getEslBarCode()const -{ - return eslBarCode_; -} - -void UnbindEslDeviceShelfRequest::setEslBarCode(const std::string& eslBarCode) -{ - eslBarCode_ = eslBarCode; - setParameter("EslBarCode", eslBarCode); -} - diff --git a/cloudesl/src/model/UpdateEslDeviceLightRequest.cc b/cloudesl/src/model/UpdateEslDeviceLightRequest.cc new file mode 100644 index 000000000..4293f1916 --- /dev/null +++ b/cloudesl/src/model/UpdateEslDeviceLightRequest.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::UpdateEslDeviceLightRequest; + +UpdateEslDeviceLightRequest::UpdateEslDeviceLightRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UpdateEslDeviceLight") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateEslDeviceLightRequest::~UpdateEslDeviceLightRequest() +{} + +std::string UpdateEslDeviceLightRequest::getExtraParams()const +{ + return extraParams_; +} + +void UpdateEslDeviceLightRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +int UpdateEslDeviceLightRequest::getLightUpTime()const +{ + return lightUpTime_; +} + +void UpdateEslDeviceLightRequest::setLightUpTime(int lightUpTime) +{ + lightUpTime_ = lightUpTime; + setBodyParameter("LightUpTime", std::to_string(lightUpTime)); +} + +std::string UpdateEslDeviceLightRequest::getStoreId()const +{ + return storeId_; +} + +void UpdateEslDeviceLightRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +std::string UpdateEslDeviceLightRequest::getFrequency()const +{ + return frequency_; +} + +void UpdateEslDeviceLightRequest::setFrequency(const std::string& frequency) +{ + frequency_ = frequency; + setBodyParameter("Frequency", frequency); +} + +std::string UpdateEslDeviceLightRequest::getEslBarCode()const +{ + return eslBarCode_; +} + +void UpdateEslDeviceLightRequest::setEslBarCode(const std::string& eslBarCode) +{ + eslBarCode_ = eslBarCode; + setBodyParameter("EslBarCode", eslBarCode); +} + +std::string UpdateEslDeviceLightRequest::getLedColor()const +{ + return ledColor_; +} + +void UpdateEslDeviceLightRequest::setLedColor(const std::string& ledColor) +{ + ledColor_ = ledColor; + setBodyParameter("LedColor", ledColor); +} + +std::string UpdateEslDeviceLightRequest::getItemBarCode()const +{ + return itemBarCode_; +} + +void UpdateEslDeviceLightRequest::setItemBarCode(const std::string& itemBarCode) +{ + itemBarCode_ = itemBarCode; + setBodyParameter("ItemBarCode", itemBarCode); +} + 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..815b29bf3 --- /dev/null +++ b/cloudesl/src/model/UpdateStoreConfigRequest.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::UpdateStoreConfigRequest; + +UpdateStoreConfigRequest::UpdateStoreConfigRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UpdateStoreConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateStoreConfigRequest::~UpdateStoreConfigRequest() +{} + +std::string UpdateStoreConfigRequest::getExtraParams()const +{ + return extraParams_; +} + +void UpdateStoreConfigRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string UpdateStoreConfigRequest::getStoreId()const +{ + return storeId_; +} + +void UpdateStoreConfigRequest::setStoreId(const std::string& storeId) +{ + storeId_ = storeId; + setBodyParameter("StoreId", storeId); +} + +bool UpdateStoreConfigRequest::getEnableNotification()const +{ + return enableNotification_; +} + +void UpdateStoreConfigRequest::setEnableNotification(bool enableNotification) +{ + enableNotification_ = enableNotification; + setBodyParameter("EnableNotification", enableNotification ? "true" : "false"); +} + +std::string UpdateStoreConfigRequest::getNotificationWebHook()const +{ + return notificationWebHook_; +} + +void UpdateStoreConfigRequest::setNotificationWebHook(const std::string& notificationWebHook) +{ + notificationWebHook_ = notificationWebHook; + setBodyParameter("NotificationWebHook", notificationWebHook); +} + +std::string UpdateStoreConfigRequest::getNotificationSilentTimes()const +{ + return notificationSilentTimes_; +} + +void UpdateStoreConfigRequest::setNotificationSilentTimes(const std::string& notificationSilentTimes) +{ + notificationSilentTimes_ = notificationSilentTimes; + setBodyParameter("NotificationSilentTimes", notificationSilentTimes); +} + 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 index 23d915619..9f0f4ffad 100644 --- a/cloudesl/src/model/UpdateStoreRequest.cc +++ b/cloudesl/src/model/UpdateStoreRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cloudesl::Model::UpdateStoreRequest; UpdateStoreRequest::UpdateStoreRequest() : - RpcServiceRequest("cloudesl", "2018-08-01", "UpdateStore") + RpcServiceRequest("cloudesl", "2020-02-01", "UpdateStore") { setMethod(HttpRequest::Method::Post); } @@ -27,15 +27,15 @@ UpdateStoreRequest::UpdateStoreRequest() : UpdateStoreRequest::~UpdateStoreRequest() {} -std::string UpdateStoreRequest::getComments()const +std::string UpdateStoreRequest::getExtraParams()const { - return comments_; + return extraParams_; } -void UpdateStoreRequest::setComments(const std::string& comments) +void UpdateStoreRequest::setExtraParams(const std::string& extraParams) { - comments_ = comments; - setParameter("Comments", comments); + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); } std::string UpdateStoreRequest::getStoreName()const @@ -46,18 +46,7 @@ std::string UpdateStoreRequest::getStoreName()const void UpdateStoreRequest::setStoreName(const std::string& storeName) { storeName_ = storeName; - setParameter("StoreName", storeName); -} - -std::string UpdateStoreRequest::getGroups()const -{ - return groups_; -} - -void UpdateStoreRequest::setGroups(const std::string& groups) -{ - groups_ = groups; - setParameter("Groups", groups); + setBodyParameter("StoreName", storeName); } std::string UpdateStoreRequest::getStoreId()const @@ -68,7 +57,29 @@ std::string UpdateStoreRequest::getStoreId()const void UpdateStoreRequest::setStoreId(const std::string& storeId) { storeId_ = storeId; - setParameter("StoreId", storeId); + setBodyParameter("StoreId", storeId); +} + +std::string UpdateStoreRequest::getTemplateVersion()const +{ + return templateVersion_; +} + +void UpdateStoreRequest::setTemplateVersion(const std::string& templateVersion) +{ + templateVersion_ = templateVersion; + setBodyParameter("TemplateVersion", templateVersion); +} + +std::string UpdateStoreRequest::getUserStoreCode()const +{ + return userStoreCode_; +} + +void UpdateStoreRequest::setUserStoreCode(const std::string& userStoreCode) +{ + userStoreCode_ = userStoreCode; + setBodyParameter("UserStoreCode", userStoreCode); } std::string UpdateStoreRequest::getPhone()const @@ -79,28 +90,6 @@ std::string UpdateStoreRequest::getPhone()const void UpdateStoreRequest::setPhone(const std::string& phone) { phone_ = phone; - setParameter("Phone", phone); -} - -std::string UpdateStoreRequest::getOutId()const -{ - return outId_; -} - -void UpdateStoreRequest::setOutId(const std::string& outId) -{ - outId_ = outId; - setParameter("OutId", outId); -} - -std::string UpdateStoreRequest::getBrand()const -{ - return brand_; -} - -void UpdateStoreRequest::setBrand(const std::string& brand) -{ - brand_ = brand; - setParameter("Brand", brand); + setBodyParameter("Phone", phone); } diff --git a/cloudesl/src/model/UpdateStoreResult.cc b/cloudesl/src/model/UpdateStoreResult.cc index fbee72d5b..acb538541 100644 --- a/cloudesl/src/model/UpdateStoreResult.cc +++ b/cloudesl/src/model/UpdateStoreResult.cc @@ -39,12 +39,20 @@ void UpdateStoreResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } @@ -53,11 +61,31 @@ std::string UpdateStoreResult::getMessage()const return message_; } +std::string UpdateStoreResult::getDynamicCode()const +{ + return dynamicCode_; +} + std::string UpdateStoreResult::getErrorCode()const { return errorCode_; } +std::string UpdateStoreResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateStoreResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateStoreResult::getCode()const +{ + return code_; +} + bool UpdateStoreResult::getSuccess()const { return success_; diff --git a/cloudesl/src/model/UpdateUserRequest.cc b/cloudesl/src/model/UpdateUserRequest.cc new file mode 100644 index 000000000..5c27a3d03 --- /dev/null +++ b/cloudesl/src/model/UpdateUserRequest.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::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() : + RpcServiceRequest("cloudesl", "2020-02-01", "UpdateUser") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateUserRequest::~UpdateUserRequest() +{} + +std::string UpdateUserRequest::getExtraParams()const +{ + return extraParams_; +} + +void UpdateUserRequest::setExtraParams(const std::string& extraParams) +{ + extraParams_ = extraParams; + setBodyParameter("ExtraParams", extraParams); +} + +std::string UpdateUserRequest::getDingTalkUserId()const +{ + return dingTalkUserId_; +} + +void UpdateUserRequest::setDingTalkUserId(const std::string& dingTalkUserId) +{ + dingTalkUserId_ = dingTalkUserId; + setBodyParameter("DingTalkUserId", dingTalkUserId); +} + +std::string UpdateUserRequest::getUserId()const +{ + return userId_; +} + +void UpdateUserRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + +std::string UpdateUserRequest::getDingTalkCompanyId()const +{ + return dingTalkCompanyId_; +} + +void UpdateUserRequest::setDingTalkCompanyId(const std::string& dingTalkCompanyId) +{ + dingTalkCompanyId_ = dingTalkCompanyId; + setBodyParameter("DingTalkCompanyId", dingTalkCompanyId); +} + diff --git a/cloudesl/src/model/BindEslDeviceShelfResult.cc b/cloudesl/src/model/UpdateUserResult.cc similarity index 54% rename from cloudesl/src/model/BindEslDeviceShelfResult.cc rename to cloudesl/src/model/UpdateUserResult.cc index daa576e0e..ef4860021 100644 --- a/cloudesl/src/model/BindEslDeviceShelfResult.cc +++ b/cloudesl/src/model/UpdateUserResult.cc @@ -14,51 +14,79 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cloudesl; using namespace AlibabaCloud::Cloudesl::Model; -BindEslDeviceShelfResult::BindEslDeviceShelfResult() : +UpdateUserResult::UpdateUserResult() : ServiceResult() {} -BindEslDeviceShelfResult::BindEslDeviceShelfResult(const std::string &payload) : +UpdateUserResult::UpdateUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -BindEslDeviceShelfResult::~BindEslDeviceShelfResult() +UpdateUserResult::~UpdateUserResult() {} -void BindEslDeviceShelfResult::parse(const std::string &payload) +void UpdateUserResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string BindEslDeviceShelfResult::getMessage()const +std::string UpdateUserResult::getMessage()const { return message_; } -std::string BindEslDeviceShelfResult::getErrorCode()const +std::string UpdateUserResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UpdateUserResult::getErrorCode()const { return errorCode_; } -bool BindEslDeviceShelfResult::getSuccess()const +std::string UpdateUserResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateUserResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string UpdateUserResult::getCode()const +{ + return code_; +} + +bool UpdateUserResult::getSuccess()const { return success_; }