QueryMonthlyBillResponse add roundDownDiscount.

This commit is contained in:
sdk-team
2019-07-19 17:51:25 +08:00
parent af8563e7c6
commit aab08f0a43
56 changed files with 2773 additions and 4 deletions

View File

@@ -0,0 +1,115 @@
/*
* 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/ChangeResellerConsumeAmountRequest.h>
using AlibabaCloud::BssOpenApi::Model::ChangeResellerConsumeAmountRequest;
ChangeResellerConsumeAmountRequest::ChangeResellerConsumeAmountRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeResellerConsumeAmount")
{}
ChangeResellerConsumeAmountRequest::~ChangeResellerConsumeAmountRequest()
{}
std::string ChangeResellerConsumeAmountRequest::getAdjustType()const
{
return adjustType_;
}
void ChangeResellerConsumeAmountRequest::setAdjustType(const std::string& adjustType)
{
adjustType_ = adjustType;
setCoreParameter("AdjustType", adjustType);
}
std::string ChangeResellerConsumeAmountRequest::getAmount()const
{
return amount_;
}
void ChangeResellerConsumeAmountRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setCoreParameter("Amount", amount);
}
std::string ChangeResellerConsumeAmountRequest::getOutBizId()const
{
return outBizId_;
}
void ChangeResellerConsumeAmountRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setCoreParameter("OutBizId", outBizId);
}
std::string ChangeResellerConsumeAmountRequest::getExtendMap()const
{
return extendMap_;
}
void ChangeResellerConsumeAmountRequest::setExtendMap(const std::string& extendMap)
{
extendMap_ = extendMap;
setCoreParameter("ExtendMap", extendMap);
}
std::string ChangeResellerConsumeAmountRequest::getCurrency()const
{
return currency_;
}
void ChangeResellerConsumeAmountRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setCoreParameter("Currency", currency);
}
std::string ChangeResellerConsumeAmountRequest::getSource()const
{
return source_;
}
void ChangeResellerConsumeAmountRequest::setSource(const std::string& source)
{
source_ = source;
setCoreParameter("Source", source);
}
long ChangeResellerConsumeAmountRequest::getOwnerId()const
{
return ownerId_;
}
void ChangeResellerConsumeAmountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string ChangeResellerConsumeAmountRequest::getBusinessType()const
{
return businessType_;
}
void ChangeResellerConsumeAmountRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setCoreParameter("BusinessType", businessType);
}

View File

@@ -0,0 +1,73 @@
/*
* 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/ChangeResellerConsumeAmountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult() :
ServiceResult()
{}
ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeResellerConsumeAmountResult::~ChangeResellerConsumeAmountResult()
{}
void ChangeResellerConsumeAmountResult::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["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string ChangeResellerConsumeAmountResult::getMessage()const
{
return message_;
}
std::string ChangeResellerConsumeAmountResult::getData()const
{
return data_;
}
std::string ChangeResellerConsumeAmountResult::getCode()const
{
return code_;
}
bool ChangeResellerConsumeAmountResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/CreateAgAccountRequest.h>
using AlibabaCloud::BssOpenApi::Model::CreateAgAccountRequest;
CreateAgAccountRequest::CreateAgAccountRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateAgAccount")
{}
CreateAgAccountRequest::~CreateAgAccountRequest()
{}
std::string CreateAgAccountRequest::getFirstName()const
{
return firstName_;
}
void CreateAgAccountRequest::setFirstName(const std::string& firstName)
{
firstName_ = firstName;
setCoreParameter("FirstName", firstName);
}
std::string CreateAgAccountRequest::getLoginEmail()const
{
return loginEmail_;
}
void CreateAgAccountRequest::setLoginEmail(const std::string& loginEmail)
{
loginEmail_ = loginEmail;
setCoreParameter("LoginEmail", loginEmail);
}
std::string CreateAgAccountRequest::getProvinceName()const
{
return provinceName_;
}
void CreateAgAccountRequest::setProvinceName(const std::string& provinceName)
{
provinceName_ = provinceName;
setCoreParameter("ProvinceName", provinceName);
}
std::string CreateAgAccountRequest::getCityName()const
{
return cityName_;
}
void CreateAgAccountRequest::setCityName(const std::string& cityName)
{
cityName_ = cityName;
setCoreParameter("CityName", cityName);
}
std::string CreateAgAccountRequest::getAccountAttr()const
{
return accountAttr_;
}
void CreateAgAccountRequest::setAccountAttr(const std::string& accountAttr)
{
accountAttr_ = accountAttr;
setCoreParameter("AccountAttr", accountAttr);
}
std::string CreateAgAccountRequest::getPostcode()const
{
return postcode_;
}
void CreateAgAccountRequest::setPostcode(const std::string& postcode)
{
postcode_ = postcode;
setCoreParameter("Postcode", postcode);
}
std::string CreateAgAccountRequest::getEnterpriseName()const
{
return enterpriseName_;
}
void CreateAgAccountRequest::setEnterpriseName(const std::string& enterpriseName)
{
enterpriseName_ = enterpriseName;
setCoreParameter("EnterpriseName", enterpriseName);
}
std::string CreateAgAccountRequest::getNationCode()const
{
return nationCode_;
}
void CreateAgAccountRequest::setNationCode(const std::string& nationCode)
{
nationCode_ = nationCode;
setCoreParameter("NationCode", nationCode);
}
std::string CreateAgAccountRequest::getLastName()const
{
return lastName_;
}
void CreateAgAccountRequest::setLastName(const std::string& lastName)
{
lastName_ = lastName;
setCoreParameter("LastName", lastName);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/CreateAgAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateAgAccountResult::CreateAgAccountResult() :
ServiceResult()
{}
CreateAgAccountResult::CreateAgAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAgAccountResult::~CreateAgAccountResult()
{}
void CreateAgAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto agRelationDtoNode = value["AgRelationDto"];
if(!agRelationDtoNode["Pk"].isNull())
agRelationDto_.pk = agRelationDtoNode["Pk"].asString();
if(!agRelationDtoNode["Type"].isNull())
agRelationDto_.type = agRelationDtoNode["Type"].asString();
if(!agRelationDtoNode["Mpk"].isNull())
agRelationDto_.mpk = agRelationDtoNode["Mpk"].asString();
if(!agRelationDtoNode["RamAdminRoleName"].isNull())
agRelationDto_.ramAdminRoleName = agRelationDtoNode["RamAdminRoleName"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateAgAccountResult::getMessage()const
{
return message_;
}
CreateAgAccountResult::AgRelationDto CreateAgAccountResult::getAgRelationDto()const
{
return agRelationDto_;
}
std::string CreateAgAccountResult::getCode()const
{
return code_;
}
bool CreateAgAccountResult::getSuccess()const
{
return success_;
}

View File

@@ -47,6 +47,17 @@ void CreateInstanceRequest::setPeriod(int period)
setCoreParameter("Period", std::to_string(period));
}
std::string CreateInstanceRequest::getClientToken()const
{
return clientToken_;
}
void CreateInstanceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
std::string CreateInstanceRequest::getSubscriptionType()const
{
return subscriptionType_;

View File

@@ -0,0 +1,71 @@
/*
* 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/CreateResellerUserQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::CreateResellerUserQuotaRequest;
CreateResellerUserQuotaRequest::CreateResellerUserQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResellerUserQuota")
{}
CreateResellerUserQuotaRequest::~CreateResellerUserQuotaRequest()
{}
std::string CreateResellerUserQuotaRequest::getAmount()const
{
return amount_;
}
void CreateResellerUserQuotaRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setCoreParameter("Amount", amount);
}
std::string CreateResellerUserQuotaRequest::getOutBizId()const
{
return outBizId_;
}
void CreateResellerUserQuotaRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setCoreParameter("OutBizId", outBizId);
}
std::string CreateResellerUserQuotaRequest::getCurrency()const
{
return currency_;
}
void CreateResellerUserQuotaRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setCoreParameter("Currency", currency);
}
long CreateResellerUserQuotaRequest::getOwnerId()const
{
return ownerId_;
}
void CreateResellerUserQuotaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,73 @@
/*
* 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/CreateResellerUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
CreateResellerUserQuotaResult::CreateResellerUserQuotaResult() :
ServiceResult()
{}
CreateResellerUserQuotaResult::CreateResellerUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateResellerUserQuotaResult::~CreateResellerUserQuotaResult()
{}
void CreateResellerUserQuotaResult::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["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string CreateResellerUserQuotaResult::getMessage()const
{
return message_;
}
bool CreateResellerUserQuotaResult::getData()const
{
return data_;
}
std::string CreateResellerUserQuotaResult::getCode()const
{
return code_;
}
bool CreateResellerUserQuotaResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/GetCustomerAccountInfoRequest.h>
using AlibabaCloud::BssOpenApi::Model::GetCustomerAccountInfoRequest;
GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo")
{}
GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest()
{}
long GetCustomerAccountInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetCustomerAccountInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,84 @@
/*
* 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/GetCustomerAccountInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetCustomerAccountInfoResult::GetCustomerAccountInfoResult() :
ServiceResult()
{}
GetCustomerAccountInfoResult::GetCustomerAccountInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCustomerAccountInfoResult::~GetCustomerAccountInfoResult()
{}
void GetCustomerAccountInfoResult::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["LoginEmail"].isNull())
data_.loginEmail = dataNode["LoginEmail"].asString();
if(!dataNode["AccountType"].isNull())
data_.accountType = dataNode["AccountType"].asString();
if(!dataNode["Mpk"].isNull())
data_.mpk = std::stol(dataNode["Mpk"].asString());
if(!dataNode["HostingStatus"].isNull())
data_.hostingStatus = dataNode["HostingStatus"].asString();
if(!dataNode["CreditLimitStatus"].isNull())
data_.creditLimitStatus = dataNode["CreditLimitStatus"].asString();
if(!dataNode["IsCertified"].isNull())
data_.isCertified = dataNode["IsCertified"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetCustomerAccountInfoResult::getMessage()const
{
return message_;
}
GetCustomerAccountInfoResult::Data GetCustomerAccountInfoResult::getData()const
{
return data_;
}
std::string GetCustomerAccountInfoResult::getCode()const
{
return code_;
}
bool GetCustomerAccountInfoResult::getSuccess()const
{
return success_;
}

View File

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

View File

@@ -0,0 +1,75 @@
/*
* 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/GetCustomerListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
GetCustomerListResult::GetCustomerListResult() :
ServiceResult()
{}
GetCustomerListResult::GetCustomerListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCustomerListResult::~GetCustomerListResult()
{}
void GetCustomerListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allUidList = dataNode["UidList"]["Item"];
for (auto value : allUidList)
data_.uidList.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetCustomerListResult::getMessage()const
{
return message_;
}
GetCustomerListResult::Data GetCustomerListResult::getData()const
{
return data_;
}
std::string GetCustomerListResult::getCode()const
{
return code_;
}
bool GetCustomerListResult::getSuccess()const
{
return success_;
}

View File

@@ -99,6 +99,8 @@ void GetOrderDetailResult::parse(const std::string &payload)
orderObject.paymentCurrency = value["PaymentCurrency"].asString();
if(!value["Operator"].isNull())
orderObject._operator = value["Operator"].asString();
if(!value["RelatedOrderId"].isNull())
orderObject.relatedOrderId = value["RelatedOrderId"].asString();
data_.orderList.push_back(orderObject);
}
if(!value["Success"].isNull())

View File

@@ -47,6 +47,17 @@ void ModifyInstanceRequest::setInstanceId(const std::string& instanceId)
setCoreParameter("InstanceId", instanceId);
}
std::string ModifyInstanceRequest::getClientToken()const
{
return clientToken_;
}
void ModifyInstanceRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
std::string ModifyInstanceRequest::getSubscriptionType()const
{
return subscriptionType_;

View File

@@ -0,0 +1,104 @@
/*
* 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/QueryAccountTransactionsRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryAccountTransactionsRequest;
QueryAccountTransactionsRequest::QueryAccountTransactionsRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactions")
{}
QueryAccountTransactionsRequest::~QueryAccountTransactionsRequest()
{}
std::string QueryAccountTransactionsRequest::getRecordID()const
{
return recordID_;
}
void QueryAccountTransactionsRequest::setRecordID(const std::string& recordID)
{
recordID_ = recordID;
setCoreParameter("RecordID", recordID);
}
int QueryAccountTransactionsRequest::getPageSize()const
{
return pageSize_;
}
void QueryAccountTransactionsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string QueryAccountTransactionsRequest::getTransactionChannelSN()const
{
return transactionChannelSN_;
}
void QueryAccountTransactionsRequest::setTransactionChannelSN(const std::string& transactionChannelSN)
{
transactionChannelSN_ = transactionChannelSN;
setCoreParameter("TransactionChannelSN", transactionChannelSN);
}
std::string QueryAccountTransactionsRequest::getCreateTimeStart()const
{
return createTimeStart_;
}
void QueryAccountTransactionsRequest::setCreateTimeStart(const std::string& createTimeStart)
{
createTimeStart_ = createTimeStart;
setCoreParameter("CreateTimeStart", createTimeStart);
}
std::string QueryAccountTransactionsRequest::getTransactionNumber()const
{
return transactionNumber_;
}
void QueryAccountTransactionsRequest::setTransactionNumber(const std::string& transactionNumber)
{
transactionNumber_ = transactionNumber;
setCoreParameter("TransactionNumber", transactionNumber);
}
int QueryAccountTransactionsRequest::getPageNum()const
{
return pageNum_;
}
void QueryAccountTransactionsRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
}
std::string QueryAccountTransactionsRequest::getCreateTimeEnd()const
{
return createTimeEnd_;
}
void QueryAccountTransactionsRequest::setCreateTimeEnd(const std::string& createTimeEnd)
{
createTimeEnd_ = createTimeEnd;
setCoreParameter("CreateTimeEnd", createTimeEnd);
}

View File

@@ -0,0 +1,112 @@
/*
* 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/QueryAccountTransactionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryAccountTransactionsResult::QueryAccountTransactionsResult() :
ServiceResult()
{}
QueryAccountTransactionsResult::QueryAccountTransactionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAccountTransactionsResult::~QueryAccountTransactionsResult()
{}
void QueryAccountTransactionsResult::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["AccountName"].isNull())
data_.accountName = dataNode["AccountName"].asString();
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
if(!dataNode["PageNum"].isNull())
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
auto allAccountTransactionsList = value["AccountTransactionsList"]["AccountTransactionsListItem"];
for (auto value : allAccountTransactionsList)
{
Data::AccountTransactionsListItem accountTransactionsListItemObject;
if(!value["TransactionNumber"].isNull())
accountTransactionsListItemObject.transactionNumber = value["TransactionNumber"].asString();
if(!value["TransactionTime"].isNull())
accountTransactionsListItemObject.transactionTime = value["TransactionTime"].asString();
if(!value["TransactionFlow"].isNull())
accountTransactionsListItemObject.transactionFlow = value["TransactionFlow"].asString();
if(!value["TransactionType"].isNull())
accountTransactionsListItemObject.transactionType = value["TransactionType"].asString();
if(!value["TransactionChannel"].isNull())
accountTransactionsListItemObject.transactionChannel = value["TransactionChannel"].asString();
if(!value["TransactionChannelSN"].isNull())
accountTransactionsListItemObject.transactionChannelSN = value["TransactionChannelSN"].asString();
if(!value["FundType"].isNull())
accountTransactionsListItemObject.fundType = value["FundType"].asString();
if(!value["RecordID"].isNull())
accountTransactionsListItemObject.recordID = value["RecordID"].asString();
if(!value["Remarks"].isNull())
accountTransactionsListItemObject.remarks = value["Remarks"].asString();
if(!value["BillingCycle"].isNull())
accountTransactionsListItemObject.billingCycle = value["BillingCycle"].asString();
if(!value["Amount"].isNull())
accountTransactionsListItemObject.amount = value["Amount"].asString();
if(!value["Balance"].isNull())
accountTransactionsListItemObject.balance = value["Balance"].asString();
if(!value["TransactionAccount"].isNull())
accountTransactionsListItemObject.transactionAccount = value["TransactionAccount"].asString();
data_.accountTransactionsList.push_back(accountTransactionsListItemObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryAccountTransactionsResult::getMessage()const
{
return message_;
}
QueryAccountTransactionsResult::Data QueryAccountTransactionsResult::getData()const
{
return data_;
}
std::string QueryAccountTransactionsResult::getCode()const
{
return code_;
}
bool QueryAccountTransactionsResult::getSuccess()const
{
return success_;
}

View File

@@ -89,6 +89,8 @@ void QueryBillOverviewResult::parse(const std::string &payload)
itemObject.afterTaxAmount = std::stof(value["AfterTaxAmount"].asString());
if(!value["PaymentCurrency"].isNull())
itemObject.paymentCurrency = value["PaymentCurrency"].asString();
if(!value["RoundDownDiscount"].isNull())
itemObject.roundDownDiscount = value["RoundDownDiscount"].asString();
data_.items.push_back(itemObject);
}
if(!value["Success"].isNull())

View File

@@ -109,6 +109,8 @@ void QueryBillResult::parse(const std::string &payload)
itemObject.paymentCurrency = value["PaymentCurrency"].asString();
if(!value["PaymentTransactionID"].isNull())
itemObject.paymentTransactionID = value["PaymentTransactionID"].asString();
if(!value["RoundDownDiscount"].isNull())
itemObject.roundDownDiscount = value["RoundDownDiscount"].asString();
data_.items.push_back(itemObject);
}
if(!value["Success"].isNull())

View File

@@ -59,8 +59,6 @@ void QueryInstanceBillResult::parse(const std::string &payload)
Data::Item itemObject;
if(!value["InstanceID"].isNull())
itemObject.instanceID = value["InstanceID"].asString();
if(!value["ServicePeriod"].isNull())
itemObject.servicePeriod = std::stof(value["ServicePeriod"].asString());
if(!value["BillingType"].isNull())
itemObject.billingType = value["BillingType"].asString();
if(!value["CostUnit"].isNull())
@@ -107,6 +105,26 @@ void QueryInstanceBillResult::parse(const std::string &payload)
itemObject.outstandingAmount = std::stof(value["OutstandingAmount"].asString());
if(!value["Currency"].isNull())
itemObject.currency = value["Currency"].asString();
if(!value["NickName"].isNull())
itemObject.nickName = value["NickName"].asString();
if(!value["ResourceGroup"].isNull())
itemObject.resourceGroup = value["ResourceGroup"].asString();
if(!value["Tag"].isNull())
itemObject.tag = value["Tag"].asString();
if(!value["InstanceConfig"].isNull())
itemObject.instanceConfig = value["InstanceConfig"].asString();
if(!value["InstanceSpec"].isNull())
itemObject.instanceSpec = value["InstanceSpec"].asString();
if(!value["InternetIP"].isNull())
itemObject.internetIP = value["InternetIP"].asString();
if(!value["IntranetIP"].isNull())
itemObject.intranetIP = value["IntranetIP"].asString();
if(!value["Region"].isNull())
itemObject.region = value["Region"].asString();
if(!value["Zone"].isNull())
itemObject.zone = value["Zone"].asString();
if(!value["Item"].isNull())
itemObject.item = value["Item"].asString();
data_.items.push_back(itemObject);
}
if(!value["Success"].isNull())

View File

@@ -83,6 +83,8 @@ void QueryOrdersResult::parse(const std::string &payload)
orderObject.afterTaxAmount = value["AfterTaxAmount"].asString();
if(!value["PaymentCurrency"].isNull())
orderObject.paymentCurrency = value["PaymentCurrency"].asString();
if(!value["RelatedOrderId"].isNull())
orderObject.relatedOrderId = value["RelatedOrderId"].asString();
data_.orderList.push_back(orderObject);
}
if(!value["Success"].isNull())

View File

@@ -0,0 +1,49 @@
/*
* 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/QueryResellerAvailableQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryResellerAvailableQuotaRequest;
QueryResellerAvailableQuotaRequest::QueryResellerAvailableQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResellerAvailableQuota")
{}
QueryResellerAvailableQuotaRequest::~QueryResellerAvailableQuotaRequest()
{}
std::string QueryResellerAvailableQuotaRequest::getItemCodes()const
{
return itemCodes_;
}
void QueryResellerAvailableQuotaRequest::setItemCodes(const std::string& itemCodes)
{
itemCodes_ = itemCodes;
setCoreParameter("ItemCodes", itemCodes);
}
long QueryResellerAvailableQuotaRequest::getOwnerId()const
{
return ownerId_;
}
void QueryResellerAvailableQuotaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,73 @@
/*
* 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/QueryResellerAvailableQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult() :
ServiceResult()
{}
QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryResellerAvailableQuotaResult::~QueryResellerAvailableQuotaResult()
{}
void QueryResellerAvailableQuotaResult::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["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string QueryResellerAvailableQuotaResult::getMessage()const
{
return message_;
}
std::string QueryResellerAvailableQuotaResult::getData()const
{
return data_;
}
std::string QueryResellerAvailableQuotaResult::getCode()const
{
return code_;
}
bool QueryResellerAvailableQuotaResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetResellerUserAlarmThresholdRequest;
SetResellerUserAlarmThresholdRequest::SetResellerUserAlarmThresholdRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserAlarmThreshold")
{}
SetResellerUserAlarmThresholdRequest::~SetResellerUserAlarmThresholdRequest()
{}
std::string SetResellerUserAlarmThresholdRequest::getAlarmType()const
{
return alarmType_;
}
void SetResellerUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
{
alarmType_ = alarmType;
setCoreParameter("AlarmType", alarmType);
}
std::string SetResellerUserAlarmThresholdRequest::getAlarmThresholds()const
{
return alarmThresholds_;
}
void SetResellerUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
{
alarmThresholds_ = alarmThresholds;
setCoreParameter("AlarmThresholds", alarmThresholds);
}
long SetResellerUserAlarmThresholdRequest::getOwnerId()const
{
return ownerId_;
}
void SetResellerUserAlarmThresholdRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,73 @@
/*
* 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/SetResellerUserAlarmThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult() :
ServiceResult()
{}
SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserAlarmThresholdResult::~SetResellerUserAlarmThresholdResult()
{}
void SetResellerUserAlarmThresholdResult::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["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string SetResellerUserAlarmThresholdResult::getMessage()const
{
return message_;
}
bool SetResellerUserAlarmThresholdResult::getData()const
{
return data_;
}
std::string SetResellerUserAlarmThresholdResult::getCode()const
{
return code_;
}
bool SetResellerUserAlarmThresholdResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/SetResellerUserQuotaRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetResellerUserQuotaRequest;
SetResellerUserQuotaRequest::SetResellerUserQuotaRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserQuota")
{}
SetResellerUserQuotaRequest::~SetResellerUserQuotaRequest()
{}
std::string SetResellerUserQuotaRequest::getAmount()const
{
return amount_;
}
void SetResellerUserQuotaRequest::setAmount(const std::string& amount)
{
amount_ = amount;
setCoreParameter("Amount", amount);
}
std::string SetResellerUserQuotaRequest::getOutBizId()const
{
return outBizId_;
}
void SetResellerUserQuotaRequest::setOutBizId(const std::string& outBizId)
{
outBizId_ = outBizId;
setCoreParameter("OutBizId", outBizId);
}
std::string SetResellerUserQuotaRequest::getCurrency()const
{
return currency_;
}
void SetResellerUserQuotaRequest::setCurrency(const std::string& currency)
{
currency_ = currency;
setCoreParameter("Currency", currency);
}
long SetResellerUserQuotaRequest::getOwnerId()const
{
return ownerId_;
}
void SetResellerUserQuotaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,73 @@
/*
* 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/SetResellerUserQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserQuotaResult::SetResellerUserQuotaResult() :
ServiceResult()
{}
SetResellerUserQuotaResult::SetResellerUserQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserQuotaResult::~SetResellerUserQuotaResult()
{}
void SetResellerUserQuotaResult::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["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string SetResellerUserQuotaResult::getMessage()const
{
return message_;
}
bool SetResellerUserQuotaResult::getData()const
{
return data_;
}
std::string SetResellerUserQuotaResult::getCode()const
{
return code_;
}
bool SetResellerUserQuotaResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetResellerUserStatusRequest;
SetResellerUserStatusRequest::SetResellerUserStatusRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserStatus")
{}
SetResellerUserStatusRequest::~SetResellerUserStatusRequest()
{}
std::string SetResellerUserStatusRequest::getOwnerId()const
{
return ownerId_;
}
void SetResellerUserStatusRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
std::string SetResellerUserStatusRequest::getStatus()const
{
return status_;
}
void SetResellerUserStatusRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}
std::string SetResellerUserStatusRequest::getBusinessType()const
{
return businessType_;
}
void SetResellerUserStatusRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setCoreParameter("BusinessType", businessType);
}

View File

@@ -0,0 +1,73 @@
/*
* 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/SetResellerUserStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetResellerUserStatusResult::SetResellerUserStatusResult() :
ServiceResult()
{}
SetResellerUserStatusResult::SetResellerUserStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetResellerUserStatusResult::~SetResellerUserStatusResult()
{}
void SetResellerUserStatusResult::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["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string SetResellerUserStatusResult::getMessage()const
{
return message_;
}
bool SetResellerUserStatusResult::getData()const
{
return data_;
}
std::string SetResellerUserStatusResult::getCode()const
{
return code_;
}
bool SetResellerUserStatusResult::getSuccess()const
{
return success_;
}