ListOrderConsumeStatisticRecords add applicationExternalId serviceCode.

This commit is contained in:
sdk-team
2024-06-06 03:00:53 +00:00
parent a375fa9d99
commit 458e22b006
22 changed files with 1229 additions and 4 deletions

View File

@@ -1 +1 @@
1.36.1924 1.36.1925

View File

@@ -37,10 +37,18 @@ set(idaas-doraemon_public_header_model
include/alibabacloud/idaas-doraemon/model/ListAuthenticatorOpsLogsResult.h include/alibabacloud/idaas-doraemon/model/ListAuthenticatorOpsLogsResult.h
include/alibabacloud/idaas-doraemon/model/ListAuthenticatorsRequest.h include/alibabacloud/idaas-doraemon/model/ListAuthenticatorsRequest.h
include/alibabacloud/idaas-doraemon/model/ListAuthenticatorsResult.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/ListPwnedPasswordsRequest.h
include/alibabacloud/idaas-doraemon/model/ListPwnedPasswordsResult.h include/alibabacloud/idaas-doraemon/model/ListPwnedPasswordsResult.h
include/alibabacloud/idaas-doraemon/model/ListUsersRequest.h include/alibabacloud/idaas-doraemon/model/ListUsersRequest.h
include/alibabacloud/idaas-doraemon/model/ListUsersResult.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/RegisterAuthenticatorRequest.h
include/alibabacloud/idaas-doraemon/model/RegisterAuthenticatorResult.h include/alibabacloud/idaas-doraemon/model/RegisterAuthenticatorResult.h
include/alibabacloud/idaas-doraemon/model/ServiceInvokeRequest.h include/alibabacloud/idaas-doraemon/model/ServiceInvokeRequest.h
@@ -70,10 +78,18 @@ set(idaas-doraemon_src
src/model/ListAuthenticatorOpsLogsResult.cc src/model/ListAuthenticatorOpsLogsResult.cc
src/model/ListAuthenticatorsRequest.cc src/model/ListAuthenticatorsRequest.cc
src/model/ListAuthenticatorsResult.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/ListPwnedPasswordsRequest.cc
src/model/ListPwnedPasswordsResult.cc src/model/ListPwnedPasswordsResult.cc
src/model/ListUsersRequest.cc src/model/ListUsersRequest.cc
src/model/ListUsersResult.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/RegisterAuthenticatorRequest.cc
src/model/RegisterAuthenticatorResult.cc src/model/RegisterAuthenticatorResult.cc
src/model/ServiceInvokeRequest.cc src/model/ServiceInvokeRequest.cc

View File

@@ -38,10 +38,18 @@
#include "model/ListAuthenticatorOpsLogsResult.h" #include "model/ListAuthenticatorOpsLogsResult.h"
#include "model/ListAuthenticatorsRequest.h" #include "model/ListAuthenticatorsRequest.h"
#include "model/ListAuthenticatorsResult.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/ListPwnedPasswordsRequest.h"
#include "model/ListPwnedPasswordsResult.h" #include "model/ListPwnedPasswordsResult.h"
#include "model/ListUsersRequest.h" #include "model/ListUsersRequest.h"
#include "model/ListUsersResult.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/RegisterAuthenticatorRequest.h"
#include "model/RegisterAuthenticatorResult.h" #include "model/RegisterAuthenticatorResult.h"
#include "model/ServiceInvokeRequest.h" #include "model/ServiceInvokeRequest.h"
@@ -85,12 +93,24 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListAuthenticatorsResult> ListAuthenticatorsOutcome; typedef Outcome<Error, Model::ListAuthenticatorsResult> ListAuthenticatorsOutcome;
typedef std::future<ListAuthenticatorsOutcome> ListAuthenticatorsOutcomeCallable; typedef std::future<ListAuthenticatorsOutcome> ListAuthenticatorsOutcomeCallable;
typedef std::function<void(const Idaas_doraemonClient*, const Model::ListAuthenticatorsRequest&, const ListAuthenticatorsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAuthenticatorsAsyncHandler; typedef std::function<void(const Idaas_doraemonClient*, const Model::ListAuthenticatorsRequest&, const ListAuthenticatorsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAuthenticatorsAsyncHandler;
typedef Outcome<Error, Model::ListCostUnitOrdersResult> ListCostUnitOrdersOutcome;
typedef std::future<ListCostUnitOrdersOutcome> ListCostUnitOrdersOutcomeCallable;
typedef std::function<void(const Idaas_doraemonClient*, const Model::ListCostUnitOrdersRequest&, const ListCostUnitOrdersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCostUnitOrdersAsyncHandler;
typedef Outcome<Error, Model::ListOrderConsumeStatisticRecordsResult> ListOrderConsumeStatisticRecordsOutcome;
typedef std::future<ListOrderConsumeStatisticRecordsOutcome> ListOrderConsumeStatisticRecordsOutcomeCallable;
typedef std::function<void(const Idaas_doraemonClient*, const Model::ListOrderConsumeStatisticRecordsRequest&, const ListOrderConsumeStatisticRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOrderConsumeStatisticRecordsAsyncHandler;
typedef Outcome<Error, Model::ListPwnedPasswordsResult> ListPwnedPasswordsOutcome; typedef Outcome<Error, Model::ListPwnedPasswordsResult> ListPwnedPasswordsOutcome;
typedef std::future<ListPwnedPasswordsOutcome> ListPwnedPasswordsOutcomeCallable; typedef std::future<ListPwnedPasswordsOutcome> ListPwnedPasswordsOutcomeCallable;
typedef std::function<void(const Idaas_doraemonClient*, const Model::ListPwnedPasswordsRequest&, const ListPwnedPasswordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPwnedPasswordsAsyncHandler; typedef std::function<void(const Idaas_doraemonClient*, const Model::ListPwnedPasswordsRequest&, const ListPwnedPasswordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPwnedPasswordsAsyncHandler;
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome; typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable; typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
typedef std::function<void(const Idaas_doraemonClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler; typedef std::function<void(const Idaas_doraemonClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
typedef Outcome<Error, Model::QuerySmsReportsResult> QuerySmsReportsOutcome;
typedef std::future<QuerySmsReportsOutcome> QuerySmsReportsOutcomeCallable;
typedef std::function<void(const Idaas_doraemonClient*, const Model::QuerySmsReportsRequest&, const QuerySmsReportsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsReportsAsyncHandler;
typedef Outcome<Error, Model::QuerySmsUpsResult> QuerySmsUpsOutcome;
typedef std::future<QuerySmsUpsOutcome> QuerySmsUpsOutcomeCallable;
typedef std::function<void(const Idaas_doraemonClient*, const Model::QuerySmsUpsRequest&, const QuerySmsUpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsUpsAsyncHandler;
typedef Outcome<Error, Model::RegisterAuthenticatorResult> RegisterAuthenticatorOutcome; typedef Outcome<Error, Model::RegisterAuthenticatorResult> RegisterAuthenticatorOutcome;
typedef std::future<RegisterAuthenticatorOutcome> RegisterAuthenticatorOutcomeCallable; typedef std::future<RegisterAuthenticatorOutcome> RegisterAuthenticatorOutcomeCallable;
typedef std::function<void(const Idaas_doraemonClient*, const Model::RegisterAuthenticatorRequest&, const RegisterAuthenticatorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterAuthenticatorAsyncHandler; typedef std::function<void(const Idaas_doraemonClient*, const Model::RegisterAuthenticatorRequest&, const RegisterAuthenticatorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterAuthenticatorAsyncHandler;
@@ -135,12 +155,24 @@ namespace AlibabaCloud
ListAuthenticatorsOutcome listAuthenticators(const Model::ListAuthenticatorsRequest &request)const; ListAuthenticatorsOutcome listAuthenticators(const Model::ListAuthenticatorsRequest &request)const;
void listAuthenticatorsAsync(const Model::ListAuthenticatorsRequest& request, const ListAuthenticatorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void listAuthenticatorsAsync(const Model::ListAuthenticatorsRequest& request, const ListAuthenticatorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAuthenticatorsOutcomeCallable listAuthenticatorsCallable(const Model::ListAuthenticatorsRequest& request) 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
ListOrderConsumeStatisticRecordsOutcomeCallable listOrderConsumeStatisticRecordsCallable(const Model::ListOrderConsumeStatisticRecordsRequest& request) const;
ListPwnedPasswordsOutcome listPwnedPasswords(const Model::ListPwnedPasswordsRequest &request)const; ListPwnedPasswordsOutcome listPwnedPasswords(const Model::ListPwnedPasswordsRequest &request)const;
void listPwnedPasswordsAsync(const Model::ListPwnedPasswordsRequest& request, const ListPwnedPasswordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void listPwnedPasswordsAsync(const Model::ListPwnedPasswordsRequest& request, const ListPwnedPasswordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPwnedPasswordsOutcomeCallable listPwnedPasswordsCallable(const Model::ListPwnedPasswordsRequest& request) const; ListPwnedPasswordsOutcomeCallable listPwnedPasswordsCallable(const Model::ListPwnedPasswordsRequest& request) const;
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
QuerySmsUpsOutcomeCallable querySmsUpsCallable(const Model::QuerySmsUpsRequest& request) const;
RegisterAuthenticatorOutcome registerAuthenticator(const Model::RegisterAuthenticatorRequest &request)const; RegisterAuthenticatorOutcome registerAuthenticator(const Model::RegisterAuthenticatorRequest &request)const;
void registerAuthenticatorAsync(const Model::RegisterAuthenticatorRequest& request, const RegisterAuthenticatorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void registerAuthenticatorAsync(const Model::RegisterAuthenticatorRequest& request, const RegisterAuthenticatorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RegisterAuthenticatorOutcomeCallable registerAuthenticatorCallable(const Model::RegisterAuthenticatorRequest& request) const; RegisterAuthenticatorOutcomeCallable registerAuthenticatorCallable(const Model::RegisterAuthenticatorRequest& request) const;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSREQUEST_H_
#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSREQUEST_H_
#include <alibabacloud/idaas-doraemon/Idaas_doraemonExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/idaas-doraemon/Idaas_doraemonExport.h>
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<Item> getItems()const;
long getTotalPages()const;
protected:
void parse(const std::string &payload);
private:
long pageSize_;
long totalElements_;
std::vector<Item> items_;
long totalPages_;
};
}
}
}
#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTCOSTUNITORDERSRESULT_H_

View File

@@ -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 <alibabacloud/idaas-doraemon/Idaas_doraemonExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/idaas-doraemon/Idaas_doraemonExport.h>
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<Item> getItems()const;
long getTotalPages()const;
protected:
void parse(const std::string &payload);
private:
long pageSize_;
long totalElements_;
std::vector<Item> items_;
long totalPages_;
};
}
}
}
#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_LISTORDERCONSUMESTATISTICRECORDSRESULT_H_

View File

@@ -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 <alibabacloud/idaas-doraemon/Idaas_doraemonExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/idaas-doraemon/Idaas_doraemonExport.h>
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<SmsReportsItem> getSmsReports()const;
long getTotalElements()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SmsReportsItem> smsReports_;
long totalElements_;
};
}
}
}
#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSREPORTSRESULT_H_

View File

@@ -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 <alibabacloud/idaas-doraemon/Idaas_doraemonExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSUPSRESULT_H_
#define ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSUPSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/idaas-doraemon/Idaas_doraemonExport.h>
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<SmsUpsItem> getSmsUps()const;
long getTotalElements()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SmsUpsItem> smsUps_;
long totalElements_;
};
}
}
}
#endif // !ALIBABACLOUD_IDAAS_DORAEMON_MODEL_QUERYSMSUPSRESULT_H_

View File

@@ -39,6 +39,7 @@ namespace AlibabaCloud
~ServiceInvokeResult(); ~ServiceInvokeResult();
std::string getIdToken()const; std::string getIdToken()const;
std::string getMessage()const; std::string getMessage()const;
std::string getEventId()const;
std::string getData()const; std::string getData()const;
std::string getCode()const; std::string getCode()const;
bool getSuccess()const; bool getSuccess()const;
@@ -48,6 +49,7 @@ namespace AlibabaCloud
private: private:
std::string idToken_; std::string idToken_;
std::string message_; std::string message_;
std::string eventId_;
std::string data_; std::string data_;
std::string code_; std::string code_;
bool success_; bool success_;

View File

@@ -31,21 +31,21 @@ Idaas_doraemonClient::Idaas_doraemonClient(const Credentials &credentials, const
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration) RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{ {
auto locationClient = std::make_shared<LocationClient>(credentials, configuration); auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, ""); endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "idaasauth");
} }
Idaas_doraemonClient::Idaas_doraemonClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) : Idaas_doraemonClient::Idaas_doraemonClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{ {
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration); auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, ""); endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "idaasauth");
} }
Idaas_doraemonClient::Idaas_doraemonClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : Idaas_doraemonClient::Idaas_doraemonClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration) RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{ {
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration); auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, ""); endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "idaasauth");
} }
Idaas_doraemonClient::~Idaas_doraemonClient() Idaas_doraemonClient::~Idaas_doraemonClient()
@@ -339,6 +339,78 @@ Idaas_doraemonClient::ListAuthenticatorsOutcomeCallable Idaas_doraemonClient::li
return task->get_future(); 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<const AsyncCallerContext>& 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<std::packaged_task<ListCostUnitOrdersOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<ListOrderConsumeStatisticRecordsOutcome()>>(
[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 Idaas_doraemonClient::ListPwnedPasswordsOutcome Idaas_doraemonClient::listPwnedPasswords(const ListPwnedPasswordsRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -411,6 +483,78 @@ Idaas_doraemonClient::ListUsersOutcomeCallable Idaas_doraemonClient::listUsersCa
return task->get_future(); 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<const AsyncCallerContext>& 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<std::packaged_task<QuerySmsReportsOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<QuerySmsUpsOutcome()>>(
[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 Idaas_doraemonClient::RegisterAuthenticatorOutcome Idaas_doraemonClient::registerAuthenticator(const RegisterAuthenticatorRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/idaas-doraemon/model/ListCostUnitOrdersRequest.h>
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));
}

View File

@@ -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 <alibabacloud/idaas-doraemon/model/ListCostUnitOrdersResult.h>
#include <json/json.h>
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::Item> ListCostUnitOrdersResult::getItems()const
{
return items_;
}
long ListCostUnitOrdersResult::getTotalPages()const
{
return totalPages_;
}

View File

@@ -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 <alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsRequest.h>
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);
}

View File

@@ -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 <alibabacloud/idaas-doraemon/model/ListOrderConsumeStatisticRecordsResult.h>
#include <json/json.h>
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::Item> ListOrderConsumeStatisticRecordsResult::getItems()const
{
return items_;
}
long ListOrderConsumeStatisticRecordsResult::getTotalPages()const
{
return totalPages_;
}

View File

@@ -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 <alibabacloud/idaas-doraemon/model/QuerySmsReportsRequest.h>
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);
}

