Add BillingDate support in QueryAccontBill.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2021-01-14 Version: patch
|
||||
- Add BillingDate support in QueryAccontBill.
|
||||
- Add SplitAccountId, SplitAccountName, SplitBillingCycle, SplitProductDetail, SplitCommodityCode, ServicePeriodUnit support in QuerySplitItemBill.
|
||||
|
||||
2021-01-14 Version: patch
|
||||
- Update Open API.
|
||||
|
||||
|
||||
@@ -115,6 +115,10 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogResult.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h
|
||||
@@ -127,6 +131,10 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/RenewInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/RenewResourcePackageRequest.h
|
||||
include/alibabacloud/bssopenapi/model/RenewResourcePackageResult.h
|
||||
include/alibabacloud/bssopenapi/model/SaveUserCreditRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SaveUserCreditResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetCreditLabelActionRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SetCreditLabelActionResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetRenewalRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SetRenewalResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h
|
||||
@@ -238,6 +246,10 @@ set(bssopenapi_src
|
||||
src/model/QueryResellerAvailableQuotaResult.cc
|
||||
src/model/QueryResourcePackageInstancesRequest.cc
|
||||
src/model/QueryResourcePackageInstancesResult.cc
|
||||
src/model/QuerySavingsPlansDeductLogRequest.cc
|
||||
src/model/QuerySavingsPlansDeductLogResult.cc
|
||||
src/model/QuerySavingsPlansInstanceRequest.cc
|
||||
src/model/QuerySavingsPlansInstanceResult.cc
|
||||
src/model/QuerySettleBillRequest.cc
|
||||
src/model/QuerySettleBillResult.cc
|
||||
src/model/QuerySettlementBillRequest.cc
|
||||
@@ -250,6 +262,10 @@ set(bssopenapi_src
|
||||
src/model/RenewInstanceResult.cc
|
||||
src/model/RenewResourcePackageRequest.cc
|
||||
src/model/RenewResourcePackageResult.cc
|
||||
src/model/SaveUserCreditRequest.cc
|
||||
src/model/SaveUserCreditResult.cc
|
||||
src/model/SetCreditLabelActionRequest.cc
|
||||
src/model/SetCreditLabelActionResult.cc
|
||||
src/model/SetRenewalRequest.cc
|
||||
src/model/SetRenewalResult.cc
|
||||
src/model/SetResellerUserAlarmThresholdRequest.cc
|
||||
|
||||
@@ -116,6 +116,10 @@
|
||||
#include "model/QueryResellerAvailableQuotaResult.h"
|
||||
#include "model/QueryResourcePackageInstancesRequest.h"
|
||||
#include "model/QueryResourcePackageInstancesResult.h"
|
||||
#include "model/QuerySavingsPlansDeductLogRequest.h"
|
||||
#include "model/QuerySavingsPlansDeductLogResult.h"
|
||||
#include "model/QuerySavingsPlansInstanceRequest.h"
|
||||
#include "model/QuerySavingsPlansInstanceResult.h"
|
||||
#include "model/QuerySettleBillRequest.h"
|
||||
#include "model/QuerySettleBillResult.h"
|
||||
#include "model/QuerySettlementBillRequest.h"
|
||||
@@ -128,6 +132,10 @@
|
||||
#include "model/RenewInstanceResult.h"
|
||||
#include "model/RenewResourcePackageRequest.h"
|
||||
#include "model/RenewResourcePackageResult.h"
|
||||
#include "model/SaveUserCreditRequest.h"
|
||||
#include "model/SaveUserCreditResult.h"
|
||||
#include "model/SetCreditLabelActionRequest.h"
|
||||
#include "model/SetCreditLabelActionResult.h"
|
||||
#include "model/SetRenewalRequest.h"
|
||||
#include "model/SetRenewalResult.h"
|
||||
#include "model/SetResellerUserAlarmThresholdRequest.h"
|
||||
@@ -292,6 +300,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
|
||||
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySavingsPlansDeductLogResult> QuerySavingsPlansDeductLogOutcome;
|
||||
typedef std::future<QuerySavingsPlansDeductLogOutcome> QuerySavingsPlansDeductLogOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySavingsPlansDeductLogRequest&, const QuerySavingsPlansDeductLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySavingsPlansDeductLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySavingsPlansInstanceResult> QuerySavingsPlansInstanceOutcome;
|
||||
typedef std::future<QuerySavingsPlansInstanceOutcome> QuerySavingsPlansInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySavingsPlansInstanceRequest&, const QuerySavingsPlansInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySavingsPlansInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySettleBillResult> QuerySettleBillOutcome;
|
||||
typedef std::future<QuerySettleBillOutcome> QuerySettleBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySettleBillRequest&, const QuerySettleBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySettleBillAsyncHandler;
|
||||
@@ -310,6 +324,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RenewResourcePackageResult> RenewResourcePackageOutcome;
|
||||
typedef std::future<RenewResourcePackageOutcome> RenewResourcePackageOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::RenewResourcePackageRequest&, const RenewResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewResourcePackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SaveUserCreditResult> SaveUserCreditOutcome;
|
||||
typedef std::future<SaveUserCreditOutcome> SaveUserCreditOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SaveUserCreditRequest&, const SaveUserCreditOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveUserCreditAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetCreditLabelActionResult> SetCreditLabelActionOutcome;
|
||||
typedef std::future<SetCreditLabelActionOutcome> SetCreditLabelActionOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetCreditLabelActionRequest&, const SetCreditLabelActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetCreditLabelActionAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetRenewalResult> SetRenewalOutcome;
|
||||
typedef std::future<SetRenewalOutcome> SetRenewalOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetRenewalRequest&, const SetRenewalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRenewalAsyncHandler;
|
||||
@@ -477,6 +497,12 @@ namespace AlibabaCloud
|
||||
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
|
||||
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;
|
||||
QuerySavingsPlansDeductLogOutcome querySavingsPlansDeductLog(const Model::QuerySavingsPlansDeductLogRequest &request)const;
|
||||
void querySavingsPlansDeductLogAsync(const Model::QuerySavingsPlansDeductLogRequest& request, const QuerySavingsPlansDeductLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySavingsPlansDeductLogOutcomeCallable querySavingsPlansDeductLogCallable(const Model::QuerySavingsPlansDeductLogRequest& request) const;
|
||||
QuerySavingsPlansInstanceOutcome querySavingsPlansInstance(const Model::QuerySavingsPlansInstanceRequest &request)const;
|
||||
void querySavingsPlansInstanceAsync(const Model::QuerySavingsPlansInstanceRequest& request, const QuerySavingsPlansInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySavingsPlansInstanceOutcomeCallable querySavingsPlansInstanceCallable(const Model::QuerySavingsPlansInstanceRequest& request) const;
|
||||
QuerySettleBillOutcome querySettleBill(const Model::QuerySettleBillRequest &request)const;
|
||||
void querySettleBillAsync(const Model::QuerySettleBillRequest& request, const QuerySettleBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySettleBillOutcomeCallable querySettleBillCallable(const Model::QuerySettleBillRequest& request) const;
|
||||
@@ -495,6 +521,12 @@ namespace AlibabaCloud
|
||||
RenewResourcePackageOutcome renewResourcePackage(const Model::RenewResourcePackageRequest &request)const;
|
||||
void renewResourcePackageAsync(const Model::RenewResourcePackageRequest& request, const RenewResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewResourcePackageOutcomeCallable renewResourcePackageCallable(const Model::RenewResourcePackageRequest& request) const;
|
||||
SaveUserCreditOutcome saveUserCredit(const Model::SaveUserCreditRequest &request)const;
|
||||
void saveUserCreditAsync(const Model::SaveUserCreditRequest& request, const SaveUserCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SaveUserCreditOutcomeCallable saveUserCreditCallable(const Model::SaveUserCreditRequest& request) const;
|
||||
SetCreditLabelActionOutcome setCreditLabelAction(const Model::SetCreditLabelActionRequest &request)const;
|
||||
void setCreditLabelActionAsync(const Model::SetCreditLabelActionRequest& request, const SetCreditLabelActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetCreditLabelActionOutcomeCallable setCreditLabelActionCallable(const Model::SetCreditLabelActionRequest& request) const;
|
||||
SetRenewalOutcome setRenewal(const Model::SetRenewalRequest &request)const;
|
||||
void setRenewalAsync(const Model::SetRenewalRequest& request, const SetRenewalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetRenewalOutcomeCallable setRenewalCallable(const Model::SetRenewalRequest& request) const;
|
||||
|
||||
@@ -45,8 +45,12 @@ namespace AlibabaCloud
|
||||
void setOwnerID(long ownerID);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::string getBillingDate()const;
|
||||
void setBillingDate(const std::string& billingDate);
|
||||
bool getIsGroupByProduct()const;
|
||||
void setIsGroupByProduct(bool isGroupByProduct);
|
||||
std::string getGranularity()const;
|
||||
void setGranularity(const std::string& granularity);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
@@ -56,7 +60,9 @@ namespace AlibabaCloud
|
||||
int pageNum_;
|
||||
long ownerID_;
|
||||
long billOwnerId_;
|
||||
std::string billingDate_;
|
||||
bool isGroupByProduct_;
|
||||
std::string granularity_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
std::string productCode;
|
||||
float deductedByCashCoupons;
|
||||
float outstandingAmount;
|
||||
std::string billingDate;
|
||||
float paymentAmount;
|
||||
float deductedByPrepaidCard;
|
||||
std::string pipCode;
|
||||
|
||||
@@ -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_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_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 QuerySavingsPlansDeductLogRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QuerySavingsPlansDeductLogRequest();
|
||||
~QuerySavingsPlansDeductLogRequest();
|
||||
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getLocale()const;
|
||||
void setLocale(const std::string& locale);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getInstanceType()const;
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string locale_;
|
||||
int pageNum_;
|
||||
std::string instanceId_;
|
||||
std::string requestId_;
|
||||
int pageSize_;
|
||||
std::string instanceType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_QUERYSAVINGSPLANSDEDUCTLOGRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGRESULT_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 QuerySavingsPlansDeductLogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct SavingsPlansDeductDetailResponse
|
||||
{
|
||||
std::string deductFee;
|
||||
std::string billModule;
|
||||
std::string endTime;
|
||||
std::string deductCommodity;
|
||||
std::string instanceId;
|
||||
long userId;
|
||||
std::string startTime;
|
||||
std::string deductRate;
|
||||
std::string deductInstanceId;
|
||||
std::string discountRate;
|
||||
std::string savingsType;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
std::vector<SavingsPlansDeductDetailResponse> items;
|
||||
};
|
||||
|
||||
|
||||
QuerySavingsPlansDeductLogResult();
|
||||
explicit QuerySavingsPlansDeductLogResult(const std::string &payload);
|
||||
~QuerySavingsPlansDeductLogResult();
|
||||
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_QUERYSAVINGSPLANSDEDUCTLOGRESULT_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_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_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 QuerySavingsPlansInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QuerySavingsPlansInstanceRequest();
|
||||
~QuerySavingsPlansInstanceRequest();
|
||||
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getLocale()const;
|
||||
void setLocale(const std::string& locale);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string locale_;
|
||||
int pageNum_;
|
||||
std::string instanceId_;
|
||||
std::string requestId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_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 QuerySavingsPlansInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct SavingsPlansDetailResponse
|
||||
{
|
||||
std::string status;
|
||||
std::string endTime;
|
||||
std::string instanceId;
|
||||
std::string instanceFamily;
|
||||
std::string startTime;
|
||||
std::string totalSave;
|
||||
std::string prepayFee;
|
||||
std::string payMode;
|
||||
std::string utilization;
|
||||
std::string currency;
|
||||
std::string poolValue;
|
||||
std::string region;
|
||||
bool share;
|
||||
std::string savingsType;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
std::vector<SavingsPlansDetailResponse> items;
|
||||
};
|
||||
|
||||
|
||||
QuerySavingsPlansInstanceResult();
|
||||
explicit QuerySavingsPlansInstanceResult(const std::string &payload);
|
||||
~QuerySavingsPlansInstanceResult();
|
||||
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_QUERYSAVINGSPLANSINSTANCERESULT_H_
|
||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
||||
std::string instanceSpec;
|
||||
std::string productName;
|
||||
std::string instanceID;
|
||||
std::string splitCommodityCode;
|
||||
float deductedByCashCoupons;
|
||||
std::string listPriceUnit;
|
||||
std::string billingDate;
|
||||
@@ -47,6 +48,7 @@ namespace AlibabaCloud
|
||||
float deductedByPrepaidCard;
|
||||
float invoiceDiscount;
|
||||
std::string splitItemName;
|
||||
std::string splitProductDetail;
|
||||
std::string subscriptionType;
|
||||
std::string item;
|
||||
float pretaxGrossAmount;
|
||||
@@ -56,8 +58,10 @@ namespace AlibabaCloud
|
||||
std::string costUnit;
|
||||
std::string resourceGroup;
|
||||
std::string billingType;
|
||||
std::string splitAccountName;
|
||||
std::string usage;
|
||||
float deductedByCoupons;
|
||||
std::string splitAccountID;
|
||||
std::string productDetail;
|
||||
std::string productCode;
|
||||
std::string zone;
|
||||
@@ -67,9 +71,11 @@ namespace AlibabaCloud
|
||||
std::string nickName;
|
||||
std::string intranetIP;
|
||||
std::string pipCode;
|
||||
std::string servicePeriodUnit;
|
||||
std::string servicePeriod;
|
||||
std::string splitItemID;
|
||||
std::string deductedByResourcePackage;
|
||||
std::string splitBillingCycle;
|
||||
std::string usageUnit;
|
||||
std::string ownerID;
|
||||
float pretaxAmount;
|
||||
|
||||
@@ -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_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_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 SaveUserCreditRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SaveUserCreditRequest();
|
||||
~SaveUserCreditRequest();
|
||||
|
||||
bool getAvoidExpiration()const;
|
||||
void setAvoidExpiration(bool avoidExpiration);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
bool getAvoidPrepaidNotification()const;
|
||||
void setAvoidPrepaidNotification(bool avoidPrepaidNotification);
|
||||
bool getAvoidPrepaidExpiration()const;
|
||||
void setAvoidPrepaidExpiration(bool avoidPrepaidExpiration);
|
||||
bool getAvoidNotification()const;
|
||||
void setAvoidNotification(bool avoidNotification);
|
||||
std::string get_Operator()const;
|
||||
void set_Operator(const std::string& _operator);
|
||||
std::string getCreditValue()const;
|
||||
void setCreditValue(const std::string& creditValue);
|
||||
std::string getCreditType()const;
|
||||
void setCreditType(const std::string& creditType);
|
||||
|
||||
private:
|
||||
bool avoidExpiration_;
|
||||
std::string description_;
|
||||
bool avoidPrepaidNotification_;
|
||||
bool avoidPrepaidExpiration_;
|
||||
bool avoidNotification_;
|
||||
std::string _operator_;
|
||||
std::string creditValue_;
|
||||
std::string creditType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_SAVEUSERCREDITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITRESULT_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 SaveUserCreditResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SaveUserCreditResult();
|
||||
explicit SaveUserCreditResult(const std::string &payload);
|
||||
~SaveUserCreditResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITRESULT_H_
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_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 SetCreditLabelActionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetCreditLabelActionRequest();
|
||||
~SetCreditLabelActionRequest();
|
||||
|
||||
std::string getActionType()const;
|
||||
void setActionType(const std::string& actionType);
|
||||
std::string getIsNeedSaveNotifyRule()const;
|
||||
void setIsNeedSaveNotifyRule(const std::string& isNeedSaveNotifyRule);
|
||||
std::string getIsNeedAdjustCreditAccount()const;
|
||||
void setIsNeedAdjustCreditAccount(const std::string& isNeedAdjustCreditAccount);
|
||||
bool getNewCreateMode()const;
|
||||
void setNewCreateMode(bool newCreateMode);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getSource()const;
|
||||
void setSource(const std::string& source);
|
||||
std::string getCurrencyCode()const;
|
||||
void setCurrencyCode(const std::string& currencyCode);
|
||||
std::string getDailyCycle()const;
|
||||
void setDailyCycle(const std::string& dailyCycle);
|
||||
std::string get_Operator()const;
|
||||
void set_Operator(const std::string& _operator);
|
||||
std::string getUid()const;
|
||||
void setUid(const std::string& uid);
|
||||
std::string getSiteCode()const;
|
||||
void setSiteCode(const std::string& siteCode);
|
||||
std::string getClearCycle()const;
|
||||
void setClearCycle(const std::string& clearCycle);
|
||||
bool getNeedNotice()const;
|
||||
void setNeedNotice(bool needNotice);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
std::string getIsNeedSetCreditAmount()const;
|
||||
void setIsNeedSetCreditAmount(const std::string& isNeedSetCreditAmount);
|
||||
std::string getCreditAmount()const;
|
||||
void setCreditAmount(const std::string& creditAmount);
|
||||
std::string getIsNeedAddSettleLabel()const;
|
||||
void setIsNeedAddSettleLabel(const std::string& isNeedAddSettleLabel);
|
||||
|
||||
private:
|
||||
std::string actionType_;
|
||||
std::string isNeedSaveNotifyRule_;
|
||||
std::string isNeedAdjustCreditAccount_;
|
||||
bool newCreateMode_;
|
||||
std::string description_;
|
||||
std::string source_;
|
||||
std::string currencyCode_;
|
||||
std::string dailyCycle_;
|
||||
std::string _operator_;
|
||||
std::string uid_;
|
||||
std::string siteCode_;
|
||||
std::string clearCycle_;
|
||||
bool needNotice_;
|
||||
std::string requestId_;
|
||||
std::string isNeedSetCreditAmount_;
|
||||
std::string creditAmount_;
|
||||
std::string isNeedAddSettleLabel_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_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 SetCreditLabelActionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetCreditLabelActionResult();
|
||||
explicit SetCreditLabelActionResult(const std::string &payload);
|
||||
~SetCreditLabelActionResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_H_
|
||||
@@ -1743,6 +1743,78 @@ BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QuerySavingsPlansDeductLogOutcome BssOpenApiClient::querySavingsPlansDeductLog(const QuerySavingsPlansDeductLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySavingsPlansDeductLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySavingsPlansDeductLogOutcome(QuerySavingsPlansDeductLogResult(outcome.result()));
|
||||
else
|
||||
return QuerySavingsPlansDeductLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::querySavingsPlansDeductLogAsync(const QuerySavingsPlansDeductLogRequest& request, const QuerySavingsPlansDeductLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySavingsPlansDeductLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QuerySavingsPlansDeductLogOutcomeCallable BssOpenApiClient::querySavingsPlansDeductLogCallable(const QuerySavingsPlansDeductLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySavingsPlansDeductLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySavingsPlansDeductLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QuerySavingsPlansInstanceOutcome BssOpenApiClient::querySavingsPlansInstance(const QuerySavingsPlansInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySavingsPlansInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySavingsPlansInstanceOutcome(QuerySavingsPlansInstanceResult(outcome.result()));
|
||||
else
|
||||
return QuerySavingsPlansInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::querySavingsPlansInstanceAsync(const QuerySavingsPlansInstanceRequest& request, const QuerySavingsPlansInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySavingsPlansInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QuerySavingsPlansInstanceOutcomeCallable BssOpenApiClient::querySavingsPlansInstanceCallable(const QuerySavingsPlansInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySavingsPlansInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySavingsPlansInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QuerySettleBillOutcome BssOpenApiClient::querySettleBill(const QuerySettleBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1959,6 +2031,78 @@ BssOpenApiClient::RenewResourcePackageOutcomeCallable BssOpenApiClient::renewRes
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SaveUserCreditOutcome BssOpenApiClient::saveUserCredit(const SaveUserCreditRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SaveUserCreditOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SaveUserCreditOutcome(SaveUserCreditResult(outcome.result()));
|
||||
else
|
||||
return SaveUserCreditOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::saveUserCreditAsync(const SaveUserCreditRequest& request, const SaveUserCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, saveUserCredit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SaveUserCreditOutcomeCallable BssOpenApiClient::saveUserCreditCallable(const SaveUserCreditRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SaveUserCreditOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->saveUserCredit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetCreditLabelActionOutcome BssOpenApiClient::setCreditLabelAction(const SetCreditLabelActionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetCreditLabelActionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetCreditLabelActionOutcome(SetCreditLabelActionResult(outcome.result()));
|
||||
else
|
||||
return SetCreditLabelActionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::setCreditLabelActionAsync(const SetCreditLabelActionRequest& request, const SetCreditLabelActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setCreditLabelAction(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetCreditLabelActionOutcomeCallable BssOpenApiClient::setCreditLabelActionCallable(const SetCreditLabelActionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetCreditLabelActionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setCreditLabelAction(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetRenewalOutcome BssOpenApiClient::setRenewal(const SetRenewalRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -82,6 +82,17 @@ void QueryAccountBillRequest::setBillOwnerId(long billOwnerId)
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryAccountBillRequest::getBillingDate()const
|
||||
{
|
||||
return billingDate_;
|
||||
}
|
||||
|
||||
void QueryAccountBillRequest::setBillingDate(const std::string& billingDate)
|
||||
{
|
||||
billingDate_ = billingDate;
|
||||
setParameter("BillingDate", billingDate);
|
||||
}
|
||||
|
||||
bool QueryAccountBillRequest::getIsGroupByProduct()const
|
||||
{
|
||||
return isGroupByProduct_;
|
||||
@@ -93,6 +104,17 @@ void QueryAccountBillRequest::setIsGroupByProduct(bool isGroupByProduct)
|
||||
setParameter("IsGroupByProduct", isGroupByProduct ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryAccountBillRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
void QueryAccountBillRequest::setGranularity(const std::string& granularity)
|
||||
{
|
||||
granularity_ = granularity;
|
||||
setParameter("Granularity", granularity);
|
||||
}
|
||||
|
||||
int QueryAccountBillRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
@@ -88,6 +88,8 @@ void QueryAccountBillResult::parse(const std::string &payload)
|
||||
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["BillingDate"].isNull())
|
||||
itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
117
bssopenapi/src/model/QuerySavingsPlansDeductLogRequest.cc
Normal file
117
bssopenapi/src/model/QuerySavingsPlansDeductLogRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansDeductLogRequest;
|
||||
|
||||
QuerySavingsPlansDeductLogRequest::QuerySavingsPlansDeductLogRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansDeductLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySavingsPlansDeductLogRequest::~QuerySavingsPlansDeductLogRequest()
|
||||
{}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogRequest::getLocale()const
|
||||
{
|
||||
return locale_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setLocale(const std::string& locale)
|
||||
{
|
||||
locale_ = locale;
|
||||
setParameter("Locale", locale);
|
||||
}
|
||||
|
||||
int QuerySavingsPlansDeductLogRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int QuerySavingsPlansDeductLogRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
105
bssopenapi/src/model/QuerySavingsPlansDeductLogResult.cc
Normal file
105
bssopenapi/src/model/QuerySavingsPlansDeductLogResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QuerySavingsPlansDeductLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QuerySavingsPlansDeductLogResult::QuerySavingsPlansDeductLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySavingsPlansDeductLogResult::QuerySavingsPlansDeductLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySavingsPlansDeductLogResult::~QuerySavingsPlansDeductLogResult()
|
||||
{}
|
||||
|
||||
void QuerySavingsPlansDeductLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allItemsNode = dataNode["Items"]["SavingsPlansDeductDetailResponse"];
|
||||
for (auto dataNodeItemsSavingsPlansDeductDetailResponse : allItemsNode)
|
||||
{
|
||||
Data::SavingsPlansDeductDetailResponse savingsPlansDeductDetailResponseObject;
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.startTime = dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["EndTime"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.endTime = dataNodeItemsSavingsPlansDeductDetailResponse["EndTime"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["SavingsType"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.savingsType = dataNodeItemsSavingsPlansDeductDetailResponse["SavingsType"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.billModule = dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.deductFee = dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.deductRate = dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["UserId"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.userId = std::stol(dataNodeItemsSavingsPlansDeductDetailResponse["UserId"].asString());
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.deductCommodity = dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.deductInstanceId = dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DiscountRate"].isNull())
|
||||
savingsPlansDeductDetailResponseObject.discountRate = dataNodeItemsSavingsPlansDeductDetailResponse["DiscountRate"].asString();
|
||||
data_.items.push_back(savingsPlansDeductDetailResponseObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QuerySavingsPlansDeductLogResult::Data QuerySavingsPlansDeductLogResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySavingsPlansDeductLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
bssopenapi/src/model/QuerySavingsPlansInstanceRequest.cc
Normal file
106
bssopenapi/src/model/QuerySavingsPlansInstanceRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansInstanceRequest;
|
||||
|
||||
QuerySavingsPlansInstanceRequest::QuerySavingsPlansInstanceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySavingsPlansInstanceRequest::~QuerySavingsPlansInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string QuerySavingsPlansInstanceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansInstanceRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansInstanceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansInstanceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansInstanceRequest::getLocale()const
|
||||
{
|
||||
return locale_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansInstanceRequest::setLocale(const std::string& locale)
|
||||
{
|
||||
locale_ = locale;
|
||||
setParameter("Locale", locale);
|
||||
}
|
||||
|
||||
int QuerySavingsPlansInstanceRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansInstanceRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansInstanceRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansInstanceRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int QuerySavingsPlansInstanceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansInstanceRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
111
bssopenapi/src/model/QuerySavingsPlansInstanceResult.cc
Normal file
111
bssopenapi/src/model/QuerySavingsPlansInstanceResult.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QuerySavingsPlansInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QuerySavingsPlansInstanceResult::QuerySavingsPlansInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySavingsPlansInstanceResult::QuerySavingsPlansInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySavingsPlansInstanceResult::~QuerySavingsPlansInstanceResult()
|
||||
{}
|
||||
|
||||
void QuerySavingsPlansInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allItemsNode = dataNode["Items"]["SavingsPlansDetailResponse"];
|
||||
for (auto dataNodeItemsSavingsPlansDetailResponse : allItemsNode)
|
||||
{
|
||||
Data::SavingsPlansDetailResponse savingsPlansDetailResponseObject;
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["InstanceId"].isNull())
|
||||
savingsPlansDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDetailResponse["InstanceId"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["SavingsType"].isNull())
|
||||
savingsPlansDetailResponseObject.savingsType = dataNodeItemsSavingsPlansDetailResponse["SavingsType"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["InstanceFamily"].isNull())
|
||||
savingsPlansDetailResponseObject.instanceFamily = dataNodeItemsSavingsPlansDetailResponse["InstanceFamily"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["Region"].isNull())
|
||||
savingsPlansDetailResponseObject.region = dataNodeItemsSavingsPlansDetailResponse["Region"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["PoolValue"].isNull())
|
||||
savingsPlansDetailResponseObject.poolValue = dataNodeItemsSavingsPlansDetailResponse["PoolValue"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["Currency"].isNull())
|
||||
savingsPlansDetailResponseObject.currency = dataNodeItemsSavingsPlansDetailResponse["Currency"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["Status"].isNull())
|
||||
savingsPlansDetailResponseObject.status = dataNodeItemsSavingsPlansDetailResponse["Status"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["StartTime"].isNull())
|
||||
savingsPlansDetailResponseObject.startTime = dataNodeItemsSavingsPlansDetailResponse["StartTime"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["EndTime"].isNull())
|
||||
savingsPlansDetailResponseObject.endTime = dataNodeItemsSavingsPlansDetailResponse["EndTime"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["PayMode"].isNull())
|
||||
savingsPlansDetailResponseObject.payMode = dataNodeItemsSavingsPlansDetailResponse["PayMode"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].isNull())
|
||||
savingsPlansDetailResponseObject.prepayFee = dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["TotalSave"].isNull())
|
||||
savingsPlansDetailResponseObject.totalSave = dataNodeItemsSavingsPlansDetailResponse["TotalSave"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["Utilization"].isNull())
|
||||
savingsPlansDetailResponseObject.utilization = dataNodeItemsSavingsPlansDetailResponse["Utilization"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["Share"].isNull())
|
||||
savingsPlansDetailResponseObject.share = dataNodeItemsSavingsPlansDetailResponse["Share"].asString() == "true";
|
||||
data_.items.push_back(savingsPlansDetailResponseObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QuerySavingsPlansInstanceResult::Data QuerySavingsPlansInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySavingsPlansInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -136,6 +136,18 @@ void QuerySplitItemBillResult::parse(const std::string &payload)
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||
if(!dataNodeItemsItem["ServicePeriodUnit"].isNull())
|
||||
itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString();
|
||||
if(!dataNodeItemsItem["SplitCommodityCode"].isNull())
|
||||
itemObject.splitCommodityCode = dataNodeItemsItem["SplitCommodityCode"].asString();
|
||||
if(!dataNodeItemsItem["SplitProductDetail"].isNull())
|
||||
itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString();
|
||||
if(!dataNodeItemsItem["SplitAccountID"].isNull())
|
||||
itemObject.splitAccountID = dataNodeItemsItem["SplitAccountID"].asString();
|
||||
if(!dataNodeItemsItem["SplitAccountName"].isNull())
|
||||
itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString();
|
||||
if(!dataNodeItemsItem["SplitBillingCycle"].isNull())
|
||||
itemObject.splitBillingCycle = dataNodeItemsItem["SplitBillingCycle"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
117
bssopenapi/src/model/SaveUserCreditRequest.cc
Normal file
117
bssopenapi/src/model/SaveUserCreditRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/SaveUserCreditRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SaveUserCreditRequest;
|
||||
|
||||
SaveUserCreditRequest::SaveUserCreditRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SaveUserCredit")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SaveUserCreditRequest::~SaveUserCreditRequest()
|
||||
{}
|
||||
|
||||
bool SaveUserCreditRequest::getAvoidExpiration()const
|
||||
{
|
||||
return avoidExpiration_;
|
||||
}
|
||||
|
||||
void SaveUserCreditRequest::setAvoidExpiration(bool avoidExpiration)
|
||||
{
|
||||
avoidExpiration_ = avoidExpiration;
|
||||
setParameter("AvoidExpiration", avoidExpiration ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SaveUserCreditRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void SaveUserCreditRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
bool SaveUserCreditRequest::getAvoidPrepaidNotification()const
|
||||
{
|
||||
return avoidPrepaidNotification_;
|
||||
}
|
||||
|
||||
void SaveUserCreditRequest::setAvoidPrepaidNotification(bool avoidPrepaidNotification)
|
||||
{
|
||||
avoidPrepaidNotification_ = avoidPrepaidNotification;
|
||||
setParameter("AvoidPrepaidNotification", avoidPrepaidNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SaveUserCreditRequest::getAvoidPrepaidExpiration()const
|
||||
{
|
||||
return avoidPrepaidExpiration_;
|
||||
}
|
||||
|
||||
void SaveUserCreditRequest::setAvoidPrepaidExpiration(bool avoidPrepaidExpiration)
|
||||
{
|
||||
avoidPrepaidExpiration_ = avoidPrepaidExpiration;
|
||||
setParameter("AvoidPrepaidExpiration", avoidPrepaidExpiration ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SaveUserCreditRequest::getAvoidNotification()const
|
||||
{
|
||||
return avoidNotification_;
|
||||
}
|
||||
|
||||
void SaveUserCreditRequest::setAvoidNotification(bool avoidNotification)
|
||||
{
|
||||
avoidNotification_ = avoidNotification;
|
||||
setParameter("AvoidNotification", avoidNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SaveUserCreditRequest::get_Operator()const
|
||||
{
|
||||
return _operator_;
|
||||
}
|
||||
|
||||
void SaveUserCreditRequest::set_Operator(const std::string& _operator)
|
||||
{
|
||||
_operator_ = _operator;
|
||||
setParameter("_Operator", _operator);
|
||||
}
|
||||
|
||||
std::string SaveUserCreditRequest::getCreditValue()const
|
||||
{
|
||||
return creditValue_;
|
||||
}
|
||||
|
||||
void SaveUserCreditRequest::setCreditValue(const std::string& creditValue)
|
||||
{
|
||||
creditValue_ = creditValue;
|
||||
setParameter("CreditValue", creditValue);
|
||||
}
|
||||
|
||||
std::string SaveUserCreditRequest::getCreditType()const
|
||||
{
|
||||
return creditType_;
|
||||
}
|
||||
|
||||
void SaveUserCreditRequest::setCreditType(const std::string& creditType)
|
||||
{
|
||||
creditType_ = creditType;
|
||||
setParameter("CreditType", creditType);
|
||||
}
|
||||
|
||||
65
bssopenapi/src/model/SaveUserCreditResult.cc
Normal file
65
bssopenapi/src/model/SaveUserCreditResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SaveUserCreditResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SaveUserCreditResult::SaveUserCreditResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SaveUserCreditResult::SaveUserCreditResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SaveUserCreditResult::~SaveUserCreditResult()
|
||||
{}
|
||||
|
||||
void SaveUserCreditResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SaveUserCreditResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SaveUserCreditResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SaveUserCreditResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
216
bssopenapi/src/model/SetCreditLabelActionRequest.cc
Normal file
216
bssopenapi/src/model/SetCreditLabelActionRequest.cc
Normal file
@@ -0,0 +1,216 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/SetCreditLabelActionRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SetCreditLabelActionRequest;
|
||||
|
||||
SetCreditLabelActionRequest::SetCreditLabelActionRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SetCreditLabelAction")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetCreditLabelActionRequest::~SetCreditLabelActionRequest()
|
||||
{}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getActionType()const
|
||||
{
|
||||
return actionType_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setActionType(const std::string& actionType)
|
||||
{
|
||||
actionType_ = actionType;
|
||||
setParameter("ActionType", actionType);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getIsNeedSaveNotifyRule()const
|
||||
{
|
||||
return isNeedSaveNotifyRule_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setIsNeedSaveNotifyRule(const std::string& isNeedSaveNotifyRule)
|
||||
{
|
||||
isNeedSaveNotifyRule_ = isNeedSaveNotifyRule;
|
||||
setParameter("IsNeedSaveNotifyRule", isNeedSaveNotifyRule);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getIsNeedAdjustCreditAccount()const
|
||||
{
|
||||
return isNeedAdjustCreditAccount_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setIsNeedAdjustCreditAccount(const std::string& isNeedAdjustCreditAccount)
|
||||
{
|
||||
isNeedAdjustCreditAccount_ = isNeedAdjustCreditAccount;
|
||||
setParameter("IsNeedAdjustCreditAccount", isNeedAdjustCreditAccount);
|
||||
}
|
||||
|
||||
bool SetCreditLabelActionRequest::getNewCreateMode()const
|
||||
{
|
||||
return newCreateMode_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setNewCreateMode(bool newCreateMode)
|
||||
{
|
||||
newCreateMode_ = newCreateMode;
|
||||
setParameter("NewCreateMode", newCreateMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setSource(const std::string& source)
|
||||
{
|
||||
source_ = source;
|
||||
setParameter("Source", source);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getCurrencyCode()const
|
||||
{
|
||||
return currencyCode_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setCurrencyCode(const std::string& currencyCode)
|
||||
{
|
||||
currencyCode_ = currencyCode;
|
||||
setParameter("CurrencyCode", currencyCode);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getDailyCycle()const
|
||||
{
|
||||
return dailyCycle_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setDailyCycle(const std::string& dailyCycle)
|
||||
{
|
||||
dailyCycle_ = dailyCycle;
|
||||
setParameter("DailyCycle", dailyCycle);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::get_Operator()const
|
||||
{
|
||||
return _operator_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::set_Operator(const std::string& _operator)
|
||||
{
|
||||
_operator_ = _operator;
|
||||
setParameter("_Operator", _operator);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setUid(const std::string& uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", uid);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getSiteCode()const
|
||||
{
|
||||
return siteCode_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setSiteCode(const std::string& siteCode)
|
||||
{
|
||||
siteCode_ = siteCode;
|
||||
setParameter("SiteCode", siteCode);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getClearCycle()const
|
||||
{
|
||||
return clearCycle_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setClearCycle(const std::string& clearCycle)
|
||||
{
|
||||
clearCycle_ = clearCycle;
|
||||
setParameter("ClearCycle", clearCycle);
|
||||
}
|
||||
|
||||
bool SetCreditLabelActionRequest::getNeedNotice()const
|
||||
{
|
||||
return needNotice_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setNeedNotice(bool needNotice)
|
||||
{
|
||||
needNotice_ = needNotice;
|
||||
setParameter("NeedNotice", needNotice ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getIsNeedSetCreditAmount()const
|
||||
{
|
||||
return isNeedSetCreditAmount_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setIsNeedSetCreditAmount(const std::string& isNeedSetCreditAmount)
|
||||
{
|
||||
isNeedSetCreditAmount_ = isNeedSetCreditAmount;
|
||||
setParameter("IsNeedSetCreditAmount", isNeedSetCreditAmount);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getCreditAmount()const
|
||||
{
|
||||
return creditAmount_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setCreditAmount(const std::string& creditAmount)
|
||||
{
|
||||
creditAmount_ = creditAmount;
|
||||
setParameter("CreditAmount", creditAmount);
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionRequest::getIsNeedAddSettleLabel()const
|
||||
{
|
||||
return isNeedAddSettleLabel_;
|
||||
}
|
||||
|
||||
void SetCreditLabelActionRequest::setIsNeedAddSettleLabel(const std::string& isNeedAddSettleLabel)
|
||||
{
|
||||
isNeedAddSettleLabel_ = isNeedAddSettleLabel;
|
||||
setParameter("IsNeedAddSettleLabel", isNeedAddSettleLabel);
|
||||
}
|
||||
|
||||
72
bssopenapi/src/model/SetCreditLabelActionResult.cc
Normal file
72
bssopenapi/src/model/SetCreditLabelActionResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/SetCreditLabelActionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SetCreditLabelActionResult::SetCreditLabelActionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetCreditLabelActionResult::SetCreditLabelActionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetCreditLabelActionResult::~SetCreditLabelActionResult()
|
||||
{}
|
||||
|
||||
void SetCreditLabelActionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool SetCreditLabelActionResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SetCreditLabelActionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetCreditLabelActionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user