Add CommodityCode For QueryOrderAPI.

This commit is contained in:
sdk-team
2020-12-28 09:15:31 +00:00
parent f9b117f5a6
commit c5062df7f5
25 changed files with 637 additions and 188 deletions

View File

@@ -70,6 +70,8 @@
#include "model/QueryAccountBalanceResult.h"
#include "model/QueryAccountBillRequest.h"
#include "model/QueryAccountBillResult.h"
#include "model/QueryAccountTransactionDetailsRequest.h"
#include "model/QueryAccountTransactionDetailsResult.h"
#include "model/QueryAccountTransactionsRequest.h"
#include "model/QueryAccountTransactionsResult.h"
#include "model/QueryAvailableInstancesRequest.h"
@@ -221,6 +223,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryAccountBillResult> QueryAccountBillOutcome;
typedef std::future<QueryAccountBillOutcome> QueryAccountBillOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBillRequest&, const QueryAccountBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBillAsyncHandler;
typedef Outcome<Error, Model::QueryAccountTransactionDetailsResult> QueryAccountTransactionDetailsOutcome;
typedef std::future<QueryAccountTransactionDetailsOutcome> QueryAccountTransactionDetailsOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionDetailsRequest&, const QueryAccountTransactionDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionDetailsAsyncHandler;
typedef Outcome<Error, Model::QueryAccountTransactionsResult> QueryAccountTransactionsOutcome;
typedef std::future<QueryAccountTransactionsOutcome> QueryAccountTransactionsOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionsRequest&, const QueryAccountTransactionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionsAsyncHandler;
@@ -403,6 +408,9 @@ namespace AlibabaCloud
QueryAccountBillOutcome queryAccountBill(const Model::QueryAccountBillRequest &request)const;
void queryAccountBillAsync(const Model::QueryAccountBillRequest& request, const QueryAccountBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryAccountBillOutcomeCallable queryAccountBillCallable(const Model::QueryAccountBillRequest& request) const;
QueryAccountTransactionDetailsOutcome queryAccountTransactionDetails(const Model::QueryAccountTransactionDetailsRequest &request)const;
void queryAccountTransactionDetailsAsync(const Model::QueryAccountTransactionDetailsRequest& request, const QueryAccountTransactionDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryAccountTransactionDetailsOutcomeCallable queryAccountTransactionDetailsCallable(const Model::QueryAccountTransactionDetailsRequest& request) const;
QueryAccountTransactionsOutcome queryAccountTransactions(const Model::QueryAccountTransactionsRequest &request)const;
void queryAccountTransactionsAsync(const Model::QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryAccountTransactionsOutcomeCallable queryAccountTransactionsCallable(const Model::QueryAccountTransactionsRequest& request) const;

View File

@@ -35,8 +35,8 @@ namespace AlibabaCloud
{
std::string resourceId;
std::string commodityCode;
long resourceUserId;
std::string apportionCode;
long resourceUserId;
};
public:

View File

@@ -37,8 +37,8 @@ namespace AlibabaCloud
struct CostUnitDtoListItem
{
long unitId;
long ownerUid;
long parentUnitId;
long ownerUid;
std::string unitName;
};
std::vector<CostUnitDtoListItem> costUnitDtoList;

View File

@@ -39,23 +39,24 @@ namespace AlibabaCloud
std::string afterTaxAmount;
std::string subOrderId;
std::string config;
std::string paymentTime;
std::string tax;
std::string paymentCurrency;
std::string _operator;
std::string tax;
std::string paymentTime;
std::string paymentCurrency;
std::string usageEndTime;
std::string subscriptionType;
std::string pretaxGrossAmount;
std::string orderType;
std::string currency;
std::string commodityCode;
std::string usageStartTime;
std::string originalConfig;
std::string paymentStatus;
std::string productCode;
std::string createTime;
std::string productType;
std::string quantity;
std::string relatedOrderId;
std::string quantity;
std::string orderId;
std::string pretaxAmount;
std::string orderSubType;
@@ -64,8 +65,8 @@ namespace AlibabaCloud
std::string pretaxAmountLocal;
};
int totalCount;
int pageNum;
int pageSize;
int pageNum;
std::vector<Order> orderList;
std::string hostName;
};

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsRequest : public RpcServiceRequest
{
public:
QueryAccountTransactionDetailsRequest();
~QueryAccountTransactionDetailsRequest();
std::string getTransactionType()const;
void setTransactionType(const std::string& transactionType);
std::string getCreateTimeEnd()const;
void setCreateTimeEnd(const std::string& createTimeEnd);
std::string getRecordID()const;
void setRecordID(const std::string& recordID);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
int getMaxResults()const;
void setMaxResults(int maxResults);
std::string getTransactionChannel()const;
void setTransactionChannel(const std::string& transactionChannel);
std::string getTransactionChannelSN()const;
void setTransactionChannelSN(const std::string& transactionChannelSN);
std::string getCreateTimeStart()const;
void setCreateTimeStart(const std::string& createTimeStart);
std::string getTransactionNumber()const;
void setTransactionNumber(const std::string& transactionNumber);
private:
std::string transactionType_;
std::string createTimeEnd_;
std::string recordID_;
std::string nextToken_;
int maxResults_;
std::string transactionChannel_;
std::string transactionChannelSN_;
std::string createTimeStart_;
std::string transactionNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsResult : public ServiceResult
{
public:
struct Data
{
struct AccountTransactionsListItem
{
std::string transactionType;
std::string billingCycle;
std::string transactionNumber;
std::string amount;
std::string transactionAccount;
std::string transactionTime;
std::string transactionChannelSN;
std::string remarks;
std::string fundType;
std::string transactionFlow;
std::string recordID;
std::string balance;
std::string transactionChannel;
};
int totalCount;
std::string nextToken;
int maxResults;
std::vector<AccountTransactionsListItem> accountTransactionsList;
std::string accountName;
};
QueryAccountTransactionDetailsResult();
explicit QueryAccountTransactionDetailsResult(const std::string &payload);
~QueryAccountTransactionDetailsResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_

View File

@@ -37,15 +37,15 @@ namespace AlibabaCloud
struct CostUnit
{
long unitId;
long ownerUid;
long parentUnitId;
long ownerUid;
std::string unitName;
};
struct CostUnitStatisInfo
{
long subUnitCount;
long totalResourceCount;
long totalResourceGroupCount;
long totalResourceCount;
long userCount;
long resourceCount;
long totalUserCount;
@@ -64,12 +64,12 @@ namespace AlibabaCloud
std::string commodityCode;
std::string resourceStatus;
std::string resourceUserName;
std::string commodityName;
std::string resourceGroup;
std::string commodityName;
};
int totalCount;
int pageNum;
int pageSize;
int pageNum;
CostUnit costUnit;
std::vector<ResourceInstanceList> resourceInstanceDtoList;
CostUnitStatisInfo costUnitStatisInfo;

View File

@@ -37,13 +37,13 @@ namespace AlibabaCloud
struct CostUnitDtoListItem
{
long unitId;
long ownerUid;
long parentUnitId;
long ownerUid;
std::string unitName;
};
int totalCount;
int pageNum;
int pageSize;
int pageNum;
std::vector<CostUnitDtoListItem> costUnitDtoList;
};

View File

@@ -50,6 +50,7 @@ namespace AlibabaCloud
std::string orderType;
std::string pretaxAmount;
std::string currency;
std::string commodityCode;
std::string paymentStatus;
std::string pretaxAmountLocal;
};