View File

@@ -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 <alibabacloud/idaas-doraemon/model/QuerySmsReportsResult.h>
#include <json/json.h>
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::SmsReportsItem> QuerySmsReportsResult::getSmsReports()const
{
return smsReports_;
}
long QuerySmsReportsResult::getTotalElements()const
{
return totalElements_;
}

View File

@@ -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 <alibabacloud/idaas-doraemon/model/QuerySmsUpsRequest.h>
using AlibabaCloud::Idaas_doraemon::Model::QuerySmsUpsRequest;
QuerySmsUpsRequest::QuerySmsUpsRequest()
: RpcServiceRequest("idaas-doraemon", "2021-05-20", "QuerySmsUps") {
setMethod(HttpRequest::Method::Get);
}
QuerySmsUpsRequest::~QuerySmsUpsRequest() {}

View File

@@ -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 <alibabacloud/idaas-doraemon/model/QuerySmsUpsResult.h>
#include <json/json.h>
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::SmsUpsItem> QuerySmsUpsResult::getSmsUps()const
{
return smsUps_;
}
long QuerySmsUpsResult::getTotalElements()const
{
return totalElements_;
}

View File

@@ -49,6 +49,8 @@ void ServiceInvokeResult::parse(const std::string &payload)
success_ = value["Success"].asString() == "true"; success_ = value["Success"].asString() == "true";
if(!value["IdToken"].isNull()) if(!value["IdToken"].isNull())
idToken_ = value["IdToken"].asString(); idToken_ = value["IdToken"].asString();
if(!value["EventId"].isNull())
eventId_ = value["EventId"].asString();
} }
@@ -62,6 +64,11 @@ std::string ServiceInvokeResult::getMessage()const
return message_; return message_;
} }
std::string ServiceInvokeResult::getEventId()const
{
return eventId_;
}
std::string ServiceInvokeResult::getData()const std::string ServiceInvokeResult::getData()const
{ {
return data_; return data_;