Add BillingDate support in QueryAccontBill.
This commit is contained in:
@@ -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