Support ServicePeriodUnit in QueryInstanceBill.

This commit is contained in:
sdk-team
2020-06-11 21:17:59 +08:00
parent 767dcb5bee
commit 07b50e30ef
12 changed files with 501 additions and 2 deletions

View File

@@ -116,6 +116,8 @@
#include "model/QueryResourcePackageInstancesResult.h"
#include "model/QuerySettlementBillRequest.h"
#include "model/QuerySettlementBillResult.h"
#include "model/QuerySplitItemBillRequest.h"
#include "model/QuerySplitItemBillResult.h"
#include "model/QueryUserOmsDataRequest.h"
#include "model/QueryUserOmsDataResult.h"
#include "model/RenewInstanceRequest.h"
@@ -286,6 +288,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QuerySettlementBillResult> QuerySettlementBillOutcome;
typedef std::future<QuerySettlementBillOutcome> QuerySettlementBillOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySettlementBillRequest&, const QuerySettlementBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySettlementBillAsyncHandler;
typedef Outcome<Error, Model::QuerySplitItemBillResult> QuerySplitItemBillOutcome;
typedef std::future<QuerySplitItemBillOutcome> QuerySplitItemBillOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySplitItemBillRequest&, const QuerySplitItemBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySplitItemBillAsyncHandler;
typedef Outcome<Error, Model::QueryUserOmsDataResult> QueryUserOmsDataOutcome;
typedef std::future<QueryUserOmsDataOutcome> QueryUserOmsDataOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryUserOmsDataRequest&, const QueryUserOmsDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryUserOmsDataAsyncHandler;
@@ -462,6 +467,9 @@ namespace AlibabaCloud
QuerySettlementBillOutcome querySettlementBill(const Model::QuerySettlementBillRequest &request)const;
void querySettlementBillAsync(const Model::QuerySettlementBillRequest& request, const QuerySettlementBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySettlementBillOutcomeCallable querySettlementBillCallable(const Model::QuerySettlementBillRequest& request) const;
QuerySplitItemBillOutcome querySplitItemBill(const Model::QuerySplitItemBillRequest &request)const;
void querySplitItemBillAsync(const Model::QuerySplitItemBillRequest& request, const QuerySplitItemBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySplitItemBillOutcomeCallable querySplitItemBillCallable(const Model::QuerySplitItemBillRequest& request) const;
QueryUserOmsDataOutcome queryUserOmsData(const Model::QueryUserOmsDataRequest &request)const;
void queryUserOmsDataAsync(const Model::QueryUserOmsDataRequest& request, const QueryUserOmsDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryUserOmsDataOutcomeCallable queryUserOmsDataCallable(const Model::QueryUserOmsDataRequest& request) const;

View File

@@ -64,6 +64,7 @@ namespace AlibabaCloud
std::string billingItem;
std::string nickName;
std::string intranetIP;
std::string servicePeriodUnit;
std::string servicePeriod;
std::string deductedByResourcePackage;
std::string usageUnit;

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_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLREQUEST_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLREQUEST_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 QuerySplitItemBillRequest : public RpcServiceRequest
{
public:
QuerySplitItemBillRequest();
~QuerySplitItemBillRequest();
std::string getProductCode()const;
void setProductCode(const std::string& productCode);
std::string getSubscriptionType()const;
void setSubscriptionType(const std::string& subscriptionType);
std::string getBillingCycle()const;
void setBillingCycle(const std::string& billingCycle);
long getOwnerId()const;
void setOwnerId(long ownerId);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getProductType()const;
void setProductType(const std::string& productType);
int getPageSize()const;
void setPageSize(int pageSize);
private:
std::string productCode_;
std::string subscriptionType_;
std::string billingCycle_;
long ownerId_;
int pageNum_;
std::string productType_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLREQUEST_H_

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_QUERYSPLITITEMBILLRESULT_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSPLITITEMBILLRESULT_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 QuerySplitItemBillResult : public ServiceResult
{
public:
struct Data
{
struct Item
{
std::string instanceSpec;
std::string productName;
std::string instanceID;
float deductedByCashCoupons;
std::string listPriceUnit;
std::string billingDate;
std::string listPrice;
float paymentAmount;
float deductedByPrepaidCard;
float invoiceDiscount;
std::string splitItemName;
std::string subscriptionType;
std::string item;
float pretaxGrossAmount;
std::string instanceConfig;
std::string currency;
std::string costUnit;
std::string resourceGroup;
std::string billingType;
std::string usage;
float deductedByCoupons;
std::string productDetail;
std::string productCode;
std::string zone;
std::string productType;
float outstandingAmount;
std::string billingItem;
std::string nickName;
std::string intranetIP;
std::string servicePeriod;
std::string splitItemID;
std::string deductedByResourcePackage;
std::string usageUnit;
std::string ownerID;
float pretaxAmount;
std::string internetIP;
std::string region;
std::string tag;
};
std::string billingCycle;
int totalCount;
std::string accountID;
int pageNum;
int pageSize;
std::vector<Item> items;
std::string accountName;
};
QuerySplitItemBillResult();
explicit QuerySplitItemBillResult(const std::string &payload);
~QuerySplitItemBillResult();
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_QUERYSPLITITEMBILLRESULT_H_