diff --git a/VERSION b/VERSION index d75cef26d..9835fea7b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1924 \ No newline at end of file +1.36.1925 \ No newline at end of file diff --git a/idaas-doraemon/CMakeLists.txt b/idaas-doraemon/CMakeLists.txt index 212b050e4..ab66bd06b 100644 --- a/idaas-doraemon/CMakeLists.txt +++ b/idaas-doraemon/CMakeLists.txt @@ -37,10 +37,18 @@ set(idaas-doraemon_public_header_model include/alibabacloud/idaas-doraemon/model/ListAuthenticatorOpsLogsResult.h include/alibabacloud/idaas-doraemon/model/ListAuthenticatorsRequest.h include/alibabacloud/idaas-doraemon/model/ListAuthenticatorsResult.h + include/alibabacloud/idaas-doraemon/model/ListCostUnitOrdersRequest.h + include/alibabacloud/idaas-doraemon/model/ListCostUnitOrdersResult.h + include/alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsRequest.h + include/alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsResult.h include/alibabacloud/idaas-doraemon/model/ListPwnedPasswordsRequest.h include/alibabacloud/idaas-doraemon/model/ListPwnedPasswordsResult.h include/alibabacloud/idaas-doraemon/model/ListUsersRequest.h include/alibabacloud/idaas-doraemon/model/ListUsersResult.h + include/alibabacloud/idaas-doraemon/model/QuerySmsReportsRequest.h + include/alibabacloud/idaas-doraemon/model/QuerySmsReportsResult.h + include/alibabacloud/idaas-doraemon/model/QuerySmsUpsRequest.h + include/alibabacloud/idaas-doraemon/model/QuerySmsUpsResult.h include/alibabacloud/idaas-doraemon/model/RegisterAuthenticatorRequest.h include/alibabacloud/idaas-doraemon/model/RegisterAuthenticatorResult.h include/alibabacloud/idaas-doraemon/model/ServiceInvokeRequest.h @@ -70,10 +78,18 @@ set(idaas-doraemon_src src/model/ListAuthenticatorOpsLogsResult.cc src/model/ListAuthenticatorsRequest.cc src/model/ListAuthenticatorsResult.cc + src/model/ListCostUnitOrdersRequest.cc + src/model/ListCostUnitOrdersResult.cc + src/model/ListOrderConsumeStatisticRecordsRequest.cc + src/model/ListOrderConsumeStatisticRecordsResult.cc src/model/ListPwnedPasswordsRequest.cc src/model/ListPwnedPasswordsResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc + src/model/QuerySmsReportsRequest.cc + src/model/QuerySmsReportsResult.cc + src/model/QuerySmsUpsRequest.cc + src/model/QuerySmsUpsResult.cc src/model/RegisterAuthenticatorRequest.cc src/model/RegisterAuthenticatorResult.cc src/model/ServiceInvokeRequest.cc diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/Idaas_doraemonClient.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/Idaas_doraemonClient.h index 6c6b90d8f..38f8805b2 100644 --- a/idaas-doraemon/include/alibabacloud/idaas-doraemon/Idaas_doraemonClient.h +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/Idaas_doraemonClient.h @@ -38,10 +38,18 @@ #include "model/ListAuthenticatorOpsLogsResult.h" #include "model/ListAuthenticatorsRequest.h" #include "model/ListAuthenticatorsResult.h" +#include "model/ListCostUnitOrdersRequest.h" +#include "model/ListCostUnitOrdersResult.h" +#include "model/ListOrderConsumeStatisticRecordsRequest.h" +#include "model/ListOrderConsumeStatisticRecordsResult.h" #include "model/ListPwnedPasswordsRequest.h" #include "model/ListPwnedPasswordsResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" +#include "model/QuerySmsReportsRequest.h" +#include "model/QuerySmsReportsResult.h" +#include "model/QuerySmsUpsRequest.h" +#include "model/QuerySmsUpsResult.h" #include "model/RegisterAuthenticatorRequest.h" #include "model/RegisterAuthenticatorResult.h" #include "model/ServiceInvokeRequest.h" @@ -85,12 +93,24 @@ namespace AlibabaCloud typedef Outcome ListAuthenticatorsOutcome; typedef std::future ListAuthenticatorsOutcomeCallable; typedef std::function&)> ListAuthenticatorsAsyncHandler; + typedef Outcome ListCostUnitOrdersOutcome; + typedef std::future ListCostUnitOrdersOutcomeCallable; + typedef std::function&)> ListCostUnitOrdersAsyncHandler; + typedef Outcome ListOrderConsumeStatisticRecordsOutcome; + typedef std::future ListOrderConsumeStatisticRecordsOutcomeCallable; + typedef std::function&)> ListOrderConsumeStatisticRecordsAsyncHandler; typedef Outcome ListPwnedPasswordsOutcome; typedef std::future ListPwnedPasswordsOutcomeCallable; typedef std::function&)> ListPwnedPasswordsAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome QuerySmsReportsOutcome; + typedef std::future QuerySmsReportsOutcomeCallable; + typedef std::function&)> QuerySmsReportsAsyncHandler; + typedef Outcome QuerySmsUpsOutcome; + typedef std::future QuerySmsUpsOutcomeCallable; + typedef std::function&)> QuerySmsUpsAsyncHandler; typedef Outcome RegisterAuthenticatorOutcome; typedef std::future RegisterAuthenticatorOutcomeCallable; typedef std::function&)> RegisterAuthenticatorAsyncHandler; @@ -135,12 +155,24 @@ namespace AlibabaCloud ListAuthenticatorsOutcome listAuthenticators(const Model::ListAuthenticatorsRequest &request)const; void listAuthenticatorsAsync(const Model::ListAuthenticatorsRequest& request, const ListAuthenticatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAuthenticatorsOutcomeCallable listAuthenticatorsCallable(const Model::ListAuthenticatorsRequest& request) const; + ListCostUnitOrdersOutcome listCostUnitOrders(const Model::ListCostUnitOrdersRequest &request)const; + void listCostUnitOrdersAsync(const Model::ListCostUnitOrdersRequest& request, const ListCostUnitOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCostUnitOrdersOutcomeCallable listCostUnitOrdersCallable(const Model::ListCostUnitOrdersRequest& request) const; + ListOrderConsumeStatisticRecordsOutcome listOrderConsumeStatisticRecords(const Model::ListOrderConsumeStatisticRecordsRequest &request)const; + void listOrderConsumeStatisticRecordsAsync(const Model::ListOrderConsumeStatisticRecordsRequest& request, const ListOrderConsumeStatisticRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOrderConsumeStatisticRecordsOutcomeCallable listOrderConsumeStatisticRecordsCallable(const Model::ListOrderConsumeStatisticRecordsRequest& request) const; ListPwnedPasswordsOutcome listPwnedPasswords(const Model::ListPwnedPasswordsRequest &request)const; void listPwnedPasswordsAsync(const Model::ListPwnedPasswordsRequest& request, const ListPwnedPasswordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPwnedPasswordsOutcomeCallable listPwnedPasswordsCallable(const Model::ListPwnedPasswordsRequest& request) const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + QuerySmsReportsOutcome querySmsReports(const Model::QuerySmsReportsRequest &request)const; + void querySmsReportsAsync(const Model::QuerySmsReportsRequest& request, const QuerySmsReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySmsReportsOutcomeCallable querySmsReportsCallable(const Model::QuerySmsReportsRequest& request) const; + QuerySmsUpsOutcome querySmsUps(const Model::QuerySmsUpsRequest &request)const; + void querySmsUpsAsync(const Model::QuerySmsUpsRequest& request, const QuerySmsUpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySmsUpsOutcomeCallable querySmsUpsCallable(const Model::QuerySmsUpsRequest& request) const; RegisterAuthenticatorOutcome registerAuthenticator(const Model::RegisterAuthenticatorRequest &request)const; void registerAuthenticatorAsync(const Model::RegisterAuthenticatorRequest& request, const RegisterAuthenticatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterAuthenticatorOutcomeCallable registerAuthenticatorCallable(const Model::RegisterAuthenticatorRequest& request) const; diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListCostUnitOrdersRequest.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListCostUnitOrdersRequest.h new file mode 100644 index 000000000..5baa0af06 --- /dev/null +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListCostUnitOrdersRequest.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_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSREQUEST_H_ +#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Idaas_doraemon { +namespace Model { +class ALIBABACLOUD_IDAAS_DORAEMON_EXPORT ListCostUnitOrdersRequest : public RpcServiceRequest { +public: + ListCostUnitOrdersRequest(); + ~ListCostUnitOrdersRequest(); + std::string getBeginDate() const; + void setBeginDate(const std::string &beginDate); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getFinalDate() const; + void setFinalDate(const std::string &finalDate); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string beginDate_; + int pageNumber_; + std::string finalDate_; + int pageSize_; +}; +} // namespace Model +} // namespace Idaas_doraemon +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSREQUEST_H_ diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListCostUnitOrdersResult.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListCostUnitOrdersResult.h new file mode 100644 index 000000000..985b23039 --- /dev/null +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListCostUnitOrdersResult.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_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSRESULT_H_ +#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idaas_doraemon + { + namespace Model + { + class ALIBABACLOUD_IDAAS_DORAEMON_EXPORT ListCostUnitOrdersResult : public ServiceResult + { + public: + struct Item + { + long refundTime; + std::string orderStatus; + std::string aliOrderInstanceId; + std::string aliOrderCode; + long totalCostUnit; + long createTime; + long expiredTime; + long usedCostUnit; + bool exhausted; + }; + + + ListCostUnitOrdersResult(); + explicit ListCostUnitOrdersResult(const std::string &payload); + ~ListCostUnitOrdersResult(); + long getPageSize()const; + long getTotalElements()const; + std::vector getItems()const; + long getTotalPages()const; + + protected: + void parse(const std::string &payload); + private: + long pageSize_; + long totalElements_; + std::vector items_; + long totalPages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSRESULT_H_ \ No newline at end of file diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsRequest.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsRequest.h new file mode 100644 index 000000000..02a8539b2 --- /dev/null +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsRequest.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_IDAAS_DORAEMON_MODEL_LISTORDERCONSUMESTATISTICRECORDSREQUEST_H_ +#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTORDERCONSUMESTATISTICRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Idaas_doraemon { +namespace Model { +class ALIBABACLOUD_IDAAS_DORAEMON_EXPORT ListOrderConsumeStatisticRecordsRequest : public RpcServiceRequest { +public: + ListOrderConsumeStatisticRecordsRequest(); + ~ListOrderConsumeStatisticRecordsRequest(); + std::string getStatisticTimeMin() const; + void setStatisticTimeMin(const std::string &statisticTimeMin); + std::string getAliOrderCode() const; + void setAliOrderCode(const std::string &aliOrderCode); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + std::string getStatisticTimeMax() const; + void setStatisticTimeMax(const std::string &statisticTimeMax); + std::string getApplicationExternalId() const; + void setApplicationExternalId(const std::string &applicationExternalId); + +private: + std::string statisticTimeMin_; + std::string aliOrderCode_; + int pageNumber_; + int pageSize_; + std::string serviceCode_; + std::string statisticTimeMax_; + std::string applicationExternalId_; +}; +} // namespace Model +} // namespace Idaas_doraemon +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTORDERCONSUMESTATISTICRECORDSREQUEST_H_ diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsResult.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsResult.h new file mode 100644 index 000000000..dcb31cbf3 --- /dev/null +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IDAAS_DORAEMON_MODEL_LISTORDERCONSUMESTATISTICRECORDSRESULT_H_ +#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTORDERCONSUMESTATISTICRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idaas_doraemon + { + namespace Model + { + class ALIBABACLOUD_IDAAS_DORAEMON_EXPORT ListOrderConsumeStatisticRecordsResult : public ServiceResult + { + public: + struct Item + { + long statisticTime; + long unitPrice; + std::string serviceCode; + std::string aliOrderCode; + long chargedCount; + long totalPrice; + std::string applicationExternalId; + }; + + + ListOrderConsumeStatisticRecordsResult(); + explicit ListOrderConsumeStatisticRecordsResult(const std::string &payload); + ~ListOrderConsumeStatisticRecordsResult(); + long getPageSize()const; + long getTotalElements()const; + std::vector getItems()const; + long getTotalPages()const; + + protected: + void parse(const std::string &payload); + private: + long pageSize_; + long totalElements_; + std::vector items_; + long totalPages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTORDERCONSUMESTATISTICRECORDSRESULT_H_ \ No newline at end of file diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsReportsRequest.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsReportsRequest.h new file mode 100644 index 000000000..5796149df --- /dev/null +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsReportsRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IDAAS_DORAEMON_MODEL_QUERYSMSREPORTSREQUEST_H_ +#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSREPORTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Idaas_doraemon { +namespace Model { +class ALIBABACLOUD_IDAAS_DORAEMON_EXPORT QuerySmsReportsRequest : public RpcServiceRequest { +public: + QuerySmsReportsRequest(); + ~QuerySmsReportsRequest(); + std::string getEventId() const; + void setEventId(const std::string &eventId); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string eventId_; + std::string appId_; +}; +} // namespace Model +} // namespace Idaas_doraemon +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSREPORTSREQUEST_H_ diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsReportsResult.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsReportsResult.h new file mode 100644 index 000000000..0edefcae9 --- /dev/null +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsReportsResult.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_IDAAS_DORAEMON_MODEL_QUERYSMSREPORTSRESULT_H_ +#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idaas_doraemon + { + namespace Model + { + class ALIBABACLOUD_IDAAS_DORAEMON_EXPORT QuerySmsReportsResult : public ServiceResult + { + public: + struct SmsReportsItem + { + std::string tenantId; + std::string stat; + std::string appId; + int chargedCount; + std::string eventId; + std::string time; + std::string sn; + std::string mobile; + std::string code; + std::string tid; + }; + + + QuerySmsReportsResult(); + explicit QuerySmsReportsResult(const std::string &payload); + ~QuerySmsReportsResult(); + std::vector getSmsReports()const; + long getTotalElements()const; + + protected: + void parse(const std::string &payload); + private: + std::vector smsReports_; + long totalElements_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSREPORTSRESULT_H_ \ No newline at end of file diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsUpsRequest.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsUpsRequest.h new file mode 100644 index 000000000..72a4ea943 --- /dev/null +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsUpsRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_IDAAS_DORAEMON_MODEL_QUERYSMSUPSREQUEST_H_ +#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Idaas_doraemon { +namespace Model { +class ALIBABACLOUD_IDAAS_DORAEMON_EXPORT QuerySmsUpsRequest : public RpcServiceRequest { +public: + QuerySmsUpsRequest(); + ~QuerySmsUpsRequest(); + +private: +}; +} // namespace Model +} // namespace Idaas_doraemon +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSUPSREQUEST_H_ diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsUpsResult.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsUpsResult.h new file mode 100644 index 000000000..89a4a32fb --- /dev/null +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/QuerySmsUpsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSUPSRESULT_H_ +#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Idaas_doraemon + { + namespace Model + { + class ALIBABACLOUD_IDAAS_DORAEMON_EXPORT QuerySmsUpsResult : public ServiceResult + { + public: + struct SmsUpsItem + { + std::string sendTime; + std::string tenantId; + std::string content; + std::string phoneNumber; + std::string destCode; + std::string sequenceId; + }; + + + QuerySmsUpsResult(); + explicit QuerySmsUpsResult(const std::string &payload); + ~QuerySmsUpsResult(); + std::vector getSmsUps()const; + long getTotalElements()const; + + protected: + void parse(const std::string &payload); + private: + std::vector smsUps_; + long totalElements_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSUPSRESULT_H_ \ No newline at end of file diff --git a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ServiceInvokeResult.h b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ServiceInvokeResult.h index d6b708b03..bf7807257 100644 --- a/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ServiceInvokeResult.h +++ b/idaas-doraemon/include/alibabacloud/idaas-doraemon/model/ServiceInvokeResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud ~ServiceInvokeResult(); std::string getIdToken()const; std::string getMessage()const; + std::string getEventId()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; @@ -48,6 +49,7 @@ namespace AlibabaCloud private: std::string idToken_; std::string message_; + std::string eventId_; std::string data_; std::string code_; bool success_; diff --git a/idaas-doraemon/src/Idaas-doraemonClient.cc b/idaas-doraemon/src/Idaas-doraemonClient.cc index 45f392a3c..6d1ce5d72 100644 --- a/idaas-doraemon/src/Idaas-doraemonClient.cc +++ b/idaas-doraemon/src/Idaas-doraemonClient.cc @@ -31,21 +31,21 @@ Idaas_doraemonClient::Idaas_doraemonClient(const Credentials &credentials, const RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "idaasauth"); } Idaas_doraemonClient::Idaas_doraemonClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "idaasauth"); } Idaas_doraemonClient::Idaas_doraemonClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "idaasauth"); } Idaas_doraemonClient::~Idaas_doraemonClient() @@ -339,6 +339,78 @@ Idaas_doraemonClient::ListAuthenticatorsOutcomeCallable Idaas_doraemonClient::li return task->get_future(); } +Idaas_doraemonClient::ListCostUnitOrdersOutcome Idaas_doraemonClient::listCostUnitOrders(const ListCostUnitOrdersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCostUnitOrdersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCostUnitOrdersOutcome(ListCostUnitOrdersResult(outcome.result())); + else + return ListCostUnitOrdersOutcome(outcome.error()); +} + +void Idaas_doraemonClient::listCostUnitOrdersAsync(const ListCostUnitOrdersRequest& request, const ListCostUnitOrdersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCostUnitOrders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Idaas_doraemonClient::ListCostUnitOrdersOutcomeCallable Idaas_doraemonClient::listCostUnitOrdersCallable(const ListCostUnitOrdersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCostUnitOrders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Idaas_doraemonClient::ListOrderConsumeStatisticRecordsOutcome Idaas_doraemonClient::listOrderConsumeStatisticRecords(const ListOrderConsumeStatisticRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOrderConsumeStatisticRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOrderConsumeStatisticRecordsOutcome(ListOrderConsumeStatisticRecordsResult(outcome.result())); + else + return ListOrderConsumeStatisticRecordsOutcome(outcome.error()); +} + +void Idaas_doraemonClient::listOrderConsumeStatisticRecordsAsync(const ListOrderConsumeStatisticRecordsRequest& request, const ListOrderConsumeStatisticRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOrderConsumeStatisticRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Idaas_doraemonClient::ListOrderConsumeStatisticRecordsOutcomeCallable Idaas_doraemonClient::listOrderConsumeStatisticRecordsCallable(const ListOrderConsumeStatisticRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOrderConsumeStatisticRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Idaas_doraemonClient::ListPwnedPasswordsOutcome Idaas_doraemonClient::listPwnedPasswords(const ListPwnedPasswordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +483,78 @@ Idaas_doraemonClient::ListUsersOutcomeCallable Idaas_doraemonClient::listUsersCa return task->get_future(); } +Idaas_doraemonClient::QuerySmsReportsOutcome Idaas_doraemonClient::querySmsReports(const QuerySmsReportsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySmsReportsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySmsReportsOutcome(QuerySmsReportsResult(outcome.result())); + else + return QuerySmsReportsOutcome(outcome.error()); +} + +void Idaas_doraemonClient::querySmsReportsAsync(const QuerySmsReportsRequest& request, const QuerySmsReportsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySmsReports(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Idaas_doraemonClient::QuerySmsReportsOutcomeCallable Idaas_doraemonClient::querySmsReportsCallable(const QuerySmsReportsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySmsReports(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Idaas_doraemonClient::QuerySmsUpsOutcome Idaas_doraemonClient::querySmsUps(const QuerySmsUpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySmsUpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySmsUpsOutcome(QuerySmsUpsResult(outcome.result())); + else + return QuerySmsUpsOutcome(outcome.error()); +} + +void Idaas_doraemonClient::querySmsUpsAsync(const QuerySmsUpsRequest& request, const QuerySmsUpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySmsUps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Idaas_doraemonClient::QuerySmsUpsOutcomeCallable Idaas_doraemonClient::querySmsUpsCallable(const QuerySmsUpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySmsUps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Idaas_doraemonClient::RegisterAuthenticatorOutcome Idaas_doraemonClient::registerAuthenticator(const RegisterAuthenticatorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/idaas-doraemon/src/model/ListCostUnitOrdersRequest.cc b/idaas-doraemon/src/model/ListCostUnitOrdersRequest.cc new file mode 100644 index 000000000..d51e8d090 --- /dev/null +++ b/idaas-doraemon/src/model/ListCostUnitOrdersRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Idaas_doraemon::Model::ListCostUnitOrdersRequest; + +ListCostUnitOrdersRequest::ListCostUnitOrdersRequest() + : RpcServiceRequest("idaas-doraemon", "2021-05-20", "ListCostUnitOrders") { + setMethod(HttpRequest::Method::Post); +} + +ListCostUnitOrdersRequest::~ListCostUnitOrdersRequest() {} + +std::string ListCostUnitOrdersRequest::getBeginDate() const { + return beginDate_; +} + +void ListCostUnitOrdersRequest::setBeginDate(const std::string &beginDate) { + beginDate_ = beginDate; + setParameter(std::string("BeginDate"), beginDate); +} + +int ListCostUnitOrdersRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCostUnitOrdersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListCostUnitOrdersRequest::getFinalDate() const { + return finalDate_; +} + +void ListCostUnitOrdersRequest::setFinalDate(const std::string &finalDate) { + finalDate_ = finalDate; + setParameter(std::string("FinalDate"), finalDate); +} + +int ListCostUnitOrdersRequest::getPageSize() const { + return pageSize_; +} + +void ListCostUnitOrdersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/idaas-doraemon/src/model/ListCostUnitOrdersResult.cc b/idaas-doraemon/src/model/ListCostUnitOrdersResult.cc new file mode 100644 index 000000000..6c42cb100 --- /dev/null +++ b/idaas-doraemon/src/model/ListCostUnitOrdersResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Idaas_doraemon; +using namespace AlibabaCloud::Idaas_doraemon::Model; + +ListCostUnitOrdersResult::ListCostUnitOrdersResult() : + ServiceResult() +{} + +ListCostUnitOrdersResult::ListCostUnitOrdersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCostUnitOrdersResult::~ListCostUnitOrdersResult() +{} + +void ListCostUnitOrdersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Item"]; + for (auto valueItemsItem : allItemsNode) + { + Item itemsObject; + if(!valueItemsItem["AliOrderCode"].isNull()) + itemsObject.aliOrderCode = valueItemsItem["AliOrderCode"].asString(); + if(!valueItemsItem["AliOrderInstanceId"].isNull()) + itemsObject.aliOrderInstanceId = valueItemsItem["AliOrderInstanceId"].asString(); + if(!valueItemsItem["TotalCostUnit"].isNull()) + itemsObject.totalCostUnit = std::stol(valueItemsItem["TotalCostUnit"].asString()); + if(!valueItemsItem["UsedCostUnit"].isNull()) + itemsObject.usedCostUnit = std::stol(valueItemsItem["UsedCostUnit"].asString()); + if(!valueItemsItem["OrderStatus"].isNull()) + itemsObject.orderStatus = valueItemsItem["OrderStatus"].asString(); + if(!valueItemsItem["CreateTime"].isNull()) + itemsObject.createTime = std::stol(valueItemsItem["CreateTime"].asString()); + if(!valueItemsItem["ExpiredTime"].isNull()) + itemsObject.expiredTime = std::stol(valueItemsItem["ExpiredTime"].asString()); + if(!valueItemsItem["RefundTime"].isNull()) + itemsObject.refundTime = std::stol(valueItemsItem["RefundTime"].asString()); + if(!valueItemsItem["Exhausted"].isNull()) + itemsObject.exhausted = valueItemsItem["Exhausted"].asString() == "true"; + items_.push_back(itemsObject); + } + if(!value["TotalPages"].isNull()) + totalPages_ = std::stol(value["TotalPages"].asString()); + if(!value["TotalElements"].isNull()) + totalElements_ = std::stol(value["TotalElements"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + +} + +long ListCostUnitOrdersResult::getPageSize()const +{ + return pageSize_; +} + +long ListCostUnitOrdersResult::getTotalElements()const +{ + return totalElements_; +} + +std::vector ListCostUnitOrdersResult::getItems()const +{ + return items_; +} + +long ListCostUnitOrdersResult::getTotalPages()const +{ + return totalPages_; +} + diff --git a/idaas-doraemon/src/model/ListOrderConsumeStatisticRecordsRequest.cc b/idaas-doraemon/src/model/ListOrderConsumeStatisticRecordsRequest.cc new file mode 100644 index 000000000..a1065d964 --- /dev/null +++ b/idaas-doraemon/src/model/ListOrderConsumeStatisticRecordsRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Idaas_doraemon::Model::ListOrderConsumeStatisticRecordsRequest; + +ListOrderConsumeStatisticRecordsRequest::ListOrderConsumeStatisticRecordsRequest() + : RpcServiceRequest("idaas-doraemon", "2021-05-20", "ListOrderConsumeStatisticRecords") { + setMethod(HttpRequest::Method::Post); +} + +ListOrderConsumeStatisticRecordsRequest::~ListOrderConsumeStatisticRecordsRequest() {} + +std::string ListOrderConsumeStatisticRecordsRequest::getStatisticTimeMin() const { + return statisticTimeMin_; +} + +void ListOrderConsumeStatisticRecordsRequest::setStatisticTimeMin(const std::string &statisticTimeMin) { + statisticTimeMin_ = statisticTimeMin; + setParameter(std::string("StatisticTimeMin"), statisticTimeMin); +} + +std::string ListOrderConsumeStatisticRecordsRequest::getAliOrderCode() const { + return aliOrderCode_; +} + +void ListOrderConsumeStatisticRecordsRequest::setAliOrderCode(const std::string &aliOrderCode) { + aliOrderCode_ = aliOrderCode; + setParameter(std::string("AliOrderCode"), aliOrderCode); +} + +int ListOrderConsumeStatisticRecordsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListOrderConsumeStatisticRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListOrderConsumeStatisticRecordsRequest::getPageSize() const { + return pageSize_; +} + +void ListOrderConsumeStatisticRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListOrderConsumeStatisticRecordsRequest::getServiceCode() const { + return serviceCode_; +} + +void ListOrderConsumeStatisticRecordsRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setParameter(std::string("ServiceCode"), serviceCode); +} + +std::string ListOrderConsumeStatisticRecordsRequest::getStatisticTimeMax() const { + return statisticTimeMax_; +} + +void ListOrderConsumeStatisticRecordsRequest::setStatisticTimeMax(const std::string &statisticTimeMax) { + statisticTimeMax_ = statisticTimeMax; + setParameter(std::string("StatisticTimeMax"), statisticTimeMax); +} + +std::string ListOrderConsumeStatisticRecordsRequest::getApplicationExternalId() const { + return applicationExternalId_; +} + +void ListOrderConsumeStatisticRecordsRequest::setApplicationExternalId(const std::string &applicationExternalId) { + applicationExternalId_ = applicationExternalId; + setParameter(std::string("ApplicationExternalId"), applicationExternalId); +} + diff --git a/idaas-doraemon/src/model/ListOrderConsumeStatisticRecordsResult.cc b/idaas-doraemon/src/model/ListOrderConsumeStatisticRecordsResult.cc new file mode 100644 index 000000000..dd2bb8ad1 --- /dev/null +++ b/idaas-doraemon/src/model/ListOrderConsumeStatisticRecordsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Idaas_doraemon; +using namespace AlibabaCloud::Idaas_doraemon::Model; + +ListOrderConsumeStatisticRecordsResult::ListOrderConsumeStatisticRecordsResult() : + ServiceResult() +{} + +ListOrderConsumeStatisticRecordsResult::ListOrderConsumeStatisticRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOrderConsumeStatisticRecordsResult::~ListOrderConsumeStatisticRecordsResult() +{} + +void ListOrderConsumeStatisticRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Item"]; + for (auto valueItemsItem : allItemsNode) + { + Item itemsObject; + if(!valueItemsItem["AliOrderCode"].isNull()) + itemsObject.aliOrderCode = valueItemsItem["AliOrderCode"].asString(); + if(!valueItemsItem["StatisticTime"].isNull()) + itemsObject.statisticTime = std::stol(valueItemsItem["StatisticTime"].asString()); + if(!valueItemsItem["ApplicationExternalId"].isNull()) + itemsObject.applicationExternalId = valueItemsItem["ApplicationExternalId"].asString(); + if(!valueItemsItem["ServiceCode"].isNull()) + itemsObject.serviceCode = valueItemsItem["ServiceCode"].asString(); + if(!valueItemsItem["UnitPrice"].isNull()) + itemsObject.unitPrice = std::stol(valueItemsItem["UnitPrice"].asString()); + if(!valueItemsItem["ChargedCount"].isNull()) + itemsObject.chargedCount = std::stol(valueItemsItem["ChargedCount"].asString()); + if(!valueItemsItem["TotalPrice"].isNull()) + itemsObject.totalPrice = std::stol(valueItemsItem["TotalPrice"].asString()); + items_.push_back(itemsObject); + } + if(!value["TotalPages"].isNull()) + totalPages_ = std::stol(value["TotalPages"].asString()); + if(!value["TotalElements"].isNull()) + totalElements_ = std::stol(value["TotalElements"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + +} + +long ListOrderConsumeStatisticRecordsResult::getPageSize()const +{ + return pageSize_; +} + +long ListOrderConsumeStatisticRecordsResult::getTotalElements()const +{ + return totalElements_; +} + +std::vector ListOrderConsumeStatisticRecordsResult::getItems()const +{ + return items_; +} + +long ListOrderConsumeStatisticRecordsResult::getTotalPages()const +{ + return totalPages_; +} + diff --git a/idaas-doraemon/src/model/QuerySmsReportsRequest.cc b/idaas-doraemon/src/model/QuerySmsReportsRequest.cc new file mode 100644 index 000000000..8dccb7b24 --- /dev/null +++ b/idaas-doraemon/src/model/QuerySmsReportsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Idaas_doraemon::Model::QuerySmsReportsRequest; + +QuerySmsReportsRequest::QuerySmsReportsRequest() + : RpcServiceRequest("idaas-doraemon", "2021-05-20", "QuerySmsReports") { + setMethod(HttpRequest::Method::Get); +} + +QuerySmsReportsRequest::~QuerySmsReportsRequest() {} + +std::string QuerySmsReportsRequest::getEventId() const { + return eventId_; +} + +void QuerySmsReportsRequest::setEventId(const std::string &eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), eventId); +} + +std::string QuerySmsReportsRequest::getAppId() const { + return appId_; +} + +void QuerySmsReportsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/idaas-doraemon/src/model/QuerySmsReportsResult.cc b/idaas-doraemon/src/model/QuerySmsReportsResult.cc new file mode 100644 index 000000000..953cd9e86 --- /dev/null +++ b/idaas-doraemon/src/model/QuerySmsReportsResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Idaas_doraemon; +using namespace AlibabaCloud::Idaas_doraemon::Model; + +QuerySmsReportsResult::QuerySmsReportsResult() : + ServiceResult() +{} + +QuerySmsReportsResult::QuerySmsReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySmsReportsResult::~QuerySmsReportsResult() +{} + +void QuerySmsReportsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSmsReportsNode = value["SmsReports"]["smsReportsItem"]; + for (auto valueSmsReportssmsReportsItem : allSmsReportsNode) + { + SmsReportsItem smsReportsObject; + if(!valueSmsReportssmsReportsItem["Tid"].isNull()) + smsReportsObject.tid = valueSmsReportssmsReportsItem["Tid"].asString(); + if(!valueSmsReportssmsReportsItem["Mobile"].isNull()) + smsReportsObject.mobile = valueSmsReportssmsReportsItem["Mobile"].asString(); + if(!valueSmsReportssmsReportsItem["Code"].isNull()) + smsReportsObject.code = valueSmsReportssmsReportsItem["Code"].asString(); + if(!valueSmsReportssmsReportsItem["Stat"].isNull()) + smsReportsObject.stat = valueSmsReportssmsReportsItem["Stat"].asString(); + if(!valueSmsReportssmsReportsItem["Sn"].isNull()) + smsReportsObject.sn = valueSmsReportssmsReportsItem["Sn"].asString(); + if(!valueSmsReportssmsReportsItem["TenantId"].isNull()) + smsReportsObject.tenantId = valueSmsReportssmsReportsItem["TenantId"].asString(); + if(!valueSmsReportssmsReportsItem["AppId"].isNull()) + smsReportsObject.appId = valueSmsReportssmsReportsItem["AppId"].asString(); + if(!valueSmsReportssmsReportsItem["EventId"].isNull()) + smsReportsObject.eventId = valueSmsReportssmsReportsItem["EventId"].asString(); + if(!valueSmsReportssmsReportsItem["Time"].isNull()) + smsReportsObject.time = valueSmsReportssmsReportsItem["Time"].asString(); + if(!valueSmsReportssmsReportsItem["ChargedCount"].isNull()) + smsReportsObject.chargedCount = std::stoi(valueSmsReportssmsReportsItem["ChargedCount"].asString()); + smsReports_.push_back(smsReportsObject); + } + if(!value["TotalElements"].isNull()) + totalElements_ = std::stol(value["TotalElements"].asString()); + +} + +std::vector QuerySmsReportsResult::getSmsReports()const +{ + return smsReports_; +} + +long QuerySmsReportsResult::getTotalElements()const +{ + return totalElements_; +} + diff --git a/idaas-doraemon/src/model/QuerySmsUpsRequest.cc b/idaas-doraemon/src/model/QuerySmsUpsRequest.cc new file mode 100644 index 000000000..c10e0a3c1 --- /dev/null +++ b/idaas-doraemon/src/model/QuerySmsUpsRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Idaas_doraemon::Model::QuerySmsUpsRequest; + +QuerySmsUpsRequest::QuerySmsUpsRequest() + : RpcServiceRequest("idaas-doraemon", "2021-05-20", "QuerySmsUps") { + setMethod(HttpRequest::Method::Get); +} + +QuerySmsUpsRequest::~QuerySmsUpsRequest() {} + diff --git a/idaas-doraemon/src/model/QuerySmsUpsResult.cc b/idaas-doraemon/src/model/QuerySmsUpsResult.cc new file mode 100644 index 000000000..b830fad3d --- /dev/null +++ b/idaas-doraemon/src/model/QuerySmsUpsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Idaas_doraemon; +using namespace AlibabaCloud::Idaas_doraemon::Model; + +QuerySmsUpsResult::QuerySmsUpsResult() : + ServiceResult() +{} + +QuerySmsUpsResult::QuerySmsUpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySmsUpsResult::~QuerySmsUpsResult() +{} + +void QuerySmsUpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSmsUpsNode = value["SmsUps"]["smsUpsItem"]; + for (auto valueSmsUpssmsUpsItem : allSmsUpsNode) + { + SmsUpsItem smsUpsObject; + if(!valueSmsUpssmsUpsItem["PhoneNumber"].isNull()) + smsUpsObject.phoneNumber = valueSmsUpssmsUpsItem["PhoneNumber"].asString(); + if(!valueSmsUpssmsUpsItem["Content"].isNull()) + smsUpsObject.content = valueSmsUpssmsUpsItem["Content"].asString(); + if(!valueSmsUpssmsUpsItem["DestCode"].isNull()) + smsUpsObject.destCode = valueSmsUpssmsUpsItem["DestCode"].asString(); + if(!valueSmsUpssmsUpsItem["SequenceId"].isNull()) + smsUpsObject.sequenceId = valueSmsUpssmsUpsItem["SequenceId"].asString(); + if(!valueSmsUpssmsUpsItem["TenantId"].isNull()) + smsUpsObject.tenantId = valueSmsUpssmsUpsItem["TenantId"].asString(); + if(!valueSmsUpssmsUpsItem["SendTime"].isNull()) + smsUpsObject.sendTime = valueSmsUpssmsUpsItem["SendTime"].asString(); + smsUps_.push_back(smsUpsObject); + } + if(!value["TotalElements"].isNull()) + totalElements_ = std::stol(value["TotalElements"].asString()); + +} + +std::vector QuerySmsUpsResult::getSmsUps()const +{ + return smsUps_; +} + +long QuerySmsUpsResult::getTotalElements()const +{ + return totalElements_; +} + diff --git a/idaas-doraemon/src/model/ServiceInvokeResult.cc b/idaas-doraemon/src/model/ServiceInvokeResult.cc index cb58cb51b..99840c163 100644 --- a/idaas-doraemon/src/model/ServiceInvokeResult.cc +++ b/idaas-doraemon/src/model/ServiceInvokeResult.cc @@ -49,6 +49,8 @@ void ServiceInvokeResult::parse(const std::string &payload) success_ = value["Success"].asString() == "true"; if(!value["IdToken"].isNull()) idToken_ = value["IdToken"].asString(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); } @@ -62,6 +64,11 @@ std::string ServiceInvokeResult::getMessage()const return message_; } +std::string ServiceInvokeResult::getEventId()const +{ + return eventId_; +} + std::string ServiceInvokeResult::getData()const { return data_;